/* =====================================================
   ПЕРЕМЕННЫЕ — ТЁМНАЯ ТЕМА С КРАСНЫМ АКЦЕНТОМ
   ===================================================== */
:root {
    --c-bg: #0a0a0f;
    --c-bg-alt: #12121a;
    --c-bg-soft: #1a1a25;
    --c-text: #f1f5f9;
    --c-text-soft: #cbd5e1;
    --c-muted: #94a3b8;
    --c-border: #2a2a3a;
    --c-border-light: #3a3a4a;
    --c-primary: #e11d2e;
    --c-primary-dark: #be123c;
    --c-primary-light: #f43f5e;
    --c-accent: #dc2626;
    --grad-primary: linear-gradient(135deg, #e11d2e 0%, #dc2626 100%);
    --grad-accent: linear-gradient(135deg, #f43f5e 0%, #e11d2e 100%);
    --grad-text: linear-gradient(135deg, #f43f5e 0%, #e11d2e 50%, #dc2626 100%);
    --grad-glow: radial-gradient(circle, rgba(225, 29, 46, .15) 0%, transparent 65%);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --sh-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --sh-md: 0 12px 32px rgba(0, 0, 0, .4);
    --sh-lg: 0 24px 64px rgba(0, 0, 0, .5);
    --sh-glow: 0 8px 32px rgba(225, 29, 46, .35);

    --container: 1240px;
    --header-h: 76px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* =====================================================
   СБРОС
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }

/* =====================================================
   УТИЛИТЫ
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* =====================================================
   ПРОГРЕСС-БАР И CURSOR GLOW
   ===================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-text);
    z-index: 1000;
    transition: width .12s linear;
    box-shadow: 0 0 12px rgba(225, 29, 46, .6);
}

.cursor-glow {
    position: fixed;
    width: 380px; height: 380px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--grad-glow);
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity .3s ease;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-glow { display: block; opacity: 1; }
}

/* =====================================================
   КНОПКИ
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 15px;
    transition: transform .35s var(--ease-bounce), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn--primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: var(--sh-glow);
}
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity .35s var(--ease);
    z-index: -1;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 36px rgba(225, 29, 46, .5); }
.btn--primary:active { transform: translateY(-1px) scale(.98); }

.btn--ghost {
    border: 1.5px solid var(--c-border);
    color: var(--c-text);
    background: rgba(26, 26, 37, .8);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-light); transform: translateY(-3px); }

.btn--phone {
    background: var(--c-primary);
    color: #fff;
    padding: 11px 20px;
}
.btn--phone:hover { background: var(--c-primary-dark); color: #fff; }

.btn--lg { padding: 16px 32px; font-size: 17px; }

.btn--magnetic { will-change: transform; }
.btn--magnetic > * { pointer-events: none; }

/* =====================================================
   ШАПКА
   ===================================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all .4s var(--ease);
    padding-top: env(safe-area-inset-top);
}
.header.is-scrolled {
    border-bottom-color: var(--c-border);
    box-shadow: var(--sh-sm);
    background: rgba(10, 10, 15, .95);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text);
    flex-shrink: 0;
}
.logo:hover { color: var(--c-text); }

.logo__mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 800;
    font-size: 21px;
    overflow: hidden;
    flex-shrink: 0;
}
.logo__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-primary);
    animation: logoPulse 2.4s ease-in-out infinite;
    z-index: -1;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.35); opacity: 0; }
}

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.logo__text small { font-size: 11px; color: var(--c-muted); letter-spacing: .2px; }

.nav__list { display: flex; gap: 2px; }
.nav__link {
    display: inline-block;
    padding: 9px 13px;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--c-text-soft);
    position: relative;
    transition: color .3s var(--ease);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .35s var(--ease-out);
}
.nav__link:hover { color: var(--c-primary-light); }
.nav__link:hover::after { width: 60%; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 10px;
    transition: background .3s ease;
}
.burger:active { background: var(--c-bg-soft); }
.burger span {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform .4s var(--ease-bounce), opacity .3s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================
   МОБИЛЬНОЕ МЕНЮ
   ===================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 950;
    visibility: hidden;
    pointer-events: none;
}
.mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: var(--c-bg-alt);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .5s var(--ease-out);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
    max-height: 88vh;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
}
.mobile-menu.is-open .mobile-menu__sheet { transform: translateY(0); }

.mobile-menu__handle {
    width: 44px; height: 4px;
    background: var(--c-border);
    border-radius: 4px;
    margin: 0 auto 20px;
}

.mobile-menu__list { display: grid; gap: 6px; margin-bottom: 20px; }
.mobile-menu__list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: var(--r-sm);
    font-size: 17px;
    font-weight: 600;
    transition: background .25s ease, transform .25s var(--ease);
}
.mobile-menu__list a:active { background: var(--c-bg-soft); transform: scale(.98); }
.mobile-menu__list a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--c-bg-soft);
    font-size: 19px;
}

.mobile-menu__cta { width: 100%; padding: 17px; font-size: 16px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .4;
    will-change: transform;
}
.hero__blob--1 { width: 520px; height: 520px; background: #e11d2e; top: -180px; left: -140px; animation: float1 14s ease-in-out infinite; }
.hero__blob--2 { width: 460px; height: 460px; background: #be123c; top: 80px; right: -140px; animation: float2 16s ease-in-out infinite; }
.hero__blob--3 { width: 380px; height: 380px; background: #f43f5e; bottom: -120px; left: 40%; animation: float1 18s ease-in-out infinite reverse; }

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.08); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.08); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero__particles { position: absolute; inset: 0; }

.particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    opacity: .4;
    animation: rise linear infinite;
}
@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: .6; }
    90% { opacity: .6; }
    100% { transform: translateY(-100vh) scale(.3); opacity: 0; }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 100px;
    background: rgba(225, 29, 46, .12);
    color: var(--c-primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    animation: badgeFade .8s var(--ease-out) backwards;
}
.hero__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
@keyframes badgeFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 900;
    margin-bottom: 22px;
    animation: heroTitle .9s var(--ease-out) backwards .1s;
}
@keyframes heroTitle {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__title-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.hero__desc {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--c-text-soft);
    max-width: 560px;
    margin-bottom: 34px;
    animation: heroTitle .9s var(--ease-out) backwards .2s;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 52px;
    animation: heroTitle .9s var(--ease-out) backwards .3s;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
    animation: heroTitle .9s var(--ease-out) backwards .4s;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.hero__stat span { font-size: 13px; color: var(--c-muted); line-height: 1.3; }

.hero__visual {
    position: relative;
    height: 520px;
    animation: heroTitle 1s var(--ease-out) backwards .3s;
}

.hero__device {
    position: absolute;
    background: var(--c-bg-alt);
    border-radius: 18px;
    box-shadow: var(--sh-lg);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.hero__device-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1a25 0%, #12121a 100%);
    position: relative;
    padding: 8px;
}
.hero__device-screen span { font-size: 34px; }
.hero__device-screen b { font-size: 13px; font-weight: 700; color: var(--c-text); }

.hero__device--phone {
    width: 130px; height: 240px;
    top: 40px; left: 10%;
    border-radius: 22px;
    transform: rotate(-8deg);
    animation: deviceFloat 6s ease-in-out infinite;
    z-index: 4;
}
.hero__device--phone .hero__device-screen { border-radius: 20px; margin: 4px; }
.hero__device-notch {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 6px;
    background: var(--c-bg);
    border-radius: 4px;
}

.hero__device--laptop {
    width: 240px; height: 160px;
    top: 130px; right: 5%;
    border-radius: 12px;
    transform: rotate(6deg);
    animation: deviceFloat 7s ease-in-out infinite .5s;
    flex-direction: column;
    z-index: 3;
}
.hero__device--laptop .hero__device-screen { border-radius: 10px 10px 0 0; margin: 4px 4px 0; }
.hero__device-base {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(180deg, #2a2a3a 0%, #1a1a25 100%);
    border-radius: 0 0 12px 12px;
}

.hero__device--watch {
    width: 96px; height: 96px;
    bottom: 60px; left: 20%;
    border-radius: 24px;
    transform: rotate(-12deg);
    animation: deviceFloat 5s ease-in-out infinite 1s;
    z-index: 5;
}
.hero__device--watch .hero__device-screen { border-radius: 22px; }
.hero__device--watch .hero__device-screen span { font-size: 42px; }

.hero__device--tv {
    width: 180px; height: 120px;
    bottom: 20px; right: 15%;
    border-radius: 10px;
    transform: rotate(4deg);
    animation: deviceFloat 8s ease-in-out infinite 1.5s;
    z-index: 2;
}
.hero__device--tv .hero__device-screen { border-radius: 8px; }
.hero__device--tv .hero__device-screen span { font-size: 40px; }

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0)); }
    50% { transform: translateY(-16px) rotate(var(--rot, 0)); }
}

/* БЕГУЩАЯ СТРОКА */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    background: var(--grad-primary);
    color: #fff;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}
.marquee__track span {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    opacity: .95;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================
   СЕКЦИИ
   ===================================================== */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section--alt { background: var(--c-bg-alt); position: relative; }
.section--faults { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 64px);
}
.section__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-primary-light);
    margin-bottom: 14px;
    position: relative;
    padding: 0 6px;
}
.section__title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section__subtitle { color: var(--c-muted); font-size: clamp(15px, 1.5vw, 17px); }

/* =====================================================
   НЕИСПРАВНОСТИ
   ===================================================== */
.faults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.fault-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 14px;
    border-radius: var(--r-md);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    text-align: center;
    transition: all .4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.fault-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity .4s var(--ease);
    z-index: -1;
}
.fault-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--sh-glow);
}
.fault-card:hover::before { opacity: 1; }
.fault-card:hover .fault-card__icon,
.fault-card:hover .fault-card__text { color: #fff; }

.fault-card__icon {
    font-size: 32px;
    transition: transform .5s var(--ease-bounce), color .3s ease;
}
.fault-card:hover .fault-card__icon { transform: scale(1.2); }

.fault-card__text {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text-soft);
    transition: color .3s ease;
}

.faults-note {
    text-align: center;
    margin-top: 32px;
    color: var(--c-muted);
    font-size: 15px;
}
.faults-note a {
    color: var(--c-primary-light);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faults-note a:hover { color: var(--c-primary); }

/* =====================================================
   КАТАЛОГ УСЛУГ
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease), border-color .3s ease;
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: var(--c-primary);
}

.service-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--c1, #e11d2e) 0%, var(--c2, #dc2626) 100%);
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(225, 29, 46, .3);
    transition: transform .5s var(--ease-bounce);
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-6deg); }

.service-card__title { flex: 1; min-width: 0; }
.service-card__title h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.service-card__title p {
    font-size: 13.5px;
    color: var(--c-muted);
    line-height: 1.4;
}

.service-card__chevron {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--c-bg-soft);
    position: relative;
    flex-shrink: 0;
    transition: transform .4s var(--ease-bounce), background .3s ease;
}
.service-card__chevron::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--c-text);
    border-bottom: 2px solid var(--c-text);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .4s var(--ease-bounce);
}
.service-card.is-open .service-card__chevron { background: var(--c-primary); transform: rotate(180deg); }
.service-card.is-open .service-card__chevron::before { border-color: #fff; }

.service-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease-out);
}
.service-card.is-open .service-card__body { max-height: 600px; }

.service-card__body > * { padding: 0 22px; }
.service-card__body > *:first-child { padding-top: 4px; }
.service-card__body > *:last-child { padding-bottom: 22px; }

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}
.service-card__tags span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--c-bg-soft);
    color: var(--c-text-soft);
    font-size: 12.5px;
    font-weight: 500;
    transition: background .25s ease, color .25s ease;
}
.service-card__tags span:hover { background: var(--c-primary); color: #fff; }

.service-card__brands {
    padding-top: 16px;
    border-top: 1px dashed var(--c-border);
}
.brands-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 10px;
}
.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.brand-chips span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-soft);
    transition: all .25s ease;
}
.brand-chips span:hover {
    border-color: var(--c-primary);
    color: var(--c-primary-light);
    transform: translateY(-1px);
}

/* Поиск */
.services-search {
    position: relative;
    max-width: 520px;
    margin: 40px auto 0;
}
.services-search__wrap { position: relative; }
.services-search__wrap svg {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--c-muted);
    pointer-events: none;
}
.services-search__wrap input {
    width: 100%;
    padding: 15px 20px 15px 52px;
    border-radius: 100px;
    border: 1.5px solid var(--c-border);
    font-size: 15px;
    background: var(--c-bg-alt);
    color: var(--c-text);
    transition: border-color .3s ease, box-shadow .3s ease;
    outline: none;
}
.services-search__wrap input::placeholder { color: var(--c-muted); }
.services-search__wrap input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(225, 29, 46, .15);
}
.services-search__clear {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-muted);
    font-size: 14px;
    transition: background .25s ease, color .25s ease;
}
.services-search__clear:hover { background: var(--c-primary); color: #fff; }

.service-card.is-hidden { display: none; }

/* =====================================================
   БРЕНДЫ
   ===================================================== */
.brands-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.brands-cloud span {
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    font-weight: 600;
    font-size: 15px;
    color: var(--c-text-soft);
    transition: all .35s var(--ease-out);
    cursor: default;
}
.brands-cloud span:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: transparent;
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--sh-glow);
}

/* =====================================================
   О НАС
   ===================================================== */
.about {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__text .section__title { text-align: left; margin-bottom: 20px; }
.about__text p { color: var(--c-text-soft); margin-bottom: 16px; }
.about__list { margin-top: 24px; display: grid; gap: 12px; }
.about__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}
.about__list li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(225, 29, 46, .15);
    color: var(--c-primary-light);
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.about__visual { display: grid; gap: 20px; }
.about__stat {
    padding: 28px;
    background: var(--c-bg);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    box-shadow: var(--sh-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.about__stat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.about__stat strong {
    display: block;
    font-size: 42px;
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.about__stat span { color: var(--c-muted); font-size: 15px; }

/* =====================================================
   ПРЕИМУЩЕСТВА
   ===================================================== */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.advantage {
    padding: 30px;
    border-radius: var(--r-lg);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease), border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.advantage::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.advantage:hover::before { transform: scaleX(1); }
.advantage:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--c-primary); }

.advantage__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--c-bg-soft);
    font-size: 26px;
    margin-bottom: 18px;
    transition: transform .5s var(--ease-bounce), background .35s ease;
}
.advantage:hover .advantage__icon {
    transform: scale(1.1) rotate(-8deg);
    background: linear-gradient(135deg, rgba(225, 29, 46, .2) 0%, rgba(244, 63, 94, .2) 100%);
}
.advantage h3 { font-size: 19px; margin-bottom: 8px; font-weight: 800; }
.advantage p { color: var(--c-muted); font-size: 15px; }

/* =====================================================
   CTA
   ===================================================== */
.cta {
    padding: 0 0 clamp(60px, 9vw, 100px);
}
.cta__inner {
    padding: clamp(36px, 6vw, 60px);
    border-radius: var(--r-xl);
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(225, 29, 46, .35);
}
.cta__inner::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    top: -200px; right: -100px;
}
.cta__inner > div { position: relative; }
.cta__inner h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.cta__inner p { opacity: .9; font-size: 16px; }
.cta .btn--primary {
    background: #fff;
    color: var(--c-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.cta .btn--primary::before { display: none; }
.cta .btn--primary:hover { background: #fff; color: var(--c-primary-dark); transform: translateY(-3px) scale(1.03); }

/* =====================================================
   КОНТАКТЫ
   ===================================================== */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 40px;
}
.contacts__info { display: grid; gap: 16px; align-content: start; }
.contacts__item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--c-bg-alt);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .3s ease;
}
.contacts__item:hover { transform: translateX(4px); box-shadow: var(--sh-sm); border-color: var(--c-primary); }
.contacts__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--c-bg-soft);
    font-size: 20px;
    flex-shrink: 0;
}
.contacts__item strong { display: block; margin-bottom: 3px; font-weight: 700; }
.contacts__item p { color: var(--c-muted); font-size: 15px; }
.contacts__item a { color: var(--c-primary-light); font-weight: 600; }
.contacts__item a:hover { text-decoration: underline; }

.contacts__reviews {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 32px;
    background: var(--c-bg-alt);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
}
.reviews-badge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.reviews-badge__item {
    text-align: center;
    padding: 20px;
    background: var(--c-bg);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
}
.reviews-badge__stars {
    font-size: 24px;
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.reviews-badge__platform {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 4px;
}
.reviews-badge__status {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}
.reviews-text {
    text-align: center;
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Карты */
.maps-tabs {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-bg-alt);
}
.maps-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--c-border);
}
.maps-tabs__btn {
    flex: 1;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-muted);
    background: var(--c-bg-soft);
    transition: all .3s ease;
    border: none;
    cursor: pointer;
}
.maps-tabs__btn.is-active {
    background: var(--c-bg-alt);
    color: var(--c-primary-light);
}
.maps-tabs__btn:hover:not(.is-active) {
    color: var(--c-text-soft);
    background: var(--c-bg);
}

.maps-tabs__content { position: relative; }
.maps-tabs__panel {
    display: none;
    min-height: 440px;
}
.maps-tabs__panel.is-active { display: block; }
.maps-tabs__panel iframe {
    width: 100%;
    height: 440px;
    border: 0;
    filter: grayscale(.3) invert(.9) hue-rotate(180deg);
}

/* =====================================================
   ФУТЕР
   ===================================================== */
.footer {
    background: #050508;
    color: var(--c-text-soft);
    padding: 44px 0;
    border-top: 1px solid var(--c-border);
}
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.footer__brand small { display: block; font-size: 12px; color: var(--c-muted); }
.footer__copy { font-size: 14px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--c-text-soft); transition: color .3s ease; }
.footer__nav a:hover { color: var(--c-primary-light); }

/* =====================================================
   КНОПКА "НАВЕРХ"
   ===================================================== */
.to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.8);
    transition: all .4s var(--ease-bounce);
    z-index: 800;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--c-primary-dark); transform: translateY(-4px) scale(1.08); }

/* =====================================================
   FAB ЗВОНКА
   ===================================================== */
.fab-call {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(225, 29, 46, .5);
    z-index: 850;
    transition: transform .35s var(--ease-bounce);
}
.fab-call:active { transform: scale(.92); }
.fab-call__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--grad-primary);
    animation: fabPulse 2.2s ease-out infinite;
    z-index: -1;
}
@keyframes fabPulse {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =====================================================
   REVEAL-АНИМАЦИИ
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   АДАПТИВ: ПЛАНШЕТ
   ===================================================== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .contacts { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .nav__link { padding: 8px 10px; font-size: 13px; }
}

/* =====================================================
   АДАПТИВ: МОБИЛКА
   ===================================================== */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .nav { display: none; }
    .burger { display: flex; }
    .btn--phone span { display: none; }
    .btn--phone { padding: 11px 13px; }

    .hero { padding-top: calc(var(--header-h) + 30px); }
    .hero__inner { padding-bottom: 50px; }
    .hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .hero__desc { font-size: 15px; margin-bottom: 26px; }
    .hero__actions { margin-bottom: 36px; }
    .hero__actions .btn { flex: 1; min-width: 0; padding: 14px 16px; font-size: 14.5px; }

    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding-top: 22px;
    }
    .hero__stat strong { font-size: 24px; }
    .hero__stat span { font-size: 11px; }

    .hero__visual { height: 320px; }

    .hero__device--phone { width: 90px; height: 165px; top: 20px; left: 6%; border-radius: 16px; }
    .hero__device--phone .hero__device-screen span { font-size: 26px; }
    .hero__device--laptop { width: 160px; height: 110px; top: 90px; right: 4%; }
    .hero__device--laptop .hero__device-screen span { font-size: 24px; }
    .hero__device--watch { width: 70px; height: 70px; bottom: 40px; left: 16%; }
    .hero__device--watch .hero__device-screen span { font-size: 30px; }
    .hero__device--tv { width: 120px; height: 80px; bottom: 10px; right: 10%; }
    .hero__device--tv .hero__device-screen span { font-size: 28px; }
    .hero__device-notch { width: 28px; height: 4px; }

    .services-grid { grid-template-columns: 1fr; gap: 14px; }

    .section { padding: 60px 0; }

    .faults-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .fault-card { padding: 16px 8px; gap: 6px; }
    .fault-card__icon { font-size: 24px; }
    .fault-card__text { font-size: 11px; }

    .advantages { grid-template-columns: 1fr 1fr; gap: 14px; }
    .advantage { padding: 22px 18px; border-radius: var(--r-md); }
    .advantage__icon { width: 46px; height: 46px; font-size: 22px; margin-bottom: 14px; }
    .advantage h3 { font-size: 16px; }
    .advantage p { font-size: 13px; }

    .cta__inner { flex-direction: column; text-align: center; gap: 24px; }
    .cta .btn { width: 100%; }

    .contacts__map, .contacts__map iframe { min-height: 340px; }
    .maps-tabs__panel iframe { height: 340px; }

    .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
    .footer__nav { justify-content: center; }

    .to-top { display: none; }
    .fab-call { display: inline-flex; }

    .service-card__head { padding: 18px; gap: 14px; }
    .service-card__icon { width: 48px; height: 48px; font-size: 22px; border-radius: 13px; }
    .service-card__title h3 { font-size: 16px; }
    .service-card__title p { font-size: 12.5px; }
    .service-card__body > * { padding-left: 18px; padding-right: 18px; }
    .service-card__body > *:last-child { padding-bottom: 18px; }

    .brands-cloud span { padding: 10px 16px; font-size: 13.5px; }

    .service-card:active { transform: scale(.985); }
    .advantage:active { transform: scale(.98); }
    .contacts__item:active { transform: scale(.98); }

    .reviews-badge { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero__stats { gap: 8px; }
    .hero__stat strong { font-size: 20px; }
    .hero__stat span { font-size: 10px; }
    .hero__device--phone { left: 2%; }
    .hero__device--laptop { right: 0; }
    .faults-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages { grid-template-columns: 1fr; }
    .brands-cloud { gap: 8px; }
    .brands-cloud span { padding: 8px 14px; font-size: 12.5px; }
}

/* =====================================================
   ДОСТУПНОСТЬ
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: 6px;
}