/* =========================================================
   Amir Web — стили сайта
   1. Переменные        6. Главный экран      11. Обо мне
   2. База и сброс      7. Секции и карточки  12. Вопросы
   3. Кнопки            8. Работы             13. Призыв
   4. Шапка             9. Этапы работы       14. Подвал
   5. Меню на телефоне 10. Цены               15. Анимации
   ========================================================= */

/* ---------- 1. Переменные ---------- */
:root {
  /* цвет */
  --ink:        #0B1D26;   /* глубокий сине-бирюзовый — основной текст и тёмные блоки */
  --ink-soft:   #14313F;
  --muted:      #5D717C;
  --paper:      #FCFBF8;   /* тёплый белый */
  --paper-pure: #FFFFFF;
  --sand:       #F4F1EA;   /* песочный фон чередующихся секций */
  --sky:        #12A2C4;   /* голубой флага */
  --sky-deep:   #0B7F9C;
  --sky-wash:   rgba(18, 162, 196, .10);
  --gold:       #C08A2E;   /* приглушённое золото */
  --gold-soft:  #DCB05C;
  --line:       rgba(11, 29, 38, .10);
  --line-soft:  rgba(11, 29, 38, .06);

  /* форма */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* тень */
  --sh-sm: 0 1px 2px rgba(11, 29, 38, .05);
  --sh-md: 0 10px 30px -12px rgba(11, 29, 38, .16);
  --sh-lg: 0 30px 60px -24px rgba(11, 29, 38, .22);

  /* ритм */
  --gap: 20px;
  --sec-y: 68px;
  --pad-x: 20px;

  /* --- безопасные зоны экрана ---------------------------------------
     Страница объявлена с viewport-fit=cover, то есть занимает экран
     целиком — вместе с областью под часами, Dynamic Island и полосой
     жестов. Эти четыре значения — единственный источник правды о том,
     сколько места занимает система. На обычном мониторе все они = 0,
     поэтому десктоп ведёт себя ровно как раньше.                      */
  --sa-top:    env(safe-area-inset-top, 0px);
  --sa-right:  env(safe-area-inset-right, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left:   env(safe-area-inset-left, 0px);

  /* высота шапки: содержимое + системная область сверху */
  --head-h: 64px;
  --head-total: calc(var(--head-h) + var(--sa-top));

  /* высота нижней кнопки связи — считается из её же составляющих,
     а не подбирается на глаз (скрипт уточнит по факту) */
  --btn-h: 48px;
  --bar-pad: 10px;
  --bar-h: calc(var(--btn-h) + var(--bar-pad) * 2 + 1px + var(--sa-bottom));

  /* движение */
  --ease: cubic-bezier(.22, .68, .36, 1);

  color-scheme: light;
}

/* ---------- 2. База и сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* якорные переходы останавливаются под шапкой вместе с системной областью */
  scroll-padding-top: calc(var(--head-total) + 12px);
  overflow-x: clip;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* место под кнопку связи, закреплённую внизу экрана телефона */
  padding-bottom: var(--bar-h);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

body.is-locked { overflow: hidden; }

/* Прячем сдвигом вверх, а не координатой -9999px: та создавала
   лишнюю ширину страницы и не знала про системную область. */
.skip-link {
  position: fixed;
  top: var(--sa-top);
  left: var(--sa-left);
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--r-sm) 0;
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  /* в альбомной ориентации вырез съедает край экрана — отступ не меньше него */
  padding-left: max(var(--pad-x), var(--sa-left));
  padding-right: max(var(--pad-x), var(--sa-right));
}
.container--narrow { max-width: 800px; }

/* заголовки секций */
.shead { margin-bottom: 36px; max-width: 720px; }

.shead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.shead__kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.shead__title {
  font-size: clamp(27px, 6.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.shead__lead {
  margin-top: 16px;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-md);
}
.btn--primary:hover { background: var(--ink-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(11, 29, 38, .04); }

.btn--outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, .3);
}
.btn--outline:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }

.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.btn:active { transform: translateY(1px); }

.ico-tg { fill: currentColor; }
.ico-ig { fill: none; stroke: currentColor; stroke-width: 1.7; }
.ico-ig .fill { fill: currentColor; stroke: none; }

/* значок-плашка */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper-pure);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--sh-sm);
}
.badge__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #22B07D;
  box-shadow: 0 0 0 3px rgba(34, 176, 125, .18);
  animation: pulse 2.6s var(--ease) infinite;
}
.badge--light {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
  box-shadow: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 176, 125, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 176, 125, 0); }
}

/* ссылка со стрелкой */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--sky-deep);
  border-bottom: 1px solid transparent;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
/* палец попадает по ссылке легко, а вид не меняется */
.link::after { content: ''; position: absolute; inset: -11px -8px; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link:hover { gap: 14px; border-color: currentColor; }

/* ---------- 4. Шапка ---------- */
/* Шапка растягивается на системную область сверху, но её содержимое
   начинается строго под ней. Так фон всегда закрывает часы и Dynamic
   Island, а логотип и кнопки в них не упираются. */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: var(--sa-top);
  background: rgba(252, 251, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* под самими часами фон непрозрачный — иначе время читается плохо */
.header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--sa-top);
  background: var(--paper);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 29, 38, .5); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--head-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; padding-block: 6px; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__ring { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.logo__letter { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo__text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo__text span { color: var(--sky-deep); }
.logo--sm .logo__mark { width: 28px; height: 28px; }
.logo--sm .logo__text { font-size: 16px; }

.nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  /* Оптический сдвиг к краю — но не глубже, чем начинается системная
     зона: при вырезе сбоку компенсация сходит на нет. */
  margin-right: calc(-8px + min(8px, var(--sa-right)));
  border-radius: 50%;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 5. Меню на телефоне ---------- */
.mmenu {
  position: fixed;
  inset: var(--head-total) 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(var(--pad-x), var(--sa-right))
           calc(28px + var(--sa-bottom)) max(var(--pad-x), var(--sa-left));
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }
.mmenu[hidden] { display: none; }

.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-soft);
}
.mmenu__nav a span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
}
.mmenu__foot p { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 6. Главный экран ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 44px;
  overflow: hidden;
}

/* солнечные лучи с флага — очень мягко, как водяной знак */
.hero__rays,
.cta__rays {
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  pointer-events: none;
  background: repeating-conic-gradient(from 8deg,
              var(--gold) 0deg 1.5deg, transparent 1.5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 14%, #000 27%, #000 47%, transparent 68%);
          mask-image: radial-gradient(circle, transparent 14%, #000 27%, #000 47%, transparent 68%);
  opacity: .13;
  animation: spin 220s linear infinite;
}
.hero__rays { top: -290px; right: -300px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero::after {
  content: '';
  position: absolute;
  z-index: -2;
  inset: -20% 0 40% -30%;
  background: radial-gradient(60% 50% at 30% 40%, var(--sky-wash), transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; padding-bottom: 44px; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(33px, 9vw, 68px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title em {
  position: relative;
  color: var(--sky-deep);
  white-space: nowrap;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .09em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--sky));
  opacity: .5;
}

.hero__lead {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

.hero__text {
  margin-top: 12px;
  max-width: 52ch;
  font-size: clamp(15px, 3.7vw, 17px);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.hero__facts {
  display: grid;
  gap: 2px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.hero__facts strong {
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero__facts span { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* бегущая строка с направлениями */
.hero__strip {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: var(--paper-pure);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.strip__track span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
.strip__track i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  opacity: .55;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 7. Секции и карточки ---------- */
.section {
  position: relative;
  padding-block: var(--sec-y);
  overflow: hidden;
}
.section--sand { background: var(--sand); }

/* казахский узор «қошқар мүйіз» тонкой лентой сверху секции */
.ornament {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='26' viewBox='0 0 60 26'%3E%3Cg fill='none' stroke='%23C08A2E' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 13h4'/%3E%3Cpath d='M4 13c0-9 11-9 11 0 0 6 6 6 6 0'/%3E%3Cpath d='M21 13h18'/%3E%3Cpath d='M39 13c0 6 6 6 6 0 0-9 11-9 11 0'/%3E%3Cpath d='M56 13h4'/%3E%3Ccircle cx='30' cy='13' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center top;
}

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: 1fr; }

.card {
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line);
}
.card__ico {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--sky-wash), rgba(192, 138, 46, .10));
  color: var(--sky-deep);
}
.card__ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* карточка направления */
.svc {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.svc:hover::before { transform: scaleX(1); }
.svc__ico { display: block; margin-bottom: 16px; color: var(--ink); }
.svc__ico svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.svc h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.svc p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- 8. Работы ---------- */
.work {
  display: grid;
  gap: 26px;
  padding: 26px 20px 30px;
  border-radius: var(--r-xl);
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
}
.work + .work { margin-top: var(--gap); }

.work__visual {
  display: grid;
  place-items: center;
  padding: 30px 20px 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(18, 162, 196, .16), transparent 70%),
    var(--sand);
  overflow: hidden;
}

/* телефон с миниатюрой сайта */
.phone {
  width: 200px;
  padding: 8px 8px 0;
  border-radius: 26px 26px 0 0;
  background: var(--ink);
  box-shadow: var(--sh-lg);
}
.phone__screen {
  height: 300px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  overflow: hidden;
}
.mk { padding: 10px 10px 0; font-size: 0; }
.mk__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.mk__logo { font-size: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.mk__dots { width: 14px; height: 2px; border-radius: 2px; background: var(--ink); opacity: .3; box-shadow: 0 4px 0 rgba(11,29,38,.3), 0 -4px 0 rgba(11,29,38,.3); }
.mk__hero { height: 68px; border-radius: 8px; background: linear-gradient(135deg, var(--ink), var(--sky-deep)); }
.mk__chips { display: flex; gap: 5px; margin: 9px 0; }
.mk__chips i { height: 9px; width: 26px; border-radius: 100px; background: rgba(11,29,38,.08); }
.mk__chips i.on { background: var(--gold); opacity: .75; width: 32px; }
.mk__row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid rgba(11,29,38,.07); }
.mk__row--flat { border-top: 1px solid rgba(11,29,38,.07); }
.mk__thumb { width: 26px; height: 26px; flex: none; border-radius: 6px; background: rgba(18,162,196,.2); }
.mk__lines { flex: 1; display: block; }
.mk__lines b { display: block; height: 5px; width: 68%; border-radius: 3px; background: rgba(11,29,38,.22); }
.mk__lines s { display: block; height: 4px; width: 44%; margin-top: 4px; border-radius: 3px; background: rgba(11,29,38,.10); }
.mk__price { width: 22px; height: 6px; flex: none; border-radius: 3px; background: var(--gold); opacity: .7; }
.mk__ava { width: 44px; height: 44px; margin: 4px auto 8px; border-radius: 50%; background: linear-gradient(140deg, var(--sky), var(--ink)); }
.mk__title { height: 7px; width: 54%; margin: 0 auto 5px; border-radius: 3px; background: rgba(11,29,38,.25); }
.mk__sub { height: 5px; width: 38%; margin: 0 auto 10px; border-radius: 3px; background: rgba(11,29,38,.12); }
.mk__pills { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.mk__pills i { height: 14px; width: 46px; border-radius: 100px; background: rgba(11,29,38,.06); }
.mk__cta { height: 22px; border-radius: 100px; background: var(--ink); margin-bottom: 4px; }

.work__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--sky-wash);
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.work__name {
  margin-top: 12px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.work__list { margin-top: 18px; }
.work__list dt {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.work__list dt:first-child { margin-top: 0; }
.work__list dd { margin-top: 4px; font-size: 15px; color: var(--muted); }
.work__body .link { margin-top: 22px; }

/* ---------- 9. Этапы работы ---------- */
.steps { position: relative; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold);
  padding-top: 3px;
}
.step h3 {
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 62ch; }
.step em { color: var(--ink); font-weight: 600; }
.step__free {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(34, 176, 125, .12);
  color: #16805B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- 10. Цены ---------- */
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background: var(--paper-pure);
  border: 1px solid var(--line);
}
.plan--best {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--sh-lg);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan__name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.plan__for { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 42px; }
.plan--best .plan__for { color: rgba(255, 255, 255, .66); }

.plan__price {
  margin-top: 20px;
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.plan__price span {
  display: inline-block;
  margin-right: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle;
}
.plan--best .plan__price span { color: rgba(255, 255, 255, .55); }

.plan__term { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--gold); }
.plan--best .plan__term { color: var(--gold-soft); }

.plan__list {
  margin: 22px 0 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  flex: 1;
}
.plan--best .plan__list { border-top-color: rgba(255, 255, 255, .14); }
.plan__list li {
  position: relative;
  padding-left: 27px;
  font-size: 15px;
  line-height: 1.45;
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  border-radius: 1px;
  transform: rotate(-45deg) scale(.86);
  transform-origin: center;
}
.plan--best .plan__list li::before { border-color: var(--gold-soft); }
.plan--best .btn--primary { background: var(--paper); color: var(--ink); }
.plan--best .btn--primary:hover { background: #fff; }

.plans__note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--sand);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 11. Обо мне ---------- */
.about { display: grid; gap: 30px; }
.about__media { position: relative; max-width: 260px; }
.about__photo {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--ink), var(--sky-deep));
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__initial {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .9);
}
.about__stamp {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--sh-md);
}
.about__stamp svg { width: 40px; height: 40px; }
.about__body p { margin-top: 14px; font-size: 16px; color: var(--muted); }
.about__body .shead__title { margin-bottom: 4px; }
.about__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.about__chips li {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper-pure);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 12. Вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 700;
  letter-spacing: -.015em;
  transition: color .25s var(--ease);
}
.faq__q:hover { color: var(--sky-deep); }

.faq__ico {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.faq__ico::before,
.faq__ico::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__ico { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__ico::before,
.faq__q[aria-expanded="true"] .faq__ico::after { background: var(--paper); }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 22px;
  padding-right: 34px;
  font-size: 15px;
  color: var(--muted);
}
.faq__a em { color: var(--ink); font-weight: 600; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- 13. Большой призыв ---------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--sec-y) + 12px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 110%, rgba(18, 162, 196, .3), transparent 70%);
}
.cta__rays {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .16;
  animation: spinc 260s linear infinite;
  background: repeating-conic-gradient(from 8deg, var(--gold-soft) 0deg 1.5deg, transparent 1.5deg 15deg);
}
@keyframes spinc {
  from { transform: translate(-50%, -50%) rotate(0); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__title {
  margin-top: 22px;
  font-size: clamp(29px, 7.6vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 18ch;
}
.cta__text {
  margin-top: 18px;
  max-width: 54ch;
  font-size: clamp(15px, 3.8vw, 17px);
  color: rgba(255, 255, 255, .68);
}
.cta__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin-top: 30px;
}
.cta .btn--primary { background: var(--paper); color: var(--ink); }
.cta .btn--primary:hover { background: #fff; }
.cta__meta { margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- 14. Подвал ---------- */
.footer {
  padding-block: 30px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
}
.footer__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.footer .logo { margin-right: 0; }
.footer .logo__text { color: var(--paper); }
.footer .logo__text span { color: var(--gold-soft); }
.footer .logo__letter { stroke: var(--paper); }
.footer__copy { font-size: 13px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer__socials a:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.footer__socials svg { width: 18px; height: 18px; }

/* ---------- кнопка связи на телефоне ---------- */
.mobile-cta {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--bar-pad) max(16px, var(--sa-right))
           calc(var(--bar-pad) + var(--sa-bottom)) max(16px, var(--sa-left));
  background: rgba(252, 251, 248, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ---------- 15. Анимации появления ---------- */
/* прячем только если скрипты работают — без них сайт остаётся читаемым */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Экраны побольше
   ========================================================= */

@media (min-width: 480px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .hero__cta .btn { flex: 1 1 auto; }
  .cta__btns { flex-direction: row; max-width: none; justify-content: center; }
  .phone { width: 230px; }
  .phone__screen { height: 340px; }
}

@media (min-width: 720px) {
  :root { --gap: 22px; --sec-y: 92px; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .shead { margin-bottom: 46px; }

  .hero { padding-top: 60px; }
  .hero__inner { padding-bottom: 60px; }
  .hero__facts { gap: 24px; }
  .hero__facts li { padding-right: 0; }
  .hero__facts span { font-size: 13px; }

  .work { padding: 32px; grid-template-columns: 1fr; gap: 32px; }
  .work__visual { padding-top: 42px; }

  .step { grid-template-columns: 76px 1fr; gap: 12px; padding: 30px 0; }
  .step__num { font-size: 14px; }

  .about { grid-template-columns: 260px 1fr; align-items: center; gap: 46px; }

  /* кнопки внизу нет — значит и место под неё не нужно */
  :root { --bar-h: 0px; }
  .mobile-cta { display: none; }
}

@media (min-width: 900px) {
  :root { --head-h: 74px; }

  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
  }
  .nav a {
    padding: 9px 14px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    transition: color .25s var(--ease), background-color .25s var(--ease);
  }
  .nav a:hover { color: var(--ink); background: rgba(11, 29, 38, .05); }

  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .mmenu { display: none !important; }

  .logo { margin-right: 0; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__text { font-size: 19px; }

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

  .hero__inner { padding-bottom: 76px; }
  .hero__title { max-width: 16ch; }
  .hero__cta { margin-top: 34px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__facts {
    max-width: 640px;
    margin-top: 52px;
    padding-top: 30px;
  }
  .hero__rays { width: 940px; height: 940px; top: -330px; right: -240px; }

  .card { padding: 30px 26px; }
  .svc { padding: 30px 26px 28px; }

  .work { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; padding: 40px; }
  .work--rev .work__visual { order: 2; }
  .work__visual { align-self: stretch; padding-top: 52px; }
  .work__body { padding-right: 10px; }

  .plan { padding: 32px 28px; }
  .plan--best { transform: translateY(-14px); }
  .plan--best .plan__list { margin-bottom: 30px; }

  .about { grid-template-columns: 300px 1fr; gap: 64px; }
  .about__media { max-width: 300px; }

  .faq__q { padding: 24px 0; }

  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .footer__copy { justify-self: center; }
  .footer__socials { justify-self: end; }
}

@media (min-width: 1120px) {
  :root { --sec-y: 110px; }
  .hero__title { font-size: 72px; }
  .cta__rays { width: 1000px; height: 1000px; }
}

/* =========================================================
   Бережный режим: меньше движения
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .mmenu, .mobile-cta, .hero__strip, .hero__rays, .cta__rays, .ornament { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
