/* VIO — публичный сайт */
:root {
  --bg: #060a14;
  --bg2: #0a101e;
  --card: rgba(16, 24, 42, .72);
  --line: rgba(232, 185, 90, .16);
  --line2: rgba(255, 255, 255, .08);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --gold: #e8b95a;
  --gold-hi: #ffe3a3;
  --gold-lo: #b9822c;
  --grad: linear-gradient(135deg, #fbe3a6 0%, #e8b95a 45%, #c38a33 100%);
  --radius: 14px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.ico { width: 26px; height: 26px; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-gold { color: var(--gold); }
.gold-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 54px; height: 40px; filter: drop-shadow(0 2px 10px rgba(232, 185, 90, .35)); }
.logo-text { font-family: Cinzel, "Times New Roman", serif; font-weight: 600; font-size: 34px; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.logo.sm .logo-mark { width: 20px; height: 15px; } .logo.sm .logo-text { font-size: 12px; }
.logo.xs .logo-mark { width: 16px; height: 12px; } .logo.xs .logo-text { font-size: 10px; }
.logo.sm, .logo.xs { gap: 3px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--grad); color: #1b1307; box-shadow: 0 8px 28px -8px rgba(232, 185, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(232, 185, 90, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-outline { border-color: rgba(232, 185, 90, .75); color: var(--text); background: rgba(6, 10, 20, .35); }
.btn-outline:hover { background: rgba(232, 185, 90, .1); border-color: var(--gold-hi); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(6, 10, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line2); }
.header-in { display: flex; align-items: center; gap: 32px; height: 84px; }
.nav { display: flex; gap: 36px; margin: 0 auto; }
.nav a { position: relative; font-size: 15px; color: #d7dbe5; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--gold-hi); }
.nav a.active { color: var(--gold); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding-bottom: 8px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); background:
  radial-gradient(1200px 520px at 78% 108%, rgba(232, 185, 90, .10), transparent 60%),
  radial-gradient(900px 500px at 10% 0%, rgba(40, 70, 130, .25), transparent 60%),
  linear-gradient(180deg, #050912 0%, #081024 55%, #070c18 100%); }
.stars, .stars2 { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 28% 42%, #cfd9ff 50%, transparent),
  radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent), radial-gradient(1px 1px at 63% 30%, #ffe8b8 50%, transparent),
  radial-gradient(1px 1px at 81% 9%, #fff 50%, transparent), radial-gradient(1.3px 1.3px at 91% 36%, #cfd9ff 50%, transparent),
  radial-gradient(1px 1px at 7% 62%, #fff 50%, transparent), radial-gradient(1px 1px at 36% 74%, #ffe8b8 50%, transparent),
  radial-gradient(1px 1px at 55% 56%, #fff 50%, transparent), radial-gradient(1.2px 1.2px at 72% 66%, #fff 50%, transparent);
  opacity: .55; animation: twinkle 6s ease-in-out infinite alternate; }
.stars2 { background-position: 40px 60px; transform: scale(1.4); opacity: .3; animation-delay: -3s; }
@keyframes twinkle { to { opacity: .15; } }
.earth { position: absolute; width: 1900px; height: 1900px; left: 47%; top: 21%; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #10213f 0%, #081226 40%, #050a16 70%);
  box-shadow: 0 -2px 0 rgba(255, 227, 163, .55), 0 -10px 40px rgba(232, 185, 90, .35), 0 -40px 120px rgba(80, 130, 220, .35), inset 0 30px 80px rgba(120, 170, 255, .18); }
.earth::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .6; background-image:
  radial-gradient(1.5px 1.5px at 18% 6%, #ffcf7a 60%, transparent), radial-gradient(2px 2px at 22% 8%, #ffcf7a 60%, transparent),
  radial-gradient(1.5px 1.5px at 27% 5%, #ffe3a3 60%, transparent), radial-gradient(1.5px 1.5px at 33% 3.5%, #ffcf7a 60%, transparent),
  radial-gradient(2px 2px at 14% 11%, #ffcf7a 60%, transparent), radial-gradient(1.5px 1.5px at 40% 2.6%, #ffe3a3 60%, transparent),
  radial-gradient(1.5px 1.5px at 10% 15%, #ffcf7a 60%, transparent), radial-gradient(1.5px 1.5px at 47% 2%, #ffcf7a 60%, transparent),
  radial-gradient(40px 10px at 24% 7%, rgba(255, 190, 90, .25), transparent), radial-gradient(60px 14px at 36% 4%, rgba(255, 190, 90, .2), transparent); }
.plane { position: absolute; width: 240px; left: 47%; top: 7%; opacity: .9; animation: fly 14s linear infinite; }
@keyframes fly { 0% { transform: translate(-120px, 40px); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translate(260px, -50px); opacity: 0; } }

.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 36px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 0 0 34px; max-width: 540px; font-size: 17.5px; color: #c3c9d6; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* Устройства */
.hero-visual { position: relative; height: 470px; }
.hero-visual--image { display: flex; align-items: center; }
.hero-visual--image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.laptop { position: absolute; left: -2%; top: 18px; width: 86%; transform: perspective(1600px) rotateY(-11deg) rotateX(3deg); transform-origin: right center; }
.laptop-screen { background: #0b0f18; border: 10px solid #1a1e27; border-bottom-width: 14px; border-radius: 16px 16px 6px 6px; box-shadow: 0 0 0 1px #2c313c, 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 60px rgba(232, 185, 90, .10); overflow: hidden; aspect-ratio: 16 / 10.2; }
.laptop-base { height: 16px; margin: 0 -7%; background: linear-gradient(180deg, #c9ccd3, #7d818b 55%, #3b3e45); border-radius: 0 0 18px 18px; box-shadow: 0 30px 40px -12px rgba(0, 0, 0, .85); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #6d717a; border-radius: 0 0 6px 6px; }
.scr { height: 100%; display: flex; flex-direction: column; background: #07101f; font-size: 9px; color: #fff; }
.scr-nav { display: flex; align-items: center; gap: 14px; height: 9%; padding: 0 5%; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.scr-nav i { width: 26px; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.scr-nav i:first-of-type { margin-left: auto; }
.scr-ico { width: 30px; height: 10px; border-radius: 6px; background: var(--grad); }
.scr-hero { position: relative; flex: 1 1 56%; overflow: hidden; }
.scr-hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr-copy { position: absolute; left: 6%; top: 16%; }
.scr-copy b { display: block; font-size: 1.8em; line-height: 1.15; font-style: italic; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.scr-copy small { display: block; margin-top: 6px; opacity: .85; }
.scr-search { position: absolute; left: 6%; right: 6%; bottom: 9%; display: flex; gap: 6px; padding: 6px; border-radius: 8px; background: rgba(8, 14, 28, .82); border: 1px solid rgba(255, 255, 255, .12); }
.scr-search span { flex: 1; padding: 4px 6px; opacity: .75; border-right: 1px solid rgba(255, 255, 255, .08); }
.scr-search em { font-style: normal; font-weight: 700; color: #1b1307; background: var(--grad); border-radius: 5px; padding: 4px 12px; }
.scr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px 6% 9px; }
.mini-card { position: relative; height: 62px; border-radius: 6px; overflow: hidden; }
.mini-card .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-card b, .mini-card small { position: relative; display: block; padding-left: 7px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.mini-card b { padding-top: 30px; font-size: 1.1em; }
.mini-card small { color: var(--gold-hi); }
.phone { position: absolute; right: 0; top: 70px; width: 29%; aspect-ratio: 9 / 19.2; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #3a3e46, #111318 40%, #2b2e35); box-shadow: 0 0 0 1px #50545d, 0 40px 70px -18px rgba(0, 0, 0, .9), 0 0 50px rgba(232, 185, 90, .12); transform: perspective(1400px) rotateY(-8deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: perspective(1400px) rotateY(-8deg) translateY(-10px); } }
.phone-screen { height: 100%; border-radius: 27px; overflow: hidden; background: #07101f; display: flex; flex-direction: column; font-size: 8.5px; padding-bottom: 6px; }
.ph-top { display: flex; justify-content: space-between; padding: 7px 16px 2px; font-weight: 700; font-size: 8px; }
.ph-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 6px; color: var(--gold); }
.ph-nav i:last-child { width: 10px; }
.ph-hero { position: relative; height: 38%; margin: 0 8px 8px; border-radius: 10px; overflow: hidden; }
.ph-hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-hero b { position: absolute; left: 9px; bottom: 9px; font-size: 1.35em; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.ph-field { margin: 0 8px 5px; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #b7bfcf; }
.ph-btn { margin: 3px 8px 0; padding: 6px; border-radius: 6px; text-align: center; font-weight: 700; color: #1b1307; background: var(--grad); }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .06); color: #8d96a8; font-size: .9em; }
.ph-tabs span:first-child { color: var(--gold); }

/* Услуги */
.services { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); border-top: 1px solid var(--line2); padding: 26px 0 34px; }
.service { display: grid; grid-template-columns: auto; gap: 8px; align-content: start; text-align: left; padding: 6px 24px; background: none; border: 0; border-left: 1px solid var(--line2); cursor: pointer; transition: background .25s; border-radius: 0; }
.service:first-child { border-left: 0; padding-left: 0; }
.service:hover b { color: var(--gold-hi); }
.service .ico { width: 30px; height: 30px; margin-bottom: 6px; }
.service b { font-size: 16px; font-weight: 700; transition: color .2s; }
.service span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Портфолио */
.works { padding: 36px 0 64px; background: linear-gradient(180deg, #070c18, #060a14); border-top: 1px solid var(--line2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-head h2, .cta h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; max-width: 520px; }
.works-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.work:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 185, 90, .18); }
.work-img { aspect-ratio: 16 / 11; overflow: hidden; background: #0c1322; }
.work-img img, .work-img .scene { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover .work-img img { transform: scale(1.05); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.work h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.work p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.work-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: #c2c8d4; }
.work-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: background .2s, border-color .2s, color .2s; }
.work:hover .work-arrow { background: var(--grad); color: #1b1307; border-color: transparent; }

/* Блок с цифрами */
.cta { position: relative; overflow: hidden; padding: 60px 0; border-top: 1px solid var(--line2); }
.cta-bg { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6, 10, 20, .55), rgba(6, 10, 20, .15) 60%, rgba(6, 10, 20, .5)),
  radial-gradient(700px 180px at 60% 100%, rgba(255, 170, 70, .28), transparent 70%),
  url("/assets/mountains.svg") center bottom / cover no-repeat, #0a1020; }
.cta-in { position: relative; display: grid; grid-template-columns: 1.3fr 2fr 1.1fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(24px, 2.4vw, 32px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: grid; gap: 4px; padding: 0 26px; border-left: 1px solid rgba(232, 185, 90, .25); }
.stat .ico { width: 32px; height: 32px; margin-bottom: 6px; }
.stat b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: 14px; color: #c3c9d6; }
.cta-action { display: grid; gap: 14px; justify-items: center; text-align: center; }
.cta-action small { color: #c3c9d6; font-size: 13.5px; }

/* Подвал */
.footer { background: #04070e; border-top: 1px solid var(--line2); padding: 40px 0 26px; }
.footer-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 40px; }
.footer p { color: var(--muted); max-width: 340px; font-size: 14px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: start; justify-content: flex-end; }
.footer-contacts a, .footer-contacts span { display: inline-flex; align-items: center; gap: 8px; color: #d7dbe5; font-size: 15px; }
.footer-contacts a:hover { color: var(--gold-hi); }
.footer-contacts .ico { color: var(--gold); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line2); font-size: 13px; color: #6f788b; }
.footer-bottom a:hover { color: var(--gold); }

/* Окно заявки */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 34px 32px 30px; border-radius: 22px; background: linear-gradient(180deg, #0e1628, #080d19); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px #000, 0 0 80px rgba(232, 185, 90, .08); transform: translateY(16px) scale(.98); transition: transform .3s; }
.modal.open .modal-box { transform: none; }
.modal-x { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-x:hover { color: var(--gold-hi); border-color: var(--line); }
.modal h3 { margin: 0 0 8px; font-size: 26px; }
.modal .muted { margin: 0 0 20px; font-size: 14.5px; }
.lead-form { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 13px; color: #b9c0cd; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s, background .2s; }
.lead-form select option { background: #0b1222; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(232, 185, 90, .05); }
.lead-form .invalid { border-color: #e2685d; }
.lead-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.lead-form label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.lead-form label.check a { color: var(--gold); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }
.form-error { margin: 0; min-height: 0; color: #ff8f84; font-size: 14px; }
.form-error:empty { display: none; }
.modal-done { text-align: center; padding: 30px 0 10px; }
.done-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: rgba(232, 185, 90, .08); margin-bottom: 18px; }
.done-ico .ico { width: 38px; height: 38px; }
.modal-done h3 { margin-bottom: 22px; line-height: 1.3; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .plane, .stars, .phone { animation: none; } html { scroll-behavior: auto; } }

/* Страница политики */
.page-plain { background: var(--bg); }
.plain { max-width: 800px; padding-top: 40px; padding-bottom: 60px; }
.plain h1 { font-size: 30px; }
.plain p { color: #c3c9d6; }
.back { color: var(--gold); }

/* Адаптив */
@media (max-width: 1180px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-in { grid-template-columns: 1fr 1.6fr; }
  .cta-action { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .nav { gap: 22px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { height: auto; aspect-ratio: 16 / 10; max-width: 680px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .service:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .header-in { height: 70px; }
  .logo-mark { width: 44px; height: 32px; } .logo-text { font-size: 28px; }
  .header-cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 12px 24px 24px; background: rgba(6, 10, 20, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line2); font-size: 17px; }
  .nav a.active::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 18px; }
  body.menu-open .nav { transform: none; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-in { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-contacts { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .eyebrow { letter-spacing: .12em; font-size: 11.5px; }
  .plane { display: none; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .laptop { width: 86%; } .phone { width: 31%; top: 22%; border-radius: 22px; padding: 5px; } .phone-screen { border-radius: 18px; font-size: 5.5px; }
  .scr { font-size: 5.5px; } .mini-card { height: 38px; } .mini-card b { padding-top: 18px; }
  .laptop-screen { border-width: 5px; border-bottom-width: 8px; border-radius: 10px 10px 4px 4px; } .laptop-base { height: 9px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 4px 12px; }
  .service:nth-child(odd) { border-left: 0; padding-left: 0; }
  .service:nth-child(4) { border-left: 1px solid var(--line2); padding-left: 12px; }
  .works-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { border-left: 0; padding: 0 0 0 16px; border-left: 2px solid rgba(232, 185, 90, .4); }
  .stat:first-child { padding-left: 16px; border-left: 2px solid rgba(232, 185, 90, .4); }
  .cta-action { justify-items: stretch; }
  .grid2 { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 18px 22px; }
}

/* ===== Картинки из макета ===== */
.logo-img { display: block; height: 50px; width: auto; filter: drop-shadow(0 2px 12px rgba(232, 185, 90, .25)); }
.logo-img--footer { height: 44px; margin-bottom: 4px; }

/* Первый экран с фоном (Земля, ноутбук, телефон) */
.hero-top { position: relative; overflow: hidden; }
.hero-top.has-bg { display: flex; align-items: center; min-height: clamp(540px, 36vw, 700px);
  background:
    linear-gradient(90deg, rgba(5, 8, 16, .9) 0%, rgba(5, 8, 16, .55) 26%, rgba(5, 8, 16, 0) 46%),
    linear-gradient(0deg, rgba(6, 10, 20, .85) 0%, rgba(6, 10, 20, 0) 22%),
    var(--hero-bg) right center / cover no-repeat, #050912; }
.hero-top.has-bg .hero-bg { display: none; }
.hero-top.has-bg .hero-in { grid-template-columns: minmax(0, 1fr); width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero-top.has-bg .hero-copy { max-width: min(580px, 41vw); }
.hero-top.has-bg h1 { font-size: clamp(34px, 4vw, 62px); }
.hero-visual--mobile { display: none; }
.services { margin-top: 0; }

/* Нижний блок с горами */
.cta-bg { background:
  linear-gradient(180deg, rgba(6, 10, 20, .35), rgba(6, 10, 20, .1) 50%, rgba(6, 10, 20, .55)),
  linear-gradient(90deg, rgba(6, 10, 20, .55), rgba(6, 10, 20, 0) 35%, rgba(6, 10, 20, 0) 70%, rgba(6, 10, 20, .35)),
  var(--cta-bg, url("/assets/mountains.svg")) center bottom / cover no-repeat, #0a1020; }

/* Карточки портфолио — вытянутые, как в макете */
.work-img { aspect-ratio: 2.15 / 1; }
.work-img img { object-position: center top; }

@media (max-width: 1100px) {
  .hero-top.has-bg { display: block; min-height: 0; background: #050912; }
  .hero-top.has-bg .hero-bg { display: block; }
  .hero-top.has-bg .hero-bg .earth, .hero-top.has-bg .hero-bg .plane { display: none; }
  .hero-top.has-bg .hero-in { padding-top: 40px; padding-bottom: 24px; gap: 28px; }
  .hero-top.has-bg .hero-copy { max-width: none; }
  .hero-visual--mobile { display: block; height: auto; margin: 0 -24px; }
  .hero-visual--mobile img { width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 92%, transparent), linear-gradient(0deg, transparent 0, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 92%, transparent); }
}
@media (max-width: 860px) {
  .logo-img { height: 40px; }
  .cta-bg { background:
    linear-gradient(180deg, rgba(6, 10, 20, .7), rgba(6, 10, 20, .35) 60%, rgba(6, 10, 20, .6)),
    var(--cta-bg, url("/assets/mountains.svg")) center bottom / auto 100% no-repeat, #0a1020; }
}
@media (max-width: 560px) {
  .hero-visual--mobile { margin: 0 -16px; }
}
.hero-top.has-bg h1 { font-size: clamp(34px, 3.7vw, 60px); }
@media (min-width: 1101px) and (max-width: 1400px) {
  .hero-top.has-bg { min-height: 500px; }
  .hero-top.has-bg .hero-copy { max-width: 35vw; }
  .hero-top.has-bg h1 { font-size: 3.3vw; }
  .hero-top.has-bg .lead { font-size: 16px; margin-bottom: 26px; }
  .hero-top.has-bg .btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
  .hero-top.has-bg .hero-in { padding-top: 36px; padding-bottom: 36px; }
}
/* Затемнение под текстом двигается вместе с колонкой текста (важно на широких мониторах) */
.hero-top.has-bg { background:
    linear-gradient(90deg, rgba(5, 8, 16, .92) 0, rgba(5, 8, 16, .88) max(0px, calc(50% - 620px)), rgba(5, 8, 16, .5) calc(50% - 90px), rgba(5, 8, 16, 0) calc(50% + 110px)),
    linear-gradient(0deg, rgba(6, 10, 20, .85) 0%, rgba(6, 10, 20, 0) 22%),
    var(--hero-bg) right center / cover no-repeat, #050912; }
@media (min-width: 1401px) {
  .hero-top.has-bg .hero-copy { max-width: 540px; }
  .hero-top.has-bg h1 { font-size: 56px; }
}
@media (max-width: 1100px) { .hero-top.has-bg { background: #050912; } }


/* ===== Отдельные страницы (версия 1.3) ===== */
.service { color: inherit; }
.service:focus-visible { outline-offset: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.footer-nav a { color: #c3c9d6; font-size: 14.5px; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-in { grid-template-columns: 1fr auto 1.3fr; }

/* Шапка внутренней страницы */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line2); }
.page-head-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 360px at 85% 0%, rgba(232, 185, 90, .12), transparent 60%),
  radial-gradient(800px 420px at 0% 0%, rgba(40, 70, 130, .28), transparent 60%),
  linear-gradient(180deg, #050912, #081024 70%, #070c18); }
.page-head-in { position: relative; padding-top: 34px; padding-bottom: 44px; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.page-head .lead { margin: 0; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: #c3c9d6; } .crumbs a:hover { color: var(--gold-hi); }
.crumbs [aria-current] { color: var(--gold); }

/* Баннер-картинка (кликабельная — открывает заявку) */
.banner-sec { padding: 36px 0 8px; }
.banner { display: block; width: 100%; padding: 0; border: 1px solid var(--line2); border-radius: 22px; overflow: hidden; background: #0a1020; cursor: pointer;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transition: transform .3s, border-color .3s, box-shadow .3s; }
.banner:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(232, 185, 90, .2); }
.banner img { width: 100%; height: auto; }

/* Список услуг */
.svc-list-sec { padding: 36px 0 64px; }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 185, 90, .18); }
.svc-card-img { aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background:
  radial-gradient(260px 140px at 50% 110%, rgba(232, 185, 90, .18), transparent 70%), linear-gradient(160deg, #0f1a31, #080d19); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .svc-card-img img { transform: scale(1.04); }
.svc-card-ico { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); background: rgba(232, 185, 90, .06); }
.svc-card-ico .ico { width: 42px; height: 42px; }
.svc-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.svc-card-body h2 { margin: 0; font-size: 20px; }
.svc-card-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 14.5px; }

/* Страница услуги */
.svc-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-top: 34px; padding-bottom: 48px; }
.svc-hero-in.no-img { grid-template-columns: minmax(0, 1fr); }
.svc-hero-copy .lead { margin-bottom: 28px; }
.svc-hero-img { display: block; padding: 0; border: 1px solid var(--line2); border-radius: 22px; overflow: hidden; background: #0a1020; cursor: pointer;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px rgba(232, 185, 90, .08); transition: transform .3s, border-color .3s; }
.svc-hero-img:hover { transform: translateY(-3px); border-color: var(--line); }
.svc-hero-img img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.svc-content { padding: 52px 0 60px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.prose { font-size: 16.5px; color: #cdd3de; max-width: 780px; }
.prose h2 { margin: 34px 0 14px; font-size: clamp(22px, 2.2vw, 28px); color: var(--text); line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(232, 185, 90, .5); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }
.svc-aside { position: sticky; top: 108px; }
.aside-card { display: grid; gap: 12px; padding: 26px 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #0e1628, #080d19); box-shadow: 0 30px 60px -30px #000; }
.aside-card h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.aside-card .muted { margin: 0 0 6px; font-size: 14px; }
.aside-card .eyebrow { margin: 0; }
.aside-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #d7dbe5; padding-top: 4px; }
.aside-phone:hover { color: var(--gold-hi); }
.svc-others { padding: 48px 0 60px; border-top: 1px solid var(--line2); background: linear-gradient(180deg, #070c18, #060a14); }
.others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.other { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--card); transition: border-color .25s, transform .25s; }
.other:hover { border-color: var(--line); transform: translateY(-3px); }
.other:hover b { color: var(--gold-hi); }
.other b { font-size: 16px; }
.other span { font-size: 13.5px; color: var(--muted); }

/* Блок AI-агента на главной */
.promo { padding: 64px 0; border-top: 1px solid var(--line2); background:
  radial-gradient(700px 420px at 20% 50%, rgba(232, 185, 90, .10), transparent 65%), #060a14; }
.promo-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.promo-img { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px #000, 0 0 70px rgba(232, 185, 90, .12); transition: transform .3s; }
.promo-img:hover { transform: translateY(-4px); }
.promo-img img { width: 100%; height: auto; }
.promo h2 { margin: 0 0 18px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }

/* Портфолио на отдельной странице */
.works--page { padding-top: 40px; border-top: 0; }
.works-grid--page { grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* О нас */
.about { padding: 52px 0 64px; }
.about-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-img img { border-radius: 20px; border: 1px solid var(--line2); }
.about-side { display: grid; gap: 22px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #0e1628, #080d19); }
.about-stats { display: grid; gap: 20px; }
.about-stats .stat { padding: 0 0 0 18px; border-left: 2px solid rgba(232, 185, 90, .4); }
.about-side .muted { margin: 0; font-size: 14.5px; }
.about-side a { color: var(--gold); }

/* Контакты */
.contacts { padding: 48px 0 70px; }
.contacts-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--card); transition: border-color .25s; }
a.contact-card:hover { border-color: var(--line); }
a.contact-card:hover b { color: var(--gold-hi); }
.contact-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: rgba(232, 185, 90, .06); }
.contact-card small { display: block; font-size: 12.5px; color: var(--muted); }
.contact-card b { font-size: 15.5px; word-break: break-word; transition: color .2s; }
.contact-form { padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, #0e1628, #080d19); box-shadow: 0 40px 100px -40px #000; }
.contact-form h2 { margin: 0 0 8px; font-size: 26px; }
.contact-form .muted { margin: 0 0 20px; font-size: 14.5px; }
.plain-sec { padding: 10px 0 60px; }
.plain-sec .plain { padding-top: 30px; }

@media (max-width: 1100px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; max-width: 520px; }
  .works-grid--page { grid-template-columns: repeat(2, 1fr); }
  .contacts-in { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-contacts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .svc-hero-in, .promo-in, .about-in { grid-template-columns: 1fr; gap: 30px; }
  .promo-img { max-width: 560px; }
}
@media (max-width: 860px) {
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-list, .works-grid--page, .contact-cards { grid-template-columns: 1fr; }
  .page-head-in { padding-top: 24px; padding-bottom: 32px; }
  .banner { border-radius: 14px; }
  .contact-form { padding: 24px 18px; }
  .promo { padding: 44px 0; }
}
.svc-hero-img { justify-self: end; max-width: 100%; }
.svc-hero-img img { width: auto; max-width: 100%; }
@media (max-width: 1020px) { .svc-hero-img { justify-self: start; } }

/* =====================================================================
   Версия 1.4: компактные размеры и единый стиль карточек на всех страницах
   ===================================================================== */
:root { --card-bg: linear-gradient(180deg, rgba(20, 29, 50, .78), rgba(10, 16, 30, .82)); --card-r: 16px; }
body { font-size: 15px; }
.btn { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.header-in { height: 72px; }
.logo-img { height: 42px; }
.lead { font-size: 16px; margin-bottom: 26px; }
.eyebrow { font-size: 11.5px; margin-bottom: 10px; }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; text-align: left; }

/* Общая карточка */
.step, .adv, .svc-card, .work, .other, .contact-card, .aside-card, .faq-item, .calc, .doc-card,
.svc-content .prose, .about .prose, .about-side, .contact-form {
  position: relative; background: var(--card-bg); border: 1px solid var(--line2); border-radius: var(--card-r);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9); }
.step::before, .adv::before, .svc-card::before, .other::before, .contact-card::before, .calc::before, .doc-card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 90, .55), transparent); opacity: .5; transition: opacity .3s; }
.step:hover::before, .adv:hover::before, .svc-card:hover::before, .other:hover::before, .contact-card:hover::before { opacity: 1; }
.step, .adv, .other, .contact-card { transition: transform .3s, border-color .3s, box-shadow .3s; }
.step:hover, .adv:hover, .other:hover, a.contact-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 24px 44px -26px #000, 0 0 0 1px rgba(232, 185, 90, .12); }

/* Секции */
.sec { padding: 56px 0; border-top: 1px solid var(--line2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2, .section-head h2, .cta h2, .promo h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; max-width: 560px; }
.sec-lead { margin: 0; max-width: 440px; color: var(--muted); font-size: 14.5px; }
.section-head { margin-bottom: 22px; }

/* Первый экран */
.hero-top.has-bg { min-height: clamp(440px, 31vw, 580px); }
.hero-top.has-bg h1, .hero h1 { font-size: clamp(28px, 3.1vw, 44px); margin-bottom: 16px; }
@media (min-width: 1401px) { .hero-top.has-bg h1 { font-size: 44px; } .hero-top.has-bg .hero-copy { max-width: 500px; } }
@media (min-width: 1101px) and (max-width: 1400px) { .hero-top.has-bg { min-height: 440px; } .hero-top.has-bg h1 { font-size: 2.9vw; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #d7dbe5;
  background: rgba(6, 10, 20, .55); border: 1px solid rgba(232, 185, 90, .25); backdrop-filter: blur(6px); }
.hero-badges .ico { width: 15px; height: 15px; }
.services { padding: 20px 0 26px; }
.service b { font-size: 15px; } .service span { font-size: 13px; } .service .ico { width: 26px; height: 26px; }

/* Шапка внутренних страниц */
.page-head-in { padding-top: 26px; padding-bottom: 32px; }
.page-head h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.page-head .lead { font-size: 15.5px; max-width: 680px; }
.crumbs { margin-bottom: 16px; font-size: 13px; }

/* Этапы работы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { padding: 20px 20px 18px; display: grid; gap: 6px; align-content: start; }
.step-n { font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 6px; color: transparent; -webkit-text-stroke: 1px rgba(232, 185, 90, .7); }
.step b { font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Преимущества */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adv { padding: 20px; display: grid; gap: 6px; align-content: start; }
.adv-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px; border: 1px solid var(--line); background: rgba(232, 185, 90, .07); }
.adv-ico .ico { width: 22px; height: 22px; }
.adv-n { position: absolute; top: 16px; right: 18px; font-size: 12px; font-weight: 700; color: rgba(232, 185, 90, .45); letter-spacing: .1em; }
.adv b { font-size: 16px; }
.adv p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Калькулятор */
.sec-calc { background: radial-gradient(700px 300px at 80% 0%, rgba(232, 185, 90, .07), transparent 70%); }
.calc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); overflow: hidden; }
.calc-form { display: grid; gap: 20px; padding: 24px; }
.calc-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #c3c9d6; }
.calc-label b { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--line); }
.chip.on { background: var(--grad); color: #1b1307; border-color: transparent; font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg-btn { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; transition: border-color .2s, background .2s; }
.seg-btn b { font-size: 14px; } .seg-btn small { font-size: 12px; color: var(--muted); }
.seg-btn.on { border-color: var(--gold); background: rgba(232, 185, 90, .09); }
input[type=range][data-units] { width: 100%; height: 6px; border-radius: 6px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--p, 15%), rgba(255, 255, 255, .1) var(--p, 15%)); }
input[type=range][data-units]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff3c9; border: 3px solid var(--gold); box-shadow: 0 0 12px rgba(232, 185, 90, .6); }
input[type=range][data-units]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff3c9; border: 3px solid var(--gold); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold); }
.opt em { font-style: normal; color: var(--gold); font-size: 12.5px; }
.opt:has(input:checked) { border-color: var(--gold); background: rgba(232, 185, 90, .08); }
.calc-result { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: rgba(4, 7, 14, .55); border-left: 1px solid var(--line2); }
.calc-result > small { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
.calc-sum { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-sum span { display: block; }
.calc-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.calc-list li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line2); }
.calc-list span { color: var(--muted); } .calc-list b { font-weight: 600; text-align: right; }
.calc-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Частые вопросы */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.faq-in .sec-head { position: sticky; top: 100px; display: block; }
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: transform .25s, background .25s; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold); transform: translate(-50%, -50%); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] { border-color: var(--line); }
.faq-item[open] .faq-x { transform: rotate(45deg); background: rgba(232, 185, 90, .1); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: #c3c9d6; font-size: 14px; line-height: 1.6; }

/* Блок AI на главной */
.promo { padding: 52px 0; }
.promo-in { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 44px; }
.promo-img { border-radius: var(--card-r); }
.promo .lead { font-size: 15.5px; max-width: 560px; }

/* Портфолио */
.works { padding: 52px 0 56px; }
.works-grid { gap: 14px; }
.work { border-radius: var(--card-r); }
.work h3 { font-size: 15px; } .work p { font-size: 12.8px; }
.works-grid--page { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Услуги: баннер и карточки */
.banner-sec { padding: 28px 0 0; }
.banner { max-width: 1000px; margin: 0 auto; border-radius: var(--card-r); }
.svc-list-sec { padding: 28px 0 56px; }
.svc-list { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.svc-card { border-radius: var(--card-r); }
.svc-card-img { aspect-ratio: auto; height: 150px; }
.svc-card-ico { width: 64px; height: 64px; } .svc-card-ico .ico { width: 30px; height: 30px; }
.svc-card-body { gap: 6px; padding: 16px 18px 18px; }
.svc-card-body h2 { font-size: 17px; }
.svc-card-body p { font-size: 13.5px; }
.svc-card-mini { display: none; }
.more { font-size: 13.5px; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.feat span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; color: #e6d3a6; background: rgba(232, 185, 90, .08); border: 1px solid rgba(232, 185, 90, .22); }
.svc-hero .feat { margin: -8px 0 22px; }

/* Страница услуги */
.svc-hero-in { gap: 32px; padding-top: 26px; padding-bottom: 36px; }
.svc-hero-img { border-radius: var(--card-r); }
.svc-hero-img img { max-height: 360px; }
.svc-content { padding: 40px 0 48px; }
.svc-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.prose { font-size: 15px; }
.svc-content .prose, .about .prose, .doc-card { padding: 28px 30px; max-width: none; }
.prose h2 { font-size: clamp(19px, 1.8vw, 22px); margin: 26px 0 10px; }
.prose ul { gap: 8px; }
.aside-card { padding: 22px 20px; gap: 10px; border-color: var(--line); }
.aside-card h2 { font-size: 19px; }
.aside-badges { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line2); display: grid; gap: 8px; font-size: 13px; color: #c3c9d6; }
.aside-badges li { display: flex; gap: 8px; align-items: center; }
.aside-badges .ico { width: 15px; height: 15px; flex: none; }
.svc-others { padding: 44px 0 52px; }
.other { padding: 16px 18px; border-radius: var(--card-r); }
.other b { font-size: 15px; } .other span { font-size: 13px; }

/* О нас, контакты, документы */
.about { padding: 40px 0 48px; }
.about-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.about-side { padding: 24px; }
.about-stats .stat b { font-size: 26px; }
.contacts { padding: 36px 0 52px; }
.contacts-in { gap: 24px; }
.contact-card { padding: 16px; border-radius: var(--card-r); }
.contact-ico { width: 40px; height: 40px; }
.contact-form { padding: 24px; border-radius: var(--card-r); border-color: var(--line); }
.contact-form h2 { font-size: 22px; }
.plain-sec { padding: 28px 0 52px; }
.doc-card { max-width: 860px; }

/* Нижний блок с цифрами */
.cta { padding: 44px 0; }
.stat b { font-size: clamp(22px, 2vw, 28px); }
.stat .ico { width: 26px; height: 26px; }
.stat span { font-size: 13px; }

/* Окно заявки */
.modal-box { padding: 28px 26px 24px; border-radius: 18px; }
.modal h3 { font-size: 22px; }
.lead-form { gap: 12px; }
.lead-form input, .lead-form select, .lead-form textarea { padding: 10px 13px !important; font-size: 14.5px !important; border-radius: 10px !important; }

/* Подвал */
.footer { padding: 40px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px 32px; }
.footer-brand p { margin: 10px 0 14px; color: var(--muted); font-size: 13.5px; max-width: 320px; }
.footer-brand .footer-contacts { display: grid; gap: 8px; justify-content: start; }
.footer-brand .footer-contacts a, .footer-brand .footer-contacts span { font-size: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #d7dbe5; }
.footer-social a:hover { color: var(--gold-hi); border-color: var(--gold); }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-col a, .footer-col .link-btn { font-size: 14px; color: #b9c0cd; transition: color .2s; }
.footer-col a:hover, .footer-col .link-btn:hover { color: var(--gold-hi); }
.footer-grid .footer-bottom { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line2); font-size: 12.5px; color: #6f788b; }

/* Cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 420px; padding: 16px 18px; border-radius: 16px; background: rgba(10, 16, 30, .96);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px #000; backdrop-filter: blur(10px); transform: translateY(20px); opacity: 0; transition: transform .3s, opacity .3s; }
.cookie.show { transform: none; opacity: 1; }
.cookie p { margin: 0 0 12px; font-size: 13px; color: #c3c9d6; line-height: 1.5; }
.cookie a { color: var(--gold); }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .steps, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line2); }
  .faq-in { grid-template-columns: 1fr; gap: 0; }
  .faq-in .sec-head { position: static; }
  .promo-in { grid-template-columns: 1fr; }
  .promo-img { max-width: 420px; }
  .about-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .header-in { height: 64px; } .nav { top: 64px; } }
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .sec, .works, .promo { padding: 40px 0; }
  .steps, .adv-grid { grid-template-columns: 1fr; }
  .step, .adv { padding: 16px; }
  .calc-form, .calc-result { padding: 18px; }
  .svc-content .prose, .about .prose, .doc-card { padding: 20px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .hero-top.has-bg h1, .hero h1 { font-size: 28px; }
  .svc-card-img { height: 130px; }
}
.svc-list { grid-template-columns: repeat(3, 1fr); }
.banner { max-width: none; }
.hero-badges { gap: 6px; margin-top: 18px; }
.hero-badges li { padding: 5px 10px; font-size: 12px; }
@media (max-width: 1020px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } }

/* =====================================================================
   Версия 1.5: новые блоки (пакеты, сравнение, отзывы, команда, бегущая строка) и анимации
   ===================================================================== */
/* Телефон в шапке */
.header-phone { display: none; line-height: 1.2; text-align: right; }
.header-phone b { display: block; font-size: 14.5px; font-weight: 700; }
.header-phone small { font-size: 11.5px; color: var(--muted); }
.header-phone:hover b { color: var(--gold-hi); }
@media (min-width: 1280px) { .header-phone { display: block; } .nav { gap: 28px; } }

/* Бегущая строка */
.marquee { position: relative; overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: rgba(232, 185, 90, .03);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: 15px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: #d7dbe5; }
.marquee i { font-style: normal; color: var(--gold); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Пакеты и цены */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--line2);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9); transition: transform .35s, border-color .3s, box-shadow .3s; }
.pkg:hover { border-color: var(--line); box-shadow: 0 30px 50px -28px #000; }
.pkg-name { font-size: 17px; }
.pkg-price { font-size: 25px; font-weight: 800; line-height: 1.15; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-term { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pkg ul { list-style: none; margin: 6px 0 14px; padding: 12px 0 0; border-top: 1px solid var(--line2); display: grid; gap: 8px; font-size: 13.5px; color: #c3c9d6; flex: 1; align-content: start; }
.pkg li { position: relative; padding-left: 24px; }
.pkg li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800;
  color: #1b1307; background: var(--grad); }
.pkg-hit { position: absolute; top: -11px; left: 20px; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1b1307; background: var(--grad);
  box-shadow: 0 6px 18px -4px rgba(232, 185, 90, .6); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pkg--hit { border: 1px solid transparent;
  background: linear-gradient(180deg, #121c33, #0a101e) padding-box,
    conic-gradient(from var(--ang), rgba(232, 185, 90, .18), #ffe3a3 10%, rgba(232, 185, 90, .18) 25%, rgba(232, 185, 90, .18) 60%, #e8b95a 70%, rgba(232, 185, 90, .18) 85%) border-box;
  animation: spinBorder 6s linear infinite; box-shadow: 0 30px 60px -30px #000, 0 0 50px -10px rgba(232, 185, 90, .25); }
@keyframes spinBorder { to { --ang: 360deg; } }

/* Сравнение */
.cmp { display: grid; gap: 18px; }
.cmp-switch { position: relative; justify-self: center; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 7, 14, .6); }
.cmp-switch button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.cmp-switch button.on { color: #1b1307; }
.cmp-knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--grad); transition: transform .45s cubic-bezier(.6, .1, .2, 1.2), background .3s; box-shadow: 0 6px 20px -6px rgba(232, 185, 90, .6); }
.cmp[data-side="them"] .cmp-knob { transform: translateX(100%); background: linear-gradient(135deg, #ff9d8f, #e2685d); box-shadow: 0 6px 20px -6px rgba(226, 104, 93, .6); }
.cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.cmp-col { position: relative; padding: 22px; border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--line2); transition: transform .5s, opacity .5s, filter .5s, border-color .5s, box-shadow .5s; }
.cmp-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; min-height: 32px; }
.cmp-logo { height: 28px !important; }
.cmp-col ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.cmp-col li { display: flex; gap: 10px; align-items: flex-start; }
.cmp-col i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; margin-top: 1px; }
.cmp-col i.ok { background: var(--grad); color: #1b1307; } .cmp-col i.ok::before { content: "✓"; }
.cmp-col i.no { background: rgba(226, 104, 93, .15); color: #ff8f84; border: 1px solid rgba(226, 104, 93, .4); } .cmp-col i.no::before { content: "✕"; }
.cmp-them ul { margin-bottom: 0; }
.cmp-us { border-color: var(--line); box-shadow: 0 30px 60px -30px #000, 0 0 60px -20px rgba(232, 185, 90, .3); }
.cmp-them { opacity: .6; filter: grayscale(.6); transform: scale(.97); }
.cmp[data-side="them"] .cmp-them { opacity: 1; filter: none; transform: scale(1.02); border-color: rgba(226, 104, 93, .45); box-shadow: 0 30px 60px -30px #000, 0 0 60px -20px rgba(226, 104, 93, .35); }
.cmp[data-side="them"] .cmp-us { opacity: .6; filter: grayscale(.4); transform: scale(.97); box-shadow: none; }
.cmp[data-side="them"] .cmp-them li { animation: shake .5s both; }
.cmp[data-side="them"] .cmp-them li:nth-child(2) { animation-delay: .05s; } .cmp[data-side="them"] .cmp-them li:nth-child(3) { animation-delay: .1s; }
.cmp[data-side="them"] .cmp-them li:nth-child(4) { animation-delay: .15s; } .cmp[data-side="them"] .cmp-them li:nth-child(5) { animation-delay: .2s; } .cmp[data-side="them"] .cmp-them li:nth-child(6) { animation-delay: .25s; }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.cmp-vs { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-weight: 800; font-size: 15px; color: var(--gold); border: 1px solid var(--line); background: #0a101e;
  animation: vsPulse 2.4s ease-in-out infinite; }
@keyframes vsPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 90, .35); } 50% { box-shadow: 0 0 0 12px rgba(232, 185, 90, 0); } }

/* Отзывы */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.review { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--line2); position: relative; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.stars b { margin-left: 8px; color: var(--text); letter-spacing: 0; font-size: 13.5px; }
.review blockquote { margin: 0; font-size: 14px; color: #c3c9d6; line-height: 1.6; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.review figcaption a { margin-left: auto; font-size: 12.5px; color: var(--gold); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #1b1307; font-weight: 800; }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.member { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; text-align: center; border-radius: var(--card-r); background: var(--card-bg); border: 1px solid var(--line2); position: relative; transition: transform .35s, border-color .3s; }
.member-photo { width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; padding: 2px; background: var(--grad); }
.member-photo img, .member-photo span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member-photo span { display: grid; place-items: center; background: #0a101e; color: var(--gold); font-weight: 800; font-size: 26px; }
.member b { font-size: 15px; } .member small { font-size: 12.5px; color: var(--muted); }

/* ---------- Анимации (класс anim на body) ---------- */
.rotator { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: 15px; color: #c3c9d6; }
.rot-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4fd18b; animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 139, .6); } 70% { box-shadow: 0 0 0 9px rgba(79, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 209, 139, 0); } }
.rot-words { position: relative; display: inline-block; height: 1.5em; overflow: hidden; vertical-align: bottom; transition: width .45s ease; }
.rot-words span { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 700; color: var(--gold); transform: translateY(110%); opacity: 0; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s; }
.rot-words span.on { position: relative; transform: none; opacity: 1; }
.rot-words span.out { transform: translateY(-110%); opacity: 0; }

.scroll-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(232, 185, 90, .7); pointer-events: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--gold);
  border: 1px solid var(--line); background: rgba(10, 16, 30, .9); backdrop-filter: blur(8px); opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: #1b1307; }

.anim .header { transition: transform .35s ease, background .3s, box-shadow .3s; }
.anim .header.scrolled { background: rgba(6, 10, 20, .9); box-shadow: 0 10px 30px -18px #000; }
.anim .header.hide { transform: translateY(-100%); }
.anim .header-in { transition: height .3s; }
.anim .header.scrolled .header-in { height: 62px; }

/* Появление: карточки поднимаются с лёгким масштабом, по очереди */
.anim .reveal { transform: translateY(26px) scale(.98); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in { transform: none; }
.anim .hero-copy.reveal { transform: translateX(-30px); }
.anim .hero-copy.reveal.in { transform: none; }
.anim .promo-img.reveal { transform: perspective(900px) rotateY(12deg) scale(.94); }
.anim .promo-img.reveal.in { transform: none; }

/* Заголовок раздела: золотая линия вырастает */
.anim .sec-head h2, .anim .section-head h2 { position: relative; padding-bottom: 12px; }
.anim .sec-head h2::after, .anim .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: var(--grad); transition: width 1s .3s cubic-bezier(.2, .7, .2, 1); }
.anim .seen .sec-head h2::after, .anim .seen .section-head h2::after { width: 56px; }

/* Номера этапов «заливаются» золотом по очереди */
.anim .seen .step-n { animation: numFill .8s both; }
.anim .seen .step:nth-child(2) .step-n { animation-delay: .25s; } .anim .seen .step:nth-child(3) .step-n { animation-delay: .5s; }
.anim .seen .step:nth-child(4) .step-n { animation-delay: .75s; } .anim .seen .step:nth-child(5) .step-n { animation-delay: 1s; } .anim .seen .step:nth-child(6) .step-n { animation-delay: 1.25s; }
@keyframes numFill { to { color: var(--gold); text-shadow: 0 0 18px rgba(232, 185, 90, .45); } }

/* Подсветка под курсором */
.anim :is(.step, .adv, .svc-card, .work, .other, .pkg, .contact-card, .cmp-col, .review, .member, .faq-item, .aside-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 185, 90, .11), transparent 65%); }
.anim :is(.step, .adv, .svc-card, .work, .other, .pkg, .contact-card, .cmp-col, .review, .member, .faq-item, .aside-card):hover::after { opacity: 1; }
.anim .work, .anim .svc-card { transition: transform .35s ease-out, border-color .3s, box-shadow .3s; }

/* Блик на золотых кнопках */
.anim .btn-gold { position: relative; overflow: hidden; transition: transform .25s ease-out, box-shadow .2s; }
.anim .btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Золотой текст переливается */
.anim .gold-text, .anim .pkg-price, .anim .calc-sum { background-size: 200% auto; animation: goldFlow 6s linear infinite; }
@keyframes goldFlow { to { background-position: 200% center; } }

/* Параллакс фона первого экрана */
.anim .hero-top.has-bg { background-position: 0 0, 0 0, calc(100% + var(--px, 0px)) calc(50% + var(--py, 0px)); transition: background-position .6s ease-out; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in, .cta-in { z-index: 1; }

/* Иконки услуг покачиваются при наведении */
.anim .service:hover .ico, .anim .other:hover .ico, .anim .adv:hover .adv-ico { animation: wiggle .6s ease; }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.1); } }
.anim .adv-ico { transition: background .3s, box-shadow .3s; }
.anim .adv:hover .adv-ico { background: rgba(232, 185, 90, .18); box-shadow: 0 0 20px rgba(232, 185, 90, .3); }

@media (max-width: 1020px) {
  .cmp-cols { grid-template-columns: 1fr; }
  .cmp-vs { display: none; }
  .cmp:not([data-side="them"]) .cmp-them, .cmp[data-side="them"] .cmp-us { display: none; }
  .cmp-col { opacity: 1 !important; filter: none !important; transform: none !important; }
}
@media (max-width: 560px) {
  .cmp-switch button { padding: 0 12px; font-size: 12.5px; }
  .pkg-price { font-size: 23px; }
  .to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .pkg--hit, .anim .btn-gold::after, .anim .gold-text, .cmp-vs, .rot-dot { animation: none !important; }
  .anim .reveal { transform: none; }
}

/* =====================================================================
   Версия 1.6: порядок в текстах — единое выравнивание заголовков, компактный блок AI
   ===================================================================== */
h1, h2, h3 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

/* Заголовки разделов — всегда по центру: надпись, заголовок, пояснение под ним */
.sec-head { display: block; text-align: center; max-width: 760px; margin: 0 auto 28px; }
.sec-head h2 { max-width: none; margin: 0 auto; }
.sec-head .eyebrow { margin-bottom: 8px; }
.sec-lead { max-width: 620px; margin: 12px auto 0; font-size: 15px; }
.anim .sec-head h2::after { left: 50%; transform: translateX(-50%); }
.sec-more { display: flex; justify-content: center; margin-top: 24px; }
.works .sec-head { margin-bottom: 24px; }

/* Первый экран: плашки — аккуратная строка с галочками, без «таблеток» */
.hero-badges { gap: 6px 18px; margin-top: 20px; }
.hero-badges li { padding: 0; border: 0; background: none; backdrop-filter: none; font-size: 13px; color: #c9cfdb; gap: 7px; }
.hero-badges li::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; font-size: 10px; font-weight: 800; color: #1b1307; background: var(--grad); }
.hero-copy .lead { max-width: 520px; }

/* Блок AI-агента — одна аккуратная карточка, картинка не больше 280 px */
.promo { padding: 48px 0; }
.promo-in { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; max-width: 1040px; margin: 0 auto; padding: 22px; align-items: center;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card-bg); box-shadow: 0 30px 60px -36px #000, 0 0 60px -30px rgba(232, 185, 90, .25); }
.promo-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo h2 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 12px; }
.promo .lead { font-size: 15px; margin-bottom: 20px; }
.promo .hero-btns { gap: 10px; }
.promo .btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }

/* Частые вопросы — одна колонка по центру */
.faq-in { display: block; max-width: 860px; margin: 0 auto; }
.faq-in .sec-head { position: static; }

/* Нижний блок с цифрами — без переносов в цифрах */
.cta h2 { font-size: clamp(20px, 2vw, 26px); }
.stat b { white-space: nowrap; font-size: clamp(20px, 1.8vw, 26px); }
.stats { gap: 0; }
.stat { padding: 0 18px; }

/* Шапка страницы услуги: текст и картинка по центру по высоте */
.svc-hero-in { align-items: center; }
.svc-hero-copy .lead { margin-bottom: 18px; }

@media (max-width: 1020px) {
  .promo-in { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .promo-in { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .promo-img { aspect-ratio: auto; height: 210px; max-width: none; }
  .promo-img img { object-position: 70% 30%; }
  .promo .hero-btns .btn { flex: 1 1 auto; }
  .sec-head { text-align: left; margin-left: 0; }
  .sec-lead { margin-left: 0; }
  .anim .sec-head h2::after { left: 0; transform: none; }
  .hero-badges { flex-direction: column; gap: 8px; }
}

/* Карточки услуг — единый вид: иконка, название, описание, преимущества (без обрезанных картинок) */
.svc-card-body { padding: 22px 22px 20px; gap: 8px; }
.svc-card-body .svc-card-ico { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; }
.svc-card-body .svc-card-ico .ico { width: 24px; height: 24px; }
.anim .svc-card:hover .svc-card-ico { animation: wiggle .6s ease; }
/* Баннер в «Услугах» — не во всю ширину */
.banner { max-width: 900px; }
/* Пакеты: 4 в ряд, на планшете 2 × 2, на телефоне по одному */
.pkg-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pkg-grid { grid-template-columns: 1fr; } }
/* Контакты: карточки одной колонкой, рядом с формой */
.contact-cards { grid-template-columns: 1fr; align-content: start; }
.contact-note { padding: 18px; border-radius: var(--card-r); border: 1px dashed var(--line); background: rgba(232, 185, 90, .04); }
.contact-note b { display: block; margin-bottom: 10px; font-size: 14.5px; }
.contact-note .hero-badges { flex-direction: column; gap: 8px; margin: 0; }
@media (min-width: 1101px) { .contacts-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
/* Команда и отзывы — по центру, даже если карточек мало */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; }
.rev-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .rev-grid { grid-template-columns: 1fr; } }
