/* eGile.kz Solutions — стили сайта по утверждённому макету.
   Тёмная тема, Onest, зелёный акцент. Без фреймворков. */

:root {
  --bg: #0a0a0a;
  --bg-raise: #0f1110;
  --card: #111312;
  --card-2: #171a18;
  --line: #1f2321;
  --line-2: #2a2f2c;
  --text: #f5f7f6;
  --muted: #a3aaa6;
  --dim: #6f7772;
  --accent: #4ade80;
  --accent-strong: #22c55e;
  --accent-ink: #052e16;
  --stage-a: #6aa985;
  --stage-b: #2f7550;
  --stage-c: #1a5235;
  --kaspi: #f14635;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --container: 1336px;
  --container-narrow: 1196px;
  --gutter: clamp(16px, 4vw, 52px);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
figure, blockquote { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--faq { max-width: calc(820px + var(--gutter) * 2); }

/* ── Типографика ── */
.h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; }
.h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
.h3 { font-size: 22px; line-height: 1.25; margin: 28px 0 10px; }
.accent { color: var(--accent); }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: #0a0a0a; }
.btn--light:hover { background: #e7ece9; }
.btn--dark { background: #1c1f1d; color: var(--text); }
.btn--dark:hover { background: #262a27; }
.btn--accent { background: var(--accent-strong); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-accent { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Шапка ── */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 22px; flex: none; }
.logo__tld { color: var(--accent-strong); }
.logo__suffix { font-weight: 500; color: var(--muted); letter-spacing: -0.01em; font-size: .86em; }
.logo--lg { font-size: 26px; }
.site-nav { display: flex; align-items: center; flex: 1; }
.site-nav__list { display: flex; gap: 34px; margin: 0 auto; }
.site-nav__list a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); opacity: .9; }
.site-nav__list a:hover { opacity: 1; color: var(--accent); }
.site-nav__actions { display: flex; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: #1c1f1d; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle__bar { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* ── Первый экран: зелёная панель на всю ширину ── */
.hero { padding: 4px clamp(10px, 1.4vw, 20px) clamp(56px, 7vw, 96px); }
.hero__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(55% 70% at 18% 22%, rgba(120, 190, 150, .55) 0%, transparent 70%),
    radial-gradient(60% 80% at 92% 100%, rgba(18, 70, 44, .9) 0%, transparent 70%),
    linear-gradient(135deg, #3f8560 0%, #2c6c4a 45%, #24603f 100%);
}
.hero__grid {
  max-width: var(--container); margin: 0 auto;
  /* Первый экран целиком в окне: за вычетом шапки и отступа под панелью. */
  min-height: min(680px, calc(100svh - 120px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 3vw, 48px) clamp(20px, 4.4vw, 64px);
}
.hero__title { font-size: clamp(42px, min(5vw, 8.4svh), 72px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
.hero__title-accent { color: #b4f0c8; }
.hero__lead { margin: 24px 0 28px; max-width: 500px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.btn--ghost { background: rgba(10, 40, 24, .45); color: #fff; }
.btn--ghost:hover { background: rgba(10, 40, 24, .65); }
.hero .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* «Лава-лампа»: мягкие пятна света медленно плывут и перетекают под содержимым. */
.hero__grid { position: relative; z-index: 1; }
.lava { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lava span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75;
  will-change: transform; animation: lava-a 22s ease-in-out infinite alternate;
}
.lava span:nth-child(1) { width: 46%; aspect-ratio: 1; left: -8%; top: -18%; background: #7fd3a0; }
.lava span:nth-child(2) { width: 38%; aspect-ratio: 1; left: 38%; top: 40%; background: #1f8f5a; animation-name: lava-b; animation-duration: 26s; }
.lava span:nth-child(3) { width: 34%; aspect-ratio: 1; right: -6%; top: -10%; background: #a6e9c2; opacity: .45; animation-name: lava-c; animation-duration: 19s; }
.lava span:nth-child(4) { width: 42%; aspect-ratio: 1; right: 10%; bottom: -30%; background: #0f5233; opacity: .9; animation-name: lava-d; animation-duration: 17s; }
/* Фон плывёт очень медленно и с «уменьшением движения» в системе: это мягкий
   свет, а не движение по экрану. Общее правило выше гасит все анимации. */
@media (prefers-reduced-motion: reduce) {
  .lava span:nth-child(1) { animation: lava-a 60s ease-in-out infinite alternate !important; }
  .lava span:nth-child(2) { animation: lava-b 70s ease-in-out infinite alternate !important; }
  .lava span:nth-child(3) { animation: lava-c 55s ease-in-out infinite alternate !important; }
  .lava span:nth-child(4) { animation: lava-d 50s ease-in-out infinite alternate !important; }
}
@keyframes lava-a {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22%, 18%) scale(1.18); }
  100% { transform: translate(8%, 34%) scale(.92); }
}
@keyframes lava-b {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28%, -22%) scale(1.25); }
  100% { transform: translate(18%, -8%) scale(.9); }
}
@keyframes lava-c {
  0% { transform: translate(0, 0) scale(.9); }
  50% { transform: translate(-30%, 30%) scale(1.15); }
  100% { transform: translate(-12%, 52%) scale(1); }
}
@keyframes lava-d {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-24%, -30%) scale(.88); }
  100% { transform: translate(-46%, -10%) scale(1.2); }
}

/* Справа: анимированный конвейер eGile (SVG прямо в разметке — свой шрифт и анимации). */
.hero__art {
  justify-self: end; width: 100%; max-width: 640px; margin: 0;
  /* Лента уходит за края рисунка: растворяем края, а не обрываем линией. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 97%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 97%);
}
.conveyor { display: block; width: 100%; height: auto; }
/* ── Зелёная сцена для иллюстраций ── */
.stage {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 30% 0%, var(--stage-a) 0%, transparent 60%),
    radial-gradient(120% 120% at 100% 100%, var(--stage-c) 0%, transparent 70%),
    var(--stage-b);
}
.stage__inner { position: relative; padding: clamp(18px, 3.5vw, 40px) clamp(14px, 3vw, 36px); }
.stage__inner--center { display: flex; justify-content: center; align-items: center; min-height: 100%; }

/* iPhone по размерам 15/16 Pro: экран 1179×2556 (скриншот с телефона входит
   целиком), рамка ~2.6% ширины, скругления в процентах — пропорции те же
   при любой ширине. Высоту задаёт экран, а не рамка. */
.iphone {
  /* Ширину задаёт --w: рамка считается от ширины самого телефона (padding в %
     брался бы от родителя — в широкой карточке рамка раздувалась). */
  --w: 236px;
  position: relative; width: var(--w); padding: calc(var(--w) * .027); border-radius: 15.5% / 7.4%;
  background: linear-gradient(145deg, #4a4d50 0%, #232527 30%, #36393b 65%, #17181a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #0b0b0c, 0 0 0 1px rgba(0, 0, 0, .55), 0 40px 80px rgba(0, 0, 0, .5), 0 12px 24px rgba(0, 0, 0, .3);
}
.iphone::before, .iphone::after { content: ''; position: absolute; width: 1.4%; border-radius: 2px; background: #3a3d40; }
/* Слева три кнопки: Action и громкость — одной полосой с прорезями. */
.iphone::before { left: -1.2%; top: 17%; height: 21%; background: linear-gradient(#3a3d40 0 18%, transparent 18% 32%, #3a3d40 32% 62%, transparent 62% 70%, #3a3d40 70%); }
.iphone::after { right: -1.2%; top: 26%; height: 10%; }
.iphone__screen {
  position: relative; aspect-ratio: 1179 / 2556; border-radius: 13% / 6%; overflow: hidden; background: #0e100f; color: var(--text);
  display: flex; flex-direction: column;
}
.iphone__screen--light { background: #f6f3ef; color: #1c1917; }
.iphone__status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 24px 0 30px; font-size: 13px; font-weight: 600; flex: none; }
.iphone__island { position: absolute; left: 50%; top: 10px; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; }
.iphone__icons { display: inline-flex; align-items: center; gap: 5px; }
.iphone__icons svg { fill: currentColor; color: currentColor; }
.iphone__home { position: absolute; left: 50%; bottom: 7px; width: 96px; height: 4px; margin-left: -48px; border-radius: 3px; background: currentColor; opacity: .85; }

/* Общие детали карточек заказа (приложение доставки) */
.order { padding: 10px; border-radius: 12px; background: #1a1e1b; display: flex; flex-direction: column; gap: 7px; }
.order__row { display: flex; justify-content: space-between; gap: 8px; }
.order__eta { font-size: 10px; color: var(--muted); }
.ok { color: var(--accent); }
.progress { height: 4px; border-radius: 4px; background: #2a302c; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent-strong); }
.mock-phone__greet { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.avatar-dot { width: 24px; height: 24px; border-radius: 50%; background: #2a302c; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 700; color: var(--text); }
.mock-phone__h { margin: 14px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.dapp { padding: 6px 14px 0; font-size: 11.5px; }
.iphone--app { --w: 250px; margin-bottom: -38%; }

/* Чат WhatsApp */
.mock-chat { border-radius: 18px; background: #101311; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); color: var(--text); font-size: 12px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; line-height: 1.4; }
.bubble--out { align-self: flex-end; background: #1e6b3d; border-bottom-right-radius: 5px; }
.bubble--in { align-self: flex-start; background: #1c201d; border-bottom-left-radius: 5px; }
.bubble__note { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 10px; color: var(--dim); }
.mock-chat--salon { width: min(100%, 420px); overflow: hidden; }
.mock-chat__contact { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-chat__contact b { display: block; font-size: 13px; }
.mock-chat__contact small { color: var(--accent); font-size: 10.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e9d5ff; color: #6b21a8; font-weight: 700; font-size: 12px; flex: none; }
.mock-chat__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }

/* ── Секции ── */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); max-width: 560px; font-size: 16.5px; }
.section-head--center { text-align: center; align-items: center; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head--split p { max-width: 400px; }
h2.section-head--center { margin-bottom: clamp(28px, 4vw, 44px); }

/* Команда */
.team__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.team__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.team__text p { color: var(--muted); font-size: 16.5px; max-width: 440px; }
.team__text .btn { margin-top: 6px; min-height: 46px; font-size: 15px; }
.team__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card-2); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e9ecea, #cfd5d1); }
.badge-pill { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: rgba(16, 19, 17, .88); font-size: 13px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card__title { font-size: 19px; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 14.5px; }
.cards { display: grid; gap: 14px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Блоки «текст + иллюстрация» */
.feature__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature--reverse .feature__text { order: 2; }
.feature__text { display: flex; flex-direction: column; gap: 22px; }
.feature__text p { color: var(--muted); font-size: 16.5px; max-width: 470px; }
.feature__stage { min-height: clamp(300px, 28vw, 380px); }
.feature__stage .stage__inner { height: 100%; min-height: inherit; }
.stage--crop .stage__inner { align-items: flex-start; padding-bottom: 0; }
.order--track { border: 1px solid #23503a; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tile { padding: 10px; border-radius: 12px; background: #1a1e1b; display: flex; flex-direction: column; gap: 4px; }
.tile small { color: var(--muted); font-size: 10px; }
.tile b { font-size: 16px; }
.tile--wide { margin-top: 8px; }
.tile--wide b { font-size: 12px; }
.kaspi { color: var(--kaspi); }

/* Работы */
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work--wide { margin-bottom: 14px; }
/* Витрина eGile.kz: CRM в окне браузера и ИИ-ассистент на iPhone поверх угла. */
.work__showcase { position: relative; display: block; height: clamp(300px, 34vw, 470px); overflow: hidden; background: radial-gradient(70% 120% at 30% 0%, #4c9a6c 0%, transparent 70%), linear-gradient(160deg, #23603f, #10301f); }
.browser--hero { left: 6%; right: 24%; top: 9%; }
.work__showcase .iphone--showcase { --w: clamp(150px, 15vw, 220px); position: absolute; right: 6%; top: 12%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.work__showcase:hover .browser { transform: translateY(-6px); }
.work__showcase:hover .iphone--showcase { transform: translateY(-12px); }
.work__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px 24px 24px; }
.work__body--stack { flex-direction: column; align-items: flex-start; height: 100%; min-height: 200px; }
.work__body--center { justify-content: center; }
.work__title { font-size: 22px; margin-bottom: 10px; }
.work__title a { text-decoration: none; }
.work__title a:hover { color: var(--accent); }
.work__body p { color: var(--muted); font-size: 14.5px; max-width: 560px; }
/* Кейсы: сайт — окно браузера с десктопом + iPhone с мобильной версией;
   приложение — скриншот в iPhone. Фон карточки — в цвете проекта. */
.cases { display: grid; gap: 14px; margin-top: 14px; }
.cases--sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cases--apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case__visual { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; text-decoration: none; }
.case__visual--sky { background: radial-gradient(90% 90% at 20% 0%, #4f8fc4 0%, transparent 70%), linear-gradient(160deg, #24557f, #102a42); }
.case__visual--blue { background: radial-gradient(90% 90% at 20% 0%, #5579d6 0%, transparent 70%), linear-gradient(160deg, #27458f, #111f45); }
.case__visual--lime { background: radial-gradient(90% 90% at 20% 0%, #78b85a 0%, transparent 70%), linear-gradient(160deg, #346b27, #142a10); }
.case__visual--stone { background: radial-gradient(90% 90% at 20% 0%, #a8907a 0%, transparent 70%), linear-gradient(160deg, #5c4d40, #241d18); }

.browser {
  position: absolute; left: 7%; right: 7%; top: 9%; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 24px 50px rgba(0, 0, 0, .4);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.browser__bar { display: flex; align-items: center; gap: 10px; height: 24px; padding: 0 10px; background: linear-gradient(#f3f3f3, #e6e6e6); border-bottom: 1px solid #d6d6d6; }
.browser__dots { display: inline-flex; gap: 5px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__url { flex: 1; max-width: 46%; margin: 0 auto; padding: 2px 10px; border-radius: 6px; background: #fff; color: #555; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }
.iphone__shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__visual:hover .browser, .case__visual:focus-visible .browser { transform: translateY(-6px); }

.case--app .case__visual { aspect-ratio: auto; height: clamp(380px, 32vw, 460px); display: flex; justify-content: center; align-items: flex-start; padding-top: 34px; }
.case .iphone--shot { --w: clamp(180px, 15vw, 220px); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.case--app:hover .iphone--shot { transform: translateY(-8px); }

.case__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.case__body p { color: var(--muted); font-size: 14.5px; }
.case__body .tags { margin-top: auto; padding-top: 4px; }
.case__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 20px; }
.case__title a { text-decoration: none; }
.case__title a:hover { color: var(--accent); }
.case__domain { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.case--cta { display: flex; }
.case--cta .work__body { flex: 1; min-height: 0; }
.work--cta { background: var(--bg); }
.work--cta .link-accent { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.tags li { padding: 5px 10px; border-radius: 8px; background: #1c201d; font-size: 12px; color: var(--muted); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.step { padding: 22px 20px 26px; }
.step__num { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 12px; }
.step .card__title { font-size: 17.5px; }

/* Цены */
/* Строки карточек общие (subgrid): заголовок, описание, цена, кнопка и
   примечание стоят на одном уровне, даже если текст в одной длиннее. */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.price { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 26px 22px; }
.price--featured { border-color: #1f6b3d; background: linear-gradient(180deg, #0f1712, var(--card)); }
.price__title { font-size: 22px; line-height: 1.2; }
.price__subtitle { margin-top: 10px; }
.price .price__value { align-self: end; margin: 22px 0 18px; font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: var(--text) !important; }
.price .btn { min-height: 48px; }
.price .price__note { margin-top: 18px; font-size: 13px; }
.guarantees { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; color: var(--muted); font-size: 14px; }

/* Вопросы */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; flex: none; width: 24px; text-align: center; font-weight: 400; font-size: 22px; color: var(--muted); }
.faq__item[open] .faq__q::after { content: '−'; }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 40px 24px 0; color: var(--muted); max-width: 680px; }

/* Заявка */
.contact {
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 80% at 22% 55%, rgba(110, 175, 135, .55) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #1a5235 22%, #2b6b47 60%, #2a6a46 100%);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__lead { margin: 22px 0 26px; font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 440px; }
.founder { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: rgba(10, 30, 19, .42); max-width: 460px; }
.founder__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; background: #d9dfdb; }
.founder__quote p { font-size: 15px; font-weight: 500; }
.founder__quote footer { margin-top: 6px; font-size: 13px; color: var(--accent); }
.contact__links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-weight: 600; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { color: var(--accent); }
.contact__form { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius); background: #0c0e0d; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); font-size: 14px; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: var(--dim); }
.chip input:checked + span { background: #fff; color: #0a0a0a; border-color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #151816;
  color: var(--text); font: 400 15px/1.4 var(--font); transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); }
.field input[aria-invalid="true"] { border-color: #ef4444; }
.field-error { margin-top: 6px; font-size: 13px; color: #f87171; }
.form-consent { text-align: center; font-size: 12px; color: var(--dim); }
.form-consent a { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 28px 8px; text-align: center; }
.form-success__title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.form-success p:last-child { color: var(--muted); }

/* Подвал */
.site-footer { background: #161817; padding-block: 64px 32px; overflow: hidden; }
.site-footer .container { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__about p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 300px; }
.site-footer__title { font-size: 12.5px; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-bottom: 14px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { text-decoration: none; font-size: 15px; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__wordmark { margin: 40px 0 8px; text-align: center; font-weight: 800; letter-spacing: -0.05em; line-height: .9; font-size: clamp(72px, 17vw, 210px); color: #202322; user-select: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.site-footer__legal { display: flex; gap: 8px; }
.site-footer__legal a { text-decoration: none; color: var(--muted); }
.site-footer__legal a:hover { color: var(--text); }

/* ── Плавающая связь ── */
.fab { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
.fab__toggle {
  width: 60px; height: 60px; border-radius: 50%; list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-strong); color: #052e16;
  box-shadow: 0 10px 28px rgba(34, 197, 94, .35), 0 4px 10px rgba(0, 0, 0, .3);
  transition: transform .2s, background-color .2s;
}
.fab__toggle::-webkit-details-marker { display: none; }
.fab__toggle:hover { transform: scale(1.05); }
.fab__icon-close { display: none; }
.fab[open] .fab__toggle { background: #fff; color: #0a0a0a; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.fab[open] .fab__icon-open { display: none; }
.fab[open] .fab__icon-close { display: block; }
.fab__list { position: absolute; right: 2px; bottom: 100%; display: flex; flex-direction: column-reverse; gap: 12px; padding-bottom: 14px; }
.fab__item {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .15s;
}
.fab__item:hover { transform: scale(1.06); }
.fab__item svg { display: block; }
.fab__item--wa { background: #25d366; }
.fab__item--call { background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .3); }
.fab__item--tg { background: #2aabee; }
.fab[open] .fab__list li { animation: fab-in .22s cubic-bezier(.2, .9, .3, 1.2) both; }
.fab[open] .fab__list li:nth-child(2) { animation-delay: .04s; }
.fab[open] .fab__list li:nth-child(3) { animation-delay: .08s; }
@keyframes fab-in { from { opacity: 0; transform: translateY(12px) scale(.8); } to { opacity: 1; transform: none; } }
/* Юридические страницы */
.legal .h1 { margin-bottom: 16px; }
.legal p { color: var(--muted); }
.legal__meta { margin-bottom: 12px; }
.legal__note { margin-top: 28px; padding: 16px; border-radius: var(--radius-sm); background: var(--card); font-size: 14px; }

/* ── Адаптив ── */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav__list { gap: 24px; }
}

@media (max-width: 980px) {
  .hero__grid, .team__grid, .feature__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  .hero__art { justify-self: center; max-width: 520px; }
  .feature--reverse .feature__text { order: 0; }
    .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases--apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case--cta { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }

  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 80px 0 auto 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px; background: rgba(10, 10, 10, .97); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 4px; margin: 0; }
  .site-nav__list a { display: block; padding: 12px 0; font-size: 18px; }
  .site-nav__actions .btn { flex: 1; min-height: 48px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-header__inner { min-height: 68px; }
  .site-nav { inset: 68px 0 auto 0; }
        .iphone--app { --w: 220px; }
  .cards--3, .cases--sites, .cases--apps, .prices, .form-row { grid-template-columns: 1fr; }
  .case--cta { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .work__body { flex-direction: column; align-items: flex-start; }
  .work__body--stack { min-height: 0; }
  .founder { flex-direction: column; align-items: flex-start; }
  .faq__a { padding-right: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
