/* =========================================================
   1bayt.az — студия разработки
   ========================================================= */

:root {
  --ink:        #17181A;
  --ink-2:      #43444A;
  --ink-3:      #2B2C2F;
  --muted:      #6E6E73;
  --muted-2:    #9A9AA1;
  --grey:       #C9C9CE;

  --line:       #EDE9E2;
  --line-2:     #E5E1DA;
  --line-dash:  #D9D4CB;

  --cream:      #F7F4EF;
  --cream-2:    #FCFBF9;
  --white:      #FFFFFF;

  --brand:      #F03A0C;
  --brand-2:    #FF7A4D;
  --brand-soft: #FFF6F2;
  --brand-pale: #FFD9CC;

  --green:      #1E5E4E;
  --mint:       #9FE3CD;
  --mint-2:     #CFE8E0;

  --font-display: 'Golos Text', system-ui, -apple-system, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --gutter:  40px;
  --section: 110px;
  --header-h: 68px;

  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 26px;
  --r-xl: 28px;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, figure, blockquote, fieldset, legend, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }

::selection { background: var(--brand); color: #fff; }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}
.section--flush { padding-top: 0; }
.section--narrow {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section--ink   { background: var(--ink);   color: #fff; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #fff; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section__note {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
}
.section__note--center {
  margin: 18px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 19px;
}

/* scroll targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- typography ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
  /* страховка: длинные слова вроде «автоматизация» на узком экране
     иначе раздвигают страницу и появляется горизонтальный скролл */
  overflow-wrap: break-word;
}
.h2--narrow { max-width: 900px; }
.h2--center { text-align: center; }
.h2--sm { font-size: clamp(30px, 3.6vw, 52px); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--brand { color: var(--brand-2); }
.eyebrow--mint  { color: var(--mint); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--grey);
}
.lead--mint { color: var(--mint-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 11px 20px; font-size: 15px; font-weight: 700; }
.btn--lg { padding: 20px 34px; font-size: clamp(16px, 1.4vw, 19px); }

.btn--brand   { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--ink); color: #fff; }

.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: #fff; }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--white   { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand); color: #fff; }

.btn--ghost   { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 700;
  padding: 16px 28px;
}
.btn--line:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn--line:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(23,24,26,.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo--light { color: #fff; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.03em;
  line-height: 1;
}
.logo__dot { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--brand); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--brand); }

/* ---------- переключатель языка ---------- */

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}
.lang__btn {
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding-top: 96px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* размер подобран так, чтобы авторские переносы <br class="br-wide">
   реально давали три строки, а не рвались посреди фразы */
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 92px);
  line-height: .94;
  letter-spacing: -.045em;
  margin-top: 28px;
  text-wrap: balance;
}
.hero__title em { color: var(--brand); font-style: normal; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 44px;
}
.hero__lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* разделители рисуем тенью на самих ячейках, а не фоном контейнера:
   иначе незаполненный «хвост» сетки превращается в цветной блок */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 64px;
}
.stats__item {
  background: #fff;
  padding: 26px 28px;
  box-shadow: 0 0 0 1px var(--line);
}
.stats__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.03em;
  line-height: 1;
}
.stats__label { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- marquee ---------- */

/* Волна: SVG масштабируется в своих user units, поэтому текст и лента
   всегда пропорциональны. min-height не даёт волне схлопнуться на телефоне —
   там кадр просто обрезается по бокам. */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  line-height: 0;
}
.marquee__svg {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 340;
  min-height: 190px;
}
.marquee__ribbon {
  fill: none;
  stroke: var(--brand);
  stroke-width: 66;
  stroke-linecap: round;
}
.marquee__text {
  fill: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -.01em;
}
.marquee__sep { opacity: .5; }

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

/* Карточка-переворот: спереди только услуга и цена, описание — на обороте.
   Обе стороны лежат в одной ячейке grid, поэтому высота карточки равна
   большей из сторон и не требует подгонки числами под три языка. */
.service {
  perspective: 1400px;
  transition: transform .25s ease;
}
.service:hover { transform: translateY(-6px); }

.service__inner {
  position: relative;
  display: grid;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.3,.7,.2,1);
}
/* focus-within: карточка открывается и при переходе табом на ссылку внутри */
.service:hover .service__inner,
.service:focus-within .service__inner { transform: rotateY(180deg); }

.service__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow .25s ease;
}
.service:hover .service__face { box-shadow: 0 18px 40px rgba(23,24,26,.09); }

.service__face--front { justify-content: space-between; }
.service__face--back {
  transform: rotateY(180deg);
  justify-content: center;
}

/* намёк, что у карточки есть оборот; при наведении уезжает вместе со стороной */
.service__face--front::after {
  content: "";
  align-self: flex-end;
  width: 34px;
  height: 34px;
  margin-top: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  opacity: .5;
  transition: opacity .2s ease, transform .3s ease;
}
.service:hover .service__face--front::after { opacity: 0; transform: rotate(90deg); }

.service__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -.02em;
}
.service__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--brand);
  white-space: nowrap;
}
.service__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.service__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
}
.service__more::after {
  content: "→";
  transition: transform .18s ease;
}
.service:hover .service__more::after { transform: translateX(4px); }

/* цветные варианты красят обе стороны, иначе оборот вылезал бы белым */
.service--dark .service__face { background: var(--ink); color: #fff; }
.service--dark .service__more { color: var(--brand-2); }
.service--dark:hover .service__face { box-shadow: 0 18px 40px rgba(23,24,26,.2); }
.service--dark .service__price { color: var(--brand-2); }
.service--dark .service__text  { color: var(--grey); }
.service--dark .service__face--front::after { border-color: rgba(255,255,255,.3); }

.service--cream .service__face { background: var(--cream); }

.service--green .service__face { background: var(--green); border-color: var(--green); color: #fff; }
.service--green:hover .service__face { box-shadow: 0 18px 40px rgba(30,94,78,.25); }
.service--green .service__price { color: var(--mint); }
.service--green .service__text  { color: var(--mint-2); }
.service--green .service__face--front::after { border-color: rgba(255,255,255,.35); }

/* Без курсора переворачивать нечем: показываем обе стороны сразу,
   склеивая их в одну карточку — верх с ценой, низ с описанием. */
@media (hover: none), (pointer: coarse) {
  .service { perspective: none; }
  .service:hover { transform: none; }
  .service__inner { display: block; transform: none !important; }
  .service__face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .service__face--front {
    padding-bottom: 0;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
  }
  .service__face--front::after { display: none; }
  .service__face--back {
    transform: none;
    padding-top: 14px;
    border-top: 0;
    border-radius: 0 0 24px 24px;
  }
}

/* ---------- cabinet ---------- */

.cabinet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.cabinet__intro { max-width: 720px; }
.cabinet__intro .h2 { margin-top: 18px; }
.cabinet__intro .lead { margin-top: 24px; }

.ticks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--grey);
}
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.cabinet__foot {
  margin-top: 34px;
  text-align: center;
  font-size: 15px;
  color: var(--muted-2);
}

/* =========================================================
   MacBook
   ---------------------------------------------------------
   Камера зафиксирована спереди и чуть сверху, ноутбук «лежит на столе».
   Корпус — плоскость, наклонённая вокруг линии петли (низ — к зрителю),
   крышка — двусторонняя карточка, вращающаяся вокруг той же петли:
   закрытая лежит на корпусе, открытая встаёт почти вертикально.
   Прогресс раскрытия задаёт --open (0…1, считает app.js).
   По умолчанию 1: без JS посетитель видит открытый ноутбук.

   Вся геометрия — в фиксированных «дизайн-пикселях» (сцена 1000px),
   в кадр её вписывает масштаб --fit, тоже из app.js.
   ========================================================= */

@property --open {
  syntax: '<number>';
  initial-value: 1;
  inherits: true;
}

.mac {
  --open: 1;
  --fit: 1;

  /* геометрия ноутбука */
  --mac-w: 1000px;     /* ширина корпуса */
  --mac-d: 600px;      /* глубина корпуса = высота крышки */
  --mac-tilt: 76deg;   /* наклон корпуса: 90° было бы «смотрим в упор на торец» */
  --mac-swing: 100deg; /* ход крышки от закрытой до рабочего угла */
  --hinge-y: 620px;    /* линия петли внутри сцены */

  /* алюминий */
  --al-1: #a7abb2;
  --al-2: #8e939a;
  --al-3: #797e85;
  --al-dark: #5c6067;

  margin-top: 60px;
  /* дорожка прокрутки: пока идём по ней, ноутбук держится в кадре и раскрывается */
  height: 220vh;
}

.mac__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* липкая шапка сайта перекрывает верх кадра — освобождаем его */
  padding-top: calc(var(--header-h) + 8px);
  overflow: hidden;
}

/* мягкий «прожектор» позади, чтобы силуэт читался на тёмной секции */
.mac__sticky::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(52% 44% at 50% 60%, rgba(255,255,255,.075), transparent 70%);
  pointer-events: none;
}

.mac__scene {
  position: relative;
  flex-shrink: 0;
  width: var(--mac-w);
  /* закрытый ноутбук чуть приподнят к центру кадра,
     к концу раскрытия опускается на «своё» место */
  transform:
    translateY(calc((1 - var(--open)) * -72px))
    scale(calc(var(--fit) * (0.96 + 0.04 * var(--open))));
  transform-origin: 50% 52%;
  will-change: transform;
}

/* сцена: перспектива живёт здесь, стейдж задаёт габарит */
.mac__laptop {
  position: relative;
  z-index: 1;
  width: var(--mac-w);
  height: 920px;
  perspective: 3000px;
  perspective-origin: 50% 16%;
}

/* ---------- корпус: наклонная плоскость стола ---------- */

.mac__deck {
  position: absolute;
  left: 0;
  top: var(--hinge-y);
  width: var(--mac-w);
  height: var(--mac-d);
  transform-origin: 50% 0;
  /* низ плоскости поворачивается к зрителю — корпус «ложится на стол».
     preserve-3d обязателен: без него крышка сплющивается в плоскость корпуса */
  transform: rotateX(var(--mac-tilt));
  transform-style: preserve-3d;
}

.mac__deckface {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  /* верхняя тёмная полоса — вентиляция и петля позади клавиатуры */
  background:
    linear-gradient(180deg, rgba(7,8,10,.95) 0, rgba(9,10,13,.88) 38px, rgba(18,19,23,.4) 50px, transparent 62px),
    radial-gradient(115% 85% at 50% -20%, rgba(255,255,255,.14), transparent 58%),
    linear-gradient(180deg, var(--al-3) 0%, var(--al-2) 34%, var(--al-1) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.17),
    inset 0 -16px 34px rgba(0,0,0,.14);
}

/* решётки динамиков по бокам клавиатуры */
.mac__deckface::before,
.mac__deckface::after {
  content: "";
  position: absolute;
  top: 72px;
  height: 300px;
  width: 42px;
  background-image: radial-gradient(rgba(18,19,22,.55) 1.6px, transparent 2.1px);
  background-size: 9px 9px;
  opacity: .45;
}
.mac__deckface::before { left: 15px; }
.mac__deckface::after  { right: 15px; }

.mac__kb {
  position: absolute;
  top: 66px;
  left: 70px;
  right: 70px;
  height: 326px;
  border-radius: 12px;
  background: #141518 url(assets/mac-keyboard.svg) center / 100% 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.5),
    inset 0 8px 18px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.14);
}

.mac__trackpad {
  position: absolute;
  left: 50%;
  top: 410px;
  width: 430px;
  height: 158px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, #989ca3, #a2a6ad);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.26),
    inset 0 2px 5px rgba(0,0,0,.12),
    inset 0 -1px 0 rgba(255,255,255,.22);
}

/* передний торец корпуса с выемкой под палец */
.mac__lip {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 17px;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, #94989f, #74787f 45%, #55585e);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.3),
    inset 0 -3px 4px rgba(0,0,0,.35);
}
.mac__lip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 132px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #43464c, #676b72);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.35);
}

/* ---------- крышка ---------- */

.mac__lid {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  /* приподнята над корпусом на толщину петли; 0 — лежит, --mac-swing — встала.
     Небольшой зазор ещё и разводит плоскости для сортировки по глубине */
  transform: translateZ(7px) rotateX(calc(var(--mac-swing) * var(--open)));
  pointer-events: none;
  will-change: transform;
}

/* внешняя сторона — алюминий с логотипом, видна пока ноутбук закрыт */
.mac__cover,
.mac__screen {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mac__cover {
  transform: translateZ(2.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.2), transparent 55%),
    linear-gradient(180deg, var(--al-3) 0%, var(--al-2) 40%, var(--al-1) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.2),
    inset 0 -2px 0 rgba(255,255,255,.28);
}
.mac__logo { display: block; }

/* при раскрытии внешняя сторона отворачивается от света и темнеет */
.mac__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #0b0c0e;
  opacity: calc(var(--open) * .5);
}

/* Экран — обратная сторона крышки: разворот вокруг X, как у настоящей петли,
   поэтому верх интерфейса оказывается у свободного края крышки. */
.mac__screen {
  transform: rotateX(180deg) translateZ(2.5px);
  padding: 13px 13px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111214, #0a0b0c);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.1),
    inset 0 0 0 5px #08090a;
}

/* гравировка на «подбородке» */
.mac__screen::after {
  content: "1bayt";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255,255,255,.3);
  pointer-events: none;
}

.mac__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 150px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 9px 9px;
  background: #08090a;
  z-index: 3;
}

/* стекло: до середины раскрытия экран «выключен», затем загорается */
.mac__glass {
  position: absolute;
  inset: 13px 13px 20px;
  border-radius: 7px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.035) 30%, transparent 46%),
    linear-gradient(180deg, #0c0d0f, #101216);
  opacity: clamp(0, calc((0.66 - var(--open)) / 0.22), 1);
}

/* ---------- содержимое экрана ---------- */

.mac__screen .app {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0;
  border-radius: 7px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.mac__screen .app__body { flex: 1; min-height: 0; flex-wrap: nowrap; }
.mac__screen .app__side,
.mac__screen .app__main {
  overflow-y: auto;
  scrollbar-width: none;
}
.mac__screen .app__side::-webkit-scrollbar,
.mac__screen .app__main::-webkit-scrollbar { display: none; }

/* Панель внутри дисплея живёт в компактном масштабе, чтобы кабинет
   целиком помещался в экран ноутбука (на мобильном не действует —
   там панель показывается без ноутбука) */
@media (min-width: 861px) {
  .mac__screen .app__chrome { padding: 9px 16px; }
  .mac__screen .app__url { font-size: 12px; padding: 5px 14px; }
  .mac__screen .app__side { width: 232px; min-width: 0; flex: 0 0 232px; padding: 18px 16px; }
  .mac__screen .app__nav { margin-top: 18px; }
  .mac__screen .app__navitem { padding: 9px 12px; font-size: 14px; border-radius: 10px; }
  .mac__screen .app__manager { margin-top: 18px; padding: 13px 14px; }
  .mac__screen .app__manager strong { font-size: 15px; }
  .mac__screen .app__manager > span { font-size: 13px; }
  .mac__screen .app__manager-btn { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
  .mac__screen .app__main { padding: 18px 26px 14px; min-height: 0; }
  .mac__screen .app__title { font-size: 21px; }
  .mac__screen .app__sub { font-size: 13.5px; margin-top: 4px; }

  .mac__screen .pay { gap: 14px; margin-top: 14px; }
  .mac__screen .pay__due, .mac__screen .pay__budget { padding: 16px 20px; }
  .mac__screen .pay__amount { font-size: 30px; }
  .mac__screen .pay__caption { font-size: 13px; }
  .mac__screen .pay__for { font-size: 13px; margin-top: 4px; }
  .mac__screen .pay__total { font-size: 24px; }
  .mac__screen .pay__split { font-size: 13px; }
  .mac__screen .pay__actions { margin-top: 10px; }
  .mac__screen .pay__sub { margin-top: 12px; padding-top: 10px; }
  .mac__screen .bar { margin-top: 10px; }
  .mac__screen .chip { padding: 8px 15px; font-size: 13px; }
  .mac__screen .table { margin-top: 14px; border-radius: 14px; }
  .mac__screen .table__head { padding: 8px 16px; font-size: 11px; }
  .mac__screen .table__row { padding: 8px 16px; font-size: 13.5px; }

  .mac__screen .docs { gap: 10px; margin-top: 18px; }
  .mac__screen .doc { padding: 14px 18px; border-radius: 14px; }
  .mac__screen .doc__name { font-size: 16px; }
  .mac__screen .doc__meta { font-size: 13px; }

  .mac__screen .progress { padding: 12px 18px; margin-top: 14px; border-radius: 14px; }
  .mac__screen .progress__value { font-size: 30px; }
  .mac__screen .timeline { margin-top: 14px; }
  .mac__screen .timeline__item { padding-bottom: 14px; padding-left: 30px; }
  .mac__screen .timeline__title { font-size: 15px; }
  .mac__screen .timeline__meta { font-size: 12.5px; margin-top: 2px; }
  .mac__screen .timeline__quote { padding: 10px 14px; font-size: 12.5px; margin-top: 8px; }

  .mac__screen .kpis { gap: 12px; margin-top: 18px; }
  .mac__screen .kpi { padding: 16px; border-radius: 14px; }
  .mac__screen .kpi__value { font-size: 26px; }
  .mac__screen .kpi__label { font-size: 13px; }
  .mac__screen .rows { margin-top: 16px; gap: 10px; }
  .mac__screen .row { padding: 13px 16px; font-size: 14px; border-radius: 12px; }

  .mac__screen .chat { margin-top: 18px; gap: 10px; }
  .mac__screen .bubble { padding: 12px 16px; font-size: 14px; }
  .mac__screen .chat__input { margin-top: 16px; padding: 10px 14px; font-size: 14px; }
}

/* мягкая тень на «столе» */
.mac__shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 826px;
  width: 1150px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent 74%);
  filter: blur(16px);
  pointer-events: none;
}

/* browser mock */
.app {
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.app__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
  flex-shrink: 0;
}
.dot--brand { background: var(--brand); }
.app__url {
  margin-left: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app__body { display: flex; flex-wrap: wrap; }

.app__side {
  width: 270px;
  min-width: 220px;
  flex: 1 1 220px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: var(--cream-2);
}
.app__client { display: flex; align-items: center; gap: 10px; }
.app__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}
.app__client-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.app__client-meta { display: block; font-size: 13px; color: var(--muted); }

.app__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
}
.app__navitem {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.app__navitem:hover { background: var(--line); color: var(--ink); }
.app__navitem.is-active { background: var(--ink); color: #fff; }

.app__manager {
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
}
.app__manager strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.app__manager > span {
  display: block;
  font-size: 14px;
  color: var(--brand-pale);
  margin-top: 4px;
}
.app__manager-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.app__manager-btn:hover { background: var(--ink); color: #fff; }

.app__main {
  flex: 3 1 560px;
  padding: 34px 38px;
  min-height: 520px;
}
.app__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.03em;
}
.app__sub { font-size: 16px; color: var(--muted); margin-top: 10px; }

/* payment panel */
.pay { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }

.pay__due {
  flex: 1 1 300px;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
}
.pay__caption { font-size: 14px; color: var(--muted-2); }
.pay__caption--dark { color: var(--muted); }
.pay__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-top: 8px;
}
.pay__for { font-size: 15px; color: var(--grey); margin-top: 6px; }
.pay__actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.pay__budget {
  flex: 1 1 260px;
  padding: 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.pay__total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.03em;
  margin-top: 6px;
}
.pay__split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.pay__sub {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.pay__sub strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 16px;
  overflow: hidden;
}
.bar--lg { height: 12px; background: var(--line-2); margin-top: 0; }
.bar__fill { display: block; height: 100%; background: var(--brand); }
.bar__fill--green { background: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.chip--brand { background: var(--brand); color: #fff; }
.chip--ghost { border: 1px solid var(--ink-2); color: var(--grey); }
.chip--line  { border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; }
.chip--dark  { background: var(--ink); color: #fff; }

.table {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.table__head,
.table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.table__head {
  padding-block: 16px;
  background: var(--cream);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table__row { border-top: 1px solid var(--line); font-size: 16px; }
.table__row--active { background: var(--brand-soft); }
.table__row--muted  { color: var(--muted); }

.is-paid { color: var(--green); font-weight: 700; }
.is-due  { color: var(--brand); font-weight: 700; }

/* documents panel */
.docs { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.doc--attention { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.doc__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.doc__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.doc__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc__status { font-size: 15px; color: var(--muted); }

/* stages panel */
.progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--cream);
}
.progress__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -.04em;
  line-height: 1;
}
.progress__body { flex: 1; }
.progress__note { font-size: 14px; color: var(--muted); margin-top: 8px; }

.timeline { margin-top: 26px; }
.timeline__item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 26px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-2);
  box-sizing: border-box;
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  bottom: 0;
  width: 2px;
  background: var(--line-2);
}
.timeline__item--last { padding-bottom: 0; }
.timeline__item--last::after { display: none; }

.timeline__item.is-done::before { background: var(--green); border-color: var(--green); }
.timeline__item.is-current::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 6px rgba(240,58,12,.16);
}
.timeline__item.is-current .timeline__title { color: var(--brand); }

.timeline__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
}
.timeline__item.is-done .timeline__title { color: var(--ink); }
.timeline__meta { font-size: 15px; color: var(--muted); margin-top: 4px; }

.timeline__quote {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink-2);
}
.timeline__quote cite { color: var(--muted); font-style: normal; }

/* admin panel */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.kpi { padding: 22px; border-radius: 20px; background: var(--cream); }
.kpi__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -.03em;
}
.kpi__label { font-size: 15px; color: var(--muted); margin-top: 6px; }

.rows { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 16px;
}

/* chat panel */
.chat { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.bubble {
  align-self: flex-start;
  max-width: 70%;
  padding: 16px 20px;
  border-radius: 20px 20px 20px 6px;
  background: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}
.bubble--own {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--ink);
  color: #fff;
}
.bubble__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.bubble--own .bubble__meta { color: var(--muted-2); }

.chat__input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
}
.chat__input .chip { margin-left: auto; }

/* ---------- why ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 48px;
}
.why__cell {
  background: var(--cream);
  padding: 36px 34px;
  box-shadow: 0 0 0 1px var(--line-2);
}
.why__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand);
}
.why__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2vw, 24px);
  letter-spacing: -.02em;
  margin-top: 14px;
}
.why__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 12px;
}
.why__cell--dark {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.why__cell--dark .why__title { margin-top: 0; }
.why__cell--dark .why__text  { color: var(--grey); }
.why__cell--dark .btn { align-self: flex-start; padding: 14px 26px; font-size: 16px; font-weight: 700; }
.why__cell--dark .btn--brand:hover { background: #fff; color: var(--ink); }

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
/* на широком все пять шагов держим в один ряд, без «хвоста» */
@media (min-width: 1240px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.step { padding-top: 22px; border-top: 3px solid var(--ink); }
.step--brand { border-top-color: var(--brand); }
.step--green { border-top-color: var(--green); }
.step__when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-top: 10px;
}
.step__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ---------- cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.case {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23,24,26,.09);
}
.case__media { height: 260px; }
.case__body { padding: 28px; }
.case__kind {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.case__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-top: 12px;
}
.case__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 10px;
}
.case__stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case__stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
}
.case__stats dd { font-size: 14px; color: var(--muted); }

/* ---------- что получаете на руки ---------- */

.assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.asset {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.asset:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23,24,26,.09);
}
.asset__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 24px);
  letter-spacing: -.02em;
}
.asset__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 12px;
}
.asset--dark { background: var(--ink); color: #fff; }
.asset--dark .asset__text { color: var(--grey); }
.asset--dark:hover { box-shadow: 0 18px 40px rgba(23,24,26,.2); }
.asset--green { background: var(--green); border-color: var(--green); color: #fff; }
.asset--green .asset__text { color: var(--mint-2); }
.asset--green:hover { box-shadow: 0 18px 40px rgba(30,94,78,.25); }

/* image placeholders — swap the inner <span> for an <img> when real assets arrive */
.media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty img { object-fit: contain; }
.media__hint {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.trust {
  margin-top: 56px;
  padding: 36px 34px;
  border-radius: var(--r-lg);
  background: var(--cream);
}
.trust__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.trust__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
}
.trust__note { font-size: 15px; color: var(--muted); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.trust__slot {
  height: 84px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px dashed var(--line-dash);
}

/* ---------- care ---------- */

.care__head {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.care__intro { flex: 1 1 520px; max-width: 760px; }
.care__intro .h2 { margin-top: 18px; }
.care__intro .lead { margin-top: 24px; }
.care__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 52px;
  align-items: start;
}

.plan {
  position: relative;
  padding: 32px 30px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}
/* средний тариф — целевой, поэтому светлее и с меткой */
.plan--main {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.42);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.plan__price strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 3.6vw, 50px);
  letter-spacing: -.04em;
  line-height: 1;
}
.plan__price span { font-size: 17px; color: var(--mint-2); }
.plan__for { font-size: 15px; color: var(--mint-2); margin-top: 8px; }
.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 16px;
}
.plan__list li { display: flex; gap: 12px; align-items: flex-start; }
.plan__list li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 800;
  flex-shrink: 0;
}
.plan__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mint-2);
  max-width: 900px;
}

/* ---------- brief ---------- */

.brief {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.brief__bar { height: 6px; background: var(--line); }
.brief__bar-fill {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width .35s ease;
}
.brief__body { padding: 40px; }

.brief__legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.brief__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.03em;
  margin-top: 10px;
}
.brief__label { font-size: 16px; color: var(--muted); margin-top: 28px; }
.brief__step[data-step="1"] .chips { margin-top: 24px; }
.brief__step[data-step="2"] .chips { margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.brief__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.field { display: block; }
.field + .field { margin-top: 16px; }
.brief__fields .field + .field { margin-top: 0; }
.field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.field__input {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s ease;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { border-color: var(--brand); }
.field__input--area { min-height: 120px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--brand); background: var(--brand-soft); }

.brief__fine { font-size: 15px; color: var(--muted); margin-top: 14px; }
.brief__fine a { color: var(--muted); text-decoration: underline; }
.brief__fine a:hover { color: var(--brand); }

/* ловушка для ботов: убрана из потока и недоступна с клавиатуры,
   display:none не годится — часть ботов такие поля игнорирует */
.brief__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brief__done-actions { margin-top: 24px; }

.brief__done { text-align: center; padding: 20px 0; }
.brief__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto;
}
.brief__done-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -.03em;
  margin-top: 22px;
}
.brief__done-text {
  font-size: 18px;
  color: var(--ink-2);
  margin: 12px auto 0;
  max-width: 520px;
}
.brief__done-call { font-size: 16px; color: var(--muted); margin-top: 18px; }
.brief__done-call a { font-weight: 700; }

.brief__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.brief__nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.brief__summary {
  font-size: 15px;
  color: var(--muted);
  max-width: 380px;
}
#brief-next { padding: 16px 32px; font-size: 17px; }

/* ---------- faq ---------- */

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font: inherit; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink);
  letter-spacing: -.02em;
  transition: color .18s ease;
}
.faq__q:hover { color: var(--brand); }
/* знак «+» берём из Manrope: ради одного глифа тянуть ещё одно
   начертание Golos Text не стоит */
.faq__sign {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }

.faq__panel p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 0 60px 28px 0;
  max-width: 820px;
}

/* мягкое появление ответа (в браузерах без @starting-style — мгновенно) */
.faq__panel:not([hidden]) {
  transition: opacity .28s ease, transform .28s ease;
}
@starting-style {
  .faq__panel:not([hidden]) {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- страницы услуг ---------- */

.crumbs {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* на внутренних страницах заголовок мельче: он не спорит с главной */
.hero__title--sub { font-size: clamp(28px, 5vw, 72px); }

.includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 32px;
  margin-top: 40px;
}
.includes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.includes li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta-band > div { max-width: 640px; }
.cta-band .lead { margin-top: 18px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
  .cta-band__actions .btn { flex: 1 1 100%; }
}

/* ---------- юридические страницы ---------- */

.legal { padding-top: 72px; }
.legal .h2 { margin-top: 14px; }
.legal__updated { font-size: 15px; color: var(--muted); margin-top: 16px; }
.legal__body { margin-top: 40px; max-width: 760px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: -.02em;
  margin-top: 40px;
}
.legal__body p,
.legal__body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: 14px;
}
.legal__body ul { margin-top: 6px; }
.legal__body li { position: relative; padding-left: 20px; }
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.legal__body strong { color: var(--ink); }
.legal__back { margin-top: 48px; font-size: 17px; font-weight: 700; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 0 40px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.footer__about { max-width: 420px; }
.footer__text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey);
  margin-top: 18px;
}
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer__col a { color: #fff; }
.footer__col a:hover { color: var(--brand); }
.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.footer__muted { color: var(--grey); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-3);
  font-size: 14px;
  color: var(--muted);
}
.footer__bottom a { color: var(--grey); }
.footer__bottom a:hover { color: var(--brand); }

/* ---------- animation ---------- */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* вход hero при загрузке: бейдж → заголовок → лид с кнопками → цифры */
.hero .badge      { animation: rise-in .55s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__title      { animation: rise-in .6s  cubic-bezier(.2,.7,.2,1) .08s backwards; }
.hero__row        { animation: rise-in .6s  cubic-bezier(.2,.7,.2,1) .16s backwards; }
.hero ~ .marquee,
.hero .stats      { animation: rise-in .65s cubic-bezier(.2,.7,.2,1) .24s backwards; }

/* появление блоков по мере скролла: класс вешает app.js,
   без JS ничего не скрыто */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .6s ease var(--rv-delay, 0s),
    transform .6s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0s);
}
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .site-nav { gap: 20px; font-size: 14px; }
}

/* авторские переносы работают только там, где строка целиком помещается */
@media (max-width: 900px) {
  .br-wide { display: none; }
}

/* Порог подобран по азербайджанскому: его пункты меню длиннее русских,
   и вместе с переключателем языка горизонтальное меню перестаёт помещаться
   раньше — около 1090px. Ниже прячем его в бургер. */
@media (max-width: 1120px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(23,24,26,.1);
    font-size: 18px;
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }

  .burger { display: flex; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 84px; }

  .hero { padding-top: 64px; }
  .app__main { padding: 28px 24px; min-height: 0; }

  /* сетки без «хвостов»: 2×2 и 3×2 вместо неполного ряда */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why   { grid-template-columns: repeat(2, 1fr); }
}

/* На узком экране ноутбук не имеет смысла: рамка съедает ширину, а панель
   внутри становится нечитаемой. Показываем её напрямую, без 3D и «липкости». */
@media (max-width: 860px) {
  .mac { height: auto; margin-top: 40px; }
  .mac__sticky { position: static; height: auto; display: block; overflow: visible; }
  .mac__sticky::before { display: none; }
  .mac__scene { width: auto; transform: none; }
  .mac__laptop { width: auto; height: auto; perspective: none; }
  .mac__deck {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    perspective: none;
  }
  .mac__deckface, .mac__cover, .mac__notch, .mac__glass,
  .mac__lip, .mac__shadow { display: none; }
  .mac__lid { position: static; transform: none; transform-style: flat; pointer-events: auto; }
  .mac__screen {
    position: static;
    transform: none;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    display: block;
  }
  .mac__screen::after { display: none; }
  .mac__screen .app {
    display: block;
    border-radius: var(--r-xl);
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
  }
  .mac__screen .app__body { flex-wrap: wrap; }
  .mac__screen .app__side,
  .mac__screen .app__main { overflow: visible; }

  .app__side {
    width: 100%;
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .app__nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .app__navitem { width: auto; white-space: nowrap; }
  .app__manager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .app__manager-btn { margin-top: 0; }

  .bubble { max-width: 88%; }
}

@media (max-width: 720px) {
  .site-header__phone { display: none; }
  .brief__body { padding: 28px 22px; }
  .trust { padding: 28px 22px; }
  .why__cell { padding: 28px 24px; }
  .service { padding: 26px 24px; }
  .case__body { padding: 24px 22px; }
  .footer { padding-top: 56px; }
  .footer__cols { gap: 36px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section: 64px; }

  .site-header { padding: 12px var(--gutter); }
  .site-header .btn--dark { display: none; }
  .logo__text { font-size: 22px; }

  .stats { grid-template-columns: 1fr; }
  .why   { grid-template-columns: 1fr; }

  .hero__cta .btn,
  .care__cta .btn { flex: 1 1 100%; }

  .stats { margin-top: 44px; }
  .marquee { margin-top: 44px; }

  .services, .cases, .steps { gap: 16px; }

  .pay__due, .pay__budget { padding: 22px 20px; }
  .table__head, .table__row { padding: 14px 16px; font-size: 15px; }
  .table__row { flex-wrap: wrap; gap: 4px; }
  .doc { padding: 18px 18px; }
  .doc__actions { width: 100%; justify-content: space-between; }
  .row { flex-wrap: wrap; gap: 6px; }

  .faq__panel p { padding-right: 0; }
  .faq__q { padding: 22px 0; }

  .brief__nav { flex-direction: column-reverse; align-items: stretch; }
  .brief__nav-right { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .brief__summary { max-width: none; text-align: center; }
  #brief-next, #brief-back { width: 100%; }
  .brief__summary:empty { display: none; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__slot { height: 72px; }
  .case__media { height: 200px; }
}

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

@media print {
  .site-header, .marquee, .brief__nav, .burger { display: none !important; }
  .section { padding-block: 24px; }
  body { color: #000; }
}
