/* ==========================================================================
   Шрифты подключены локально (раньше — Google Fonts, +2 сторонних соединения)
   ========================================================================== */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/manrope-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/manrope-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/manrope-500-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/manrope-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/manrope-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/manrope-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/manrope-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/manrope-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/manrope-800-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/manrope-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/jetbrains-mono-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/jetbrains-mono-500-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ==========================================================================
   FAXMEDIA — новый фронтенд
   Фирменные цвета логотипа: чёрный #0B0A10, красный #ED3237, белый
   ========================================================================== */

:root {
    --bg: #0B0A10;
    --bg-2: #111017;
    --surface: #16151D;
    --surface-2: #1D1C25;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .16);
    --text: #F5F4F7;
    --muted: #A3A1AD;
    --red: #ED3237;
    --red-2: #FF5258;
    --red-glow: rgba(237, 50, 55, .45);

    --font: 'Manrope', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --gutter: clamp(16px, 4vw, 64px);
    --radius: 24px;
    --header-h: 84px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading, body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(90px, 11vw, 170px) 0; }
.section--tight { padding: clamp(60px, 7vw, 110px) 0; }
.section--split { background: var(--bg-2); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(237,50,55,.2), 0 0 18px var(--red); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-head--row > div:not(.tabs) { display: flex; flex-direction: column; gap: 18px; }
.section-title { font-weight: 800; font-size: clamp(34px, 5vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
.lead { color: var(--muted); font-size: 19px; max-width: 520px; }

/* ---------- Кнопки ---------- */
.btn {
    --b: var(--red); --f: #fff; --hb: #fff; --hf: var(--bg);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 58px; padding: 0 30px; border-radius: 999px;
    background: var(--b); color: var(--f); font-weight: 700; font-size: 16px; white-space: nowrap;
    transition: color .45s var(--ease), transform .5s var(--ease), box-shadow .4s;
    will-change: transform;
}
.btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%; background: var(--hb); transform: translate(-50%, 0) scale(0); transition: transform .6s var(--ease); }
.btn:hover { color: var(--hf); }
.btn:hover::before { transform: translate(-50%, -60%) scale(1); }
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { box-shadow: 0 14px 40px -14px var(--red-glow); }
.btn--ghost { --b: transparent; --f: var(--text); border: 1px solid var(--line-2); }
.btn--white { --b: #fff; --f: var(--bg); --hb: var(--bg); --hf: #fff; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Прелоадер ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 30px; background: var(--bg); transition: transform 1s var(--ease-io) .1s; }
body.is-loaded .preloader { transform: translateY(-100%); pointer-events: none; }
.preloader__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.preloader::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(11,10,16,.92) 0, rgba(11,10,16,.65) 140px, rgba(11,10,16,0) 420px); }
.preloader__cube, .preloader__count { z-index: 1; }
.preloader__count { position: relative; }
.preloader__cube { position: relative; width: 84px; height: 96px; }
.preloader__cube span { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%); background: #fff; animation: cube-in 1.2s var(--ease) both; }
.preloader__cube span:nth-child(2) { clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%); background: #3A3944; animation-delay: .15s; }
.preloader__cube span:nth-child(3) { clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%); background: var(--red); animation-delay: .3s; }
@keyframes cube-in { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.preloader__count { font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: .1em; }
.preloader__count b { color: var(--text); font-weight: 500; }

/* ---------- Шум + курсор ---------- */
.noise { position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: noise 1s steps(5) infinite; }
@keyframes noise { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,3%); } }

.cursor { display: none; }
@media (pointer: fine) {
    .cursor { display: block; position: fixed; inset: 0; z-index: 950; pointer-events: none; mix-blend-mode: difference; }
    .cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
    .cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; }
    .cursor__ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s, border-color .4s; }
    .cursor__ring i { font-style: normal; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #000; opacity: 0; transition: opacity .3s; }
    .cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255,255,255,.12); }
    .cursor.is-view { mix-blend-mode: normal; }
    .cursor.is-view .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--red); border-color: var(--red); }
    .cursor.is-view .cursor__ring i { opacity: 1; color: #fff; }
    .cursor.is-view .cursor__dot { opacity: 0; }
    .cursor.is-hidden { opacity: 0; }
}

/* ---------- Шапка ---------- */
.header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; transition: transform .5s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header__inner { max-width: 1440px; margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header.is-scrolled { background: rgba(11,10,16,.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav__link { position: relative; display: block; height: 1.5em; line-height: 1.5; overflow: hidden; font-size: 15px; font-weight: 600; }
.nav__link::before { content: ""; position: absolute; inset: -14px -8px; }
.nav__link span { display: block; transition: transform .45s var(--ease); }
.nav__link::after { content: attr(data-hover-text); position: absolute; left: 0; top: 100%; color: var(--red); transition: transform .45s var(--ease); }
.nav__link:hover span, .nav__link:hover::after { transform: translateY(-100%); }
.nav__link.is-active { color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; font-size: 15px; transition: color .3s; }
.header__phone:hover { color: var(--red); }
.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--bg-2); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(28px, 8vw, 44px); font-weight: 800; letter-spacing: -.03em; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; transition-delay: calc(.25s + var(--i) * .06s); }
.mobile-menu__link small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--red); letter-spacing: 0; }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__link:hover { color: var(--red); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 18px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 40px) 0 32px; overflow: hidden; isolation: isolate; }
.hero__cubes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 60% at 15% 85%, rgba(11,10,16,.92), transparent 70%), linear-gradient(90deg, rgba(11,10,16,.85) 0%, rgba(11,10,16,.35) 55%, rgba(11,10,16,0) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,10,16,0) 30%); }
.hero__inner { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-weight: 800; font-size: clamp(44px, 8.2vw, 136px); line-height: .94; letter-spacing: -.055em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.line--rotate { color: var(--text); }
.rotator { position: relative; display: inline-block; color: var(--red); vertical-align: top; }
.rotator b { display: inline-block; font-weight: 800; }
.rotator b.out { animation: rot-out .5s var(--ease-io) forwards; }
.rotator b.in  { animation: rot-in .7s var(--ease) both; }
@keyframes rot-out { to { transform: translateY(-100%) rotate(-4deg); opacity: 0; } }
@keyframes rot-in { from { transform: translateY(100%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rotator::after { content: ""; display: inline-block; width: .08em; height: .8em; margin-left: .06em; background: var(--red); vertical-align: -.05em; animation: blink 1s steps(1) infinite; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: 12px; }
.hero__text { max-width: 520px; font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; align-items: center; gap: 18px; margin-top: clamp(40px, 7vh, 80px); padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hero__meta i { width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.hero__scroll { margin-left: auto; width: 28px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 16px; position: relative; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { to { transform: translateY(18px); opacity: 0; } }

[data-hero-in] { opacity: 0; transform: translateY(40px); }
.hero__title [data-hero-in], .hero__title .line { opacity: 1; transform: none; }
.hero__title .line > span { transform: translateY(105%); }
body.is-loaded [data-hero-in] { animation: rise 1.1s var(--ease) both; animation-delay: calc(.7s + var(--d) * .12s); }
body.is-loaded .hero__title .line > span { animation: line-up 1.2s var(--ease) both; animation-delay: calc(.75s + var(--d) * .1s); }
body.is-loaded .hero__title .line { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Внутренний hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(70px, 10vw, 140px)) 0 clamp(60px, 7vw, 100px); }
.hero__cubes--soft { opacity: .55; }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page-hero__title { font-weight: 800; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.05em; max-width: 1100px; }
.page-hero__text { max-width: 640px; color: var(--muted); font-size: 19px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* ---------- Бегущая строка ---------- */
.ticker { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg); }
.ticker__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { font-weight: 800; font-size: clamp(24px, 3.2vw, 46px); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); transition: color .3s; }
.ticker__track span:hover { color: var(--text); }
.ticker__track i { font-style: normal; color: var(--red); font-size: 22px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(50px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em 0 .16em; margin-bottom: -.16em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
[data-split].is-in .w > span { transform: none; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 360px; padding: 32px; background: var(--bg); transition: background-color .5s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(237,50,55,.22), transparent 55%); opacity: 0; transition: opacity .4s; }
.svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc:hover { background: var(--surface); }
.svc:hover::before { opacity: 1; }
.svc:hover::after { transform: scaleX(1); }
.svc__num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.svc__icon { width: 56px; height: 56px; margin: 18px 0 0; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--line-2); transition: background-color .4s, border-color .4s, transform .6s var(--ease); }
.svc__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc__icon { background: var(--red); border-color: var(--red); transform: rotate(-10deg) scale(1.06); }
.svc__title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: auto; padding-top: 26px; }
.svc__text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.svc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--red); }
.svc__more svg { fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .4s var(--ease); }
.svc:hover .svc__more svg { transform: translate(3px, -3px); }

.services--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Форматы ---------- */
.formats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.formats__head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: sticky; top: 120px; }
.formats__list { display: flex; flex-direction: column; }
.format { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease); }
.format:last-child { border-bottom: 1px solid var(--line); }
.format__n { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 800; font-size: 22px; transition: background-color .4s, border-color .4s, transform .6s var(--ease); }
.format h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 8px 0 8px; transition: color .3s; }
.format p { color: var(--muted); max-width: 480px; }
.format:hover { padding-left: 16px; }
.format:hover .format__n { background: var(--red); border-color: var(--red); transform: rotate(-12deg); }
.format:hover h3 { color: var(--red); }

/* ---------- Портфолио (горизонтальный скролл) ---------- */
.works { position: relative; height: var(--works-h, 300vh); background: var(--bg); }
.works__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); overflow: hidden; padding-top: var(--header-h); }
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.works__head > div { display: flex; flex-direction: column; gap: 14px; }
.works__progress { width: min(320px, 40vw); height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.works__progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.works__rail { overflow: visible; }
.works__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.work { position: relative; flex: 0 0 auto; width: clamp(280px, 30vw, 440px); display: flex; flex-direction: column; gap: 16px; text-align: left; }
.work__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.35) brightness(.9); }
.work:hover .work__img img { transform: scale(1); filter: none; }
.work__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); }
.work__meta { display: flex; flex-direction: column; gap: 4px; }
.work__cat { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.work__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.work__n { position: absolute; top: 18px; left: 18px; font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(11,10,16,.7); backdrop-filter: blur(6px); }
.work--cta { justify-content: center; align-items: flex-start; gap: 24px; aspect-ratio: 1; padding: 40px; border-radius: var(--radius); border: 1px dashed var(--line-2); align-self: flex-start; }
.work--cta p { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }

/* ---------- Цены ---------- */
.tabs { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs__btn { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .4s; }
.tabs__btn.is-active { color: #fff; }
.tabs__pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px; background: var(--red); box-shadow: 0 8px 24px -8px var(--red-glow); transition: transform .6s var(--ease), width .6s var(--ease); }
.prices { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prices.is-active { display: grid; }
.prices.is-active .price { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d) * 70ms); }
.price { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 250px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.price::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(237,50,55,.18), transparent 55%); opacity: 0; transition: opacity .4s; }
.price:hover { border-color: rgba(237,50,55,.5); transform: translateY(-6px); }
.price:hover::before { opacity: 1; }
.price__tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.price__name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.price__value { margin-top: auto; font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.price__value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; font-size: 14px; color: var(--red); }
.price__btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .4s var(--ease); }
.price__btn:hover svg { transform: translateX(4px); }
.price--hot { background: var(--red); border-color: var(--red); }
.price--hot .price__tag { border-color: rgba(255,255,255,.4); color: #fff; }
.price--hot .price__value small, .price--hot .price__btn { color: #fff; }
.price--hot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 55%); }
.prices__note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- Процесс ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 34px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg) scale(0); transition: transform .6s var(--ease); transition-delay: calc(var(--d) * 150ms + .3s); }
.step.is-in::after { transform: rotate(45deg) scale(1); }
.step__n { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .4s, -webkit-text-stroke-color .4s; }
.step:hover .step__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Города ---------- */
.cities { overflow: hidden; padding: clamp(60px, 8vw, 120px) 0; display: flex; flex-direction: column; gap: 4px; }
.cities__row { display: flex; align-items: center; gap: 30px; white-space: nowrap; font-weight: 800; font-size: clamp(56px, 11vw, 190px); line-height: 1; letter-spacing: -.06em; will-change: transform; }
.cities__row i { font-style: normal; color: var(--red); font-size: .35em; }
.cities__row--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3); margin-left: -20vw; }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.contact__list div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.contact__list dd { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; }
.contact__list a:hover { color: var(--red); }
.card-glass { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.card-glass h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.map { margin-top: clamp(48px, 6vw, 80px); height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.85); }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input { width: 100%; height: 62px; padding: 22px 18px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 16px; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field span { position: absolute; left: 18px; top: 20px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(237,50,55,.15); }
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.75); color: var(--red); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex-shrink: 0; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,8,.75); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(26px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(237,50,55,.1); transform: translateY(40px) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .5s var(--ease), background-color .3s; }
.modal__close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__close:hover { transform: rotate(90deg); background: var(--red); border-color: var(--red); }
.modal__title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 10px; }
.modal__text { color: var(--muted); margin-bottom: 26px; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(5,5,8,.92); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: min(900px, 100%); transform: scale(.94); transition: transform .6s var(--ease); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__fig img { max-height: calc(100vh - 140px); width: auto; border-radius: 20px; }
.lightbox__fig figcaption { font-weight: 700; font-size: 18px; text-align: center; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.lightbox__close svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* ---------- Тост ---------- */
.toast { position: fixed; z-index: 600; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 16px; background: #fff; color: var(--bg); font-weight: 700; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); transform: translate(-50%, 150%); transition: transform .7s var(--ease); max-width: calc(100% - 32px); }
.toast svg { fill: none; stroke: #1B9E4B; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.toast.is-show { transform: translate(-50%, 0); animation: toast-out .6s var(--ease) 6s forwards; }
.toast--error { background: var(--red); color: #fff; }
@keyframes toast-out { to { transform: translate(-50%, 150%); } }

/* ---------- WhatsApp ---------- */
.fab-wa { position: fixed; z-index: 80; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transition: transform .5s var(--ease); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s var(--ease) infinite; }
.fab-wa:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- CTA-плашка ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 70px); border-radius: 32px; background: var(--red); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 30%), rgba(255,255,255,.3), transparent 50%); }
.cta-band .eyebrow { color: rgba(255,255,255,.8); }
.cta-band__title { font-size: clamp(28px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; max-width: 820px; margin-top: 12px; }

/* ---------- Статья услуги ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { font-size: 18px; color: #D6D4DD; max-width: 780px; }
.prose--wide { max-width: 920px; }
.prose h2, .prose h3, .prose h4 { color: var(--text); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 1.8em 0 .6em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 40px); }
.prose h3 { font-size: clamp(22px, 2vw, 28px); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.prose ol { counter-reset: o; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: o; }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-family: var(--mono); font-size: 14px; color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose img { border-radius: 18px; margin: 1.5em 0; height: auto; }
.prose span[style], .prose p[style] { color: inherit !important; background: none !important; font-family: inherit !important; font-size: inherit !important; }
.details { margin-top: 2em !important; }
.details li { display: flex; flex-direction: column; padding: 18px 20px 18px 48px !important; border-radius: 16px; background: var(--surface); }
.details li::before { left: 20px !important; top: 26px !important; }
.details span { color: var(--muted); }
.aside__sticky { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside__form p { color: var(--muted); margin: -12px 0 22px; }
.aside__form .form__grid { grid-template-columns: minmax(0, 1fr); }
.aside__list { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.aside__list h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.aside__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; transition: color .3s, padding .4s var(--ease); }
.aside__list a:last-child { border-bottom: 0; }
.aside__list a svg { fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.aside__list a:hover { color: var(--red); padding-left: 6px; }
.pager { margin-top: 32px; }

/* ---------- Подвал ---------- */
.footer { position: relative; padding: clamp(80px, 10vw, 150px) 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(60px, 8vw, 120px); }
.footer__big { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25em; text-align: left; font-weight: 800; font-size: clamp(44px, 9vw, 150px); line-height: .95; letter-spacing: -.06em; }
.footer__big .is-red { color: var(--red); }
.footer__big span { transition: transform .6s var(--ease); }
.footer__big:hover span:nth-child(1) { transform: translateX(-10px); }
.footer__big:hover span:nth-child(3) { transform: translateX(10px); }
.footer__arrow { width: clamp(64px, 8vw, 130px); height: clamp(64px, 8vw, 130px); display: grid; place-items: center; border-radius: 50%; background: var(--red); transition: transform .7s var(--ease); }
.footer__arrow svg { width: 45%; height: 45%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__big:hover .footer__arrow { transform: rotate(45deg) scale(1.05); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line); }
.footer__col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.footer__col h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 6px; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--red); }
.footer__logo img { height: 46px; width: auto; margin-bottom: 8px; }
.footer__col--brand p { max-width: 340px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 60px; padding: 24px 90px 0 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.footer__top:hover { color: var(--red); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
    .services, .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 1080px) {
    .services--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav, .header__phone { display: none; }
    .burger { display: block; }
    .services, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .formats, .contact, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .formats__head { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .aside__sticky { position: static; }
}
@media (max-width: 760px) {
    :root { --header-h: 70px; }
    .header__logo img { height: 32px; }
    .header__actions .btn { display: none; }
    .hero__veil { background: linear-gradient(0deg, var(--bg) 10%, rgba(11,10,16,.7) 60%, rgba(11,10,16,.4) 100%); }
    .process { grid-template-columns: 1fr 1fr; }
    .works { height: auto !important; }
    .works__sticky { position: static; height: auto; padding: 90px 0; }
    .works__rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .works__rail::-webkit-scrollbar { display: none; }
    .works__track { transform: none !important; }
    .work { width: 78vw; scroll-snap-align: center; }
    .works__progress { display: none; }
    .map { height: 320px; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .services, .services--3, .prices, .process, .footer__grid, .form__grid { grid-template-columns: minmax(0, 1fr); }
    .svc { min-height: 0; }
    .tabs { width: 100%; }
    .tabs__btn { flex: 1; padding: 0 10px; font-size: 14px; }
    .format { grid-template-columns: 56px minmax(0, 1fr); }
    .format__n { width: 48px; height: 48px; font-size: 18px; }
    .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .noise { display: none; }
}

/* ==========================================================================
   Мобильные приложения
   ========================================================================== */
.apps { overflow: hidden; }
.apps__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.apps__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; }
.platform svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.apps__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.apps__list li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease), opacity 1.1s var(--ease); }
.apps__list li:hover { border-color: rgba(237,50,55,.5); transform: translateY(-4px); }
.apps__list b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--red); padding-top: 4px; }
.apps__list h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.apps__list p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.apps__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 3D-телефоны */
.phones { position: relative; height: 620px; perspective: 1400px; }
.phones__glow { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; background: radial-gradient(circle, rgba(237,50,55,.4), transparent 65%); filter: blur(20px); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .7; } }
.phone { position: absolute; width: 270px; height: 560px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2A2933, #0F0E14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 50px 100px -30px rgba(0,0,0,.9); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.phone--front { left: 50%; top: 30px; margin-left: -110px; transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 8deg)) rotateZ(4deg); z-index: 2; animation: float1 7s ease-in-out infinite; }
.phone--back { left: 50%; top: 0; margin-left: -250px; transform: rotateY(var(--ry2, -24deg)) rotateX(var(--rx, 8deg)) rotateZ(-8deg) translateZ(-120px) scale(.88); opacity: .75; filter: saturate(.8); animation: float2 8s ease-in-out infinite; }
@keyframes float1 { 50% { translate: 0 -16px; } }
@keyframes float2 { 50% { translate: 0 12px; } }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 999px; background: #000; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #F5F4F7; color: #111; padding: 52px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone--back .phone__screen { background: #15141B; color: #fff; padding-top: 30px; }

.ui-top { display: flex; align-items: center; gap: 8px; }
.ui-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--red); }
.ui-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ui-cart { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #111; animation: pop 2.4s var(--ease) infinite; }
@keyframes pop { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.3); } }
.ui-line { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .14; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.ui-hero { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--red), #9E1F23); color: #fff; }
.ui-hero p { font-size: 11px; opacity: .8; }
.ui-hero b { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 2px 0; }
.ui-hero span { font-size: 11px; }
.ui-hero::after { content: ""; position: absolute; top: -20px; right: -20px; width: 90px; height: 90px; border-radius: 50%; border: 14px solid rgba(255,255,255,.15); }
.ui-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); animation: card-in 4s var(--ease) infinite; }
.ui-card:nth-child(2) { animation-delay: .15s; } .ui-card:nth-child(3) { animation-delay: .3s; } .ui-card:nth-child(4) { animation-delay: .45s; }
@keyframes card-in { 0% { transform: translateY(12px); opacity: 0; } 15%, 100% { transform: none; opacity: 1; } }
.ui-thumb { height: 58px; border-radius: 10px; background: linear-gradient(135deg, #FFD2D3, #ED3237); }
.ui-thumb--2 { background: linear-gradient(135deg, #D9D8E0, #6E6C7A); }
.ui-thumb--3 { background: linear-gradient(135deg, #2A2933, #0B0A10); }
.ui-thumb--4 { background: linear-gradient(135deg, #FFE7C2, #F2A33A); }
.ui-price { width: 40%; height: 8px; border-radius: 4px; background: var(--red); }
.ui-btn { margin-top: auto; padding: 12px; border-radius: 14px; background: #111; color: #fff; text-align: center; font-size: 12px; font-weight: 800; }
.ui-tabbar { display: flex; justify-content: space-around; padding: 6px 0 0; }
.ui-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: #D9D8E0; }
.ui-tabbar i.is-on { background: var(--red); }
.ui-label { font-size: 11px; opacity: .6; margin-top: 10px; }
.ui-big { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #4ADE80; }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.ui-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(0deg, #9E1F23, var(--red)); transform-origin: bottom; animation: bar 3s var(--ease) infinite; }
.ui-bars i:nth-child(2n) { animation-delay: .2s; } .ui-bars i:nth-child(3n) { animation-delay: .4s; }
@keyframes bar { 0% { transform: scaleY(.2); } 30%, 100% { transform: none; } }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ui-ava { width: 26px; height: 26px; border-radius: 50%; background: #3A3944; flex-shrink: 0; }

.push { position: absolute; z-index: 4; right: 0; top: 120px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.95); color: #111; box-shadow: 0 20px 50px -15px rgba(0,0,0,.6); animation: push 6s var(--ease) infinite; }
.push__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--red); }
.push b { display: block; font-size: 14px; }
.push small { font-size: 12px; color: #666; }
@keyframes push { 0%, 8% { transform: translateY(-20px) scale(.9); opacity: 0; } 16%, 70% { transform: none; opacity: 1; } 80%, 100% { transform: translateY(-10px); opacity: 0; } }
.chip-float { position: absolute; z-index: 4; padding: 10px 16px; border-radius: 999px; font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); }
.chip-float--a { left: 0; bottom: 120px; animation: float1 6s ease-in-out infinite; }
.chip-float--b { right: 30px; bottom: 50px; background: var(--red); border-color: var(--red); animation: float2 7s ease-in-out infinite; }

/* ==========================================================================
   Интеграция с 1С
   ========================================================================== */
.onec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.onec__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sync { position: relative; aspect-ratio: 600 / 520; width: 100%; max-width: 620px; }
.sync__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sync__lines path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.sync__packets circle { fill: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.sync__packets circle.rev { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.sync__core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--red), #9E1F23); color: #fff; box-shadow: 0 0 0 10px rgba(237,50,55,.1), 0 0 0 22px rgba(237,50,55,.05), 0 30px 80px -20px var(--red-glow); animation: core 3s ease-in-out infinite; }
.sync__core span { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.sync__core small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); }
@keyframes core { 50% { box-shadow: 0 0 0 16px rgba(237,50,55,.12), 0 0 0 34px rgba(237,50,55,.05), 0 30px 80px -20px var(--red-glow); } }
.sync__node { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transition: border-color .3s, transform .5s var(--ease); }
.sync__node:hover { border-color: var(--red); transform: translate(-50%, -50%) scale(1.06); }
.sync__node svg { flex-shrink: 0; max-width: none; width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sync__node--1 { left: 15%; top: 19.2%; }
.sync__node--2 { left: 85%; top: 19.2%; }
.sync__node--3 { left: 15%; top: 80.8%; }
.sync__node--4 { left: 85%; top: 80.8%; }
.sync-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.sync-list li { position: relative; padding: 14px 16px 14px 40px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.sync-list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; border: 2px solid var(--red); transform: rotate(45deg); }
.sync-list li::after { content: ""; position: absolute; left: 20px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--red); transform: rotate(45deg); }

@media (max-width: 1080px) {
    .apps__grid, .onec__grid { grid-template-columns: minmax(0, 1fr); }
    .phones { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
    .sync { margin: 0 auto; }
    .onec__grid .sync { order: 2; }
}
@media (max-width: 560px) {
    .apps__list, .sync-list { grid-template-columns: minmax(0, 1fr); }
    .phones { height: 520px; transform: scale(.82); transform-origin: top center; margin-bottom: -90px; }
    .phone--back { margin-left: -200px; }
    .sync__node { font-size: 12px; padding: 8px 10px; gap: 6px; }
    .sync__node svg { width: 16px; height: 16px; }
}

/* ============================================================
   Портфолио и блог (страницы разделов)
   ============================================================ */
.cards-grid {
    display: grid;
    gap: clamp(18px, 2.4vw, 34px);
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.cards-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.cards-grid .work { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.chips a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px;
    color: var(--muted); transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chips a:hover { color: var(--text); border-color: var(--text); }
.chips a.is-active { color: #fff; background: var(--red); border-color: var(--red); }

.post {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
    transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.post:hover { transform: translateY(-4px); }
.post__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.post__cat { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-2); }
.post__title { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.post__text { color: var(--muted); font-size: 16px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.article-head { display: flex; flex-direction: column; gap: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.article-cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: clamp(28px, 4vw, 44px); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); margin-top: 2em; }
.article-gallery img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.article-cta { margin-top: clamp(32px, 4vw, 52px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags span { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(36px, 5vw, 60px); }
.pager__btn, .pager__num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2);
    border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.pager__btn { padding: 0 22px; }
.pager__btn:hover, .pager__num:hover { color: var(--text); border-color: var(--text); }
.pager__num.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }

.empty-state { padding: clamp(40px, 6vw, 80px) 0; color: var(--muted); font-size: 18px; }

/* Комментарии к статье */
.comments { list-style: none; margin: 1.4em 0 2.4em; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.comment { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.comment p { margin: 10px 0 0; color: #D6D4DD; }
.comment__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 15px; }
.comment__head b { color: var(--text); }
.comment__head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Поля-текстарии в формах (комментарии) */
.field textarea {
    width: 100%; min-height: 130px; padding: 24px 18px 12px; border-radius: 14px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text);
    font: inherit; font-size: 16px; resize: vertical;
    transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(237, 50, 55, .15); }
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.75); color: var(--red); }
/* FAQ-аккордеон (главная и страницы услуг) */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    position: relative; list-style: none; cursor: pointer;
    padding: 26px 64px 26px 0;
    font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; letter-spacing: -.02em;
    transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '\2212'; position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--red);
    transition: transform .35s var(--ease);
}
.faq__item:not([open]) summary::after { content: '+'; }
.faq__item summary:hover { color: var(--red); }
.faq__item p { color: var(--muted); max-width: 860px; padding: 0 64px 28px 0; margin: 0; }
.faq-note { margin-top: 26px; color: var(--muted); }
.faq-note a { color: var(--red); }

/* picture внутри карточек: обёртка не должна ломать раскладку */
.work__img picture,
.post__img picture,
.article-cover picture { display: block; width: 100%; height: 100%; }

/* Отзывы клиентов */
.review {
    display: flex; flex-direction: column; gap: 16px;
    padding: 28px 30px 30px;
    border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.review__stars { color: var(--red); font-size: 17px; letter-spacing: 3px; }
.review__text { color: #D6D4DD; font-size: 17px; }
.review__author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.review__ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.review__ava img { width: 100%; height: 100%; object-fit: cover; }
.review__name { display: block; font-weight: 700; }
.review__job { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Отзыв и ссылка на живой проект внутри кейса */
.case-review { margin: 2em 0; padding: 24px 26px; border-left: 3px solid var(--red); background: var(--surface); border-radius: 0 18px 18px 0; }
.case-review p { margin: 0 0 10px; color: #D6D4DD; }
.case-review cite { font-family: var(--mono); font-size: 13px; color: var(--muted); font-style: normal; }
.case-link { margin-top: 2em; }
