/* NBP store — стили.
   Цвета и шрифты меняются в блоке :root ниже. */

@font-face {
  font-family: "NBP Serif";
  src: url("../fonts/nbp-serif-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NBP Serif";
  src: url("../fonts/nbp-serif-italic-var.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* палитра */
  --bg: #F6F2EA;
  --bg-alt: #EFE8DB;
  --accent: #510D16;
  --accent-hover: #6A1B27;
  --text: #272522;
  --muted: #6F6962;
  --line: #CBBCAF;

  /* шрифты */
  --serif: "NBP Serif", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* размеры */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --header-h: 64px;
  --space: clamp(48px, 7vw, 104px);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-h1: clamp(2.75rem, 12vw, 5rem);
  --fs-h2: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);

  /* сетка: поля + 12 колонок, поля растягиваются, содержимое не шире --max */
  --cols: minmax(var(--gutter), 1fr) repeat(12, minmax(0, calc(var(--max) / 12))) minmax(var(--gutter), 1fr);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body) / 1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; outline-color: var(--text); }

/* ───────── шапка ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.brand__accent { font-weight: 440; letter-spacing: 0; }
.brand:hover .brand__accent { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { top: 9px; }
.is-open .menu-toggle__icon i:first-child { top: 5px; transform: rotate(45deg); }
.is-open .menu-toggle__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.is-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.site-nav__list {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: 8px 16px;
}
.site-nav__link {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
}
.site-nav__list li:first-child .site-nav__link { border-top: 0; }
.site-nav__link:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: none;
    border: 0;
    transition: none;
  }
  .site-nav__list {
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(20px, 2.8vw, 40px);
  }
  .site-nav__link {
    display: inline-block;
    padding: 6px 0;
    border: 0;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
    transition: background-size 0.25s ease, color 0.2s ease;
  }
  .site-nav__link:hover { color: var(--accent); text-decoration: none; background-size: 100% 1px; }
}

/* ───────── общие блоки ───────── */
.section {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  padding-block: var(--space);
}
.section > * { grid-column: 2 / -2; min-width: 0; }

.products::before, .how::before, .cases::before, .cost::before, .faq::before, .final::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--edge);
  right: var(--edge);
  border-top: 1px solid var(--line);
}

.section__head { margin-bottom: clamp(32px, 5vw, 64px); }
.section__title,
.faq__head .section__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 440;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-wrap: balance;
  max-width: 14em;
}
.section__title em, .final__title em, .business__title em, .hero__title em { font-style: italic; font-weight: 420; }

.lead-text {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text);
}
.section__note {
  margin-top: clamp(28px, 4vw, 56px);
  max-width: 40em;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ───────── кнопки ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn__icon { flex: none; transition: transform 0.25s ease; }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--block { display: flex; width: 100%; }
.btn--light { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--accent); }
.btn--light:focus-visible { outline-color: var(--bg); }

/* ───────── первый экран ───────── */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 104px); }
.hero__copy { grid-column: 2 / -2; }
.hero__visual { grid-column: 4 / -1; margin-top: clamp(40px, 8vw, 64px); position: relative; }

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--accent);
  text-wrap: balance;
}
.hero__lead {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 20em;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--text);
}
.hero__text {
  margin-top: 20px;
  max-width: 33em;
  color: var(--muted);
}
.hero__actions {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.hero__actions .btn { max-width: 100%; }
.hero__note { font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.hero__scope {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 24em;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero__frame--main { aspect-ratio: 1 / 1; overflow: hidden; background: #3a0810; }
.hero__frame--main img, .hero__frame--main picture { width: 100%; height: 100%; object-fit: cover; }
.hero__frame--inset {
  position: absolute;
  left: -16%;
  bottom: -8%;
  width: 46%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--bg);
  background: var(--bg);
}
.hero__frame--inset img, .hero__frame--inset picture { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero { align-items: center; padding-block: clamp(32px, 4.5vw, 72px) clamp(64px, 8vw, 120px); }
  .hero__title { font-size: clamp(2.6rem, 0.5rem + 5vw, 5.5rem); }
  .hero__copy { grid-column: 2 / 9; padding-right: 4%; }
  .hero__visual { grid-column: 9 / -1; margin-top: 0; align-self: center; justify-self: end; width: 100%; max-width: 720px; }
  .hero__frame--main { aspect-ratio: 1 / 1.06; }
  .hero__frame--main img { object-position: 22% 50%; }
  .hero__frame--inset { left: -13%; bottom: -6%; width: 44%; border-width: 10px; }
}

/* ───────── что помогаем заказать ───────── */
.products__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
  align-items: start;
}
.product__media { overflow: hidden; background: var(--bg-alt); aspect-ratio: var(--ar, 4 / 5); }
.product--1 { --ar: 284 / 384; }
.product--2 { --ar: 1 / 1; }
.product--3 { --ar: 242 / 248; }
.product__media img, .product__media picture { width: 100%; height: 100%; object-fit: cover; }
.product__body { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.product__index { display: block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.product__title {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
  font-weight: 450;
  line-height: 1.1;
  color: var(--accent);
}
.slash-list { margin-top: 14px; border-top: 1px solid var(--line); }
.slash-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9688rem; line-height: 1.4; break-inside: avoid; }
@media (max-width: 599px) {
  .slash-list { columns: 2; column-gap: 20px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .products__list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .product--2 { margin-top: 56px; }
  .product--3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
  .product--3 .product__body { margin-top: 0; }
}
@media (min-width: 900px) {
  .products__list { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3.4vw, 52px); }
  .product--2 { margin-top: clamp(56px, 8vw, 120px); }
  .product--3 { margin-top: clamp(112px, 16vw, 240px); }
}

/* ───────── сравнение стоимости ───────── */
.section--band { background: var(--bg-alt); --muted: #625C55; }
.compare { row-gap: clamp(36px, 5vw, 56px); }
.compare__actions { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.compare__note { max-width: 20em; font-size: 0.9375rem; color: var(--muted); }
.compare__points { border-bottom: 1px solid var(--line); }
.compare__point {
  display: grid;
  grid-template-columns: clamp(52px, 8vw, 84px) 1fr;
  align-items: baseline;
  gap: 8px;
  padding-block: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.compare__num { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; color: var(--accent); }
.compare__point p { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.4; }

@media (min-width: 900px) {
  .compare__intro { grid-column: 2 / 9; padding-right: 4%; }
  .compare__points { grid-column: 9 / -2; align-self: end; }
}

/* ───────── как заказать ───────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; }
.step { padding: 20px 0 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: clamp(52px, 12vw, 72px) 1fr; column-gap: 8px; row-gap: 4px; align-items: baseline; }
.step__num { grid-row: 1 / span 2; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.25rem); line-height: 1; color: var(--accent); }
.step__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); font-weight: 450; line-height: 1.2; color: var(--text); }
.step__text { color: var(--muted); font-size: 0.9688rem; }

@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 48px); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: clamp(24px, 3vw, 44px); }
  .step { display: block; padding-top: 20px; }
  .step__num { display: block; margin-bottom: 36px; }
  .step__title { margin-bottom: 10px; }
}

/* ───────── примеры (кейсы) ───────── */
.cases__list { display: grid; grid-template-columns: 1fr; gap: 40px; }
.case { border-top: 1px solid var(--text); padding-top: 20px; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.case__tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.case__analog { font-size: 0.8125rem; font-weight: 500; padding: 2px 10px; border: 1px solid var(--accent); color: var(--accent); }
.case__photo { margin-bottom: 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.case__photo img { width: 100%; height: 100%; object-fit: cover; }
.case__row { padding-block: 12px; border-top: 1px solid var(--line); }
.case__row:first-child { border-top: 0; padding-top: 0; }
.case__row dt { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.case__row dd { font-size: 1rem; }
@media (min-width: 800px) { .cases__list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); } }

/* ───────── стоимость заказа ───────── */
.cost { row-gap: clamp(32px, 4vw, 48px); }
.ledger { border-bottom: 1px solid var(--line); }
.ledger__row { display: grid; grid-template-columns: clamp(36px, 6vw, 56px) 1fr; align-items: baseline; padding-block: clamp(16px, 2vw, 24px); border-top: 1px solid var(--line); }
.ledger__sign { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--accent); }
.ledger__title { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 450; line-height: 1.2; color: var(--text); }
.ledger__text { margin-top: 4px; color: var(--muted); font-size: 0.9688rem; max-width: 34em; }
.ledger__row--total { border-top: 2px solid var(--accent); }
.ledger__row--total .ledger__title { color: var(--accent); }
.cost__notes { margin-top: 24px; display: grid; gap: 10px; max-width: 38em; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .cost__intro { grid-column: 2 / 8; padding-right: 6%; }
  .cost__body { grid-column: 8 / -2; }
}

/* ───────── для бизнеса ───────── */
.business { background: var(--accent); color: var(--bg); row-gap: clamp(24px, 3vw, 36px); --muted: rgba(246, 242, 234, 0.78); }
.business :focus-visible { outline-color: var(--bg); }
.business__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 14em;
}
.business__title em { color: #E9C7C1; }
.business__body { display: grid; gap: 24px; justify-items: start; }
.business__body p { max-width: 32em; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: rgba(246, 242, 234, 0.92); }
@media (min-width: 900px) {
  .business__title { grid-column: 2 / 9; }
  .business__body { grid-column: 9 / -2; align-self: end; }
}

/* ───────── частые вопросы ───────── */
.faq { row-gap: clamp(28px, 4vw, 40px); }
.acc { border-bottom: 1px solid var(--line); }
.acc__item { border-top: 1px solid var(--line); }
.acc__h { font-size: inherit; font-weight: inherit; }
.acc__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--accent);
}
.acc__q { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.25; font-weight: 450; }
.acc__btn:hover .acc__q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.acc__btn:focus-visible { outline-offset: 0; }
.acc__icon { position: relative; flex: none; width: 18px; height: 18px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: currentColor; transition: transform 0.25s ease; }
.acc__icon::before { left: 0; right: 0; top: 8.25px; height: 1.5px; }
.acc__icon::after { top: 0; bottom: 0; left: 8.25px; width: 1.5px; }
.is-open .acc__icon::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__clip { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.3s; }
.is-open .acc__clip { visibility: visible; transition-delay: 0s; }
.acc__a { max-width: 40em; padding: 0 clamp(0px, 5vw, 64px) 26px 0; color: var(--text); }
@media (min-width: 900px) {
  .faq__head { grid-column: 2 / 7; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
  .acc { grid-column: 7 / -2; }
}

/* ───────── финальный блок ───────── */
.final { row-gap: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 120px); }
.final__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.5rem);
  font-weight: 430;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-wrap: balance;
  max-width: 12em;
}
.final__actions { margin-top: clamp(24px, 3vw, 36px); }
.final__contacts-title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.contacts { border-bottom: 1px solid var(--line); }
.contact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact__label { font-size: 0.9375rem; color: var(--muted); }
.contact__link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); color: var(--accent); text-decoration: none; }
.contact__link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line); transition: text-decoration-color 0.2s ease; }
.contact__link:hover span { text-decoration-color: var(--accent); }
.contact__link .btn__icon { transition: transform 0.25s ease; }
.contact__link:hover .btn__icon { transform: translateX(4px); }
@media (min-width: 900px) {
  .final__copy { grid-column: 2 / 9; padding-right: 4%; }
  .final__contacts { grid-column: 9 / -2; align-self: end; }
}

/* ───────── подвал ───────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
}
.brand--footer { font-size: 1.375rem; }
.site-footer__text { color: var(--muted); font-size: 0.9375rem; }
.site-footer__legal { flex-basis: 100%; color: var(--muted); font-size: 0.8125rem; }

/* ───────── закреплённая кнопка на телефоне ───────── */
.cta-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
    transition: transform 0.3s ease, visibility 0s;
  }
  .cta-bar.is-hidden { transform: translateY(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0s 0.3s; }
}

/* ───────── без JavaScript ───────── */
.noscript { max-width: 40rem; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.noscript h1 { font-family: var(--serif); color: var(--accent); font-size: 2.4rem; line-height: 1.1; margin-bottom: 16px; }
.noscript p { margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .cta-bar, .menu-toggle { display: none; }
}
