/*
 * Веб-версия предложения. Палитра и типографика те же, что в PDF:
 * оранжевый только акцентом, всё остальное монохром.
 *
 * Шрифты лежат рядом, из сети ничего не тянется — страницу можно открыть
 * с флешки и показать без интернета.
 */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB, U+2212;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB, U+2212;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB, U+2212;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Запасной шрифт ради символа тенге: в Inter его нет. */
@font-face {
  font-family: "TengeFallback";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/DejaVuSans.ttf") format("truetype");
  unicode-range: U+20B8;
}

:root {
  /* Нейтральная шкала — с личных сайтов. Предложение уходит разным
     компаниям, поэтому фирменного цвета заказчика здесь нет.

     Цвета меньше, чем в памятке: продающая страница живёт на одном
     сильном призыве. Чёрный остаётся за кнопками и суммой, синий
     работает только там, где можно нажать, — ссылки, вкладки, ползунок.
     Так видно, что интерактивно, и главная кнопка ни с чем не спорит. */
  --ink: #09090b;
  --muted: #71717a;
  --faint: #a1a1aa;
  --hair: #e4e4e7;
  --hair-2: #d4d4d8;
  --panel: #f4f4f5;
  --accent: #09090b;
  --link: #2563eb;
  --link-line: #bfdbfe;
  --link-soft: #eff6ff;
  --wrap: 1000px;
}

* {
  box-sizing: border-box;
}

/* Свой display на элементе перебивает браузерное правило для [hidden],
   и блок остаётся на экране. Поэтому скрываем явно. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Inter", "TengeFallback", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}
p {
  margin: 0 0 12px;
}
ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
li {
  margin-bottom: 5px;
}
li::marker {
  color: var(--faint);
}
b,
strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
}
.accent {
  color: var(--link);
}

section {
  margin: 40px 0;
}

/* ————— Шапка ————— */

.head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nm {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sp {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--accent);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  padding: 9px 16px;
}

/* ————— Первый экран ————— */

.hero {
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, #fff 0%, var(--panel) 100%);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.facts {
  display: flex;
  gap: 28px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.facts b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.facts span {
  font-size: 13px;
  color: var(--muted);
  max-width: 130px;
  display: block;
}

/* Вертикальное видео с телефона: рамка под его пропорции. */
.phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 270px;
}
.phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  background: #000;
  border: 1px solid var(--hair);
}
.phone {
  position: relative;
}
.play {
  position: absolute;
  left: 50%;
  top: calc(50% - 14px);
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.play svg {
  margin-left: 3px;
}
.phone figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ————— Форматы ————— */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 20px 22px;
  background: #fff;
}
.fmt-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ————— Калькулятор ————— */

.calc {
  margin-top: 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--panel);
}
.calc-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  margin-bottom: 8px;
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--link);
}
.calc-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 14px 0 10px;
}
.calc-out .k {
  font-size: 13px;
  color: var(--muted);
}
.calc-out .v {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 5px;
  border-radius: 3px;
  background: var(--hair);
  margin-top: 8px;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  background: var(--link);
  transition: width 0.2s ease;
}

/* ————— Программа ————— */

.day {
  border: 1px solid var(--hair);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}
.day summary {
  cursor: pointer;
  padding: 13px 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.day summary::marker {
  color: var(--faint);
}
.day .d {
  font-weight: 700;
  min-width: 62px;
}
.day .g {
  color: var(--muted);
  font-size: 14px;
}
.day ul {
  margin: 0;
  padding: 0 20px 14px 40px;
}

/* Ряд контактов: на узком экране кнопки переносятся, а не сжимаются. */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contacts .btn.ghost {
  padding: 12px 22px;
}

/* ————— Прочее ————— */

.quote {
  background: var(--link-soft);
  border-left: 3px solid var(--link);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 12px 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
td {
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
}
td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
}

.foot {
  border-top: 1px solid var(--hair);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

/* ————— Телефон ————— */

@media (max-width: 760px) {
  .hero-in,
  .calc-out,
  .two {
    grid-template-columns: 1fr;
  }
  .hero-in {
    gap: 28px;
    padding-top: 32px;
  }
  .phone {
    max-width: 230px;
  }
  .head .btn.ghost {
    display: none;
  }
  section {
    margin: 30px 0;
  }
}

/* Запасной блок вместо видео: держит ту же колонку и пропорцию. */
.still {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 26px 22px;
}
.still-in .q {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--accent);
}
.still-in p {
  font-size: 15px;
  color: var(--muted);
}
.still-in .q-src {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* Ссылки в тексте: тем же акцентом, что и остальные активные элементы. */
main a,
.foot a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-color: var(--link-line);
}
main a:hover,
.foot a:hover {
  text-decoration-color: var(--link);
}

/* ————— Проекты, собранные с ИИ ————— */

.work { margin-bottom: 26px; }
.work-top {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.work-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.work-tag {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 100px;
  padding: 3px 10px; white-space: nowrap;
}
.work > p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 68ch; }
.work > p b { color: var(--ink); font-weight: 600; }

/* горизонтальная лента медиа */
.shots {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 14px 0 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: #d8d8dd; border-radius: 3px; }
.shots img, .shots video {
  height: 300px; width: auto; flex-shrink: 0;
  border-radius: 10px; border: 1px solid var(--hair);
  background: #fff; scroll-snap-align: start;
  display: block;
}
.shots img { cursor: zoom-in; }
.shots.wide img, .shots.wide video { height: 210px; }

/* лайтбокс */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,12,14,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 28px; cursor: zoom-out;
}
.lb.on { display: flex; }
.lb img { max-width: 94vw; max-height: 92vh; border-radius: 12px; }

@media (max-width: 720px) {
  .shots img, .shots video { height: 230px; }
  .shots.wide img, .shots.wide video { height: 150px; }
}
