/* БАЗА */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --surface: #111111;
    --border: #1e1e1e;
    --text: #f5f5f5;
    --muted: #888888;
    --accent: #cc2200;
    --accent-glow: rgba(204, 34, 0, 0.35);
    --accent-dim: rgba(204, 34, 0, 0.15);
    --yellow: #ffea00;
    --yellow-dim: rgba(255, 234, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
}

/* КЛЮЧЕВЫЕ КАДРЫ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
    0%   { transform: scale(.92); opacity: 0; }
    40%  { opacity: .55; }
    100% { transform: scale(1.12); opacity: 0; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}
@keyframes triFloat {
    from {
        transform: translate(0, 0) rotate(var(--r, 0deg)) scale(1);
        opacity: var(--opA, 0.4);
    }
    to {
        transform: translate(var(--dx, 20px), var(--dy, -30px))
                   rotate(calc(var(--r, 0deg) + var(--dr, 18deg)))
                   scale(var(--sc, 0.82));
        opacity: var(--opB, 0.65);
    }
}
@keyframes igsBtnPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 234, 0, 0.7),
            0 0 24px rgba(255, 234, 0, 0.55),
            0 0 48px rgba(255, 234, 0, 0.35),
            0 4px 14px rgba(0, 0, 0, 0.35);
    }
    50% {
        box-shadow:
            0 0 14px rgba(255, 234, 0, 0.9),
            0 0 32px rgba(255, 234, 0, 0.7),
            0 0 64px rgba(255, 234, 0, 0.45),
            0 4px 14px rgba(0, 0, 0, 0.35);
    }
}
@keyframes benderBlinkOpen {
    0%, 84%, 96%, 100% { opacity: 1; }
    85%, 95%           { opacity: 0; }
}
@keyframes benderBlinkClosed {
    0%, 84%, 96%, 100% { opacity: 0; }
    85%, 95%           { opacity: 1; }
}
@keyframes masterRotate {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes fragmentDissolve {
    0%   { transform: translate(0,0) scale(1) rotate(0deg); opacity: .9; }
    30%  { transform: translate(var(--tx,45px), var(--fy,-45px)) scale(.7) rotate(15deg); opacity: .4; }
    60%  { transform: translate(calc(var(--tx,30px) * -.8), calc(var(--ty,-30px) * -.6)) scale(.85) rotate(-10deg); opacity: .7; }
    80%  { transform: translate(calc(var(--tx,10px) * .3), calc(var(--ty,-10px) * .25)) scale(.95) rotate(4deg); opacity: .95; }
    100% { transform: translate(0,0) scale(1) rotate(0deg); opacity: .9; }
}

/* НАВБАР */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.navbar .logo {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .logo img {
    height: 36px;
    width: auto;
}

/* НАВБАР - ССЫЛКИ */
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}
.nav-links a:hover::after {
    width: 100%;
}

/* НАВБАР - КНОПКИ FORUM / CRM */
.nav-links .btn-crm,
.nav-links a.btn-crm {
    background: var(--yellow) !important;
    color: #111 !important;
    padding: 7px 18px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    letter-spacing: .02em !important;
    text-decoration: none !important;
    border: 1.5px solid var(--yellow) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}
.nav-links .btn-crm::after,
.nav-links a.btn-crm::after {
    display: none !important;
}
[data-theme="dark"] .nav-links .btn-crm:hover,
[data-theme="dark"] .nav-links a.btn-crm:hover,
html:not([data-theme="light"]) .nav-links .btn-crm:hover,
html:not([data-theme="light"]) .nav-links a.btn-crm:hover {
    background: #f4d605 !important;
    color: #111 !important;
    border-color: #f4d605 !important;
    box-shadow:
        0 0 10px rgba(255, 234, 0, 0.7),
        0 0 24px rgba(255, 234, 0, 0.55),
        0 0 48px rgba(255, 234, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none !important;
    animation: igsBtnPulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .nav-links .btn-crm,
[data-theme="light"] .nav-links a.btn-crm {
    background: #a16207 !important;
    color: #ffffff !important;
    border-color: #a16207 !important;
    box-shadow: 0 0 10px rgba(161, 98, 7, 0.2);
}
[data-theme="light"] .nav-links .btn-crm:hover,
[data-theme="light"] .nav-links a.btn-crm:hover {
    background: #78350f !important;
    color: #ffffff !important;
    border-color: #78350f !important;
    box-shadow: 0 0 18px rgba(161, 98, 7, 0.4);
    transform: translateY(-1px);
    animation: none;
}

/* БУРГЕР */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ */
.ts-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, .07);
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: 100px;
    padding: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}
.ts-wrap:hover { border-color: var(--yellow); }
.ts-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, opacity .18s ease, color .18s ease;
    pointer-events: none;
    user-select: none;
}
[data-theme="dark"]  .ts-icon.ts-sun  { opacity: .38; background: transparent; color: rgba(255, 255, 255, .5); }
[data-theme="dark"]  .ts-icon.ts-moon { opacity: 1;   background: #22C55E;     color: #fff; }
[data-theme="light"] .ts-wrap         { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .15); }
[data-theme="light"] .ts-wrap:hover   { border-color: #a16207; }
[data-theme="light"] .ts-icon.ts-sun  { opacity: 1;   background: var(--yellow); color: #78350f; }
[data-theme="light"] .ts-icon.ts-moon { opacity: .38; background: transparent;   color: rgba(0, 0, 0, .35); }

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ПРОГРЕСС-БАР */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--yellow) 100%);
    z-index: 2000;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.1s linear;
}

/* ФОНОВЫЕ ТРЕУГОЛЬНИКИ */
.background-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.triangles-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.float-tri {
    position: absolute;
    width: 0;
    height: 0;
    border-left:   var(--w, 18px) solid transparent;
    border-right:  var(--w, 18px) solid transparent;
    border-bottom: var(--h, 30px) solid var(--col, rgba(255, 234, 0, .3));
    animation: triFloat var(--dur, 14s) var(--delay, 0s) ease-in-out infinite alternate;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.06) 2px, rgba(0, 0, 0, 0.06) 4px);
    pointer-events: none;
    z-index: 1;
}

/* ГЛАВНАЯ - ОБЩИЙ КОНТЕЙНЕР */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 90px;
    position: relative;
    z-index: 2;
}
.eyebrow {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    letter-spacing: .35em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 34px;
    opacity: 0;
    animation: fadeUp .8s ease .2s forwards;
}

/* ГЛАВНАЯ - ЛОГОТИП С МОРГАНИЕМ */
.logo-wrap {
    position: relative;
    width: 190px;
    height: 190px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp .9s ease .4s forwards;
    filter: drop-shadow(0 0 28px rgba(204, 34, 0, .55)) drop-shadow(0 0 8px rgba(204, 34, 0, .3));
}
.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-wrap::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: pulseRing 2.8s ease-in-out 1.2s infinite;
    pointer-events: none;
}
.bender-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
}
.bender-open {
    position: relative;
    opacity: 1;
    animation: benderBlinkOpen 7s infinite steps(1, end);
}
.bender-blink {
    position: absolute;
    opacity: 0;
    animation: benderBlinkClosed 7s infinite steps(1, end);
}

/* ГЛАВНАЯ - ЗАГОЛОВКИ */
h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(26px, 7vw, 54px);
    font-weight: 900;
    letter-spacing: .04em;
    text-align: center;
    margin-bottom: 6px;
    color: var(--yellow);
    opacity: 0;
    animation: fadeUp .9s ease .6s forwards;
}
.tagline {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp .9s ease .75s forwards;
}
.tagline-services {
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .16em;
    margin-bottom: 40px;
}
[data-theme="light"] .tagline-services {
    color: rgba(0, 0, 0, .65);
}

/* ГЛАВНАЯ - CTA КНОПКА */
.cta-hero {
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp .9s ease .9s forwards;
}
.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--yellow);
    color: #111;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.cta-btn:hover {
    background: #f4d605;
    box-shadow: 0 0 32px rgba(255, 234, 0, .4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ГЛАВНАЯ - АНИМАЦИЯ ПОЯВЛЕНИЯ */
.rev {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
}
.rev.on {
    opacity: 1;
    transform: translateY(0);
}
.section-head {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: .35em;
    color: var(--accent);
    text-transform: uppercase;
    text-align: center;
    margin: 10px 0 28px;
}
.sec-divider {
    width: 100%;
    max-width: 700px;
    margin: 52px auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--yellow) 50%, var(--accent) 70%, transparent);
    opacity: .35;
    flex-shrink: 0;
}

/* СЛАЙДЕР */
.slider-wrap {
    width: 100%;
    max-width: 700px;
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp .9s ease 1.05s forwards;
}
.slider {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 75vh;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #000;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide::before {
    content: '';
    position: absolute;
    inset: -40px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.5) saturate(1.1);
    z-index: 0;
    pointer-events: none;
}
.slide picture,
.slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .6);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    transition: .2s;
}
.slider-btn:hover {
    border-color: var(--accent);
    background: rgba(204, 34, 0, .2);
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: .2s;
}
.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* УСЛУГИ */
.services {
    width: 100%;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 52px;
}
.srv {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 16px 18px;
    border-radius: 2px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}
.srv::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 26px solid transparent;
    border-right: 26px solid transparent;
    border-bottom: 44px solid var(--accent);
    opacity: .08;
    transition: .25s;
}
.srv:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 28px var(--accent-glow);
    transform: translateY(-4px);
}
.srv:hover::after {
    opacity: .2;
}
.srv-icon {
    color: var(--accent);
    margin-bottom: 12px;
    opacity: .85;
    transition: opacity .2s, color .2s;
}
.srv:hover .srv-icon {
    opacity: 1;
    color: var(--yellow);
}
.srv-num {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: .25em;
    margin-bottom: 6px;
}
.srv-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 7px;
    letter-spacing: .02em;
}
.srv-sub {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* СТАТИСТИКА */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 52px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 22px 16px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.stat-num {
    font-family: 'Orbitron', monospace;
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.stat-lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.4;
}

/* ОТЗЫВЫ */
.reviews-wrap {
    width: 100%;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 52px;
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.review-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--yellow));
    opacity: 0;
    transition: opacity 0.25s;
}
.review-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 22px var(--accent-glow);
    transform: translateY(-3px);
}
.review-card:hover::after {
    opacity: 1;
}
.review-stars {
    color: var(--yellow);
    font-size: 14px;
    letter-spacing: 2px;
}
.review-title {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.review-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.review-date {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.review-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    border: 1px dashed var(--border);
    border-radius: 6px;
}
.review-placeholder-img {
    width: auto;
    height: 90px;
    max-width: 140px;
    margin: 0 auto 14px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 234, 0, .25));
    animation: reviewSmileFloat 3.4s ease-in-out infinite;
}
.review-placeholder p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes reviewSmileFloat {
    0%, 100% { transform: translateY(0)    rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(-2deg); }
}
.btn-forum-link {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin-top: 4px;
}
.btn-forum-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--accent-glow);
}

/* КОНТАКТЫ */
.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 700px;
}
a.contact-item {
    text-decoration: none;
    color: inherit;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: 2px;
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}
.contact-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}
.contact-icon {
    font-size: 18px;
    opacity: .6;
}
.contact-caption {
    font-size: 9px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.contact-value {
    font-size: 15px;
    font-weight: 500;
}

/* ФУТЕР */
.footer {
    background: var(--surface) !important;
    border-top: 1px solid var(--border);
    padding: 48px 24px 24px;
    margin-top: 80px;
    display: block !important;
    position: relative;
    z-index: 2;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.footer-col {
    min-width: 0;
}
.footer-col-brand {
    max-width: 340px;
}
.footer-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow) !important;
    text-decoration: none !important;
    margin-bottom: 14px;
    letter-spacing: .04em;
}
.footer-brand img {
    height: 36px !important;
    width: auto !important;
    max-width: 36px !important;
    display: block !important;
    filter: drop-shadow(0 0 10px rgba(204, 34, 0, .35));
}
.footer-brand span {
    white-space: nowrap;
}
.footer-brand:hover {
    opacity: .9;
    text-decoration: none !important;
}
.footer-tagline {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted) !important;
    margin: 0;
}
.footer-title {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent) !important;
    margin: 0 0 16px;
}
.footer-menu,
.footer-contacts {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
}
.footer-menu li,
.footer-contacts li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
.footer-menu a,
.footer-contacts a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text) !important;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease;
    line-height: 1.5;
}
.footer-menu a:hover,
.footer-contacts a:hover {
    color: var(--yellow) !important;
    text-decoration: none !important;
    transform: translateX(3px);
}
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text) !important;
    line-height: 1.55;
}
.footer-ico {
    flex-shrink: 0;
    font-size: 14px;
    opacity: .75;
    line-height: 1.55;
}
.footer-bottom {
    max-width: 1100px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.footer-stats {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    font-size: 12px;
    color: var(--muted) !important;
    letter-spacing: .3px;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: none !important;
}
.footer-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
}
.footer-stats .stat-icon {
    opacity: .7;
    margin: 0 !important;
}
.footer-stats .stat-value {
    font-weight: 700;
    color: var(--yellow) !important;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: .02em;
}
.footer-legal {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    font-size: 12px;
    color: var(--muted) !important;
    text-align: center;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}
.footer-legal a {
    color: var(--muted) !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(136, 136, 136, .35);
    transition: color .2s ease;
}
.footer-legal a:hover {
    color: var(--yellow) !important;
    border-bottom-color: var(--yellow);
}
.footer-sep {
    opacity: .4;
}
.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    animation: blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* КНОПКА НАВЕРХ */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .2);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s, background .2s, border-color .2s;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #111;
}
[data-theme="light"] .back-to-top {
    background: rgba(0, 0, 0, .06);
    border-color: rgba(0, 0, 0, .15);
    color: #111;
}

/* СВЕТЛАЯ ТЕМА - ПЕРЕМЕННЫЕ */
[data-theme="light"] {
    --bg:          #f0ede7;
    --surface:     #ffffff;
    --border:      #dcd8d0;
    --text:        #1a1a1a;
    --muted:       #6b6b6b;
    --accent-glow: rgba(204, 34, 0, 0.12);
    --accent-dim:  rgba(204, 34, 0, 0.06);
    --yellow:      #c09000;
    --yellow-dim:  rgba(192, 144, 0, 0.12);
}

/* СВЕТЛАЯ ТЕМА - НАВБАР */
[data-theme="light"] .navbar {
    background:  rgba(240, 237, 231, 0.96);
    border-bottom-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .nav-links a {
    color: rgba(26, 26, 26, 0.88);
}
[data-theme="light"] .nav-links a:hover {
    color: #1a1a1a;
    text-shadow: none;
}
[data-theme="light"] .nav-links.open {
    background: rgba(240, 237, 231, 0.98);
    border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .navbar .logo {
    color: var(--yellow);
}
[data-theme="light"] .burger span {
    background: #1a1a1a;
}

/* СВЕТЛАЯ ТЕМА - ФУТЕР */
[data-theme="light"] .footer {
    background: rgba(240, 237, 231, 0.98) !important;
    border-top-color: rgba(0, 0, 0, .08);
}
[data-theme="light"] .footer-tagline {
    color: rgba(0, 0, 0, .55) !important;
}
[data-theme="light"] .footer-menu a,
[data-theme="light"] .footer-contacts li,
[data-theme="light"] .footer-contacts a {
    color: rgba(0, 0, 0, .78) !important;
}
[data-theme="light"] .footer-menu a:hover,
[data-theme="light"] .footer-contacts a:hover {
    color: var(--accent) !important;
}
[data-theme="light"] .footer-title {
    color: #a16207 !important;
}
[data-theme="light"] .footer-legal a {
    color: rgba(0, 0, 0, .55) !important;
}
[data-theme="light"] .footer-legal a:hover {
    color: var(--accent) !important;
}

/* СВЕТЛАЯ ТЕМА - СЛАЙДЕР И ФОН */
[data-theme="light"] .slider-btn {
    background: rgba(255, 255, 255, 0.70);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .slider-btn:hover {
    background: rgba(204, 34, 0, 0.10);
    border-color: var(--accent);
    color: var(--accent);
}
[data-theme="light"] body::before {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.015) 2px, rgba(0, 0, 0, 0.015) 4px);
}
[data-theme="light"] .triangles-container {
    opacity: 0.55;
}

[data-theme="light"] .float-tri {
    filter: brightness(0.7) saturate(1.6);
}

/* АДАПТИВ - 900 */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

/* АДАПТИВ - 768 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        gap: 16px;
        align-items: center;
        border-top: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .burger {
        display: flex;
    }
    .navbar .logo {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-wrap {
        grid-template-columns: 1fr;
    }
}

/* АДАПТИВ - 600 */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer {
        padding: 36px 18px 20px;
        margin-top: 60px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }
    .footer-brand {
        font-size: 14px;
    }
    .footer-brand img {
        height: 32px !important;
        max-width: 32px !important;
    }
    .footer-stats {
        font-size: 11px;
        gap: 8px 16px;
    }
    .footer-legal {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }
    .footer-sep {
        display: none;
    }
}

/* АДАПТИВ - 480 */
@media (max-width: 480px) {
    .contact-item {
        min-width: 0;
        width: 100%;
    }
    .contacts {
        padding: 0 4px;
    }
    .services {
        grid-template-columns: 1fr 1fr;
    }
    body {
        padding-top: 60px;
    }
    .logo-wrap {
        width: 130px;
        height: 130px;
        margin-bottom: 20px;
    }
    h1 {
        font-size: clamp(22px, 8vw, 36px);
        margin-bottom: 4px;
    }
    .tagline {
        font-size: 11px;
        letter-spacing: .14em;
        margin-bottom: 20px;
    }
    .tagline-services {
        font-size: 12px;
        letter-spacing: .1em;
        margin-bottom: 28px;
    }
    .cta-btn {
        padding: 13px 28px;
        font-size: 12px;
    }
    .sec-divider {
        margin: 36px auto 0;
    }
    .back-to-top {
        bottom: 80px;
        width: 38px;
        height: 38px;
        right: 14px;
    }
    .navbar {
        padding: 8px 14px;
    }
    .navbar .logo {
        font-size: 14px;
    }
    .navbar .logo img {
        height: 28px;
    }
    .navbar-controls {
        gap: 6px;
    }
    .ts-icon {
        width: 22px;
        height: 22px;
    }
        .burger {
        padding: 3px;
    }
    .page {
        padding-left: 14px;
        padding-right: 14px;
    }
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* АДАПТИВ - 360 */
@media (max-width: 360px) {
    .services {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stat-num {
        font-size: 20px;
    }
    .navbar .logo img {
        display: none;
    }
    .navbar .logo {
        font-size: 13px;
        letter-spacing: 0;
    }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9500;
    max-width: 400px;
    background: #1a1a1a;
    border: 2px solid var(--yellow);
    border-radius: 12px;
    padding: 18px 22px 18px 18px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 234, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                visibility .4s;
    pointer-events: none;
}
.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cookie-banner-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #ffffff;
}
.cookie-banner-text a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s ease;
}
.cookie-banner-text a:hover {
    color: #f4d605;
}
.cookie-banner-btn {
    align-self: flex-start;
    padding: 9px 26px;
    background: var(--yellow);
    color: #111;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cookie-banner-btn:hover {
    background: #f4d605;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(255, 234, 0, 0.5);
}

/* Светлая тема — коричневая рамка вместо жёлтой, чтобы была видна */
[data-theme="light"] .cookie-banner {
    background: #ffffff;
    border-color: #a16207;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 24px rgba(161, 98, 7, 0.12);
}
[data-theme="light"] .cookie-banner-text {
    color: #1a1a1a;
}
[data-theme="light"] .cookie-banner-text a {
    color: #a16207;
}
[data-theme="light"] .cookie-banner-text a:hover {
    color: #78350f;
}
[data-theme="light"] .cookie-banner-btn {
    background: #a16207;
    color: #fff;
}
[data-theme="light"] .cookie-banner-btn:hover {
    background: #78350f;
    color: #fff;
    box-shadow: 0 0 18px rgba(161, 98, 7, 0.4);
}

/* На мобильных — на всю ширину */
@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 16px 18px;
    }
    .cookie-banner-text { font-size: 12.5px; }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }
}
/* МОДАЛКА: РЕКОМЕНДАТЕЛЬНЫЕ ТЕХНОЛОГИИ */
.rectech-overlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.rectech-overlay.show {
    opacity: 1;
    visibility: visible;
}
.rectech-overlay[hidden] {
    display: none;
}
.rectech-modal {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 26px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(12px) scale(0.97);
    transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rectech-overlay.show .rectech-modal {
    transform: translateY(0) scale(1);
}
.rectech-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: color .2s ease, background .2s ease;
}
.rectech-close:hover {
    color: var(--text);
    background: var(--border);
}
.rectech-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
    margin: 0 0 16px;
    padding-right: 32px;
    letter-spacing: .02em;
    line-height: 1.35;
}
.rectech-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 14px;
}
.rectech-muted {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.rectech-btn {
    padding: 10px 28px;
    background: var(--yellow);
    color: #111;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rectech-btn:hover {
    background: #f4d605;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 234, 0, .35);
}
[data-theme="light"] .rectech-btn {
    background: #a16207;
    color: #fff;
}
[data-theme="light"] .rectech-btn:hover {
    background: #78350f;
    color: #fff;
    box-shadow: 0 4px 16px rgba(161, 98, 7, .3);
}
[data-theme="light"] .rectech-overlay {
    background: rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
    .rectech-modal {
        padding: 22px 18px 20px;
        border-radius: 10px;
    }
    .rectech-title { font-size: 15px; }
    .rectech-text  { font-size: 13px; }
    .rectech-btn   { width: 100%; }
}

/* ─── COOKIE BANNER */
.cookie-banner-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s;
    line-height: 1;
    padding: 0;
}
.cookie-banner-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .cookie-banner-close {
    color: #666;
}
[data-theme="light"] .cookie-banner-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.06);
}

.cookie-banner-link {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color .2s ease;
    display: inline;
}
.cookie-banner-link:hover {
    color: #f4d605;
}
[data-theme="light"] .cookie-banner-link {
    color: #a16207;
}
[data-theme="light"] .cookie-banner-link:hover {
    color: #78350f;
}

html {
    scroll-padding-top: 80px;
}

.faq-book-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:2px 8px;
    border-radius:6px;
    background:rgba(255,234,0,.12);
    border:1px solid rgba(255,234,0,.35);
    color:var(--yellow,#ffea00);
    font-weight:600;
    text-decoration:none;
    transition:.18s;
}
.faq-book-link::after{content:'→';transition:transform .18s}
.faq-book-link:hover{
    background:rgba(255,234,0,.25);
    border-color:var(--yellow,#ffea00);
    color:#fff;
}
.faq-book-link:hover::after{transform:translateX(3px)}