/* Nominis Group — редизайн 2026. Палитра и шрифты оригинального сайта:
   тёмный графит #252D33 / #313E49 / #3C4F5C, золото #CC9C6C / #E0AF82 / #F2C097,
   сталь #93ABB2 / #76919B, светлый #F7F7F7. Заголовки — Ubuntu, текст — Roboto. */

:root {
  --ink: #252D33;
  --ink-2: #313E49;
  --ink-3: #3C4F5C;
  --gold: #CC9C6C;
  --gold-2: #E0AF82;
  --gold-3: #F2C097;
  --gold-d: #9D815E;
  --steel: #93ABB2;
  --steel-2: #76919B;
  --light: #F7F7F7;
  --line: #E8E8E8;
  --text: #252525;
  --muted: #6b7680;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 16px/1.6 Roboto, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Ubuntu, Roboto, sans-serif; font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
::selection { background: var(--gold-2); color: var(--ink); }

/* ---------- Полоса прогресса чтения ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-d), var(--gold-3)); }

/* ---------- Кнопки ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1 Ubuntu, sans-serif; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before { /* блик, пробегающий при наведении */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); box-shadow: 0 10px 30px -10px rgba(204,156,108,.7); }
.btn--ghost { border-color: rgba(247,247,247,.35); color: var(--light); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-3); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--wide { width: 100%; justify-content: center; }
.arrow { width: 16px; height: 1px; background: currentColor; position: relative; transition: width .3s var(--ease); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 24px; }

/* ---------- Подписи разделов ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 12px/1 Ubuntu, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow .dot { display: none; }
.eyebrow--dark { color: var(--gold); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow .dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(224,175,130,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224,175,130,0); } 100% { box-shadow: 0 0 0 0 rgba(224,175,130,0); } }

.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; color: var(--ink); }
.h2--gold { color: var(--gold); }
.h2--light { color: var(--light); }
.section-head { margin-bottom: 56px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head__note { max-width: 380px; color: var(--muted); margin: 0; }
.section-head__note--light { color: var(--steel); }
.num { font: 500 13px/1 Ubuntu, sans-serif; letter-spacing: .1em; color: var(--gold); opacity: .8; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .4s var(--ease), background .4s, box-shadow .4s; }
.header__in { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .4s var(--ease); }
.header.is-solid { background: rgba(37,45,51,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header.is-solid .header__in { height: 64px; }
.header.is-hidden { transform: translateY(-100%); }
.logo img { height: 37px; width: auto; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { position: relative; color: #E8E8E8; text-decoration: none; font-size: 15px; padding: 6px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--gold-3); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; margin-inline-start: 8px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 120; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--light); transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 110; background: var(--ink); padding: 100px 24px 40px;
  display: flex; flex-direction: column; gap: 32px; clip-path: circle(0 at calc(100% - 46px) 38px);
  transition: clip-path .6s var(--ease); visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { font: 400 28px/1.2 Ubuntu, sans-serif; color: var(--light); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease); }
.menu-open .mobile-menu__nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .05s; } .menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .15s; } .menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu__nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu__mail { color: var(--gold-2); }
.menu-open { overflow: hidden; }
.menu-open .header { z-index: 115; transform: none; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 140px 0 56px; color: var(--light);
  background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.hero__bg { position: absolute; inset: -6%; z-index: -3;
  background: linear-gradient(180deg, rgba(37,45,51,.82), rgba(37,45,51,.9) 60%, var(--ink)), url("../img/astemir-almov--kgrpsetnw8-unsplash.jpg") center/cover;
  animation: kenburns 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; z-index: -1; width: 640px; height: 640px; left: var(--gx, 70%); top: var(--gy, 40%);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224,175,130,.16), transparent 65%); transition: left .6s var(--ease), top .6s var(--ease); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(56px, 8.4vw, 116px); line-height: .98; font-weight: 400; color: var(--gold); letter-spacing: -.01em; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-3) 40%, var(--gold) 60%, var(--gold-2) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.is-loaded .hero__title .line > span { transform: none; }
.hero__lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; max-width: 520px; color: #fff; margin-bottom: 36px; }
.rotator { position: relative; display: block; height: 1.45em; overflow: hidden; color: var(--gold-3); }
.rotator__word { position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%);
  transition: transform .6s var(--ease), opacity .6s; }
.rotator__word.is-on { opacity: 1; transform: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-100%); }
.rotator::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1px; width: var(--rw, 0); background: var(--gold-2); transition: width .6s var(--ease); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.hero__art .art { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Иллюстрация на тёмном фоне: светлые заливки — в графит, линии — светлее */
.hero__art [fill="#F7F7F7"], .hero__art [fill="#FFFFFF"], .hero__art [fill="#E8E8E8"] { fill: rgba(37,45,51,.92); }
.hero__art [stroke="#93ABB2"] { stroke: #b4c7cc; }

.stats { list-style: none; margin: 72px 0 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(247,247,247,.12); }
.stat b { display: block; font: 400 clamp(34px, 3.6vw, 48px)/1 Ubuntu, sans-serif; color: var(--gold-2); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 14px; color: #b9c3c8; line-height: 1.45; display: block; max-width: 220px; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border: 1px solid rgba(247,247,247,.4); border-radius: 12px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Бегущая строка ---------- */
.ticker { direction: ltr; background: var(--gold); color: var(--ink); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.ticker__track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font: 500 18px/1 Ubuntu, sans-serif; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- О агентстве ---------- */
.about { padding: 110px 0 40px; background: #fff; }
.about__card { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--light); padding: 64px; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(37,45,51,.35); }
.about__text .h2 { font-size: clamp(22px, 2.3vw, 30px); color: var(--gold); margin-bottom: 22px; font-weight: 400; line-height: 1.3; }
.about__text p { color: #4a5560; }
.band { position: relative; overflow: hidden; height: clamp(220px, 28vw, 360px); border-radius: var(--radius); }
.band img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(204,156,108,.1), transparent); mix-blend-mode: multiply; }
.band--right { width: 66%; margin-top: -40px; margin-inline-start: auto; }
.band--left { width: 66%; margin-inline-end: auto; }

/* ---------- Карточки (общее): подсветка за курсором ---------- */
.spot { position: relative; --x: 50%; --y: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(224,175,130,.16), transparent 45%); }
.spot:hover::before { opacity: 1; }

/* ---------- Преимущества ---------- */
.benefits { padding: 90px 0 110px; }
.benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.benefit { padding: 40px 40px 36px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.benefit:hover { transform: translateY(-6px); border-color: rgba(204,156,108,.5); box-shadow: 0 30px 50px -30px rgba(37,45,51,.3); }
.benefit .num { position: absolute; top: 24px; inset-inline-end: 28px; }
.benefit__icon { width: 120px; margin-bottom: 18px; }
.benefit__icon .art { width: 100%; height: auto; }
.benefit h3 { font-size: 21px; line-height: 1.3; color: var(--gold); margin-bottom: 12px; }
.benefit p { color: #555f68; font-size: 15px; margin: 0; }

/* ---------- Услуги ---------- */
.services { padding: 0 0 120px; background: linear-gradient(180deg, #fff 0, var(--light) 340px); }
.services .band { margin-bottom: 90px; }
.services--nobands { padding-top: 110px; } /* без фото-полосы сверху (SHOW_BANDS = False) */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: #fff; padding: 36px 32px 34px; min-height: 360px; display: flex; flex-direction: column; outline: none;
  transition: background .5s var(--ease); overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover::after, .service:focus-visible::after { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.service__icon { width: 84px; transition: transform .6s var(--ease); }
.service:hover .service__icon { transform: scale(1.08) rotate(-3deg); }
.service__icon .art { width: 100%; height: auto; }
.service h3 { font-size: 20px; line-height: 1.3; color: var(--gold); margin-bottom: 18px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { position: relative; padding-inline-start: 20px; font-size: 15px; color: #555f68; margin-bottom: 9px; line-height: 1.5;
  transition: transform .4s var(--ease), color .4s; }
.service li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 1px; background: var(--gold); transition: width .4s var(--ease); }
.service:hover li { color: var(--text); }
.service:hover li::before { width: 12px; }
.service:hover li:nth-child(1) { transform: translateX(4px); } .service:hover li:nth-child(2) { transform: translateX(4px); transition-delay: .05s; }
.service:hover li:nth-child(3) { transform: translateX(4px); transition-delay: .1s; }

/* ---------- Подход ---------- */
.process { position: relative; padding: 120px 0; background: var(--ink); color: var(--light); overflow: hidden; isolation: isolate; }
.process__bg { position: absolute; inset: 0; z-index: -1; opacity: .12;
  background: url("../img/back-001.jpg") center/cover; filter: grayscale(1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
.step { position: relative; padding-top: 44px; }
.step__dot { position: absolute; top: 0; inset-inline-start: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold-2); background: var(--ink); transition: background .5s, box-shadow .5s; }
.step.is-lit .step__dot { background: var(--gold-2); box-shadow: 0 0 0 6px rgba(224,175,130,.15), 0 0 24px rgba(224,175,130,.6); }
.step b { display: block; font: 400 15px/1 Ubuntu, sans-serif; color: var(--gold-2); margin-bottom: 12px; letter-spacing: .1em; }
.step h3 { font-size: 26px; color: #fff; margin-bottom: 12px; }
.step p { color: #b9c3c8; font-size: 15px; margin: 0; }
.steps-wrap { position: relative; }
.steps__line { position: absolute; inset-inline: 7px 0; top: 7px; height: 1px; background: rgba(247,247,247,.12); }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Клиенты ---------- */
.clients { padding: 120px 0; background: var(--ink-3); color: var(--light); }
.clients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
/* нижняя линия у всех, а у последнего ряда её прячет overflow сетки (margin -1px) — работает при любом числе логотипов */
.client { position: relative; border-bottom: 1px solid rgba(247,247,247,.1); margin-bottom: -1px; }
.client:not(:nth-child(3n)) { border-inline-end: 1px solid rgba(247,247,247,.1); }
.client:last-child { border-inline-end: 0; }
.client a, .client > img { display: block; }
.client img { width: 100%; max-width: 255px; margin: 0 auto; padding: 6px; transition: transform .6s var(--ease), filter .6s; filter: brightness(1) saturate(.9); }
.client::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(224,175,130,.14), transparent 60%);
  opacity: 0; transition: opacity .5s; pointer-events: none; }
.client:hover::before { opacity: 1; }
.client:hover img { transform: scale(1.06); filter: brightness(1.5) saturate(1.1); }

/* ---------- Контакты ---------- */
.contact { padding: 120px 0; background: var(--light); }
.contact__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact__text .h2 { margin-bottom: 20px; }
.contact__text p { color: #555f68; max-width: 420px; }
.contact__mail { display: inline-block; margin-top: 8px; font: 400 clamp(22px, 2.4vw, 30px)/1.2 Ubuntu, sans-serif; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 4px; }
.contact__mail:hover { background-size: 100% 1px; color: var(--gold); }
.contact__phone { display: block; margin-top: 10px; font: 400 clamp(18px, 1.8vw, 22px)/1.3 Ubuntu, sans-serif; color: var(--ink); text-decoration: none; transition: color .3s; }
.contact__phone:hover { color: var(--gold); }
.contact__addr { margin-top: 28px; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); font-style: normal; color: #4a5560; line-height: 1.6; }
.contact__addr span { display: block; font: 500 12px/1 Ubuntu, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.contact__art { width: 200px; margin-top: 48px; opacity: .9; }
.contact__art .art { width: 100%; height: auto; animation: float 6s ease-in-out infinite; }

.form { background: #fff; padding: 44px; border-radius: var(--radius); box-shadow: 0 40px 80px -50px rgba(37,45,51,.4); display: grid; gap: 22px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #cfd6da; background: transparent; padding: 22px 0 10px;
  font: 400 16px/1.4 Roboto, sans-serif; color: var(--text); outline: none; resize: vertical; transition: border-color .3s; }
.field span { position: absolute; inset-inline-start: 0; top: 22px; color: #8a949c; pointer-events: none; transition: transform .3s var(--ease), color .3s, font-size .3s; transform-origin: 0 0; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.field--area::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.78); color: var(--gold); }
.field.is-error input { border-bottom-color: #d0574b; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; color: #8a949c; margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid #d8dee2; border-radius: 40px; font-size: 14px; color: #4a5560; transition: all .3s var(--ease); }
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.04); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #6b7680; cursor: pointer; }
.consent input { accent-color: var(--gold); margin-top: 3px; }
.consent.is-error { color: #d0574b; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #b9c3c8; padding: 64px 0 0; font-size: 14px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contacts { display: grid; gap: 10px; justify-items: end; align-content: start; }
.footer__mail { color: var(--gold-2); text-decoration: none; font-size: 16px; }
.footer__phone { color: #b9c3c8; text-decoration: none; }
.footer__addr { font-style: normal; text-align: end; line-height: 1.5; color: #8f9aa1; }
.footer a:hover { color: var(--gold-3); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.to-top { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(247,247,247,.2); display: grid; place-items: center; text-decoration: none; transition: all .3s; }
.to-top:hover { border-color: var(--gold-2); transform: translateY(-3px); }

/* ---------- Иллюстрации: «рисование» линий ---------- */
[data-draw] .art [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
[data-draw] .art [fill]:not([fill="none"]) { fill-opacity: 0; transition: fill-opacity .9s ease .9s; }
[data-draw].is-drawn .art [pathLength] { animation: draw 1.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 12ms); }
[data-draw].is-drawn .art [fill]:not([fill="none"]) { fill-opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Появление блоков ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }
.reveal.is-in { opacity: 1; transform: none; }
/* фото открывается золотой шторкой */
.band.reveal { transform: none; opacity: 1; }
.band.reveal::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--gold);
  transform-origin: 100% 50%; transition: transform 1.3s var(--ease) .1s; }
.band--right.reveal::before { transform-origin: 0 50%; }
.band.reveal.is-in::before { transform: scaleX(0); }
/* ---------- Уведомления (toast) ---------- */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(380px, calc(100% - 40px)); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 18px; border-radius: 6px;
  background: #2f8a55; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45);
  animation: toast-in .4s var(--ease); transition: opacity .5s, transform .5s var(--ease); }
.toast--error { background: #c0453a; }
.toast.is-leaving { opacity: 0; transform: translateX(30px); }
.toast__text { flex: 1; }
.toast__close { background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; opacity: .8; }
.toast__close:hover { opacity: 1; }
.toasts__all { pointer-events: auto; background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }

/* ---------- Название в первом экране — фирменная надпись из логотипа (брендбук), не шрифт ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__title--mark { line-height: 0; margin-bottom: 34px; }
.hero__title--mark .line { padding-bottom: 0; }
.hero__title--mark .line > span { width: clamp(260px, 36vw, 520px); background: none !important; animation: none !important; color: inherit; }
.hero__title--mark .line:nth-child(3) > span { transition-delay: .12s; }
.hero__title--mark svg { display: block; width: 100%; height: auto; }

/* ---------- Внутренние страницы (Битрикс24) ---------- */
.page-title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; font-weight: 400; color: #fff; margin-bottom: 26px; letter-spacing: -.005em; }
.page-title .gold { color: var(--gold); }
.btn--ghost-dark { border-color: rgba(37,45,51,.25); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.services--plain { padding-top: 110px; background: var(--light); }
.service__icon--sm { width: 64px; }
.service__lead { color: var(--ink); font-size: 15px; margin: -8px 0 16px; }
.benefits--why { background: #fff; }
.benefit--plain { padding-top: 56px; }
.benefit--plain::after { content: ""; position: absolute; inset-inline-start: 40px; top: 36px; width: 36px; height: 2px; background: var(--gold); transition: width .5s var(--ease); }
.benefit--plain:hover::after { width: 72px; }

.plans { padding: 110px 0; background: #fff; }
.plans__note { display: flex; gap: 20px; align-items: center; margin-bottom: 40px; padding: 22px 28px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(204,156,108,.14), rgba(204,156,108,.04)); border-inline-start: 3px solid var(--gold); }
.plans__note p { margin: 0; color: var(--ink); font-size: 16px; }
.plans__badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink);
  font: 500 22px/1 Ubuntu, sans-serif; animation: badge 3.2s ease-in-out infinite; }
@keyframes badge { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-12deg) scale(1.08); } }
.plans__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(204,156,108,.6); box-shadow: 0 30px 50px -30px rgba(37,45,51,.3); }
.plan__name { font-size: 22px; color: var(--gold); margin-bottom: 8px; }
.plan__users { font: 500 14px/1.4 Ubuntu, sans-serif; color: var(--ink); margin-bottom: 12px; }
.plan__text { font-size: 14px; color: #555f68; flex: 1; }
.plan__price { font: 500 13px/1 Ubuntu, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); margin: 6px 0 16px;
  padding-top: 16px; border-top: 1px dashed #d8dee2; }
.plan__btn { justify-content: center; }
.plans__extra { margin: 28px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.footer__list a { text-decoration: none; color: var(--gold-2); }
.footer__legal { margin: 0; padding: 0 0 24px; font-size: 12px; color: #7f8a91; max-width: 900px; }
.qa__a p, .footer__legal { overflow-wrap: anywhere; }
:lang(ar) .plan__price { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- Партнёры (сейчас только RU) ---------- */
.partners { padding: 110px 0; background: var(--light); }
.partners__list { display: grid; gap: 24px; }
.partner { display: grid; grid-template-columns: 340px 1fr; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: 0 30px 60px -45px rgba(37,45,51,.35); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.partner:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgba(37,45,51,.4); }
.partner__logo { display: grid; place-items: center; padding: 32px; background: var(--ink-3); position: relative; overflow: hidden; }
.partner__logo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(224,175,130,.18), transparent 60%); opacity: 0; transition: opacity .5s; }
.partner:hover .partner__logo::after { opacity: 1; }
.partner__logo img { width: 100%; max-width: 260px; transition: transform .6s var(--ease), filter .6s; }
.partner:hover .partner__logo img { transform: scale(1.06); filter: brightness(1.5); }
.partner__body { padding: 40px 44px; }
.partner__label { margin: 0 0 10px; font: 500 12px/1 Ubuntu, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.partner h3 { font-size: 28px; color: var(--ink); margin-bottom: 14px; }
.partner__text { color: #4a5560; }
.partner ul { list-style: none; margin: 0 0 22px; padding: 0; }
.partner li { position: relative; padding-inline-start: 20px; margin-bottom: 8px; color: #555f68; font-size: 15px; }
.partner li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 1px; background: var(--gold); }
.partner__link { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-d); text-decoration: none; font: 500 15px/1 Ubuntu, sans-serif; }
.partner__link:hover { color: var(--gold); }
.partner__link:hover .arrow { width: 24px; }

/* ---------- Ссылка «к содержимому» для клавиатуры и экранных дикторов ---------- */
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: var(--radius);
  background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 500; transition: top .3s; }
.skip:focus { top: 12px; }

/* ---------- Переключатель языка ---------- */
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(247,247,247,.15); border-radius: 40px; }
.langs a { min-width: 34px; padding: 5px 9px; border-radius: 40px; text-align: center; text-decoration: none;
  font: 500 12px/1 Ubuntu, sans-serif; letter-spacing: .06em; color: #c9d2d6; transition: background .3s, color .3s; }
.langs a:hover { color: var(--gold-3); }
.langs a[aria-current] { background: var(--gold); color: var(--ink); }
.langs--big { align-self: flex-start; }
.langs--big a { font-size: 15px; padding: 10px 16px; letter-spacing: 0; }
.langs--foot { border-color: rgba(247,247,247,.08); }
.langs--foot a { letter-spacing: 0; font-weight: 400; font-size: 13px; }

/* ---------- Вопросы и ответы ---------- */
.faq { padding: 110px 0; background: #fff; }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 19px; line-height: 1.35; color: var(--ink); font-weight: 500; transition: color .3s; }
.qa summary:hover h3, .qa[open] summary h3 { color: var(--gold); }
.qa summary:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.qa__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d8dee2; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: var(--ink); transition: transform .4s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(180deg); border-color: var(--gold); background: var(--gold); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { color: #555f68; margin: 0; padding: 0 0 26px; max-width: 640px; }
.qa[open] .qa__a p { animation: qa-open .5s var(--ease); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Арабская версия: шрифты и правостороннее письмо ---------- */
:lang(ar) body, body:lang(ar) { font-family: "IBM Plex Sans Arabic", Roboto, system-ui, sans-serif; line-height: 1.8; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .btn, :lang(ar) .stat b, :lang(ar) .ticker span,
:lang(ar) .contact__phone, :lang(ar) .mobile-menu__nav a { font-family: "Noto Kufi Arabic", Ubuntu, sans-serif; }
:lang(ar) .h2 { line-height: 1.45; }
:lang(ar) .eyebrow, :lang(ar) .contact__addr span, :lang(ar) .btn { letter-spacing: 0; text-transform: none; }
:lang(ar) .eyebrow { font-size: 14px; }
:lang(ar) .hero__lead { line-height: 1.7; }
:lang(ar) .rotator { height: 1.7em; }
:lang(ar) .hero__title { font-family: Ubuntu, Roboto, sans-serif; }
[dir="rtl"] .hero__title, [dir="rtl"] .contact__phone { text-align: right; }
[dir="rtl"] .progress span { transform-origin: 100% 50%; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .nav a::after { transform-origin: left; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a.is-active::after { transform-origin: right; }
[dir="rtl"] .mobile-menu { clip-path: circle(0 at 46px 38px); }
.menu-open[dir="rtl"] .mobile-menu { clip-path: circle(150% at 46px 38px); }
[dir="rtl"] .service::after, [dir="rtl"] .field::after { transform-origin: right; }
[dir="rtl"] .service:hover li { transform: translateX(-4px); }
[dir="rtl"] .steps__line span { transform-origin: 100% 50%; }
[dir="rtl"] .field span { transform-origin: 100% 0; }
[dir="rtl"] .band--right.reveal::before { transform-origin: 100% 50%; }
[dir="rtl"] .band--left.reveal::before { transform-origin: 0 50%; }
[dir="rtl"] .band::after { background: linear-gradient(270deg, rgba(204,156,108,.1), transparent); }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) and (min-width: 1081px) {
  .header__in { gap: 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header .langs { margin-inline-start: auto; }
  .faq__in { grid-template-columns: 1fr; gap: 0; }
  .faq .section-head { position: static; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin: 10px auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .about__card { grid-template-columns: 1fr; padding: 44px; }
  .about__art { max-width: 420px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps__line { display: none; }
  .contact__in { grid-template-columns: 1fr; gap: 48px; }
  .contact__art { display: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__contacts { justify-items: start; }
  .footer__addr { text-align: start; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 110px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; white-space: nowrap; }
  .stat > span { font-size: 13px; }
  .section-head { margin-bottom: 36px; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about { padding-top: 64px; }
  .about__card { padding: 32px 24px; gap: 28px; }
  .band--right, .band--left { width: 100%; }
  .band--right { margin-top: 24px; }
  .benefits { padding: 64px 0 80px; }
  .benefits__grid, .services__grid { grid-template-columns: 1fr; }
  .benefit { padding: 32px 24px; }
  .service { min-height: 0; padding: 30px 24px; }
  .services .band { margin-bottom: 64px; }
  .services--nobands { padding-top: 80px; }
  .process, .clients, .contact, .faq, .plans { padding: 80px 0; }
  .services--plain { padding-top: 80px; }
  .partners { padding: 80px 0; }
  .partner { grid-template-columns: 1fr; }
  .partner__logo { padding: 20px; }
  .partner__body { padding: 28px 22px; }
  .partner h3 { font-size: 24px; }
  .plans__grid { grid-template-columns: 1fr; }
  .plans__note { flex-direction: column; align-items: flex-start; padding: 20px; }
  .header .langs a { min-width: 30px; padding: 5px 7px; }
  .footer__bottom { flex-wrap: wrap; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client:not(:nth-child(3n)) { border-inline-end: 0; }
  .client:nth-child(odd) { border-inline-end: 1px solid rgba(247,247,247,.1); }
  .client:last-child { border-inline-end: 0; }
  .form { padding: 28px 22px; }
  .footer__in { grid-template-columns: 1fr; }
  .ticker span { font-size: 15px; }
}

/* Пользователь просит меньше движения — убираем анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .band.reveal::before { display: none; }
  .hero__title .line > span { transform: none; }
  [data-draw] .art [pathLength] { stroke-dashoffset: 0; }
  [data-draw] .art [fill]:not([fill="none"]) { fill-opacity: 1; }
  html { scroll-behavior: auto; }
}
