/* ==========================================================================
   Demetra Trading — modern lightweight design system (light + gold accent).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-mono-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Phase 2 редизайн: фирменные шрифты для главной.
   Space Grotesk — заголовки (геометрический характер, не "как у всех").
   Outfit — основной текст (чистый геометрический sans).
   Inter/Roboto Mono остаются для остальных страниц до полного масштабирования. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/outfit-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Outfit", "Inter", system-ui, sans-serif;

  /* Light neutrals + gold accent */
  --color-bg: #faf7f2;
  --color-panel: #ffffff;
  --color-panel-soft: #f3ede3;
  --color-border: color-mix(in srgb, #8b7355 20%, transparent);
  --color-gold: #a67c00;
  --color-gold-bright: #1a120b;
  --color-muted: #6b5f4f;
  --color-text: #3d3428;
  --color-on-accent: #ffffff;
  --color-success: #2d7a3a;
  --color-danger: #b54a32;

  /* 8px spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
  --space-8: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-panel: var(--radius-lg);
  --radius-input: var(--radius-md);
  --shadow-soft: 0 1px 3px rgba(26, 18, 11, 0.06);
  --shadow-card: 0 8px 24px rgba(26, 18, 11, 0.08);
  --shadow-panel:
    0 1px 2px rgba(26, 18, 11, 0.04), 0 12px 32px rgba(26, 18, 11, 0.06);
  --max-width: 72rem;
  --prose-width: 65ch;
  --transition: 0.22s ease;
}

/* ----------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

/* Все заголовки + брендвордмарк — Space Grotesk (фирменный display-шрифт). */
h1,
h2,
h3,
h4,
.brand-mark {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

ul,
ol {
  padding-left: 0;
}

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

/* -------------------------------------------------------- layout helpers */

/* Полноширинный контейнер. Раньше был «кабинет»-карточкой с рамкой/тенью
   на кремовом фоне; now full-width, секции сами ограничивают ширину. */
.page {
  min-height: 100vh;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

.panel {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

@media (min-width: 768px) {
  .panel {
    padding: 0;
  }
}

/* Ограничение ширины для контентных элементов — full-width фон, центрированный контент */
.site-header,
.main-content,
.site-footer {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (min-width: 768px) {
  .site-header,
  .main-content,
  .site-footer {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

@media (min-width: 768px) {
  .panel {
    padding: var(--space-5);
  }
}

.terminal-panel {
  border: 1px solid var(--color-border);
  background: var(--color-panel-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

@media (min-width: 768px) {
  .terminal-panel {
    padding: var(--space-4);
  }
}

/* `.terminal-title` — маленький капс-заголовок секции. 1-в-1 из index.css. */
.terminal-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.terminal-subtitle {
  margin-top: var(--space-1);
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------- typography */

.h1 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gold-bright);
}

@media (min-width: 768px) {
  .h1 {
    font-size: 3rem; /* md:text-5xl */
  }
}

.h2 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gold-bright);
}

.h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.lead {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1rem; /* md:text-base */
  }
}

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

.text-gold-bright {
  color: var(--color-gold-bright);
}

.text-gold {
  color: var(--color-gold);
}

.font-mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------- header/nav */

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: var(--space-3);
}

@media (min-width: 768px) {
  .site-header {
    flex-direction: column;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.btn-nav-gold {
  border-color: color-mix(in srgb, var(--color-gold) 60%, transparent);
}

.btn-nav-gold:hover {
  background: color-mix(in srgb, var(--color-gold) 15%, transparent);
  color: var(--color-gold-bright);
}

/* --------------------------------------------------------------- buttons */

/* Бордер-кнопка (бывшая "border border-border px-4 py-2 ... hover:border-gold"). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-gold-bright);
  background: transparent;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-on-accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: #8b6914;
  border-color: #8b6914;
  color: var(--color-on-accent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-gold) 28%, transparent);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ----------------------------------------------------------------- grids */

.grid-2 {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----------------------------------------------------------------- forms */

.form-label {
  display: grid;
  gap: 0.5rem;
}

.form-label > span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 2.75rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-panel);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-gold) 18%, transparent);
}

.textarea {
  height: auto;
  min-height: 9rem; /* rows=6 */
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
    linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) center,
    calc(100% - 0.75rem) center;
  background-size:
    0.25rem 0.25rem,
    0.25rem 0.25rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

/* ------------------------------------------------------------ data tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 500;
}

/* ----------------------------------------------- <details> product toggler */
/* Перенесено 1-в-1 из src/index.css. */

details > summary::-webkit-details-marker {
  display: none;
}

details > summary {
  list-style: none;
}

details[open] .details-label-show {
  display: none;
}

details:not([open]) .details-label-hide {
  display: none;
}

/* --------------------------------------------------------------- badges/chips */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ------------------------------------------------------------ status colors */

.is-success {
  color: var(--color-success);
}

.is-danger {
  color: var(--color-danger);
}

/* ------------------------------------------------------------- utility */

.site-footer .sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-0 {
  margin-bottom: 0;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}

.hidden {
  display: none;
}

.site-header--border {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.site-header__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .site-header__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.site-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.site-footer a {
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--color-gold-bright);
}

.brand-mark {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

.brand-tag {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.main-content {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .main-content {
    gap: var(--space-6);
  }
}

/* ===== Главная v2: full-width, фото, тёмная полоса доверия =====
   Применяется при class="page page--home" на корневом .page.
   Полностью переопределяет «кабинет»-layout (.panel) для главной:
   full-width секции вместо белой карточки на кремовом фоне. */

.page--home {
  font-family: var(--font-body);
}

/* Главная: обнуление .panel теперь глобальное (см. выше).
   Здесь только специфичные для главной правила. */
.page--home .main-content {
  max-width: none;
  padding: 0;
  gap: 0;
}

/* --- Шапка: бренд + гамбургер на мобайле --- */
.page--home .brand-mark {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.page--home .brand-mark .brand-mark__light {
  font-weight: 400;
  color: var(--color-muted);
}

/* Выпадающее меню контактов (главная) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle span {
  font-size: 0.75em;
  opacity: 0.65;
}

.nav-dropdown__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 10.5rem;
  padding: var(--space-1);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 50;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold-bright);
  text-decoration: none;
  transition: background var(--transition);
}

.nav-dropdown__menu a:hover {
  background: color-mix(in srgb, var(--color-gold) 12%, transparent);
}

/* --- HERO: 2 колонки (текст + фото) --- */
.home-hero {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-hero {
    grid-template-columns: 1.05fr 1fr;
    min-height: 28rem;
  }
}

.home-hero__text {
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .home-hero__text {
    padding: var(--space-6) var(--space-5);
  }
}

.home-hero__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-display);
}

.home-hero__title {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.75rem, 3.5vw + 0.75rem, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
}

.home-hero__lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.home-hero__cta .btn-primary {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.home-hero__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 14rem;
  background: var(--color-panel-soft);
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-hero__photo {
    aspect-ratio: auto;
    min-height: 100%;
    align-self: stretch;
  }
}

.home-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .home-hero__photo {
    min-height: 14rem;
    order: -1;
  }
}

/* --- STATS: тёмно-коричневая full-width полоса доверия --- */
.home-stats {
  background: var(--color-gold-bright);
  color: var(--color-on-accent);
  padding: var(--space-4) var(--space-3);
}

.home-stats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-stats__item {
  text-align: left;
}

.home-stats__value {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.home-stats__label {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ffffff 70%, transparent);
  font-family: var(--font-display);
}

/* --- КОНТЕНТНЫЕ СЕКЦИИ: ограничены по ширине, центрированы --- */
.home-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

@media (min-width: 768px) {
  .home-section {
    padding: var(--space-6) var(--space-5);
  }
}

.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.home-section__title {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
  margin: 0;
}

.home-section__subtitle {
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-family: var(--font-display);
}

/* --- КАРТОЧКИ ТОВАРОВ С ФОТО --- */
.product-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .product-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.product-card__photo {
  aspect-ratio: 4 / 3;
  background: var(--color-panel-soft);
  overflow: hidden;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__photo img {
  transform: scale(1.04);
}

.product-card__body {
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.product-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
}

.product-card__meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: var(--font-display);
}

.product-card__price {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

.product-card__view {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

/* --- ДОСТАВКА: компактная горизонтальная последовательность --- */
.delivery-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

@media (min-width: 768px) {
  .delivery-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.delivery-step {
  padding: var(--space-3);
  border-left: 2px solid var(--color-gold);
  position: relative;
}

.delivery-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.delivery-step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
}

.delivery-step__body {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- CTA-блок --- */
.home-cta {
  background: var(--color-panel-soft);
  padding: var(--space-5) var(--space-3);
}

.home-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .home-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.home-cta__title {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  font-weight: 700;
  color: var(--color-gold-bright);
  font-family: var(--font-display);
  margin: 0;
}

.home-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-size: 0.875rem;
}

.home-cta__contacts a {
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-display);
}

.home-cta__contacts a:hover {
  text-decoration: underline;
}

/* --- Футер на главной: full-width, без рамки --- */
.page--home .site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3);
}

.home-hero__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.home-hero__title {
  margin: var(--space-2) 0 0;
  max-width: var(--prose-width);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-gold-bright);
}

.home-hero__lead {
  margin: var(--space-3) 0 0;
  max-width: var(--prose-width);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.page-hero__title {
  margin: var(--space-4) 0 0;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-gold-bright);
}

.page-hero__lead {
  margin: var(--space-2) 0 0;
  max-width: var(--prose-width);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.stats-grid {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel-soft);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-grid__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--space-3);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.stats-grid__item:hover {
  border-color: color-mix(in srgb, var(--color-gold) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.stats-grid__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.stats-grid__value {
  margin: var(--space-1) 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 600;
  color: var(--color-gold);
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-block__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .section-block__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-gold-bright);
}

.section-subtitle {
  margin: var(--space-1) 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.section-week {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.notice-block {
  border-left: 3px solid var(--color-gold);
}

.notice-block__badge {
  margin: 0;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  background: color-mix(in srgb, var(--color-gold) 10%, var(--color-panel));
  border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  border-radius: var(--radius-input);
}

.notice-block__message {
  margin: 0 0 1.25rem;
  max-width: 52rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.notice-prices {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .notice-prices {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .notice-prices {
    grid-template-columns: repeat(4, 1fr);
  }
}

.notice-prices__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.notice-prices__item:hover {
  border-color: color-mix(in srgb, var(--color-gold) 35%, transparent);
  transform: translateY(-1px);
}

.notice-prices__grade {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-gold-bright);
}

.notice-prices__value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.notice-block__cta {
  margin: 1.25rem 0 0;
}

.table-wrap {
  overflow-x: auto;
}

.offers-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.offers-table th {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  font-weight: 500;
}

.offers-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-border) 50%, transparent);
}

.offers-table__product {
  color: var(--color-gold-bright);
}

.offers-table__price {
  color: var(--color-gold-bright);
}

.offers-table__empty {
  padding: 1rem 0;
  text-align: center;
  color: var(--color-muted);
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.delivery-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: var(--space-3);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.delivery-card:hover {
  border-color: color-mix(in srgb, var(--color-gold) 35%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.delivery-card__step {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.delivery-card__title {
  margin: var(--space-2) 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.delivery-card__body {
  margin: var(--space-1) 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.two-col {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4);
  }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.contact-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.contact-links a:hover {
  color: #8b6914;
}

.quick-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.catalog-intro {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-gold-bright);
}

.catalog-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.catalog-category .terminal-title {
  margin-bottom: 0;
}

.catalog-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .catalog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalog-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-gold-bright);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.catalog-card__thumb {
  flex-shrink: 0;
  width: 5.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.catalog-card:hover {
  border-color: color-mix(in srgb, var(--color-gold) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.catalog-card__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__price {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-gold);
}

.catalog-card__price-unit {
  color: var(--color-muted);
}

.catalog-card__view {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Narrow/tablet: stack name above price — horizontal row truncated names to "W.." */
@media (max-width: 899px) {
  .catalog-card:has(.catalog-card__thumb) {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name name"
      "thumb price view";
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    align-items: center;
    padding: var(--space-2);
  }

  .catalog-card:has(.catalog-card__thumb) .catalog-card__thumb {
    grid-area: thumb;
    width: 4.25rem;
  }

  .catalog-card:has(.catalog-card__thumb) .catalog-card__name {
    grid-area: name;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
  }

  .catalog-card:has(.catalog-card__thumb) .catalog-card__price {
    grid-area: price;
    justify-self: start;
  }

  .catalog-card:has(.catalog-card__thumb) .catalog-card__view {
    grid-area: view;
    justify-self: end;
  }
}

.catalog-card--compact {
  font-size: 0.85rem;
}

.catalog-list--compact {
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .catalog-list--compact {
    grid-template-columns: 1fr;
  }
}

/* Витрина продуктов на главной: 6 карточек без thumbnail.
   Переиспользует .catalog-card / .catalog-list, только меняет сетку
   и слегка увеличивает типографику (карточки самостоятельные, не в списке). */
.catalog-list--feature {
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .catalog-list--feature {
    grid-template-columns: repeat(3, 1fr);
  }
}

.catalog-list--feature .catalog-card {
  padding: var(--space-3);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.catalog-list--feature .catalog-card__name {
  white-space: normal;
  font-size: 1rem;
}

.catalog-list--feature .catalog-card__price {
  font-size: 0.875rem;
}

.catalog-list--feature .catalog-card__view {
  align-self: flex-end;
  margin-top: 0.25rem;
}

/* -------------------------------------------------------- page sections */

.page-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-hero--split {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .page-hero--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .page-hero--split .page-hero__actions {
    margin-top: 0;
    flex-shrink: 0;
  }
}

.page-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.page-breadcrumb a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-breadcrumb a:hover {
  color: var(--color-gold-bright);
}

.page-breadcrumb span[aria-hidden] {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.page-breadcrumb__current {
  color: var(--color-gold-bright);
}

/* ------------------------------------------------------------- prose */

.prose {
  max-width: 48rem;
}

.prose > .h2,
.prose > h1 {
  margin-bottom: 0;
}

.prose p {
  margin: 0;
  line-height: 1.55;
}

.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p,
.prose h2 + p,
.prose h3 + p,
.prose .h3 + p {
  margin-top: 0.85rem;
}

.prose .h3,
.prose h2.h3 {
  margin: 1.75rem 0 0.65rem;
}

.prose h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose strong {
  color: var(--color-gold-bright);
  font-weight: 600;
}

.prose-details p + p {
  margin-top: 0.85rem;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0.5rem 0 1.25rem;
}

/* -------------------------------------------------------- guide cards */

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.guide-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: var(--space-3);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.guide-card:hover {
  border-color: color-mix(in srgb, var(--color-gold) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.guide-card--compact {
  padding: 0.75rem 1rem;
}

.guide-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.guide-card--compact .guide-card__title {
  font-size: 0.95rem;
}

.guide-card__desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-gold);
}

.guide-card__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.guide-card__cta {
  color: var(--color-gold);
}

/* ------------------------------------------------------- product page */

.product-page {
  gap: 1.5rem;
}

.product-hero {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.product-hero__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-hero__main .lead {
  margin-top: 0;
}

.product-hero__cta {
  margin-top: 0.25rem;
}

.product-hero__specs {
  align-self: start;
}

.price-highlight {
  border: 1px solid color-mix(in srgb, var(--color-gold) 35%, transparent);
  background: color-mix(in srgb, var(--color-gold) 8%, var(--color-panel));
  padding: 0.75rem 1rem;
  border-radius: var(--radius-input);
}

.price-highlight__value {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold);
}

.price-highlight__note {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--color-gold) 85%, transparent);
}

.link-chips {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.link-chips__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.link-chips a {
  color: var(--color-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-chips a:hover {
  color: var(--color-gold);
}

.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.faq-item__q {
  margin: 0;
  color: var(--color-gold-bright);
  font-weight: 500;
}

.faq-item__a {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.related-section {
  margin-top: 0.5rem;
}

.faq-heading {
  margin: 1.25rem 0 0.5rem;
}

.details-summary {
  cursor: pointer;
}

/* -------------------------------------------------------------- forms */

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-panel-stack {
  display: grid;
  gap: 0.75rem;
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-note {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

/* ------------------------------------------------------------ prerender compatibility */
/* Prerender.mjs инлайнит цвета прямо в style="...". Чтобы не дублировать палитру
   в каждом инлайн-стиле, классы ниже — fallback для элементов, у которых инлайн-стиль
   не задан (используется при отладке). */
main {
  max-width: none;
  margin: 0;
}
