/* FirePage Маркетплейс — дизайн-система витрины.
   Источник токенов и базовых стилей: утвержденный дизайн-артефакт
   (design/storefront, FirePage Витрина.dc.html). Шрифты self-hosted
   (Manrope — текст, Unbounded — дисплейные заголовки; ADR-FIREPAGE-0011). */

/* Manrope — основной текстовый шрифт */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-cyrillic.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-latin.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Unbounded — дисплейные заголовки и цены */
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-latin.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --ink: #271F1A;
  --muted: #6E6258;
  --faint: #9A8C7E;
  --border: #ECE3D8;
  --border-strong: #E2D6C7;
  --accent: #EE5A2B;
  --accent-ink: #D94A1F;
  --accent-soft: #FBEADF;
  --accent-text: #C2401A;
  --amber: #EE7A4F;
  --radius: .75rem;
  --radius-lg: 1.125rem;
  --font: 'Manrope', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: 'Manrope', 'SF Mono', Consolas, monospace;
  --shadow-card: 0 1px 2px rgba(39, 31, 26, 0.04);
  --shadow-pop: 0 24px 40px -22px rgba(39, 31, 26, 0.3);
  --shadow-accent: 0 12px 26px -10px rgba(238, 90, 43, 0.6);
}

::selection { background: #FBD9C8; color: #271F1A; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Подвал прижат к нижней границе экрана при коротком контенте */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }

a { color: inherit; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Шапка ─────────────────────────────── */
.site-header {
  background: rgba(250, 246, 240, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img { height: 30px; width: auto; display: block; }

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); font-weight: 600; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Кнопки ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-ink); }

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

.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); }

.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Иконки lucide ─────────────────────── */
.icon { width: 15px; height: 15px; flex: none; }
.ic-beauty { color: #E05A8C; }
.ic-build  { color: #E8862E; }
.ic-law    { color: #3E6FD9; }
.ic-cargo  { color: #2E9E6B; }
.ic-wear   { color: #8B5CF6; }

/* ── Бейджи категорий ──────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
}

/* ── Заголовок страницы ────────────────── */
.page-head { padding: 52px 0 8px; }
.page-head h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 720px;
  text-wrap: pretty;
}
.page-head p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}

/* ── Контентные секции ─────────────────── */
.content-section { padding-top: 44px; }
.content-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.content-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  max-width: 660px;
  text-wrap: pretty;
}
.content-section p strong { color: var(--ink); }

/* ── Пустое состояние ──────────────────── */
.empty-state {
  margin: 36px 0 10px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow-card);
}
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.empty-state p { margin: 0; font-size: 15px; }

/* ── Плейсхолдеры изображений ──────────── */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #F3EDE6 0px, #F3EDE6 10px,
    #EFE8DF 10px, #EFE8DF 20px
  );
  border: 1px solid var(--border);
  overflow: hidden;
  color: var(--faint);
}

.ph-label {
  font-family: var(--mono);
  font-size: 12px;
  color: #8D8378;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  max-width: 86%;
  text-align: center;
}

/* ── Витрина: фильтры и сортировка ─────── */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0 24px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.controls .sort { margin-left: auto; }

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

.chip {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip.empty {
  color: var(--faint);
  background: transparent;
  border-color: var(--border);
  pointer-events: none;
}
.chip .count {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.chip.active .count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.chip.empty .count { background: #F4ECE2; color: var(--faint); }
.chip.active .icon { color: #fff; }
.chip.empty .icon { color: var(--faint); }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) - 2px);
  padding: 9px 14px;
  width: 290px;
  color: var(--faint);
}
.search svg { flex: none; }
.search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
}
.search input::placeholder { color: var(--faint); }

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
.sort select {
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) - 2px);
  padding: 9px 38px 9px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' stroke='%236E6B67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.results-meta {
  font-size: 14px;
  color: var(--faint);
  padding-bottom: 14px;
}

/* ── Витрина: сетка карточек ───────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}

.card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-top { display: flex; align-items: center; gap: 8px; }

.card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); }

.card-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.2;
}
.price strong { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card-actions .btn { padding: 9px 14px; font-size: 14px; }
.card-actions .card-actions-full { grid-column: 1 / -1; }

/* ── Страница продукта ─────────────────── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--faint);
  padding: 24px 0 20px;
}
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

/* ── Галерея ───────────────────────────── */
.gallery { display: flex; flex-direction: column; gap: 12px; }

.gallery-main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.thumb {
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}
.thumb.selected { outline: 2px solid var(--accent); outline-offset: 2px; }

.thumb-video {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: calc(var(--radius) - 2px);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  color: #fff;
}
.thumb-video .play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-video .play svg { margin-left: 2px; }
.thumb-video span.vlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Состав сайта ──────────────────────── */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.include-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 14px 16px;
}
.include-item .check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.include-item h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.include-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ── Сравнение ─────────────────────────── */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th {
  font-size: 14px;
  font-weight: 700;
  background: var(--bg);
}
.compare thead th:first-child { width: 40%; }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare td { font-weight: 600; }
.compare .yes { color: #1F7A5B; }
.compare .no { color: var(--faint); font-weight: 500; }
.compare .price-row td { font-size: 16px; font-weight: 700; }

/* ── FAQ ───────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--faint);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
}

/* ── Панель покупки ────────────────────── */
.buy-panel {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.buy-head { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.buy-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.buy-head .tagline { margin: 0; font-size: 14.5px; color: var(--muted); }

.plans { display: flex; flex-direction: column; gap: 10px; }

.plan {
  display: flex;
  gap: 13px;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) - 2px);
  padding: 15px 16px;
  cursor: pointer;
  background: var(--surface);
}
.plan.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan .radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  margin-top: 2px;
  background: #fff;
}
.plan.selected .radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3.5px #fff;
  background: var(--accent);
}

.plan-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-name-row { display: flex; align-items: baseline; gap: 10px; }
.plan-name { font-size: 15.5px; font-weight: 700; }
.plan-price { margin-left: auto; font-size: 16px; font-weight: 800; white-space: nowrap; }
.plan-note { font-size: 13px; color: var(--muted); line-height: 1.45; }

.buy-cta { display: flex; flex-direction: column; gap: 10px; }
.flow-note {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  margin: 0;
}
.flow-note b { color: var(--muted); font-weight: 600; }

.buy-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}
.buy-meta div { display: flex; gap: 9px; align-items: baseline; }
.buy-meta .k { color: var(--faint); width: 118px; flex: none; }

/* ── Видео-оверлей (VK Видео) ──────────── */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-overlay[hidden] { display: none; }
.video-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, 0.72);
}
.video-overlay-frame {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.video-overlay-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ── Подвал ────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 80px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .search { flex: 1; width: auto; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .includes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 32px; }
}

/* ── Дисплейный шрифт Unbounded — заголовки и цены ───────
   Единый блок в конце файла, чтобы перекрыть начертание
   у компонентов выше без правки каждого правила. */
.brand-name,
.page-head h1,
.hero-copy h1,
.content-section h2,
.card h3,
.empty-state h2,
.empty-state .empty-title,
.buy-head h1,
.price strong,
.plan-price,
.compare .price-row td,
.why-num,
.hero-badge-price-val {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ── Checkout v2: карточный UX, no-account flow ─────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.checkout-card-main { padding: 32px; }

.checkout-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.checkout-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.checkout-head p { max-width: 720px; margin: 0; }

.eyebrow {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.checkout-section:first-of-type { border-top: 0; padding-top: 0; }

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-note,
.field-optional,
.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #FFFDFB 100%);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.payment-choice:hover {
  transform: translateY(-1px);
  border-color: #E7BCA8;
  box-shadow: var(--shadow-pop);
}

.payment-choice:has(input:focus-visible) {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.payment-choice:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #FFF6F0 100%);
  box-shadow: 0 16px 34px -26px rgba(238, 90, 43, .9);
}

.payment-choice-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.payment-logo {
  display: block;
  width: auto;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.payment-logo-mir { height: 34px; }
.payment-logo-sbp { height: 38px; padding: 4px 8px; }

.invoice-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 16px;
}

.invoice-icon svg { width: 31px; height: 31px; }

.choice-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
}

.payment-choice:has(input:checked) .choice-check {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 40%, #fff 43% 100%);
}

.payment-choice-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.payment-choice-title {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.payment-choice-copy {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.field-wide { grid-column: 1 / -1; }

.field input,
.promo-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input:focus,
.promo-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input::placeholder,
.promo-field input::placeholder { color: #B5A79A; }

.invoice-fields {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.invoice-fields[hidden] { display: none; }

.promo-box { padding-bottom: 10px; }

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
}

.promo-field { margin: 0; }

.promo-field input {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 850;
}

.promo-feedback {
  min-height: 22px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.promo-feedback.ok { color: #137333; }
.promo-feedback.error { color: #B42318; }
.promo-feedback .errorlist { margin: 0; }

.checkout-consent {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.checkout-submit { width: 100%; }

.summary-card { padding: 24px; }

.summary-card h2 {
  margin-top: 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-line,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.summary-line span { color: var(--muted); }
.summary-line strong { font-weight: 850; }

.discount-line strong { color: #137333; }

.checkout-total {
  padding: 18px 0 6px;
}

.checkout-total span {
  color: var(--ink);
  font-weight: 850;
}

.checkout-total strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.summary-benefits li {
  position: relative;
  padding-left: 20px;
}

.summary-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}

@media (max-width: 680px) {
  .checkout-card-main { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-choice-grid { grid-template-columns: 1fr; }
  .payment-choice { min-height: 148px; }
  .promo-row { grid-template-columns: 1fr; }
  .promo-row .btn { width: 100%; }
  .section-title-row { flex-direction: column; align-items: flex-start; }
}
