:root {
  --cream: #f9f6f1;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5e5e5e;
  --muted-light: #8a8a8a;
  --terracotta: #a66b5b;
  --terracotta-hover: #8f5a4c;
  --terracotta-soft: rgba(166, 107, 91, 0.14);
  --dark: #141414;
  --dark-elevated: #1c1c1c;
  --border: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 4px 24px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 16px 48px rgba(26, 26, 26, 0.1);
  --shadow-badge: 0 16px 40px rgba(26, 26, 26, 0.12);
  --hero-radius: 40px;
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --badge-bronze: #b0a090;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius: 20px;
  --radius-pill: 999px;
  --header-h: 4.5rem;
  --catalog-price-bg: #5e35b1;
}

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

html {
  scroll-behavior: smooth;
  font-size: 106.25%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(249, 246, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 46vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-desktop a.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-desktop a.nav-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--terracotta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(166, 107, 91, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--muted);
}

.nav-mobile .btn-primary {
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-phone {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header {
    height: auto;
    padding: 0.75rem 0;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }

  .nav-mobile.is-open {
    width: 100%;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem + 90px) 0 calc(4.5rem + 120px);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* Обёртка без рамки — только для позиционирования бейджа */
.hero-frame {
  position: relative;
  overflow: visible;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero-media {
  position: relative;
  overflow: visible;
  border-radius: var(--hero-radius);
}

.hero-parallax {
  overflow: hidden;
  border-radius: var(--hero-radius);
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: 0 24px 64px rgba(26, 26, 26, 0.12);
}

.hero-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 0.35s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax img {
    transform: scale(1);
    transition: none;
    will-change: auto;
  }
}

/* Шестиугольник «500+» — справа по центру, двойная бронзовая обводка (как на фото) */
.hero-badge {
  position: absolute;
  z-index: 4;
  right: 0;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translate(38%, -50%);
  filter: drop-shadow(0 14px 36px rgba(26, 26, 26, 0.12));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-badge:hover {
  transform: translate(38%, calc(-50% - 5px));
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    transition: none;
  }

  .hero-badge:hover {
    transform: translate(38%, -50%);
  }
}

.hero-badge-stack {
  position: relative;
  width: 156px;
  height: 180px;
}

.hero-badge-layer {
  position: absolute;
  inset: 0;
  clip-path: var(--hex-clip);
}

.hero-badge-layer--bronze-outer {
  background: var(--badge-bronze);
  z-index: 1;
}

.hero-badge-layer--white-ring {
  background: var(--white);
  transform: scale(0.978);
  z-index: 2;
}

.hero-badge-layer--bronze-inner {
  background: var(--badge-bronze);
  transform: scale(0.952);
  z-index: 3;
}

.hero-badge-layer--face {
  background: var(--white);
  transform: scale(0.926);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.55rem 0.55rem;
  box-sizing: border-box;
}

.hero-badge-top {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06em;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-badge-plus {
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.hero-badge-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.32;
  max-width: 6.25rem;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-badge {
    transform: translate(28%, -50%);
  }

  .hero-badge:hover {
    transform: translate(28%, calc(-50% - 4px));
  }

  .hero-badge-stack {
    width: 132px;
    height: 152px;
  }

  .hero-badge-top {
    font-size: clamp(1.5rem, 4.5vw, 1.95rem);
  }

  .hero-badge-label {
    font-size: 0.6rem;
    max-width: 5.5rem;
  }
}

@media (max-width: 520px) {
  .hero-badge {
    transform: translate(18%, -50%);
  }

  .hero-badge:hover {
    transform: translate(18%, calc(-50% - 3px));
  }

  .hero-badge-stack {
    width: 118px;
    height: 136px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-badge:hover {
    transform: translate(28%, -50%);
  }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .hero-badge:hover {
    transform: translate(18%, -50%);
  }
}

/* ——— Sections light ——— */
.section-light {
  padding: 5rem 0;
  background: var(--cream);
}

.section-light.alt {
  background: var(--cream-dark);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ——— Why cards ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--terracotta);
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

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

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Assortment / каталог ——— */
.section-catalog {
  padding: 5rem 0;
  background: var(--white);
}

.section-catalog .section-head {
  max-width: 42rem;
}

.section-catalog .section-head code {
  font-size: 0.85em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--cream-dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.35rem;
  align-items: start;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.catalog-card-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f1ec;
  margin-bottom: 0.85rem;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.catalog-card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.catalog-card-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  flex-grow: 1;
  min-height: 0;
}

.catalog-card-meta p {
  margin: 0;
}

.catalog-card-meta p + p {
  margin-top: 0.2rem;
}

.catalog-card-price {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--catalog-price-bg);
  border-radius: var(--radius-pill);
  line-height: 1.2;
  flex-shrink: 0;
}

.catalog-card-price--btn {
  cursor: pointer;
  border: none;
  font: inherit;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.catalog-card-price--btn:hover {
  filter: brightness(1.08);
}

.catalog-card-price--btn:active {
  transform: scale(0.98);
}

.catalog-card-price--btn:focus {
  outline: none;
}

.catalog-card-price--btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.catalog-card-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.catalog-stepper-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--cream-dark);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.catalog-stepper-btn:hover {
  background: #e8e2d8;
}

.catalog-stepper-input {
  width: 2.75rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.35rem 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -moz-appearance: textfield;
}

.catalog-stepper-input::-webkit-outer-spin-button,
.catalog-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ——— Выбор количества (по клику на цену) ——— */
.catalog-qty-backdrop {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.catalog-qty-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.catalog-qty-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 116;
  width: min(19.5rem, calc(100vw - 2rem));
  padding: 1.5rem 1.35rem 1.35rem;
  margin: 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.catalog-qty-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.catalog-qty-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.catalog-qty-modal-close:hover {
  background: #e8e2d8;
}

.catalog-qty-field {
  margin-top: 0.85rem;
}

.catalog-qty-field:first-of-type {
  margin-top: 0;
}

.catalog-qty-field-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.catalog-qty-product {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.catalog-qty-modal .catalog-qty-stepper {
  width: 100%;
  border-radius: var(--radius-pill);
}

.catalog-qty-modal .catalog-stepper-input {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: auto;
}

.catalog-qty-add {
  width: 100%;
  margin-top: 0.9rem;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}

/* ——— Модалка «Получить прайс» (hero) ——— */
.price-request-backdrop {
  position: fixed;
  inset: 0;
  z-index: 117;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.price-request-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.price-request-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 118;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1.5rem 1.35rem 1.35rem;
  margin: 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.price-request-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.price-request-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.price-request-close:hover {
  background: #e8e2d8;
}

.price-request-title {
  margin: 0 1.75rem 1rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  text-align: center;
}

.price-request-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-request-btn {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* ——— Cart FAB + drawer ——— */
.cart-fab {
  position: fixed;
  right: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
  bottom: 1.25rem;
  z-index: 95;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 32px rgba(166, 107, 91, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cart-fab:hover {
  background: var(--terracotta-hover);
  transform: scale(1.04);
}

.cart-fab:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.cart-fab-icon {
  display: block;
}

.cart-fab-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  display: none;
}

.cart-fab.has-items .cart-fab-badge {
  display: block;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 108;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  width: min(22rem, 92vw);
  background: var(--white);
  box-shadow: -12px 0 40px rgba(26, 26, 26, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.cart-drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer-close:hover {
  background: #e8e2d8;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.cart-drawer-empty {
  margin: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  display: none;
}

.cart-drawer-empty.is-visible {
  display: block;
}

.cart-drawer-empty a {
  color: var(--terracotta);
  font-weight: 500;
}

.cart-drawer-foot {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.cart-drawer-foot[hidden] {
  display: none !important;
}

.cart-drawer-total {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-drawer-actions .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.55rem 0.65rem;
}

.cart-line {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.cart-line-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.cart-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-line-row + .cart-line-row {
  margin-top: 0.4rem;
}

.cart-line-field-label {
  flex: 0 0 auto;
  min-width: 3.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cart-line-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cart-line-stepper button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--cream-dark);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-line-stepper input {
  width: 2.25rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0;
}

.cart-line-stepper[data-field="days"] input {
  width: 2.5rem;
}

.cart-line-remove {
  border: none;
  background: none;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  padding: 0;
}

.cart-line-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.45rem 0 0;
}

/* ——— Order form: cart preview ——— */
.order-cart-block {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.order-cart-heading {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.order-cart-list li {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.order-cart-list li:last-child {
  border-bottom: none;
}

.order-cart-total {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.order-cart-empty {
  margin: 0 0 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.order-cart-empty[hidden] {
  display: none;
}

.order-cart-empty a {
  color: var(--terracotta);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem 1rem;
  }
}

@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Gallery (Проекты) — ровная сетка вместо masonry ——— */
.section-gallery .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery figure a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery figure,
  .gallery img {
    transition: none;
  }

  .gallery figure:hover {
    transform: none;
  }

  .gallery figure:hover img {
    transform: none;
  }
}

/* ——— Work (dark) ——— */
.section-work {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--white);
}

.section-work .section-head h2 {
  color: var(--white);
}

.section-work .section-head p {
  color: var(--muted-light);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.work-item .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.work-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.work-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.55;
}

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Order service CTA ——— */
.section-order-service .order-service-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.section-order-service .order-service-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.section-order-service .order-service-inner > p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.order-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Order form + video ——— */
.section-order-form .section-head {
  max-width: 44rem;
}

.section-order-form .order-section-tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-order-form .order-section-tagline strong {
  font-weight: 600;
  color: var(--terracotta);
}

.order-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

.order-video-col,
.order-form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.order-video-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dark);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 20px 56px rgba(26, 26, 26, 0.12);
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.06);
}

.order-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #141414;
  pointer-events: none;
}

.order-video-player::-webkit-media-controls {
  display: none !important;
}

.order-video-player::-webkit-media-controls-enclosure {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .order-video-player {
    display: none;
  }

  .order-video-box::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--dark) url("../img/Б1.png") center / cover no-repeat;
  }
}

.order-video-caption {
  margin: 0;
  padding: 1rem 1.2rem 1.15rem;
  background: var(--dark-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-video-caption-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.3;
}

.order-video-caption-lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.order-video-caption-steps {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.order-video-caption-steps li {
  margin: 0 0 0.55rem;
  padding-left: 0.15rem;
}

.order-video-caption-steps li:last-child {
  margin-bottom: 0;
}

.order-video-caption-steps strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.order-form-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  background: var(--white);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.08);
  border: 1px solid var(--border);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.order-field span {
  color: var(--muted);
  font-weight: 500;
}

.order-field input,
.order-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: var(--muted-light);
}

.order-field input:focus-visible,
.order-field textarea:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}

.order-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.order-consents {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.order-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

.order-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.order-consent span {
  color: var(--muted);
  font-weight: 400;
}

.order-consent a {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.order-consent a:hover {
  color: var(--terracotta-hover);
}

.order-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.order-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.order-form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.order-form-status[hidden] {
  display: none !important;
}

.order-form-status--ok {
  color: #2d6a4f;
}

.order-form-status--error {
  color: var(--terracotta);
}

.order-form-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.order-form-hint a {
  color: var(--terracotta);
  font-weight: 500;
}

.order-form-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .order-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .order-video-box {
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
  }

  .order-form-panel {
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
  }

  .order-submit {
    align-self: stretch;
    width: 100%;
  }
}

/* ——— Contact & footer ——— */
.section-contact {
  padding: 4rem 0 2rem;
  background: var(--cream);
}

.contact-card {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 32rem;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer {
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.footer-col {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-brand-link:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.footer-brand-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 72vw);
  object-fit: contain;
  object-position: left center;
}

.footer-desc {
  margin: 0.9rem 0 0;
  max-width: 17rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

.footer-kicker {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-list a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.footer-city {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.footer-social-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.footer-social-btn--max {
  background: rgba(255, 255, 255, 0.14);
}

.footer-social-btn--max:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social-btn--max svg {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-legal-line {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal-line + .footer-legal-line {
  margin-top: 0.4rem;
}

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

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--brand {
    grid-column: auto;
  }
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

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

/* ——— Legal / privacy page ——— */
.legal-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--cream);
}

.legal-page-inner {
  max-width: 46rem;
}

.legal-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.legal-breadcrumb a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-breadcrumb a:hover {
  color: var(--terracotta-hover);
}

.legal-breadcrumb span[aria-hidden="true"] {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.legal-doc {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
}

.legal-doc h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.legal-doc h1.legal-doc-title-consent {
  font-size: unset;
  font-family: unset;
  line-height: unset;
  margin-bottom: 1.75rem;
}

.legal-doc-title-consent {
  text-align: center;
}

.legal-doc-title-consent-line {
  display: block;
}

.legal-doc-title-consent-line:first-child {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal-doc-title-consent-line:last-child {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-doc-cross {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.15rem 0 0.4rem;
  color: var(--ink);
}

.legal-doc p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-doc a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc a:hover {
  color: var(--terracotta-hover);
}

.legal-doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
}

.legal-table th {
  width: 11rem;
  max-width: 38%;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
}

.legal-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table-list {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-table-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .legal-table th {
    display: block;
    width: 100%;
    max-width: none;
    border-bottom: none;
  }

  .legal-table td {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-top: 0.35rem;
  }

  .legal-table tr:last-child td {
    border-bottom: none;
  }
}

.footer-legal-line a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-legal-line a:hover {
  color: rgba(255, 255, 255, 0.9);
}
