/* ============================================================
   Knigoboom — мастерская фотокниг, фотопечати и сувениров.
   Светлая «бумажная» тема: тёплый фон, крупная антиква, тонкие
   линейки, два акцента — сургучный красный и чёрный.
   Без внешних шрифтов, библиотек и CDN: только CSS.
   ============================================================ */

/* ---------- Токены ---------- */

:root {
  --paper: #f3efe7;
  --paper-2: #faf7f1;
  --paper-3: #ece6da;
  --ink: #17140f;
  --ink-soft: #3d362c;
  --muted: #6d6457;
  --line: #ddd4c4;
  --line-strong: #c7bcaa;
  --accent: #c0402a;
  --accent-dark: #98301e;
  --accent-soft: #f2ddd6;
  --dark: #14110d;
  --dark-2: #1d1913;
  --on-dark: #f4efe5;
  --on-dark-muted: #a89e8f;

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- База ---------- */

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Бумажное зерно: одна почти прозрачная SVG-текстура на весь экран. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter>\
<rect width='180' height='180' filter='url(%23n)' opacity='0.11'/></svg>");
}

body > * { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Типографика ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.55;
}

.muted { color: var(--muted); }

/* Подпись-ярлык: «(01) услуги». */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--plain::before { display: none; }

.eyebrow--light { color: var(--on-dark-muted); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s, border-color 0.22s, color 0.22s,
              transform 0.22s var(--ease), box-shadow 0.28s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: 0 0 auto; }

.btn--accent {
  background: var(--accent);
  color: #fff6f1;
  box-shadow: 0 10px 26px -14px rgba(192, 64, 42, 0.85);
}

.btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 16px 32px -14px rgba(152, 48, 30, 0.75);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper-2);
}

.btn--ink:hover { background: #2a241c; }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.btn--light {
  background: var(--paper-2);
  color: var(--ink);
}

.btn--light:hover { background: #fff; }

.btn--ghost-light {
  border-color: rgba(244, 239, 229, 0.28);
  color: var(--on-dark);
}

.btn--ghost-light:hover {
  border-color: rgba(244, 239, 229, 0.7);
  background: rgba(244, 239, 229, 0.06);
}

.btn--wide { width: 100%; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 231, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header--dark {
  background: rgba(20, 17, 13, 0.72);
  border-bottom-color: rgba(244, 239, 229, 0.12);
  color: var(--on-dark);
}

.site-header--dark.is-scrolled { border-bottom-color: rgba(244, 239, 229, 0.2); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.25s;
}

.brand span { color: var(--accent); }

.site-header--dark .brand { color: var(--on-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.nav-links a {
  padding-block: 6px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.site-header--dark .nav-links { color: var(--on-dark-muted); }
.site-header--dark .nav-links a:hover { color: var(--on-dark); }

.nav .btn { padding: 12px 22px; font-size: 13.5px; }

/* ---------- Первый экран главной ---------- */

.hero { position: relative; }

.hero__inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--nav-h));
  padding-top: clamp(24px, 4.4vh, 54px);
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vh, 46px);
}

.hero__copy { max-width: 640px; }

.hero__eyebrow { margin-bottom: clamp(16px, 2.2vh, 24px); }

/* Заголовок печатается по буквам: буквы занимают место заранее,
   поэтому строки не «прыгают», а текст не рвётся внутри слова. */
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  min-height: 2.14em;
  margin-bottom: clamp(14px, 2vh, 20px);
  transition: opacity 0.34s ease, transform 0.34s var(--ease), filter 0.34s ease;
}

.hero-title .w { display: inline-block; white-space: nowrap; }

.hero-title .ch {
  display: inline-block;
  white-space: pre;
}

.hero-title .ch.tw {
  color: var(--accent);
  transform: translateY(-0.05em);
  transition: color 0.12s, transform 0.12s;
}

.hero-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.86em;
  margin-left: 0.05em;
  background: var(--accent);
  vertical-align: -0.06em;
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-title.is-out {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(3px);
}

.hero-lead {
  min-height: 3.1em;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.55;
  transition: opacity 0.3s ease;
}

.hero-lead.is-fading { opacity: 0; }

/* Спецификация под заголовком: три пары «параметр — значение».
   Высота зарезервирована: смена слайда не должна двигать кнопки. */
.specs {
  margin-block: clamp(18px, 2.6vh, 28px);
  max-width: 460px;
  min-height: 132px;
  border-top: 1px solid var(--line);
}

.specs__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.specs__row.is-in {
  opacity: 1;
  transform: none;
}

.specs dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.specs dd {
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Иллюстрация: вертикальный кадр с тонкой рамкой и подписью. */
.hero-figure {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  animation: figure-in 1.1s var(--ease) both;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  z-index: -1;
}

.hero-figure__img {
  position: relative;
  width: 100%;
  height: clamp(320px, 57svh, 610px);
  background: var(--paper-3);
  overflow: hidden;
}

.hero-figure__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-figure figcaption b {
  color: var(--accent);
  font-weight: 600;
}

@keyframes figure-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* Строка фактов внизу первого экрана. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: auto;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-facts li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Бегущая строка ---------- */

.ticker {
  background: var(--dark);
  color: var(--on-dark);
  border-block: 1px solid rgba(244, 239, 229, 0.1);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  height: 58px;
  animation: ticker 44s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-inline: 28px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(244, 239, 229, 0.72);
}

.ticker__track span::after {
  content: "·";
  color: var(--accent);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Секции ---------- */

.section { padding-block: clamp(52px, 8.5vh, 104px); }

.section--tight { padding-block: clamp(40px, 6vh, 72px); }

.section--paper2 { background: var(--paper-2); border-block: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(26px, 4vh, 44px);
}

.section__head .h2 { max-width: 18ch; }

.section__head > p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 34ch;
  justify-self: end;
}

.section__label { margin-bottom: 18px; }

/* ---------- Услуги ---------- */

.services {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.service {
  border-bottom: 1px solid var(--line);
}

.service__link {
  display: grid;
  grid-template-columns: 46px 118px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding: 20px clamp(10px, 1.6vw, 22px);
  border-radius: 8px;
  transition: background-color 0.25s;
}

.service__link:hover { background: var(--paper-2); }

.service__no {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.service__media {
  width: 118px;
  height: 86px;
  overflow: hidden;
  background: var(--paper-3);
}

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.service__link:hover .service__media img { transform: scale(1.06); }

.service__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.service__body p {
  color: var(--muted);
  font-size: 14px;
  max-width: 48ch;
}

.service__price {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.service__arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.service__link:hover .service__arrow {
  transform: translateX(5px);
  color: var(--accent);
}

/* ---------- Производство: шаги и видео ---------- */

.process__media {
  position: relative;
  margin-top: clamp(26px, 4vh, 44px);
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  overflow: hidden;
}

.process__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.process__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
  margin-top: clamp(26px, 4vh, 42px);
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.step__no {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Полоса приложения ---------- */

.band {
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(48px, 8vh, 92px);
}

.band__copy .h2 {
  color: var(--on-dark);
  max-width: 17ch;
  margin-block: 18px 16px;
}

.band__copy p {
  color: var(--on-dark-muted);
  font-size: 15px;
  max-width: 42ch;
  margin-bottom: 26px;
}

.band__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.band__note {
  margin-top: 16px;
  color: var(--on-dark-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Окно приложения: тонкая рамка и три точки сверху. */
.window {
  border: 1px solid rgba(244, 239, 229, 0.16);
  background: #0f0d0a;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 12px;
  border-bottom: 1px solid rgba(244, 239, 229, 0.12);
}

.window__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.22);
}

.window__bar em {
  margin-left: auto;
  color: rgba(244, 239, 229, 0.4);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.window img {
  width: 100%;
  display: block;
}

/* ---------- Цифры ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
}

.fact {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.fact span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.fact b em {
  color: var(--accent);
  font-style: normal;
}

/* ---------- Контакты ---------- */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.contact-phone {
  display: inline-block;
  margin-block: 22px 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-phone:hover { color: var(--accent); border-color: var(--accent); }

.contact-mail {
  display: inline-block;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.contact-mail:hover { color: var(--ink); border-color: var(--ink); }

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-list dd { font-size: 14.5px; }

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 5vh, 54px) 26px;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 60px);
  padding-bottom: 26px;
}

.foot__about p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 40ch;
  margin-top: 12px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
  align-content: start;
  justify-content: flex-end;
}

.foot__links a { transition: color 0.2s; }
.foot__links a:hover { color: var(--ink); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

/* ---------- Появление при прокрутке ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Страница приложения
   ============================================================ */

.app-hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

/* Чередующиеся скриншоты на фоне: приглушены, чтобы текст читался. */
.app-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.app-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Размытие: скриншот на фоне — фактура, а не второй интерфейс. */
  filter: grayscale(1) brightness(0.5) blur(9px) contrast(1.02);
  transform: scale(1.06);
  transition: opacity 1.1s ease;
}

.app-hero__bg img.is-on { opacity: 1; }

.app-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 12, 9, 0.95) 0%, rgba(14, 12, 9, 0.87) 34%,
      rgba(14, 12, 9, 0.6) 62%, rgba(14, 12, 9, 0.36) 100%),
    linear-gradient(180deg, rgba(14, 12, 9, 0.7) 0%, rgba(14, 12, 9, 0) 30%,
      rgba(14, 12, 9, 0.55) 78%, var(--dark) 100%);
}

.app-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(34px, 6vh, 70px);
}

.app-hero__copy { max-width: 620px; }

.app-hero__copy .eyebrow { margin-bottom: 22px; }

.app-hero .hero-title {
  min-height: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  color: var(--on-dark);
  margin-bottom: 18px;
}

.app-hero__lead {
  color: var(--on-dark-muted);
  font-size: clamp(15px, 1.1vw, 17px);
  max-width: 44ch;
  margin-bottom: 28px;
}

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

.app-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 229, 0.14);
  list-style: none;
  color: var(--on-dark-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Панель со скриншотом: крупный кадр и подпись. */
.app-panel { position: relative; justify-self: end; width: 100%; max-width: 620px; }

.app-panel .window {
  background: #0c0a08;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
}

.app-panel__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c0a08;
  overflow: hidden;
}

.app-panel__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s ease;
}

.app-panel__shot img.is-fading { opacity: 0; }

.app-panel__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 14px 12px;
  border-top: 1px solid rgba(244, 239, 229, 0.12);
  color: var(--on-dark-muted);
  font-size: 12px;
}

.app-panel__cap b {
  color: var(--on-dark);
  font-weight: 500;
}

.app-panel__cap span {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- Скачивание ---------- */

.download__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.download__box .h2 { margin-bottom: 10px; }

.download__box p {
  color: var(--muted);
  font-size: 14px;
  max-width: 40ch;
}

.download__actions {
  display: grid;
  gap: 10px;
}

.download__actions .btn {
  justify-content: space-between;
  text-align: left;
  white-space: normal;
}

.download__actions .btn small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.download__actions .btn svg { order: 2; }

.os-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Витрина скриншотов ---------- */

.showcase { padding-block: clamp(48px, 7vh, 88px); }

.stage {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #0c0a08;
  overflow: hidden;
}

.stage__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.stage__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stage__img img.is-on { opacity: 1; }

.stage__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 239, 229, 0.25);
  border-radius: 50%;
  background: rgba(12, 10, 8, 0.6);
  color: var(--on-dark);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
}

.stage__nav:hover { background: rgba(12, 10, 8, 0.9); border-color: rgba(244, 239, 229, 0.5); }

.stage__nav--prev { left: 14px; }
.stage__nav--next { right: 14px; }

.stage__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid rgba(244, 239, 229, 0.14);
  color: var(--on-dark-muted);
  font-size: 12.5px;
}

.stage__cap span { color: var(--accent); letter-spacing: 0.14em; font-size: 11px; }

.stage__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.7);
  border: 1px solid rgba(244, 239, 229, 0.2);
  color: var(--on-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.thumbs button {
  flex: 0 0 auto;
  width: 104px;
  padding: 0;
  border: 1px solid var(--line);
  background: #0c0a08;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumbs button:hover { opacity: 0.9; }

.thumbs button.is-on {
  opacity: 1;
  border-color: var(--accent);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ---------- Возможности ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.feature {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.feature__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.feature__no {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.012em;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

/* ---------- Было / стало ---------- */

.compare {
  border-top: 1px solid var(--line-strong);
}

.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.compare__was {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: line-through;
  text-decoration-color: rgba(109, 100, 87, 0.45);
  text-decoration-thickness: 1px;
}

.compare__now {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink);
}

.compare__now::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.compare__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.compare__head span:last-child { color: var(--accent); }

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-block: 20px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__q:hover { color: var(--accent); }

.faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq__item.is-open .faq__q::after { transform: rotate(45deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }

.faq__a p {
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 72ch;
}

/* ---------- Финальный призыв ---------- */

.cta-band {
  text-align: center;
  padding-block: clamp(50px, 8vh, 96px);
}

.cta-band .h2 { margin-block: 16px 14px; }

.cta-band p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 26px;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero-figure { max-width: 440px; }
  .hero-figure::before { display: none; }
  .section__head { grid-template-columns: 1fr; }
  .section__head > p { justify-self: start; }
  .app-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .app-panel { justify-self: start; }
  .band__inner { grid-template-columns: 1fr; }
  .band__copy .h2 { max-width: 24ch; }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav > .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__inner { min-height: 0; padding-bottom: 0; }
  .hero__grid { padding-bottom: 26px; }
  .hero-figure { justify-self: start; max-width: 560px; }
  .hero-title { font-size: clamp(30px, 8.4vw, 48px); }
  .service__link {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "media price";
    align-items: start;
    gap: 6px 16px;
    padding-block: 18px;
  }
  .service__no, .service__arrow { display: none; }
  .service__media { grid-area: media; width: 88px; height: 88px; }
  .service__body { grid-area: body; }
  .service__price { grid-area: price; justify-self: start; padding-top: 2px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .feature { padding-block: 18px; }
}

@media (max-width: 760px) {
  .download__box { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr; gap: 4px; }
  .compare__now { padding-left: 20px; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
  .hero-facts { gap: 6px 18px; font-size: 10px; }
  .ticker__track { height: 50px; }
  .ticker__track span { font-size: 15px; gap: 18px; padding-inline: 18px; }
  .thumbs button { width: 84px; }
  .stage__nav { width: 36px; height: 36px; }
  .app-hero .hero-title { font-size: clamp(32px, 9vw, 46px); }
  .brand { font-size: 20px; }
  .nav { gap: 16px; }
  .hero-figure__img { height: clamp(300px, 52svh, 420px); }
}

@media (max-width: 480px) {
  .btn { padding: 14px 22px; font-size: 14px; }
  .hero__cta .btn, .app-hero__cta .btn { width: 100%; }
  .hero-title { min-height: 3.1em; }
  .specs__row { grid-template-columns: 78px 1fr; gap: 12px; }
}

/* ---------- Меньше движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-figure { animation: none; }
  .hero-title .ch { transition: none; }
}

/* ---------- Статичный режим превью (?noanim=1) ----------
   Выключает движение: удобно для скриншотов и проверки вёрстки. */

.no-anim .reveal,
.no-anim .specs__row { opacity: 1; transform: none; }
.no-anim .ticker__track { animation: none; }
.no-anim .hero-figure { animation: none; }
.no-anim .hero-title { transition: none; }
.no-anim .app-hero__bg img { transition: none; }
