/* ============================================================
   Натуральные волосы и узбекское сырьё — Видное, Боброво
   Direction: «Сырьё на бетонной плите» — trade-editorial
   ============================================================ */

:root {
  --bg: #E9EBEC;
  --surface: #DFE3E4;
  --fg: #221C16;
  --muted: #675E55;
  --border: #CFD4D5;
  --accent: #B04D26;
  --accent-on: #FBF3E4;
  --ink: #1E1814;
  --gold: #C08A2E;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;

  --radius: 0px;
  --space-section: 96px;
  --wrap: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --gap: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: inherit; }

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

.section-title-invert { color: var(--accent-on); }
.section-note-invert { color: #B9B2A8; }

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

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

.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 76px;
  padding-block: 12px;
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(34,28,22,.55) 3px 4px);
  background-clip: content-box;
  padding: 3px;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  line-height: 1;
}

.brand-desc {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.1;
  color: var(--muted);
}

.head-nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  white-space: nowrap;
}

.head-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.head-nav a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.head-cta { padding: 12px 18px; font-size: 13px; white-space: nowrap; }
.cta-short { display: none; }

@media (max-width: 767px) {
  .brand { gap: 9px; min-width: 0; }
  .brand-name { font-size: 12px; letter-spacing: .1em; }
  .brand-desc { font-size: 14px; }
  .brand-mark { width: 20px; height: 20px; flex: 0 0 20px; }
  .head-inner { gap: 10px; }
  .head-cta { padding: 10px 14px; font-size: 13px; letter-spacing: 0; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover { background: #9A4320; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; }

.link-underline {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 3px;
  font-size: 15px;
  transition: color .2s ease, border-color .2s ease;
}

.link-underline:hover { color: var(--accent); border-bottom-color: var(--accent); }

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

.section { padding-block: var(--space-section); }
.section-dark { background: var(--ink); color: #E6E0D6; }
.section-tint { background: var(--surface); }

@media (max-width: 767px) {
  :root { --space-section: 64px; }
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 6vw, 64px);
  max-width: 62ch;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(44px, 7vw, 96px) clamp(48px, 8vw, 104px); }

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}

.kicker {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.hero-panel {
  position: relative;
  background: var(--ink);
  color: #E6E0D6;
  overflow: hidden;
  border-radius: var(--radius);
}

.panel-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(232,220,198,.10) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(232,220,198,.05) 0 1px, transparent 1px 23px);
  opacity: .9;
}

.panel-inner {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 26px;
  align-content: start;
}

.panel-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel-label-invert { color: var(--gold); }

.facts { margin: 0; display: grid; gap: 0; }

.fact {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding-block: 15px;
  border-top: 1px solid rgba(230,224,214,.18);
}

.fact:last-child { border-bottom: 1px solid rgba(230,224,214,.18); }

.fact dt {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A79E92;
  padding-top: 3px;
}

.fact dd {
  margin: 0;
  font-size: 16px;
  color: #EDE7DC;
}

.panel-address {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  color: var(--accent-on);
}

.panel-contacts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.panel-link {
  color: var(--accent-on);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(192,138,46,.55);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.panel-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.foot-link {
  color: #B9B2A8;
  text-decoration: none;
  border-bottom: 1px solid rgba(185,178,168,.4);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.foot-link:hover { color: var(--accent-on); border-bottom-color: var(--accent-on); }

/* ---------- Что продаём ---------- */

.catalog {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}

.cat {
  border-top: 1px solid var(--fg);
  padding-top: 22px;
  max-width: 56ch;
}

.cat-index {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--accent);
}

.cat-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.1;
}

.cat-text { margin: 0; color: var(--muted); max-width: 54ch; }

.cat-price {
  margin: 20px 0 0;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- Маршрут ---------- */

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.route-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding-block: 26px;
  border-top: 1px solid rgba(230,224,214,.18);
  align-items: start;
}

.route-step:last-child { border-bottom: 1px solid rgba(230,224,214,.18); }

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: .9;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  color: var(--accent-on);
}

.step-text { margin: 0; color: #B9B2A8; max-width: 56ch; }

.route-line {
  margin: 44px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #EDE7DC;
}

.route-from { color: var(--gold); }
.route-arrow { color: #8C8378; }
.route-to { color: var(--accent-on); }

/* ---------- Почему мы ---------- */

.why-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}

.why-lead { max-width: 34ch; }

.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.why-item {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.why-item:last-child { border-bottom: 1px solid var(--border); }

.why-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.why-item p { margin: 0; color: var(--muted); max-width: 56ch; }
.why-item p + p { margin-top: 0.6em; }
.why-item .why-strong { color: var(--ink); font-weight: 500; }

/* ---------- Для мастеров ---------- */

.masters-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}

.masters-body {
  margin: 22px 0 26px;
  color: var(--muted);
  max-width: 48ch;
}

.masters-list { list-style: none; margin: 0; padding: 0; }

.masters-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
}

.masters-item:last-child { border-bottom: 1px solid var(--border); }

.masters-tag {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.masters-body-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.15;
}

.masters-note { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Заявка ---------- */

.order-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}

.order-aside {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
}

.order-aside li { padding-left: 18px; position: relative; }

.order-aside li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 1px;
  background: var(--gold);
}

.order-form {
  display: grid;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s ease, background-color .2s ease;
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: #8B837A; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #A9B0B2; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: #2F6B3A; }
.form-status.is-error { color: var(--accent); }

.consent-notice {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.consent-notice a { color: var(--fg); }

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

.contacts-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr;
}

.contacts-list { margin: 28px 0 0; font-style: normal; display: grid; gap: 0; }

.contact-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid rgba(230,224,214,.18);
  align-items: baseline;
}

.contact-row:last-child { border-bottom: 1px solid rgba(230,224,214,.18); }

.contact-key {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A79E92;
}

.contact-val { font-size: 16px; color: #EDE7DC; overflow-wrap: anywhere; }
.contact-placeholder { color: var(--gold); }

.contact-link {
  color: var(--accent-on);
  text-decoration: none;
  border-bottom: 1px solid rgba(192,138,46,.55);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.contact-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.contact-note {
  color: rgba(243, 237, 226, .55);
  font-size: 15px;
  white-space: nowrap;
}

.order-call {
  margin: 24px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.order-call a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.order-call a:hover { color: var(--accent); }

.form-status a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  white-space: nowrap;
}

.contacts-hint {
  margin: 22px 0 0;
  font-size: 14px;
  color: #A79E92;
  max-width: 46ch;
}

.contacts-hint-lead { color: #B9B2A8; margin-top: 12px; }

.photo-slots {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.photo-slot {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(230,224,214,.22);
  background:
    repeating-linear-gradient(135deg, rgba(230,224,214,.06) 0 2px, transparent 2px 12px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.photo-slot span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A79E92;
}

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

.site-foot {
  background: var(--ink);
  color: #A79E92;
  border-top: 1px solid rgba(230,224,214,.16);
}

.foot-inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
}

.foot-line { margin: 0; font-size: 14px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }

.foot-links a {
  color: #B9B2A8;
  text-decoration: none;
  border-bottom: 1px solid rgba(185,178,168,.4);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.foot-links a:hover { color: var(--accent-on); border-bottom-color: var(--accent-on); }

/* ---------- Появление при загрузке ---------- */

.rise {
  opacity: 0;
  transform: translateY(12px);
  animation: rise .7s ease forwards;
}

.hero-title { animation-delay: .05s; }
.hero-lead { animation-delay: .12s; }
.hero-panel { animation-delay: .1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Планшет и десктоп ---------- */

@media (min-width: 768px) {
  .catalog { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cat-b { margin-top: 72px; }

  .why-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .why-lead { position: sticky; top: 100px; align-self: start; }

  .masters-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .order-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .contacts-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  .photo-slots { grid-template-columns: repeat(2, 1fr); }
  .photo-slot:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) {
  .head-nav { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

@media (min-width: 1100px) {
  .hero-panel { margin-top: 8px; }
  .photo-slots { grid-template-columns: repeat(3, 1fr); }
  .photo-slot:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* ---------- Галерея ассортимента ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-group {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.gallery-group:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.gallery-group-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  margin: 0;
}

.gallery-group-note {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item-wide img {
  aspect-ratio: 3 / 2;
}

.gallery-item figcaption {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 767px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item-wide { grid-column: span 2; }
}

/* ---------- Прайс ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 36px;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
}

.price-card-premium {
  background: #FBF3E4;
  border-color: #E3D6C2;
}

.price-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.price-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.12;
  margin: 12px 0 0;
}

.price-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.price-table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--fg);
}

.price-table tbody th {
  font-weight: 500;
  color: var(--fg);
}

.price-table td {
  text-align: right;
  white-space: nowrap;
}

.price-table thead th:not(:first-child) {
  text-align: right;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-shot {
  margin: 24px 0 0;
}

.price-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.price-shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.price-foot {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

.price-syrie {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.price-syrie-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0;
}

.price-syrie-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 620px;
}

.price-syrie-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.price-syrie-list li:last-child { border-bottom: 0; }

.ps-val {
  font-weight: 600;
  white-space: nowrap;
}

.price-syrie-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 860px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-table { font-size: 13.5px; }
  .price-table th, .price-table td { padding: 8px 0; }
}

@media (max-width: 380px) {
  .price-table { font-size: 13px; }
  .price-syrie-list li { font-size: 14px; }
}

/* ---------- видео ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.vcard { margin: 0; }
.vcard-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid rgba(18, 26, 26, .12);
  border-radius: 10px;
  overflow: hidden;
  background: #10191a;
  cursor: pointer;
}
.vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s ease;
}
.vcard-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #10201f;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.vcard-media:hover .vcard-play { transform: scale(1.07); background: #C08A2E; }
.vcard-media:hover .vcard-play::after { border-left-color: #fff; }
.vcard figcaption { margin-top: 12px; display: block; }
.vcard figcaption strong { display: block; font-size: 16px; line-height: 1.35; }
.vcard figcaption span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: rgba(24, 34, 34, .68); }

.video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 14, .82); }
.video-modal-box {
  position: relative;
  width: min(520px, 100%);
  background: #0e1717;
  color: #f2ede3;
  border-radius: 14px;
  padding: 16px 18px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.video-modal-box video { width: 100%; border-radius: 10px; background: #000; display: block; }
.video-modal-box h3 { margin: 16px 0 6px; font-size: 19px; }
.video-modal-box p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(242, 237, 227, .78); }
.video-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Каталог карточек позиций ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  font: 500 14px/1 var(--font-body);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 14px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.chip:hover { border-color: var(--fg); }

.chip.is-on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--accent-on);
}

.filters-status {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 22px;
}

.good {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.good.is-hidden { display: none; }

.good-media {
  margin: 0;
  background: var(--bg);
}

.good-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.good-media figcaption {
  padding: 10px 16px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.good-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.good-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.good-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.42rem;
  line-height: 1.15;
}

.good-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.good-specs {
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}

.good-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.good-spec dt { color: var(--muted); }

.good-spec dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.good-price { color: var(--fg); }

.good-btn {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--accent-on);
  transform: translateY(-1px);
}

.goods-foot {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 74ch;
}

/* ---------- Мелкий опт ---------- */

.opt-grid {
  display: grid;
  gap: 40px;
}

.opt-lead { max-width: 46ch; }

.opt-lead .section-note { margin-bottom: 20px; }

.opt-cols { display: grid; gap: 32px; }

.opt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opt-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.opt-list li:first-child { border-top: 1px solid var(--border); }

.opt-key { color: var(--muted); max-width: 40ch; }

.opt-val {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.opt-syrie {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}

.opt-syrie-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.opt-syrie-text {
  margin: 10px 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Отзывы ---------- */

.reviews-empty {
  margin-top: 30px;
  border: 1px dashed var(--border);
  background: var(--surface);
  padding: clamp(24px, 4vw, 44px);
  max-width: 760px;
}

.reviews-empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.reviews-empty-note {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.reviews-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

/* ---------- Адаптив новых блоков ---------- */

@media (min-width: 768px) {
  .opt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

@media (max-width: 767px) {
  .filters { gap: 14px 20px; }
  .filter-group-length { width: 100%; }
  .good-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Навигация: на средних экранах прячем второстепенные пункты ---------- */

.head-nav { gap: 22px; font-size: 13.5px; }

@media (min-width: 1024px) and (max-width: 1179px) {
  .head-nav .nav-sec { display: none; }
}

/* ---------- Отдельные страницы: фото и видео ---------- */

.page-hero {
  padding-block: clamp(44px, 7vw, 92px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0));
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.page-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

.head-nav a.is-active {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.btn-secondary:hover {
  color: var(--accent-on);
  background: var(--fg);
  border-color: var(--fg);
}

.section-foot-link {
  margin: 30px 0 0;
}

.section-foot-link .btn {
  min-height: 44px;
  padding: 11px 22px;
}

/* ---------- Компактные превью на главной ---------- */


.video-grid-preview {
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  gap: 18px;
}

/* ---------- Лайтбокс фотографий ---------- */

.lb-item {
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  outline: none;
}

.lb-item img {
  transition: transform .25s ease, filter .25s ease;
}

.lb-item:hover img,
.lb-item:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.04);
}

.lb-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 14, .9);
}

.lightbox-box {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.lightbox-box img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #10191a;
  border-radius: 8px;
}

.lightbox-caption {
  margin: 0;
  color: #E6E0D6;
  font-size: 15px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

@media (max-width: 767px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: -4px; }
  .lightbox-next { right: -4px; }
}

.gallery-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.gallery-preview .gallery-item img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  .gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.video-grid-preview {
  grid-template-columns: repeat(3, minmax(0, 200px));
}

.video-grid-preview .vcard-media { aspect-ratio: 9 / 14; }

@media (max-width: 767px) {
  .video-grid-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Ссылка под блоком группы и внутри карточки каталога ---------- */

.gallery-group-link {
  margin: 14px 0 0;
}

.cat-link {
  margin: 12px 0 0;
}

/* ---------- Галерея сырья (syrie.html) ---------- */

.syrie-gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  margin-top: 26px;
}

.syrie-gallery .gallery-item img {
  aspect-ratio: 1 / 1;
}

/* ---------- Узкие экраны: условия в две строки, без обрезки ---------- */

@media (max-width: 767px) {
  .opt-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .opt-val {
    text-align: left;
    white-space: normal;
  }
}
