/* ─────────────────────────────────────────────────────────────
   Дизайн-система магазина. Минимализм: светлый фон, крупные фото,
   воздух. Фирменные цвета подставляются в переменные ниже.
   ───────────────────────────────────────────────────────────── */
:root {
  --brand:        #fe5a1f;   /* акцент бренда — заменить на фирменный */
  --brand-ink:    #ffffff;   /* текст на акценте */
  --bg:           #e7ebf0;   /* холодный светло-серый фон страниц */
  --bg-soft:      #ffffff;   /* карточки, шапка, «белые» полосы */
  --ink:          #23262c;
  --ink-soft:     #5b616b;
  --line:         #dbe0e6;
  --ok:           #2f7d4f;
  --err:          #b4442f;
  --info:         #2f5d7d;
  --radius:       14px;
  --radius-sm:    10px;
  --maxw:         1140px;
  /* Текст — Manrope, заголовки — Montserrat (подключаются в layout.njk) */
  --font:         "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Montserrat", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Гарантия, что атрибут hidden всегда прячет элемент, даже если у него
   есть свой display (flex/grid/…) — иначе при равной специфичности с
   браузерным [hidden]{display:none} может победить наше правило. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.hero h1 { font-weight: 700; letter-spacing: -0.02em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.link--danger { color: var(--err); }
.lead { font-size: 18px; color: var(--ink-soft); }
.req { color: var(--err); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header — логотип слева, меню по центру, корзина справа */
.site-header { position: sticky; top: 0; background: var(--bg-soft); z-index: 20; }

/* Шапка поверх hero-фото (только на страницах, где явно включено) —
   пока не проскроллили, шапка прозрачная и лежит на фото, значки/лого белые.
   После прокрутки — обычная белая закреплённая шапка, чтобы навигация не терялась. */
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.site-header--overlay .nav-toggle,
.site-header--overlay .cart-link { color: #fff; }
.site-header--overlay .logo img { filter: invert(1); }
.site-header--overlay.is-scrolled { position: fixed; background: var(--bg-soft); }
.site-header--overlay.is-scrolled .nav-toggle,
.site-header--overlay.is-scrolled .cart-link { color: var(--ink); }
.site-header--overlay.is-scrolled .logo img { filter: none; }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 68px; }
.logo { justify-self: center; display: flex; }
.logo img { height: 36px; width: auto; }
.cart-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; }

/* Кнопка-гамбургер слева в шапке */
.nav-toggle { justify-self: start; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* Затемнение фона за выезжающей панелью навигации */
.nav-overlay { position: fixed; inset: 0; background: rgba(15,15,15,.4); z-index: 29; opacity: 0; transition: opacity .2s; }
.nav-overlay.is-open { opacity: 1; }

/* Выезжающая слева панель навигации (как в референсе) */
.nav-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 84vw); background: var(--bg-soft);
  z-index: 30; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .22s ease; }
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.nav-drawer__close { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.nav-drawer__close svg { width: 22px; height: 22px; display: block; }
.nav-drawer a { display: block; padding: 16px 20px; text-decoration: none; border-bottom: 1px solid var(--line);
  font-size: 16px; }
.nav-drawer a:hover { color: var(--brand); }
.nav-drawer a.is-active { color: var(--brand); font-weight: 600; }
.cart-link__icon { width: 20px; height: 20px; display: block; }
.cart-link__count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; line-height: 1.5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: var(--bg-soft); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.site-footer__brand { font-weight: 600; margin: 0 0 4px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer__nav a { text-decoration: none; color: var(--ink-soft); }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; letter-spacing: .01em; color: var(--ink-soft); text-decoration: none;
  transition: color .15s; }
.footer-credit:hover { color: var(--brand); }
.footer-credit__icon { width: 14px; height: 14px; flex: none; }
.footer-disclaimer { margin: 8px 0 0; font-size: 9px; line-height: 1.5; color: var(--ink-soft); opacity: .7; max-width: 320px; }

/* Flash */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; font-size: 15px; border: 1px solid var(--line); background: var(--bg-soft); }
.flash--success { border-color: #bfe0cc; background: #eef8f1; color: var(--ok); }
.flash--error { border-color: #f0cabf; background: #fbeeeb; color: var(--err); }
.flash--info { border-color: #c6d8e4; background: #eef4f8; color: var(--info); }
.flash ul { margin: 0; padding-left: 18px; }

/* Плавающий тост — для добавления в корзину с карточки товара (не со
   страницы товара), чтобы не перезагружать страницу и не прыгать наверх. */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease;
  border-radius: var(--radius-sm); padding: 12px 18px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.16); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast--success { border-color: #bfe0cc; background: #eef8f1; color: var(--ok); }
.toast--error { border-color: #f0cabf; background: #fbeeeb; color: var(--err); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 1px solid var(--brand); border-radius: var(--radius-sm); padding: 11px 20px; font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity .15s; font-family: inherit; }
.btn:hover { opacity: .88; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--small { padding: 7px 14px; font-size: 14px; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--soon { background: var(--bg); color: var(--ink-soft); border-color: var(--line); }
.btn--soon:disabled { opacity: 1; }
.icon-btn { background: none; border: 0; font-size: 16px; color: var(--ink-soft); cursor: pointer; padding: 4px; }

/* Hero — полноэкранное фото + центрированный текст (стиль swissskip) */
.hero { position: relative; min-height: min(96vh, 880px); display: grid; align-items: center;
  overflow: hidden; background: #101010; color: #fff; }
.hero__bg { position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(12,12,12,.32) 0%, rgba(12,12,12,.62) 100%),
    linear-gradient(180deg, rgba(12,12,12,.42) 0%, rgba(12,12,12,.5) 55%, rgba(12,12,12,.8) 100%),
    url('/assets/img/hero.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2b2b2b, #0d0d0d);
}
/* Видео-фон hero (главная страница) — то же затемнение, что и у фото,
   но отдельным слоем поверх <video>, чтобы не мешать воспроизведению. */
.hero__video { position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; background: #0d0d0d; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(12,12,12,.32) 0%, rgba(12,12,12,.62) 100%),
    linear-gradient(180deg, rgba(12,12,12,.42) 0%, rgba(12,12,12,.5) 55%, rgba(12,12,12,.8) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.72); margin: 0 0 20px; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 64px);
  line-height: 1; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.hero__title .accent { color: var(--brand); }
.hero__title .nowrap { display: inline-block; white-space: nowrap; }
.hero__sub { font-size: clamp(16px, 2.1vw, 19px); line-height: 1.5; color: rgba(255,255,255,.85);
  margin: 20px auto 0; max-width: 520px; }
.hero__actions { margin: 32px 0 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn--hero { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 15px 24px; min-width: 200px; }
.btn--hero-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.btn--hero-ghost:hover { background: rgba(255,255,255,.16); opacity: 1; }
.hero__rating { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 26px 0 0; font-size: 14px; color: rgba(255,255,255,.82); }
.hero__rating .stars { color: var(--brand); letter-spacing: 2px; font-size: 15px; }

@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .hero__inner { padding: 64px 20px; }
  /* На узком экране видео почти не обрезается по cover (пропорции близки
     к исходным) — из-за этого в кадре остаётся много пустого фона сверху.
     Увеличиваем и сдвигаем фокус вниз, чтобы девушка была крупнее. */
  .hero__video { top: -50%; left: -50%; width: 200%; height: 200%; object-position: 50% 53%; }
  /* На узких экранах принудительный один ряд заголовка не помещается —
     отключаем, пусть переносится естественно. */
  .hero__title { white-space: normal; }
  .hero__title .nowrap { white-space: normal; display: inline; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--hero { min-width: 220px; width: auto; }
}

/* Герой страницы «О бренде» — своя фотография, та же вёрстка что у hero.
   Переносы строк в заголовке заданы вручную (<br> в about.njk), поэтому
   размер шрифта — тот же, что и на главной странице. */
.about-hero .hero__bg {
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(12,12,12,.34) 0%, rgba(12,12,12,.64) 100%),
    linear-gradient(180deg, rgba(12,12,12,.4) 0%, rgba(12,12,12,.5) 55%, rgba(12,12,12,.8) 100%),
    url('/assets/img/about/hero.jpg') 25% 40% / cover no-repeat,
    linear-gradient(135deg, #2b2b2b, #0d0d0d);
}

/* Полоса доверия под hero — серая (фон страницы), чтобы не сливаться
   с белой полосой товаров сразу под ней */
.trust { background: var(--bg); }
.trust__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; display: flex;
  justify-content: center; gap: 14px 44px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); }
.trust__inner b { color: var(--ink); font-weight: 700; }

/* Полосы-разделы — визуальное деление главной чередованием фона */
.band { padding: 68px 0; }
.band--alt { background: var(--bg-soft); }
@media (max-width: 720px) { .band { padding: 44px 0; } }

/* Отзывы покупателей (главная) */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reviews__grid--page { margin-bottom: 12px; }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; gap: 16px; } }
.review-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; }
/* на белой полосе главной — карточки серые, чтобы читались (тот же приём, что у .flow-card) */
.band--alt .review-card { background: var(--bg); }
.review-card__stars { color: var(--brand); font-size: 15px; letter-spacing: 3px; }
.review-card__text { margin: 0; font-size: 15px; line-height: 1.6; }
.review-card__author { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review-card__name { font-weight: 600; font-size: 14px; }
.review-card__meta { font-size: 13px; color: var(--ink-soft); }

/* Характеристики (3 колонки) */
.usp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.usp__item h3 { font-size: 17px; margin: 0 0 8px; }
.usp__item p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 720px) { .usp__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Sections (внутренние страницы) */
.section { margin-top: 72px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 32px; }
.section__head h2 { margin: 0; font-size: clamp(24px, 3.5vw, 32px); }
.section__lead { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 520px; }
.section__more { text-align: center; margin-top: 32px; }
.section__more--row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 4vw, 36px); margin: 24px 0 8px; }
.page-lead { margin: 0 0 30px; color: var(--ink-soft); font-size: 17px; line-height: 1.5; max-width: 58ch; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-top: 20px; }
.breadcrumbs a { text-decoration: none; }

/* Grid + cards — 3 в ряд, крупные */
.grid { display: grid; gap: 26px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); column-gap: 28px; row-gap: 48px; }
@media (max-width: 900px) { .grid--cards { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 540px) { .grid--cards { grid-template-columns: 1fr; row-gap: 32px; } }
.card { display: flex; flex-direction: column; }
.card__media { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card__media:hover img { transform: scale(1.03); }
.card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-soft); font-size: 14px; }
.card__body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 17px; margin: 0; font-weight: 600; }
.card__title a { text-decoration: none; }
.card__summary { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 17px; }
.price--lg { font-size: 26px; margin: 12px 0; }

.badge { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.badge--muted { color: var(--ink-soft); background: var(--bg-soft); }
.pill { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.features h3 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; font-size: 14px; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 20px; }
.product__main-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
.product__main-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb { width: 68px; height: 68px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; padding: 0; background: none; cursor: pointer; position: relative; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb.is-active { border-color: var(--ink); border-width: 2px; }
.product__thumb--video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-radius: 50%; }
.product__main-video { display: block; }
.product__info h1 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 12px; }
.product__buy { display: flex; align-items: flex-end; gap: 14px; margin: 20px 0; flex-wrap: wrap; }
.qty { display: flex; flex-direction: column; font-size: 14px; gap: 6px; }
.qty input { width: 92px; }
.product__description { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.product__description h2 { font-size: 18px; }

/* Бейджи доверия под кнопкой «в корзину» */
.product-badges { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.product-badges li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.product-badges svg { width: 20px; height: 20px; flex: none; color: var(--brand); }

/* Буллеты пользы */
.product-benefits { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.product-benefits li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.product-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* FAQ-аккордеон */
.product-faq { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.product-faq h2 { font-size: 18px; margin: 0 0 8px; }
.product-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.product-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.product-faq summary::-webkit-details-marker { display: none; }
.product-faq summary::after { content: "+"; float: right; color: var(--ink-soft); }
.product-faq details[open] summary::after { content: "–"; }
.product-faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.faq-video { display: block; margin-top: 14px; max-width: 240px; width: 100%; border-radius: var(--radius-sm); background: #000; }

/* Forms */
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
input[type="checkbox"], input[type="radio"] { width: auto; }
label { display: block; font-size: 14px; }
label > input, label > select, label > textarea { margin-top: 6px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
legend { padding: 0 8px; font-weight: 600; font-size: 15px; }
.field-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.checkbox input { flex: none; width: auto; margin-top: 3px; }
.checkbox span { min-width: 0; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 8px; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cart__lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); display: block; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 3px; }
.cart-line__title { text-decoration: none; font-weight: 500; }
.cart-line__qty input { width: 64px; }
.cart-line__sum { font-weight: 600; white-space: nowrap; }
.cart__summary, .checkout__summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 88px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 600; }
.summary-items { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; color: var(--ink-soft); }
.promo { display: flex; gap: 8px; margin: 12px 0 4px; }
.promo input { flex: 1; min-width: 0; }
.promo-ok { color: #1a7f37; }
.promo-error { color: #c62828; }
.stock-notice { color: #a15c00; }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 10px; }
.delivery-sub { display: flex; flex-direction: column; gap: 12px; }
.autocomplete { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; max-height: 240px; overflow: auto; margin-top: 4px; }
.autocomplete button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--bg-soft); cursor: pointer; font-size: 14px; }
.autocomplete button:hover { background: var(--bg-soft); }
.points, .tariffs { display: flex; flex-direction: column; gap: 8px; }
.points { max-height: 320px; overflow-y: auto; padding-right: 2px; }
.points label, .tariffs label { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.points label:has(input:checked), .tariffs label:has(input:checked) { border-color: var(--brand); background: var(--bg-soft); }
.points label.is-active { border-color: var(--brand); background: var(--bg-soft); }
.points-map { height: 320px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.points-map .leaflet-popup-content { font-size: 13px; }
.points-map .leaflet-popup-content .btn { margin-top: 6px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; }
.pvz-locate-btn {
  width: 34px; height: 34px; background: #fff; border: 0; border-radius: 4px;
  font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.pvz-locate-btn:disabled { opacity: .6; cursor: wait; }
#selectedPointInfo { color: var(--ok); font-weight: 500; margin: 0; }

/* Order / status */
.status-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0 30px; }
.status-box--ok { border-color: #bfe0cc; background: #f3faf5; }
.status-box--wait { border-color: #e4d8c0; background: #faf6ee; }
.status-box--error { border-color: #f0cabf; background: #fbeeeb; }
.pay-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* Prose pages */
.prose h2 { margin-top: 32px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 40px; }

/* О бренде */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700;
  color: var(--brand); margin: 0 0 10px; text-align: center; }
.about-story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.35); }
.about-story__text h2 { margin-top: 0; }
.about-story__text p { color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 780px) {
  .about-story__grid { grid-template-columns: 1fr; gap: 28px; }
  .about-story__media { order: -1; max-width: 420px; margin: 0 auto; }
}
.about-values p { color: var(--ink-soft); line-height: 1.7; font-size: 17px; }
.about-outro { text-align: center; color: var(--ink-soft); margin-top: 36px; }
.about-cta { background: var(--ink); color: rgba(255,255,255,.88); text-align: center;
  margin-bottom: -80px; } /* компенсирует margin-top футера — без просвета фона страницы перед ним */
.about-cta__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(30px, 5vw, 46px); color: #fff; margin: 0 0 14px; }
.about-cta__title .accent { color: var(--brand); }
.about-cta p { max-width: 480px; margin: 0 auto; line-height: 1.6; }
.about-cta .btn { margin-top: 24px; }

/* FLOW — страница курсов */
.flow-page { padding-bottom: 24px; }
.flow-title { font-family: var(--font-display); font-size: clamp(40px, 9vw, 68px); font-weight: 800;
  letter-spacing: -0.02em; margin: 28px 0 10px; }
.flow-sub { font-size: 18px; color: var(--ink-soft); margin: 0 0 32px; max-width: 30ch; }
.flow-levels { display: flex; flex-direction: column; gap: 16px; }
.flow-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.flow-card--soon { background: transparent; }
/* на белой полосе главной — карточки серые, чтобы читались */
.band--alt .flow-card { background: var(--bg); }
.flow-card--soon .flow-card__title { color: var(--ink-soft); }
.flow-card__img { flex: none; align-self: stretch; width: 124px; min-height: 112px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--bg); }
.flow-card__info { min-width: 0; flex: 1; }
.flow-card__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.flow-card__badge--muted { color: var(--ink-soft); }
.flow-card__title { font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; }
.flow-card__desc { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.flow-card__action { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.flow-card__price { font-size: 20px; font-weight: 700; white-space: nowrap; }

@media (max-width: 620px) {
  .flow-card { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  .flow-card__img { width: 100%; height: 180px; align-self: auto; object-fit: cover; object-position: top; }
  .flow-card__action { flex-direction: row; align-items: center; justify-content: flex-end; }
  .flow-card__action .btn { flex: none; min-width: 140px; }
  .flow-card--soon .flow-card__action { justify-content: flex-end; }
}
.contacts-list { list-style: none; padding: 0; font-size: 17px; }
.contacts-list li { padding: 6px 0; }
.contacts-list--icons li { display: flex; align-items: center; gap: 10px; }
.contacts-list__icon { width: 20px; height: 20px; flex: none; color: var(--ink-soft); }
.contacts-list a, .link-plain { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 1px; transition: border-color .15s, color .15s; }
.contacts-list a:hover, .link-plain:hover { color: var(--brand); border-color: var(--brand); }
.error-detail { background: var(--bg-soft); padding: 14px; border-radius: var(--radius-sm); overflow: auto; font-size: 13px; text-align: left; }

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cart, .checkout { grid-template-columns: minmax(0, 1fr); }
  .cart__summary, .checkout__summary { position: static; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 12px; height: 60px; }
  .cart-line { grid-template-columns: 64px 1fr auto; grid-auto-rows: auto; }
  .cart-line__media { width: 64px; height: 64px; }
  .cart-line__sum { grid-column: 2 / 4; }
  .cart-line__remove { grid-row: 1; grid-column: 3; }
}
