/* AAAi — главная. Шрифт Onest, палитра: чёрный, слоновая кость, золото. */

@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(../fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(../fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2600-27BF; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(../fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(../fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2600-27BF; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(../fonts/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(../fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2600-27BF; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(../fonts/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(../fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2600-27BF; }
@font-face { font-family: 'Onest'; font-weight: 800; font-display: swap; src: url(../fonts/onest-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 800; font-display: swap; src: url(../fonts/onest-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2600-27BF; }

:root {
  --black: #0A0A0C;
  --black-2: #121317;
  --card-d: #17181D;
  --ivory: #F5F1E9;
  --warm: #EFE6D6;
  --white: #FFFFFF;
  --ink: #141417;
  --mid: #57555A;
  --dim: #8E8A84;
  --line: #E3DACB;
  --line-d: rgba(255, 255, 255, 0.09);
  --gold: #C9A25E;
  --gold-hi: #E7C98E;
  --gold-d: #946417;
  --on-dark: #F4EEE3;
  --on-dark-2: #ADA699;
  --pad: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--black); color: var(--on-dark); font-family: 'Onest', 'Segoe UI', Arial, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 12vw, 180px) 0; }
.light { background: var(--ivory); color: var(--ink); }
.warm { background: var(--warm); color: var(--ink); }
.dark { background: var(--black-2); color: var(--on-dark); }

/* ---------- типографика ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.light .eyebrow, .warm .eyebrow { color: var(--gold-d); }
.h2 { font-size: clamp(38px, 5.4vw, 84px); font-weight: 800; line-height: 1.02; letter-spacing: -0.042em; max-width: 15em; }
.h2 em, .h3 em, .cta__title em { font-style: normal; color: var(--gold); }
.light .h2 em, .warm .h2 em { color: var(--gold-d); }
.h3 { font-size: clamp(26px, 2.5vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--on-dark-2); max-width: 38em; margin-top: 22px; }
.light .lede, .warm .lede { color: var(--mid); }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .h2, .sec-head.center .lede { margin-left: auto; margin-right: auto; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; will-change: transform; }
.btn--gold { background: linear-gradient(120deg, #B88A3E, #E7C98E 45%, #C9A25E 80%); background-size: 200% 100%; color: #17140E; }
.btn--gold:hover { background-position: 100% 0; }
.btn--line { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--on-dark); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--ghost { border: 1px solid rgba(201, 162, 94, 0.7); color: var(--gold-hi); }
.btn--ghost:hover { background: var(--gold); color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: 14.5px; }
.btn--xl { padding: 26px 42px; font-size: clamp(18px, 1.6vw, 22px); }
.arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- прелоадер ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; background: var(--black); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.preloader__mark { font-weight: 800; font-size: clamp(56px, 9vw, 120px); letter-spacing: -0.04em; color: var(--on-dark); }
.preloader__mark i { font-style: normal; color: var(--gold); text-shadow: 0 0 40px rgba(231, 201, 142, .55); }
.preloader__line { width: min(260px, 60vw); height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.preloader__line span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.preloader__count { position: absolute; right: var(--pad); bottom: 28px; font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--dim); font-variant-numeric: tabular-nums; }
.no-js .preloader, .reduced .preloader { display: none; }

/* ---------- курсор ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 7px; height: 7px; background: var(--gold-hi); }
.cursor__ring { width: 42px; height: 42px; border: 1px solid rgba(231, 201, 142, .55); display: flex; align-items: center; justify-content: center; transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s; }
.cursor__label { font-size: 12px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--gold); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--gold-hi); border-color: var(--gold-hi); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } .has-cursor, .has-cursor a, .has-cursor button, .has-cursor input { cursor: none; } }

/* ---------- шапка ---------- */
.header { position: fixed; left: 0; right: 0; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad); transition: background .4s, padding .4s, transform .5s var(--ease); }
.header.is-scrolled { background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); padding-top: 14px; padding-bottom: 14px; }
.header.is-hidden { transform: translateY(-110%); }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--on-dark); }
.logo i { font-style: normal; color: var(--gold); }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
.nav a { position: relative; transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 1. герой ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(120% 80% at 75% 40%, #16130E 0%, var(--black) 60%); isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%); }
.hero__halo { position: absolute; z-index: 1; right: 6%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1; transform: translate(10%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 94, .30) 0%, rgba(201, 162, 94, .08) 38%, transparent 66%); filter: blur(10px); pointer-events: none; }
.hero__robot { position: absolute; z-index: 2; right: clamp(-60px, 1vw, 40px); bottom: 0; height: min(94vh, 1000px); aspect-ratio: 1152 / 1536; pointer-events: none; will-change: transform; }
.hero__robot img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 99%); mask-image: linear-gradient(180deg, #000 70%, transparent 99%); filter: drop-shadow(0 0 60px rgba(201, 162, 94, .18)); }
.hero__notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.note { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 18px; background: rgba(20, 19, 17, .55); border: 1px solid rgba(231, 201, 142, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: translate(-50%, -50%) translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.note.is-on { opacity: 1; transform: translate(-50%, -50%); }
.note img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.note b { display: block; font-size: 12.5px; font-weight: 600; color: var(--gold-hi); letter-spacing: .01em; }
.note span { display: block; font-size: 14.5px; color: var(--on-dark); }
.hero__inner { position: relative; z-index: 4; padding-top: 110px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(231, 201, 142, .3); background: rgba(255, 255, 255, .03); font-size: 13.5px; font-weight: 500; color: var(--gold-hi); letter-spacing: .02em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 0 rgba(231, 201, 142, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(231, 201, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 201, 142, 0); } }
.hero__title { margin-top: 28px; font-size: clamp(50px, 8.3vw, 138px); font-weight: 800; line-height: 0.96; letter-spacing: -0.05em; max-width: 9.4em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.04em; }
.hero__title .line > span { display: inline-block; }
.shine { background: linear-gradient(100deg, #9A6A1E 0%, #E7C98E 28%, #FFF4DA 42%, #E7C98E 56%, #A87A2C 80%, #E7C98E 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5.5s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.hero__lede { margin-top: 30px; max-width: 31em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: #CFC8BC; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__values { position: relative; z-index: 4; display: flex; gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vh, 88px); padding-bottom: 40px; }
.hero__values div { border-left: 1px solid rgba(231, 201, 142, .45); padding-left: 16px; }
.hero__values b { display: block; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; color: var(--on-dark); letter-spacing: -0.01em; }
.hero__values span { display: block; font-size: 14.5px; color: var(--on-dark-2); }
.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-hi); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- бегущая строка ---------- */
.marquee { overflow: hidden; background: var(--black); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); padding: 26px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee span { font-size: clamp(34px, 5vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(231, 201, 142, .55); white-space: nowrap; }
.marquee span:nth-of-type(3n+1) { color: var(--on-dark); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; font-size: clamp(20px, 2.4vw, 36px); color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 2. манифест ---------- */
.about { padding-bottom: clamp(56px, 7vw, 100px); }
.manifest { font-size: clamp(34px, 5.2vw, 80px); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; max-width: 14em; }
.manifest .w { opacity: .14; transition: none; }
.stats { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.stat { border-top: 1px solid var(--ink); padding-top: 22px; }
.stat__k { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); }
.stat b { display: block; margin-top: 14px; font-size: clamp(42px, 5vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stat p { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--mid); max-width: 20em; }

/* ---------- 3. направления ---------- */
.services { padding-top: clamp(40px, 5vw, 80px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transform-style: preserve-3d; transition: box-shadow .5s var(--ease); will-change: transform; }
.svc:hover { box-shadow: 0 30px 60px -30px rgba(90, 64, 20, .35); }
.svc__img { height: clamp(170px, 15vw, 230px); overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.08); }
.svc__body { padding: 24px 26px 30px; }
.svc__n { font-size: 13px; font-weight: 700; color: var(--gold-d); letter-spacing: .1em; }
.svc h3 { margin-top: 10px; font-size: clamp(21px, 1.7vw, 26px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.svc p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--mid); }
.svc__body::after { content: ''; display: block; margin-top: 20px; height: 1px; background: var(--gold); transform: scaleX(.12); transform-origin: left; transition: transform .7s var(--ease); }
.svc:hover .svc__body::after { transform: scaleX(1); }

/* ---------- 4. ночная смена ---------- */
.night { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #07080C; color: var(--on-dark); --dawn: 0; }
.night__sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; opacity: calc(1 - var(--dawn) * .9); background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent), radial-gradient(1.4px 1.4px at 47% 12%, #fff, transparent),
  radial-gradient(1px 1px at 63% 38%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 70%, #fff, transparent),
  radial-gradient(1px 1px at 8% 82%, #fff, transparent), radial-gradient(1.3px 1.3px at 37% 86%, #fff, transparent), radial-gradient(1px 1px at 55% 55%, #fff, transparent),
  radial-gradient(1px 1px at 93% 9%, #fff, transparent), radial-gradient(1.2px 1.2px at 20% 40%, #fff, transparent), radial-gradient(1px 1px at 70% 85%, #fff, transparent);
  background-size: 640px 640px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.2); } }
.dawn { position: absolute; inset: 0; opacity: var(--dawn); background: radial-gradient(90% 70% at 50% 120%, rgba(231, 170, 90, .55) 0%, rgba(201, 120, 60, .25) 35%, transparent 70%), linear-gradient(180deg, #0B0D16 0%, #1A1622 55%, #3A2A1E 100%); }
.night__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 90px; padding-bottom: 40px; }
.night .h2 { font-size: clamp(36px, 4.6vw, 72px); }
.clock { margin-top: clamp(24px, 4vh, 44px); font-size: clamp(76px, 11vw, 176px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #FFF4DA 0%, #E7C98E 45%, #B4832F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.night__bar { position: relative; margin-top: 18px; height: 2px; background: rgba(255, 255, 255, .12); max-width: 520px; }
.night__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.night__bar i { position: absolute; top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--on-dark-2); letter-spacing: .08em; }
.night__bar i:last-child { right: 0; }
.feed { list-style: none; display: grid; gap: 12px; }
.ev { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); opacity: .0; transform: translateY(18px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .55s; }
.ev.is-on { opacity: 1; transform: none; }
.ev.is-last { border-color: rgba(231, 201, 142, .5); background: rgba(231, 201, 142, .07); }
.ev img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ev__moon { font-style: normal; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(231, 201, 142, .45); display: flex; align-items: center; justify-content: center; color: var(--gold-hi); }
.ev__moon svg { display: block; width: 22px; height: 22px; flex: none; fill: currentColor; }
.ev--you { background: transparent; border-style: dashed; }
.ev time { font-size: 13px; font-weight: 600; color: var(--gold-hi); letter-spacing: .06em; margin-right: 10px; }
.ev b { font-size: 16.5px; font-weight: 700; }
.ev span { display: block; font-size: 15.5px; line-height: 1.35; color: var(--on-dark-2); margin-top: 2px; }
.morning { margin-top: 14px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(231, 201, 142, .16), rgba(231, 201, 142, .04)); border: 1px solid rgba(231, 201, 142, .45); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.morning.is-on { opacity: 1; transform: none; }
.morning__k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.morning > b { display: block; margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.morning__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.morning__row strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--gold-hi); }
.morning__row span { display: block; font-size: 14px; line-height: 1.3; color: var(--on-dark-2); margin-top: 4px; }
.morning small { display: block; margin-top: 12px; font-size: 12.5px; color: var(--dim); }

/* ---------- 5. автоматизация ---------- */
.auto { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.areas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.areas li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.areas b { display: block; font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.areas span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.42; color: var(--mid); }
.calc { position: sticky; top: 110px; background: var(--ink); color: var(--on-dark); border-radius: 30px; padding: clamp(28px, 3vw, 44px); overflow: hidden; }
.calc::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 94, .35), transparent 70%); }
.calc > * { position: relative; }
.calc__k { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.range { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; margin-top: 26px; }
.range span { font-size: 16px; color: var(--on-dark-2); }
.range output { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255, 255, 255, .14) var(--p, 50%)); outline: none; margin-top: 8px; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-hi); border: 5px solid var(--ink); box-shadow: 0 0 0 1px var(--gold); cursor: grab; }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-hi); border: 5px solid var(--ink); box-shadow: 0 0 0 1px var(--gold); cursor: grab; }
.calc__res { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-d); }
.calc__res > span { display: block; font-size: 16.5px; color: var(--on-dark-2); }
.calc__res b { display: block; margin: 6px 0; font-size: clamp(48px, 5.4vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.calc__res strong { color: var(--on-dark); font-weight: 700; }
.calc__note { margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }

/* ---------- 6. продукты ---------- */
.products { padding-bottom: clamp(140px, 14vw, 220px); overflow: hidden; }
.fan { position: relative; height: clamp(280px, 26vw, 400px); max-width: 1440px; margin: 0 auto; perspective: 1800px; }
.device { position: absolute; left: 50%; top: 0; width: min(500px, 31vw); background: var(--white); border-radius: 16px; overflow: visible; transform-style: preserve-3d; will-change: transform; }
.device > img { width: 100%; border-radius: 0 0 16px 16px; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ECE5D8; border-bottom: 1px solid #DDD3C2; border-radius: 16px 16px 0 0; }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFC2AC; }
.bar span { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 5px 12px; }
.device figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 26px); text-align: center; font-size: 15.5px; line-height: 1.4; color: var(--on-dark-2); }
.device figcaption b { display: block; font-size: 19px; font-weight: 700; color: var(--on-dark); letter-spacing: -0.02em; margin-bottom: 3px; }
.d1 { z-index: 1; } .d2 { z-index: 3; } .d3 { z-index: 2; }

/* ---------- 7. контент ---------- */
.gen { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 32px; }
.gen__side { padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--mid); transition: all .3s; }
.tab:hover { border-color: var(--gold-d); color: var(--ink); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.prompt { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: var(--ivory); min-height: 128px; }
.prompt__k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.prompt p { margin-top: 8px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; line-height: 1.4; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--gold-d); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.gen__status { display: flex; justify-content: space-between; margin-top: auto; padding-top: 26px; font-size: 14px; font-weight: 600; color: var(--mid); font-variant-numeric: tabular-nums; }
.gen__bar { margin-top: 10px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gen__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-hi)); transform-origin: left; transform: scaleX(0); }
.gen__cap { margin-top: 18px; min-height: 3em; font-size: 16px; line-height: 1.45; color: var(--ink); }
.gen__cap b { font-weight: 700; }
.gen__stage { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: #1A1714; }
.gen__stage img { width: 100%; height: 100%; object-fit: cover; will-change: filter, transform; }
.gen__scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(231, 201, 142, .35) 85%, rgba(255, 244, 218, .9)); opacity: 0; mix-blend-mode: screen; }
.gen__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .92); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease); }
.gen__play::after { content: ''; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.gen.is-video.is-done .gen__play { opacity: 1; transform: none; }
.note-line { margin-top: 28px; font-size: 17px; color: var(--mid); }

/* ---------- 8. работы ---------- */
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 13px; border-radius: 999px; background: rgba(231, 201, 142, .12); border: 1px solid rgba(231, 201, 142, .35); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); }
.case { display: grid; grid-template-columns: 1fr minmax(340px, 0.85fr); grid-template-areas: 'text sketch' 'review sketch' 'shot shot'; gap: 28px clamp(28px, 5vw, 80px); align-items: start; }
.case__text { grid-area: text; }
.case__text .h3 { margin-top: 22px; font-size: clamp(30px, 3.3vw, 50px); }
.bsa { margin-top: 30px; }
.bsa div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-d); }
.bsa div:last-child { border-bottom: 1px solid var(--line-d); }
.bsa dt { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.bsa dd { font-size: 18px; line-height: 1.42; color: var(--on-dark); }
.domain { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold-hi); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; transition: background .3s, color .3s; }
a.domain:hover { background: var(--gold); color: var(--ink); }
.domain svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sketch { grid-area: sketch; position: relative; background: var(--ivory); color: var(--ink); border-radius: 30px; padding: 22px 22px 18px; }
.sketch__prompt { padding: 16px 18px; border-radius: 16px; background: var(--white); min-height: 104px; }
.sketch__prompt p { margin-top: 6px; font-size: 17.5px; font-weight: 500; line-height: 1.38; }
.sketch__canvas { position: relative; height: clamp(420px, 40vw, 600px); aspect-ratio: 585 / 1140; margin: 16px auto 0; }
.sketch__svg, .sketch__color { position: absolute; inset: 0; width: 100%; height: 100%; }
.sketch__color { --wash: -20%; -webkit-mask-image: linear-gradient(180deg, #000 var(--wash), transparent calc(var(--wash) + 18%)); mask-image: linear-gradient(180deg, #000 var(--wash), transparent calc(var(--wash) + 18%)); }
.sketch__status { position: absolute; left: -10px; bottom: 10px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--gold-hi); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.replay { display: block; margin: 10px auto 0; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--gold-d); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.replay.is-on { opacity: 1; pointer-events: auto; }
.replay:hover { background: rgba(148, 100, 23, .08); }
.case__shot { grid-area: shot; border-radius: 18px; overflow: hidden; background: #fff; }
.case__shot img { width: 100%; height: clamp(320px, 36vw, 560px); object-fit: cover; object-position: top; }
.review { grid-area: review; position: relative; padding: 30px 32px 26px; border-radius: 26px; background: linear-gradient(140deg, rgba(231, 201, 142, .14), rgba(231, 201, 142, .03)); border: 1px solid rgba(231, 201, 142, .35); }
.review__q { position: absolute; left: 28px; top: 4px; font-size: 96px; font-weight: 800; line-height: 1; color: var(--gold); opacity: .55; }
.review p { position: relative; padding-top: 40px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.45; color: var(--on-dark); }
.review footer { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.review footer i { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-hi); color: var(--ink); font-style: normal; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.review footer b { display: block; font-size: 17px; font-weight: 700; }
.review footer span { display: block; font-size: 14.5px; color: var(--on-dark-2); }
.prods { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prod { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border-radius: 30px; background: var(--card-d); border: 1px solid var(--line-d); transform-style: preserve-3d; will-change: transform; }
.prod .h3 { margin-top: 20px; }
.prod ul { list-style: none; margin-top: 22px; }
.prod li { padding: 12px 0; border-top: 1px solid var(--line-d); font-size: 16.5px; line-height: 1.4; color: var(--on-dark-2); }
.prod li b { color: var(--on-dark); font-weight: 600; }
.prod__visual { position: relative; margin-top: 28px; flex: 1; min-height: 300px; }
.prod__visual.mp .browser { border-radius: 14px; overflow: hidden; background: #fff; width: 92%; }
.mp__panel { position: absolute; right: 0; bottom: -8px; width: 62%; border-radius: 12px; border: 1px solid #CFC4B0; background: #fff; }
.prod__visual.astra { display: flex; justify-content: center; gap: 18px; align-items: flex-start; }
.phone { width: min(44%, 210px); border: 7px solid #26252B; border-radius: 30px; overflow: hidden; background: #17151F; }
.phone + .phone { margin-top: 40px; }
.prod .domain { align-self: flex-start; }

/* ---------- 9. процесс ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.steps__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(148, 100, 23, .2); }
.steps__line span { position: absolute; inset: 0; background: var(--gold-d); transform-origin: left; transform: scaleX(0); }
.step { padding-top: 28px; }
.step__n { display: block; font-size: clamp(56px, 6vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--gold-d); }
.step h3 { margin-top: 20px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--mid); }
.after { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 20px 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.after span { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin-right: 10px; }
.after i { font-style: normal; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: var(--ivory); font-size: 16px; font-weight: 600; }
.after i::before { content: '✓'; color: var(--gold-d); font-weight: 800; }

/* ---------- 10. CTA ---------- */
.cta { position: relative; overflow: hidden; background: #070708; color: var(--on-dark); padding: clamp(120px, 14vw, 220px) 0 0; }
.cta__bg { position: absolute; right: 0; top: 0; width: min(78vw, 1300px); height: 100%; background: url(../img/cta-plane.webp) 70% 40% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); opacity: .9; will-change: transform; }
.cta__inner { position: relative; }
.cta__title { font-size: clamp(38px, 5.2vw, 84px); font-weight: 800; line-height: 1.03; letter-spacing: -0.045em; max-width: 12.5em; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; margin-top: 44px; }
.cta__phone { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--on-dark); border-bottom: 1px solid rgba(231, 201, 142, .5); padding-bottom: 4px; transition: color .3s; }
.cta__phone:hover { color: var(--gold-hi); }
.footer { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(100px, 12vw, 180px); padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line-d); font-size: 14.5px; color: var(--dim); }
.footer::before { content: ''; position: absolute; left: var(--pad); right: var(--pad); top: -1px; height: 1px; background: var(--line-d); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 980px) {
  .hero__robot { right: -18%; height: 74vh; opacity: .55; }
  .hero__halo { right: -20%; }
  .hero__notes .note:nth-child(n+3) { display: none; }
  .note { --x: 62% !important; }
  .note:nth-child(1) { --y: 18% !important; }
  .note:nth-child(2) { --y: 30% !important; }
  .night__inner { grid-template-columns: 1fr; gap: 26px; padding-top: 86px; }
  .night .lede { display: none; }
  .clock { margin-top: 14px; }
  .ev.is-old { display: none; }
  .auto { grid-template-columns: 1fr; }
  .calc { position: relative; top: 0; }
  .fan { height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 120px; perspective: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .device { position: relative; left: auto; flex: 0 0 82%; width: auto; scroll-snap-align: center; transform: none !important; }
  .products { padding-bottom: clamp(60px, 10vw, 120px); }
  .gen { grid-template-columns: 1fr; }
  .gen__stage { order: -1; }
  .case { grid-template-columns: 1fr; grid-template-areas: 'text' 'sketch' 'review' 'shot'; }
  .prods { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps__line { display: none; }
  .step { border-top: 1px solid rgba(148, 100, 23, .3); }
  .stats { grid-template-columns: 1fr; }
  .cta__bg { width: 100%; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .btn--sm { padding: 10px 14px; font-size: 13.5px; }
  .hero { justify-content: flex-end; }
  .hero__robot { right: -30%; top: 64px; bottom: auto; height: 58vh; opacity: .5; }
  .hero__notes { display: none; }
  .hero__inner { padding-top: 150px; }
  .hero__title { font-size: clamp(38px, 10.6vw, 60px); }
  .hero__values { flex-direction: column; gap: 14px; margin-top: 40px; padding-bottom: 72px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .scroll-hint { display: none; }
  .cards { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .bsa div { grid-template-columns: 1fr; gap: 4px; }
  .morning__row strong { font-size: 30px; }
  .ev { padding: 12px 14px 12px 12px; }
  .ev img { width: 44px; height: 44px; }
  .ev { grid-template-columns: 44px 1fr; }
  .ev__moon { width: 44px; height: 44px; }
  .cta__bg { background-size: 190% auto; background-position: 88% 0; opacity: .55; }
  .sketch__canvas { height: 440px; }
  .prod__visual { min-height: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* невысокий экран ноутбука: в ленте ночной смены — только последние события */
@media (min-width: 981px) and (max-height: 820px) { .ev.is-old { display: none; } .night__inner { padding-top: 76px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .manifest .w { opacity: 1; }
}
