:root {
  --bg: #1c1e1c;
  --bg-elevated: #252825;
  --bg-soft: #2a2d2a;
  --bg-muted: #343834;
  --steel: #a7aba4;
  --frost: #f3f1ec;
  --frost-dim: #c9c6bf;
  --ember: #c45c26;
  --ember-soft: #d4783a;
  --line: rgba(243, 241, 236, 0.16);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-image: url("../images/hero-bg-800.webp");
  --page-hero-image: url("../images/country-house.webp");
  --catalog-bg-image: url("../images/mountain-river.webp");
  --contact-bg-image: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--frost);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  position: relative;
}

.section.section-compact {
  padding-top: 2rem;
}

.section.section-after-hero {
  padding-top: 2.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 0.85rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--frost-dim);
  margin: 0;
  max-width: 38rem;
}

.section-head.centered .lead {
  margin-inline: auto;
}

/* Anchor targets clear the fixed header */
html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
  overflow: visible;
}

.site-header.scrolled {
  /* Solid fill only — backdrop-filter on the header creates a containing
     block for position:fixed children, so the mobile .nav overlay collapses
     to the header height and looks like the hamburger “doesn’t open”. */
  background:
    linear-gradient(180deg, rgba(18, 19, 18, 0.92), rgba(18, 19, 18, 0.96)),
    var(--hero-image, none) center/cover no-repeat;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  z-index: 2;
  color: var(--frost);
  min-width: 0;
}

.brand img,
.brand-logo,
.brand-mark {
  width: auto;
  height: 54px;
  max-width: 118px;
  aspect-ratio: 160 / 78;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: none;
  background: transparent;
  display: block;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-text span:last-child {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--frost-dim);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav a,
.nav button {
  font-size: 0.92rem;
  color: var(--frost-dim);
  position: relative;
  cursor: pointer;
  transition:
    color 0.2s ease,
    filter 0.2s ease,
    outline-color 0.2s ease,
    outline-offset 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav button:hover,
.nav button:focus-visible {
  color: var(--frost);
  filter: brightness(1.18);
}

.nav a.active {
  color: var(--frost);
}

.nav a:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--ember-soft);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav a:focus:not(:focus-visible),
.nav button:focus:not(:focus-visible) {
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--frost);
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}

.icon-btn:hover {
  border-color: rgba(232, 230, 225, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: 0.35rem;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--frost);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-soft);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(232, 230, 225, 0.35);
  color: var(--frost);
}

.btn-ghost:hover {
  border-color: var(--frost);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-row .btn {
  margin: 0;
  flex: 1 1 14rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 3.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-row .btn + .btn {
  margin-left: 0;
}

@media (max-width: 640px) {
  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.btn-dark {
  background: var(--frost);
  color: var(--bg);
}

.btn-dark:hover {
  background: #fff;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) 3s infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 30, 28, 0.42) 0%, rgba(28, 30, 28, 0.18) 35%, rgba(28, 30, 28, 0.72) 100%),
    linear-gradient(90deg, rgba(28, 30, 28, 0.55) 0%, rgba(28, 30, 28, 0.12) 55%, rgba(28, 30, 28, 0.35) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-copy {
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(232, 230, 225, 0.88);
  margin-bottom: 1.75rem;
}

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

.hero-product {
  justify-self: start;
  width: min(100%, 340px);
  background: rgba(12, 13, 12, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.hero-product img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: #fff;
}

.hero-product strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero-product p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--frost-dim);
}

.hero-product .btn {
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  width: 100%;
}

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

/* Features */
.features {
  background:
    linear-gradient(180deg, rgba(28, 30, 28, 0.78), rgba(28, 30, 28, 0.9)),
    var(--catalog-bg-image, url("../images/mountain-river.webp")) center/cover fixed;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem 1.35rem;
  background: rgba(37, 40, 37, 0.78);
  border-top: 2px solid var(--ember);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(42, 45, 42, 0.9);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--ember-soft);
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 120, 58, 0.35);
  background: rgba(196, 92, 38, 0.08);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.95rem;
}

/* Catalog */
.catalog {
  background:
    radial-gradient(ellipse at top, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #222522, #1c1e1c 45%, #252825);
}

.products {
  --products-gap: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--products-gap);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: stretch;
  flex: 0 1 100%;
  width: 100%;
  max-width: 68rem;
  box-sizing: border-box;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  border: 1px solid rgba(232, 230, 225, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%),
    rgba(18, 19, 18, 0.35);
}

.product-media {
  background: linear-gradient(160deg, #eceae4, #d8d5ce);
  aspect-ratio: 1;
  max-height: min(420px, 52vh);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  box-sizing: border-box;
  min-height: 0;
  align-self: start;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.02);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.product-body h3 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.product-body .sku-label {
  margin: 0 0 0.35rem;
}

.product-price-row {
  margin: 0.15rem 0 0.35rem;
}

.product-price-row .price {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.product-short {
  margin: 0 0 0.55rem;
  color: var(--frost-dim);
  font-size: 0.95rem;
}

.product-short p {
  margin: 0;
}

.product-value {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.product-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.product-benefits li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--frost);
  font-size: 0.92rem;
  line-height: 1.4;
}

.product-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--ember);
}

.product-usecases-line {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.86rem;
  line-height: 1.45;
}

.product-usecases-line span {
  color: var(--ember-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-right: 0.35rem;
}

.product-card-sub {
  margin: 0 0 0.35rem;
  color: var(--frost-dim);
  font-size: 1.02rem;
  line-height: 1.4;
}

.product-status-line {
  margin: 0.15rem 0 0.55rem !important;
  color: var(--ember-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0.35rem 0 0.85rem;
}

.product-fact p {
  margin: 0.2rem 0 0 !important;
  color: var(--frost-dim);
  font-size: 0.94rem;
  line-height: 1.45;
}

.product-fact-label {
  display: block;
  color: var(--ember-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.catalog-why {
  margin: 1.25rem auto clamp(2rem, 4vw, 2.75rem);
  max-width: 48rem;
}

.catalog-why h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-bottom: 1rem;
  text-align: center;
}

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

.catalog-why-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--frost-dim);
  line-height: 1.5;
  font-size: 0.98rem;
}

.catalog-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--ember);
}

.catalog-why-list strong {
  color: var(--frost);
}

.product-body p {
  margin: 0 0 1rem;
  color: var(--frost-dim);
  font-size: 0.95rem;
}

.product-info h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.product-h1-sub {
  margin: 0 0 0.55rem;
  color: var(--frost-dim);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.45;
  max-width: 36rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.65rem;
  padding-top: 0;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 0.4rem;
}

/* Lifestyle */
.lifestyle {
  background: var(--bg-elevated);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

.life-item {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.life-item figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  position: relative;
  background: var(--bg-muted);
}

.life-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.life-item:hover img {
  transform: scale(1.05);
}

.life-item p {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.95rem;
}

.life-item strong,
.life-item h3 {
  display: block;
  color: var(--frost);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.section-head h2 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* About */
.about {
  background:
    linear-gradient(180deg, #1c1e1c, #252825);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text p {
  color: var(--frost-dim);
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.about-gallery .wide {
  grid-column: 1 / -1;
}

.about-gallery figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
}

.about-gallery .wide {
  aspect-ratio: 16 / 10;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

/* Reviews */
.reviews {
  background: var(--bg-soft);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.review-media,
.review-media img,
.review-media video {
  display: none !important;
}

.stars {
  color: var(--ember-soft);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.review p {
  margin: 0;
  color: var(--frost-dim);
  flex: 1;
}

.review footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
}

.review strong {
  font-family: var(--font-display);
}

.review span {
  font-size: 0.85rem;
  color: var(--steel);
}

.notify-consent {
  margin: 0.35rem 0 0.85rem;
  text-align: left;
}

.notify-dialog .check-line {
  align-items: flex-start;
}

/* FAQ */
.faq {
  background: var(--bg);
}

.faq-panel {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.faq-cta .btn {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.25rem 2.2rem 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  position: relative;
}

.faq-item button::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--frost);
  border-bottom: 1.5px solid var(--frost);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-item.open button::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.35rem;
  color: var(--frost-dim);
  max-width: 44rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: rise 0.4s var(--ease);
}

/* Contact */
.contact {
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 92, 38, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(28, 30, 28, 0.82), rgba(28, 30, 28, 0.92)),
    var(--contact-bg-image, none) center/cover no-repeat;
  background-color: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-grid h2 {
  padding-top: 0.15rem;
  line-height: 1.15;
  overflow: visible;
}

.contact-details {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.contact-details a,
.contact-details p {
  margin: 0;
  color: var(--frost-dim);
}

.contact-details strong {
  display: block;
  color: var(--frost);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.email-safe {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

.messenger-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.messenger-link {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.messenger-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.messenger-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  position: relative;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--frost-dim);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--ember);
  cursor: pointer;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(196, 92, 38, 0.7);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--steel);
  margin: 0;
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 14, 12, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.analytics-consent-inner {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.analytics-consent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost);
}

.analytics-consent-text {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 32rem;
}

.analytics-consent-text a {
  color: var(--frost);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent-text a:hover {
  color: var(--ember-soft);
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 26rem);
  margin-top: 0.15rem;
}

.analytics-consent-btn {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.analytics-consent-btn:hover {
  transform: none;
}

@media (min-width: 481px) {
  .analytics-consent-actions {
    width: min(100%, 20rem);
    gap: 0.6rem;
  }

  .analytics-consent-btn {
    min-height: 2.55rem;
    padding: 0.62rem 0.75rem;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 480px) {
  .analytics-consent {
    padding-inline: 0.85rem;
  }

  .analytics-consent-actions {
    grid-template-columns: 1fr;
    width: min(100%, 18rem);
  }

  .analytics-consent-btn {
    min-height: 3.1rem;
    font-size: 0.86rem;
  }
}

@media (min-width: 768px) {
  .analytics-consent {
    padding: 1.35rem 1.5rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  .analytics-consent-inner {
    gap: 1.1rem;
  }

  .analytics-consent-actions {
    width: min(100%, 18.5rem);
    gap: 0.55rem;
  }

  .analytics-consent-btn {
    min-height: 2.45rem;
    padding: 0.58rem 0.7rem;
    font-size: 0.74rem;
  }
}

.analytics-info-notice {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1190;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 26, 22, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-info-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.analytics-info-inner p {
  margin: 0;
  flex: 1;
  color: var(--frost-dim);
  font-size: 0.86rem;
  line-height: 1.45;
}

.analytics-info-inner a {
  color: var(--frost);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-info-close {
  border: 0;
  background: transparent;
  color: var(--steel);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.analytics-info-close:hover {
  color: var(--frost);
}

.footer-cookie-link {
  border: 0;
  background: transparent;
  color: var(--steel);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.footer-cookie-link:hover {
  color: var(--frost);
}

.footer-bottom .footer-cookie-link {
  margin-left: 0;
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
  background:
    linear-gradient(180deg, rgba(21, 23, 21, 0.94), rgba(15, 17, 15, 0.97)),
    var(--hero-image, none) center/cover no-repeat;
  background-color: #151715;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.15fr 1fr;
  gap: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img,
.footer-logo {
  width: auto;
  height: 54px;
  max-width: 118px;
  aspect-ratio: 160 / 78;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: transparent;
  display: block;
  flex-shrink: 0;
  box-shadow: none;
  overflow: visible;
}

.footer-simple {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.15rem 1.75rem;
}

.footer-simple-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem 2.25rem;
  min-width: 0;
  width: 100%;
}

.footer-simple-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.footer-simple p,
.footer-simple-copy p,
.footer-simple-meta p {
  margin: 0;
  color: var(--steel);
  font-size: 0.86rem;
  line-height: 1.45;
}

.footer-simple-meta p.footer-simple-brand {
  color: var(--frost-dim);
  font-size: 0.95rem;
}

.footer-simple-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: flex-start;
}

.footer-simple-nav a {
  color: var(--frost-dim);
  text-decoration: none;
  white-space: nowrap;
}

.footer-simple-nav a:hover {
  color: var(--frost);
}

@media (max-width: 719px) {
  .footer-simple-nav,
  .footer-bottom-links {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .footer-simple-nav a,
  .footer-bottom-links a,
  .footer-bottom-links .footer-cookie-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
  }
}

@media (min-width: 720px) {
  .footer-simple-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-simple-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding-left: 1.75rem;
    border-left: 1px solid var(--line);
    min-width: 11.5rem;
  }
}

.footer-brand p {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.footer-col h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--frost-dim);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--frost);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem 2.25rem;
  align-items: start;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.85rem;
  line-height: 1.45;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-bottom-links a,
.footer-bottom-links .footer-cookie-link {
  color: var(--frost-dim);
  text-decoration: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links .footer-cookie-link:hover {
  color: var(--frost);
}

.footer-bottom.plain {
  border: 0;
  padding-top: 0;
}

@media (min-width: 720px) {
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-bottom-links {
    padding-left: 1.75rem;
    border-left: 1px solid var(--line);
    min-width: 11.5rem;
  }
}

/* Page (buyers / privacy) */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(12,13,12,0.7), rgba(12,13,12,0.92)),
    var(--page-hero-image, url("../images/country-house.webp")) center/cover;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: min(22ch, 100%);
  overflow-wrap: break-word;
  word-break: normal;
}

.page-hero-wide h1 {
  max-width: min(34ch, 100%);
}

.prose .text-muted {
  color: var(--steel);
  font-weight: 500;
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .header-actions .btn {
    display: none;
  }

  .page-hero {
    padding: calc(var(--header-h) + 1.75rem) 0 1.75rem;
  }

  .page-hero h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    max-width: 100%;
  }

  .prose h2 {
    margin-top: 1.75rem;
  }
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 2.4rem 0 0.9rem;
}

.prose h3 {
  margin: 1.6rem 0 0.6rem;
}

.prose p,
.prose li {
  color: var(--frost-dim);
}

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

.prose li {
  margin-bottom: 0.45rem;
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.75rem;
}

.prose-table-wrap table {
  margin: 0;
  min-width: 36rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-display);
  font-weight: 650;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.info-card {
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
}

.info-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.info-card p {
  margin: 0;
  color: var(--frost-dim);
  font-size: 0.92rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast / cart drawer simple */
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  background: var(--frost);
  color: var(--bg);
  padding: 0.85rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .features-grid,
  .reviews-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .lifestyle-grid,
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .products > .product {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .product-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .product-meta-actions {
    width: 100%;
  }

  .product-meta-actions .btn {
    flex: 1 1 auto;
  }

  .life-item.life-wide figure {
    aspect-ratio: 16 / 10;
  }

  .site-header {
    background: rgba(12, 13, 12, 0.96);
    border-bottom-color: rgba(243, 241, 236, 0.12);
  }

  .site-header.menu-open {
    z-index: 300;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 260;
    background: #1a1c1a;
    border-color: rgba(243, 241, 236, 0.35);
  }

  .menu-toggle span {
    background: #f3f1ec;
  }

  .header-actions {
    margin-left: auto;
    position: relative;
    z-index: 260;
  }

  .brand {
    position: relative;
    z-index: 260;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: #0c0d0c;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a,
  .nav button {
    font-size: 1.35rem;
    font-family: var(--font-display);
    color: #f3f1ec !important;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid rgba(243, 241, 236, 0.12);
    width: 100%;
    text-align: left;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .nav a:first-child,
  .nav button:first-child {
    font-size: 1.55rem;
    color: #fff !important;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav button:hover,
  .nav button:focus-visible {
    filter: brightness(1.18);
  }

  .nav a:focus-visible,
  .nav button:focus-visible {
    outline: 2px solid var(--ember-soft);
    outline-offset: 2px;
  }

  .brand-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-simple {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-product {
    grid-template-columns: 88px 1fr;
    width: 100%;
  }

  .hero-product img {
    width: 88px;
    height: 88px;
  }

  .faq-cta {
    flex-direction: column;
    align-items: center;
  }

  .faq-cta .btn {
    width: min(100%, 22rem);
  }

  .products > .product {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    padding: 0.75rem;
  }

  .features {
    background-attachment: scroll;
  }

  .notify-overlay {
    place-items: start center;
    padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .notify-dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bx-topbar-actions {
    width: 100%;
  }

  .bx-top-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-bg img {
    animation: none;
  }
}

/* Product page */
.product-page {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

@media (max-width: 980px) {
  .product-page {
    padding-bottom: 6.5rem;
  }
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.product-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.product-lower {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

@media (min-width: 900px) {
  .product-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .product-reviews-panel,
  .product-page-footer {
    grid-column: 1 / -1;
  }
}

.product-buy-panel {
  min-width: 0;
}

@media (min-width: 981px) {
  .product-buy-panel {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .product-page .product-stage {
    aspect-ratio: 4 / 3;
    max-height: min(420px, 52vh);
  }
}

.product-buy-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.product-buy-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.15rem;
}

.product-buy-price-row .price-lg {
  margin: 0.2rem 0 0;
}

.product-rating-inline {
  margin: 0;
  font-size: 0.88rem;
}

.product-rating-highlight {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(196, 92, 38, 0.38);
  background: rgba(196, 92, 38, 0.1);
}

.product-reviews-panel.is-orderable {
  border-color: rgba(196, 92, 38, 0.42);
  background: linear-gradient(165deg, rgba(196, 92, 38, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(212, 120, 58, 0.12);
}

.product-reviews-panel.is-orderable .product-panel-head h2 {
  color: var(--frost);
}

.product-pitch {
  margin: 0.65rem 0 0;
  color: var(--frost-dim);
  font-size: 0.94rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.product-spec-chips li {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--frost-dim);
  background: rgba(255, 255, 255, 0.02);
}

.product-service-grid {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--frost-dim);
}

.product-service-grid a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.product-jump-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--frost-dim);
  transition: color 0.2s, border-color 0.2s;
}

.product-jump-nav a:hover {
  color: var(--frost);
  border-color: rgba(196, 92, 38, 0.55);
}

.product-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.product-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.product-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.product-panel-head h2 {
  margin: 0;
}

.product-panel-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--frost-dim);
}

.product-desc-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--frost-dim);
}

.spec-list-compact {
  margin: 0;
}

.product-use-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.product-use-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.product-use-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-use-chips li {
  font-size: 0.8rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--frost-dim);
}

.review-compact {
  padding: 1rem 0.95rem;
}

.review-compact p {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-page-footer {
  padding-top: 0.35rem;
}

.product-page-footer p {
  margin: 0.35rem 0;
}

.product-breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  color: var(--frost-dim);
}

.product-breadcrumbs a {
  color: var(--frost-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-breadcrumbs a:hover {
  color: var(--frost);
}

.product-stage {
  background: linear-gradient(160deg, #efeee9, #d9d6cf);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.product-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  border-color: var(--ember);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e8e6e0;
}

.price-soon {
  color: var(--frost-dim);
  font-weight: 500;
}

.price-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.price-lg .price-old {
  font-size: 0.62em;
  margin-right: 0.35rem;
  color: var(--frost-dim);
}

.product-pitch {
  margin: 0 0 0.85rem;
  color: var(--frost-dim);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 38rem;
}

.product-benefits-page {
  margin: 0 0 1.1rem;
}

.product-details {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.product-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(12, 13, 12, 0.96);
  border-top: 1px solid rgba(232, 230, 225, 0.14);
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
  pointer-events: none;
}

.product-sticky-buy.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.product-sticky-buy-inner {
  width: min(100% - 0.5rem, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.product-sticky-buy strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.product-sticky-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 981px) {
  .product-sticky-buy {
    display: none;
  }
}

.spec-list {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.spec-list li {
  list-style: none;
  padding-left: 1.1rem;
  position: relative;
  color: var(--frost-dim);
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--ember);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .product-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .product-meta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .product-meta-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .product-page .product-stage {
    aspect-ratio: 5 / 4;
    max-height: 42vh;
  }

  .product-page .thumbs {
    margin-top: 0.5rem;
  }

  .product-page .thumb {
    width: 56px;
    height: 56px;
  }

  .product-info .badge {
    margin-top: 0.35rem;
  }

  .product-h1-sub {
    display: none;
  }
}

.seo-block {
  margin: 1.6rem 0 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.seo-block h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 0 0 0.8rem;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.seo-keywords span {
  border: 1px solid var(--line);
  color: var(--frost-dim);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
}

.product-faq {
  display: grid;
  gap: 0.55rem;
}

.product-faq-item {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.02);
}

.product-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--frost);
}

.product-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--frost-dim);
  line-height: 1.55;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: -0.35rem 0 0.9rem;
  color: var(--frost-dim);
  font-size: 0.92rem;
}

.product-rating-link {
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}

.product-rating-link:hover {
  color: var(--frost);
  border-bottom-color: rgba(196, 92, 38, 0.45);
}

.product-rating-link:focus-visible {
  outline: 2px solid rgba(196, 92, 38, 0.85);
  outline-offset: 3px;
}

.product-rating .stars {
  letter-spacing: 0.12em;
  color: var(--ember-soft);
}

.product-reviews-grid {
  grid-template-columns: 1fr;
}

.product-reviews .review {
  padding: 1.15rem 1.1rem;
}

.page-hero.compact {
  padding-bottom: 1.2rem;
}

/* Checkout / account */
.checkout-grid,
.account-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid rgba(196,92,38,.85);
  outline-offset: 2px;
}

.trust-list {
  list-style: none;
  margin: 1rem 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--frost-dim);
  font-size: 0.92rem;
}

.trust-list li {
  position: relative;
  padding-left: 1rem;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(196, 92, 38, 0.85);
}

.catalog-soon-divider {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin: 0.35rem 0 0.15rem;
  padding: 1.1rem 0 0.35rem;
  border-top: 1px solid rgba(232, 230, 225, 0.14);
}

.catalog-soon-divider h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.product-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.product-meta-actions .btn {
  flex: 1 1 12rem;
  margin: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 3rem;
}

@media (max-width: 640px) {
  .product-meta-actions {
    flex-direction: column;
  }

  .product-meta-actions .btn {
    width: 100%;
    flex: 1 1 auto;
  }
}

.delivery-quote {
  color: var(--frost);
  font-weight: 500;
  border-left: 2px solid rgba(196, 92, 38, 0.75);
  padding-left: 0.7rem;
  margin-top: 0.35rem;
}

.account-lookup {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(232, 230, 225, 0.12);
}

.account-empty .account-lookup {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 1.25rem;
}

.account-lookup h3 {
  margin: 0;
  font-size: 1.05rem;
}


.checkout-form h2,
.checkout-summary h2,
.account-profile h2,
.account-orders > h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 0.4rem;
}

.delivery-methods {
  display: grid;
  gap: 0.65rem;
  margin: 0.35rem 0 1.1rem;
}

.delivery-method {
  display: block;
  cursor: pointer;
}

.delivery-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-method-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--frost);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.delivery-method-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.delivery-method-card span {
  color: var(--frost-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

.delivery-method input:checked + .delivery-method-card {
  border-color: rgba(196, 92, 38, 0.75);
  background: rgba(196, 92, 38, 0.12);
}

.delivery-method input:focus-visible + .delivery-method-card {
  outline: 2px solid rgba(196, 92, 38, 0.55);
  outline-offset: 2px;
}

.pickup-info {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(232, 230, 225, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.55rem;
}

.pickup-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.pickup-info p {
  margin: 0;
  color: var(--frost-dim);
  line-height: 1.5;
}

.pickup-info[hidden],
#cdekDeliveryBlock[hidden] {
  display: none !important;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.summary-lines {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.summary-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.summary-line img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #e8e6e0;
  padding: 0.15rem;
  box-sizing: border-box;
}

.summary-line span,
.summary-line .sum {
  color: var(--frost-dim);
  font-size: 0.9rem;
}

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.qty-row button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--frost);
  cursor: pointer;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.pvz-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  max-height: min(460px, 58vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.15rem 0.2rem 0.35rem 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pvz-item {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color: var(--frost);
  padding: 0.9rem 1rem;
  cursor: pointer;
  width: 100%;
  height: auto;
  min-height: unset;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  line-height: normal;
  white-space: normal;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  margin: 0;
}

.pvz-item-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.pvz-item-code {
  display: block;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.pvz-item-addr,
.pvz-item-meta {
  display: block;
  color: var(--frost-dim);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pvz-item-meta {
  font-size: 0.84rem;
  opacity: 0.92;
}

.pvz-item.active {
  border-color: var(--ember);
  background: rgba(196, 92, 38, 0.12);
  z-index: 1;
}

.pvz-item-selected {
  cursor: default;
}

.pvz-change-btn {
  margin-top: 0.15rem;
  width: 100%;
}

.pvz-toolbar {
  margin-bottom: 0.5rem;
}

.suggest-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.suggest-item {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  color: var(--frost);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.suggest-item:hover {
  border-color: var(--ember);
}

.track-history {
  margin: 0.8rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.track-history li {
  list-style: none;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}

.track-history span {
  color: var(--frost-dim);
  font-size: 0.85rem;
}

.cdek-widget-box {
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.pvz-map {
  width: 100%;
  height: min(320px, 45vh);
  min-height: 220px;
  background: #d9d6cf;
  z-index: 1;
}

.cdek-widget-box .map-attr {
  margin: 0.45rem 0.75rem 0.65rem;
}

.pvz-popup {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.35;
  color: #1a1a1a;
}

.pvz-popup strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pvz-popup button {
  margin-top: 0.45rem;
  border: 1px solid #c45c26;
  background: #c45c26;
  color: #fff;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font: inherit;
}

.check-line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.8rem 0 1.1rem;
  color: var(--frost-dim);
  font-size: 0.9rem;
}

.check-stack {
  display: grid;
  gap: 0.85rem;
  margin: 0.9rem 0 1.2rem;
}

.check-stack .check-line {
  margin: 0;
}

.check-line a {
  color: var(--frost);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check-line a:hover {
  color: var(--ember-soft);
}

.order-card {
  margin-bottom: 1rem;
}

.order-card.active-order {
  border-color: rgba(212, 120, 58, 0.55);
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.status-track .step {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 0.8rem;
  color: var(--steel);
}

.status-track .step.done {
  border-color: rgba(212, 120, 58, 0.6);
  color: var(--frost);
  background: rgba(196, 92, 38, 0.12);
}

.cdek-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cdek-box h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
}

.account-empty {
  max-width: 34rem;
}

.sku-label {
  display: inline-block;
  margin: 0.15rem 0 0.45rem;
  color: var(--frost-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========== Bitrix-like admin shell ========== */
html.admin-html,
html.admin-html body.admin-body {
  height: 100%;
}

.admin-body {
  min-height: 100%;
  background: #0f1214;
}

.admin-body.admin-login-page {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47, 198, 246, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(196, 92, 38, 0.12), transparent 45%),
    #0f1214;
}

.admin-root {
  display: grid;
  gap: 1.25rem;
}

body.admin-app {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

body.admin-app .admin-root {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

.bx-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #1e252c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #d5dbe3;
  z-index: 40;
}

.bx-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bx-sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.bx-sidebar-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.bx-sidebar-brand span {
  display: block;
  font-size: 0.75rem;
  color: #8b96a3;
}

.bx-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.75rem 0.65rem 1rem;
}

.bx-menu-group + .bx-menu-group {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bx-menu-group-title {
  padding: 0.35rem 0.7rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8894;
}

.bx-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  margin: 0.1rem 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c4ccd5;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.bx-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.bx-menu-item.is-active {
  background: rgba(47, 198, 246, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 #2fc6f6;
}

.bx-menu-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: inline-flex;
}

.bx-menu-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bx-menu-label {
  flex: 1;
  min-width: 0;
}

.bx-menu-count {
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #aeb7c2;
  font-size: 0.72rem;
  text-align: center;
}

.bx-menu-item.is-active .bx-menu-count {
  background: rgba(47, 198, 246, 0.22);
  color: #dff7ff;
}

.bx-sidebar-footer {
  flex: 0 0 auto;
  padding: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bx-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #14191e;
}

.bx-topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a2128;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.bx-crumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  color: #8b96a3;
  font-size: 0.9rem;
}

.bx-crumbs strong {
  color: #f2f4f6;
  font-weight: 600;
}

.bx-topbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bx-top-btn {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  gap: 0.4rem;
}

.bx-top-btn .bx-menu-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.bx-menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.bx-menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #d5dbe3;
  border-radius: 2px;
}

.bx-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.35rem 2.5rem;
  scroll-padding-bottom: 2rem;
}

.bx-workspace .admin-panel {
  min-height: min-content;
}

.bx-workspace .admin-list,
.bx-workspace .admin-form,
.bx-workspace .admin-card,
.bx-workspace .admin-product-editor {
  max-width: 100%;
}

.bx-page-head {
  margin-bottom: 1.1rem;
}

.bx-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: #f4f6f8;
}

.bx-sidebar-backdrop {
  display: none;
}

.bx-login-wrap {
  width: min(100%, 26rem);
}

.bx-login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bx-login-brand img {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.bx-login-brand strong {
  display: block;
  color: var(--frost);
  font-family: var(--font-display);
}

.bx-login-brand span {
  display: block;
  color: var(--steel);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  body.admin-app .admin-root {
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    max-height: 100dvh;
  }

  .bx-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 280px);
    height: 100%;
    max-height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  }

  body.bx-sidebar-open .bx-sidebar {
    transform: translateX(0);
  }

  .bx-menu-toggle {
    display: inline-block;
  }

  .bx-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 35;
  }

  .bx-sidebar-backdrop[hidden] {
    display: none;
  }

  .bx-workspace {
    padding: 1rem 0.9rem 2.5rem;
  }
}

.admin-login,
.admin-order {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.admin-login {
  max-width: 28rem;
  width: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-off {
  display: none;
}

.password-toggle.is-visible .password-toggle-eye {
  display: none;
}

.password-toggle.is-visible .password-toggle-off {
  display: block;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--frost);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

body.nav-lock {
  overflow: hidden;
}

.metrica-pixel {
  position: absolute;
  left: -9999px;
}

.field-flush {
  margin: 0.35rem 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  color: #d5dbe3;
  font-size: 0.9rem;
}

.admin-select input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #2fc6f6;
  flex: 0 0 auto;
}

.admin-select-card {
  padding-top: 0.25rem;
}

.admin-select-row {
  margin: 0.7rem 0 0.2rem;
}

.admin-bulk-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  margin: 0.45rem 0 0.85rem;
  border: 1px solid rgba(47, 198, 246, 0.28);
  background: #1a242c;
}

.admin-bulk-bar[hidden] {
  display: none !important;
}

.admin-bulk-bar select {
  min-height: 2.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #12181e;
  color: #f2f4f6;
  font: inherit;
}

.admin-order.is-ship {
  border-color: rgba(196, 92, 38, 0.55);
}

.admin-order.is-overdue {
  border-color: rgba(180, 50, 40, 0.8);
  box-shadow: inset 3px 0 0 rgba(180, 50, 40, 0.9);
}

.admin-order.is-cancelled {
  opacity: 0.78;
  border-color: rgba(232, 230, 225, 0.18);
}

.admin-order.is-checked {
  border-color: rgba(47, 198, 246, 0.55);
  box-shadow: inset 3px 0 0 #2fc6f6;
}

.admin-export-1c {
  margin: 0.85rem 0 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(232, 230, 225, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.admin-export-1c .admin-actions {
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-export-1c .check-line {
  gap: 0.45rem;
  font-size: 0.9rem;
}

.admin-danger {
  border-color: rgba(196, 70, 70, 0.55) !important;
  color: #f0b4b4 !important;
}

.admin-danger:hover {
  border-color: rgba(220, 90, 90, 0.85) !important;
  color: #fff !important;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.admin-grid h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.admin-actions.actions-block {
  margin-bottom: 1rem;
}

.admin-actions.actions-tight {
  margin: 0.35rem 0 0.15rem;
}

.form-note.form-note-error {
  color: var(--ember);
}

.form-note.note-flush {
  margin: 0;
}

.form-note.note-spaced {
  margin-top: 0.55rem;
}

.form-note.note-export {
  margin: 0 0 0.55rem;
}

.admin-export-1c h4 {
  margin: 0.6rem 0 0.35rem;
}

.admin-filter-row.export-scope {
  margin-bottom: 0.45rem;
}

.check-line.check-inline {
  margin: 0;
  align-items: center;
}

.admin-card-title {
  margin: 0.15rem 0;
}

.btn-copy {
  margin-left: 0.35rem;
  padding: 0.2rem 0.45rem;
}

.price-old {
  opacity: 0.55;
  margin-right: 0.35rem;
  font-weight: 500;
}

.promo-strip {
  padding: 1.25rem 0;
  background:
    linear-gradient(90deg, rgba(196, 92, 38, 0.18), rgba(20, 22, 20, 0.2)),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.promo-strip-inner {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .promo-strip-inner {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.promo-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(232, 230, 225, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--frost);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.promo-card:hover {
  border-color: rgba(212, 120, 58, 0.55);
  transform: translateY(-2px);
}

.promo-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.news-grid {
  --news-gap: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--news-gap);
}

.news-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  flex: 0 1 100%;
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .news-card {
    flex: 0 1 calc((100% - 2 * var(--news-gap)) / 3);
    width: calc((100% - 2 * var(--news-gap)) / 3);
    max-width: calc((100% - 2 * var(--news-gap)) / 3);
  }

  /* Одна или две новости — шире и по центру, без «пустой» сетки */
  .news-grid:has(> .news-card:only-child) > .news-card {
    flex-basis: min(100%, 32rem);
    width: min(100%, 32rem);
    max-width: 32rem;
  }

  .news-grid:has(> .news-card:nth-child(2):last-child) > .news-card {
    flex-basis: calc((100% - var(--news-gap)) / 2);
    width: calc((100% - var(--news-gap)) / 2);
    max-width: min(28rem, calc((100% - var(--news-gap)) / 2));
  }
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.max-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 9, 8, 0.72);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.max-card-overlay[hidden] {
  display: none !important;
}

.max-card-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #f4f7fb;
  color: #121417;
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.max-card-dialog img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.max-card-dialog p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.max-card-close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 9, 8, 0.72);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notify-overlay[hidden] {
  display: none !important;
}

.notify-dialog {
  position: relative;
  width: min(440px, 100%);
  background: #171917;
  color: var(--frost);
  border: 1px solid rgba(232, 230, 225, 0.16);
  padding: 1.25rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.75rem;
}

.notify-dialog h3 {
  margin: 0 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

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

.notify-close {
  position: absolute;
  top: 0.45rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--frost-dim);
}

.product-soon .product-meta {
  align-items: stretch;
}

.product-soon-note {
  margin: 0.35rem 0 0;
}

.product-meta .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.admin-tabs {
  display: none;
}

.admin-tab {
  display: none;
}

.admin-form,
.admin-card {
  border: 1px solid rgba(232, 230, 225, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem 1.1rem;
}

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

.admin-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-form-toolbar h3 {
  margin: 0;
}

.admin-section {
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(232, 230, 225, 0.1);
}

.admin-section:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: 0;
}

.admin-section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.admin-section-more {
  cursor: pointer;
}

.admin-section-more summary {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.admin-sale-box {
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(232, 230, 225, 0.12);
}

.admin-sale-box.is-live {
  border-color: rgba(196, 92, 38, 0.45);
  background: rgba(196, 92, 38, 0.08);
}

.admin-sale-box.is-soon {
  background: rgba(255, 255, 255, 0.02);
}

.admin-card .badge.is-live {
  color: #d4e8c8;
}

.admin-card .badge.is-soon {
  color: var(--ember-soft);
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-dash-card {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(232, 230, 225, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  cursor: pointer;
}

.admin-dash-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.admin-dash-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.admin-dash-card:hover {
  border-color: rgba(196, 92, 38, 0.45);
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.admin-media-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(232, 230, 225, 0.12);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.admin-media-preview {
  aspect-ratio: 16 / 10;
  background: #111412;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-media-card.is-logo .admin-media-preview img {
  object-fit: contain;
  padding: 1rem;
  background: #1a1d1a;
}

.admin-media-body {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.9rem 0.95rem;
}

.admin-media-body h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-media-body .admin-actions {
  margin-top: 0.35rem;
}

@media (min-width: 800px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .admin-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-product-editor {
  display: grid;
  gap: 1.1rem;
}

.admin-product-preview {
  border: 1px solid rgba(232, 230, 225, 0.12);
  background: #161c22;
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}

.admin-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-preview-head h4 {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.admin-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.admin-preview-stage {
  min-width: 0;
}

.admin-preview-stage .product,
.admin-preview-pdp .product-hero {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
  gap: 0.85rem;
}

.admin-preview-stage .product-media,
.admin-preview-stage .product-stage {
  max-height: 220px;
  width: 100%;
}

.admin-preview-stage .product:hover .product-media img {
  transform: none;
}

.admin-preview-stage .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.admin-preview-stage .product-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-preview-stage .thumb {
  display: inline-block;
  width: 56px;
  height: 56px;
}

.admin-preview-stage a,
.admin-preview-stage button.thumb,
.admin-preview-stage .btn {
  pointer-events: none;
}

.admin-preview-pdp .product-panel {
  margin-top: 0.9rem;
}

.admin-preview-pdp .product-desc-text {
  max-height: 12rem;
  overflow: auto;
}

.admin-preview-pdp h1 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0.2rem 0 0.35rem;
}

@media (max-width: 1099px) {
  .admin-product-preview {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 6;
    max-height: min(46vh, 28rem);
    overflow: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }
}

@media (min-width: 1100px) {
  .admin-product-editor {
    grid-template-columns: minmax(22rem, 1.08fr) minmax(20rem, 0.92fr);
    align-items: start;
  }

  .admin-product-preview {
    position: sticky;
    top: 0.5rem;
    max-height: calc(100dvh - 7.5rem);
    overflow: auto;
  }
}

.admin-table {
  display: grid;
  gap: 0.85rem;
}

.admin-card {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 88px 1fr;
  align-items: start;
}

.admin-card.compact {
  grid-template-columns: 1fr;
}

.admin-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #e8e6e0;
  padding: 0.25rem;
  box-sizing: border-box;
}

.admin-orders-tools {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-orders-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-stat {
  border: 1px solid rgba(232, 230, 225, 0.16);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  color: var(--frost-dim);
}

.admin-stat strong {
  color: var(--frost);
  font-weight: 700;
}

.admin-stat.is-warn {
  border-color: rgba(180, 50, 40, 0.55);
  color: #f0cfc9;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-filter {
  appearance: none;
  border: 1px solid rgba(232, 230, 225, 0.2);
  background: transparent;
  color: var(--frost-dim);
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.admin-filter.active {
  color: var(--frost);
  border-color: rgba(212, 120, 58, 0.55);
  background: rgba(212, 120, 58, 0.12);
}

.admin-search {
  width: min(100%, 320px);
  border: 1px solid rgba(232, 230, 225, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--frost);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.admin-order header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: flex-start;
}

.admin-order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.admin-pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(232, 230, 225, 0.2);
  color: var(--frost-dim);
}

.admin-pill.pay-paid {
  border-color: rgba(70, 150, 90, 0.55);
  color: #c9e8d1;
}

.admin-pill.pay-pending {
  border-color: rgba(212, 160, 58, 0.55);
  color: #f0e0b8;
}

.admin-pill.status {
  border-color: rgba(212, 120, 58, 0.45);
  color: var(--ember-soft);
}

.admin-pill.warn {
  border-color: rgba(180, 50, 40, 0.7);
  color: #f0cfc9;
}

.order-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-order-items {
  display: grid;
  gap: 0.55rem;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.admin-order-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #e8e6e0;
  padding: 0.15rem;
  box-sizing: border-box;
}

.admin-order-item .sum {
  font-weight: 600;
  white-space: nowrap;
}

.admin-order-meta {
  display: grid;
  gap: 0.25rem;
  color: var(--frost-dim);
  font-size: 0.92rem;
}

.admin-order-meta strong {
  color: var(--frost);
  font-weight: 600;
}

.admin-order-details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(232, 230, 225, 0.12);
  display: grid;
  gap: 0.75rem;
}

.admin-order-details[hidden] {
  display: none !important;
}

.admin-history {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.admin-history li {
  list-style: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(232, 230, 225, 0.12);
  display: grid;
  gap: 0.15rem;
}

.admin-history span {
  color: var(--frost-dim);
  font-size: 0.84rem;
}

.admin-money-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--frost-dim);
  font-size: 0.92rem;
}

.admin-money-row.total {
  color: var(--frost);
  font-weight: 700;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(232, 230, 225, 0.12);
}

.admin-card .admin-actions {
  grid-column: 1 / -1;
}

.check-field label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 0.6rem;
  align-items: center;
  cursor: pointer;
  color: var(--frost);
  line-height: 1.35;
}

.admin-form-grid > .check-field {
  display: flex;
  align-items: center;
}

@media (min-width: 800px) {
  .admin-form-grid > .check-field {
    align-items: flex-end;
    padding-bottom: 0.95rem;
  }
}

.admin-form input[type="file"] {
  margin-top: 0.4rem;
  color: var(--steel);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .product-hero,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-service-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid,
  .account-layout,
  .field-row,
  .status-track,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .admin-order header {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .admin-order header .order-total {
    grid-column: 2;
  }
  .brand-logo,
  .brand-mark {
    height: 44px;
  }
  .summary-line {
    grid-template-columns: 56px 1fr;
  }
  .summary-line .sum {
    grid-column: 2;
  }

  .pvz-list {
    gap: 0.9rem;
    max-height: min(520px, 62vh);
    padding-right: 0.1rem;
  }

  .pvz-item {
    padding: 1.05rem 1rem;
  }

  .pvz-item-inner {
    gap: 0.4rem;
  }

  .pvz-item-addr {
    font-size: 0.95rem;
  }

  .product-media,
  .product-stage {
    padding: 0.7rem;
  }
}

/* Rich text editor (admin) + storefront */
.rich-field {
  display: grid;
  gap: 0.65rem;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.rich-toolbar > button,
.rich-emoji-toggle {
  border: 1px solid rgba(232, 230, 225, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--frost);
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.rich-toolbar > button:hover,
.rich-emoji-toggle:hover {
  border-color: rgba(212, 120, 58, 0.55);
}

.rich-emoji {
  position: relative;
  z-index: 2;
}

.rich-emoji-toggle[aria-expanded="true"] {
  border-color: rgba(212, 120, 58, 0.7);
  background: rgba(212, 120, 58, 0.12);
}

.rich-emoji-panel {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(20.5rem, 90vw);
  box-sizing: border-box;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.6rem;
  background: #151715;
  border: 1px solid rgba(232, 230, 225, 0.22);
  border-radius: 0.75rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.rich-emoji-panel.is-open {
  display: flex;
}

.rich-emoji-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  overflow: visible;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid rgba(232, 230, 225, 0.12);
}

.rich-emoji-tab {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--frost);
  border-radius: 0.4rem;
  padding: 0;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.7;
}

.rich-emoji-tab:hover,
.rich-emoji-tab.is-active {
  opacity: 1;
  background: rgba(212, 120, 58, 0.18);
}

.rich-emoji-cat-title {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-dim);
  padding: 0 0.1rem;
  line-height: 1.2;
}

.rich-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.1rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 14rem;
  padding: 0.1rem 0.15rem 0.15rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 230, 225, 0.28) transparent;
}

.rich-emoji-grid::-webkit-scrollbar {
  width: 6px;
}

.rich-emoji-grid::-webkit-scrollbar-track {
  background: transparent;
}

.rich-emoji-grid::-webkit-scrollbar-thumb {
  background: rgba(232, 230, 225, 0.28);
  border-radius: 999px;
}

.rich-emoji-item {
  border: 0;
  background: transparent;
  border-radius: 0.4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  font-size: 1.28rem;
  line-height: 1;
  min-width: 0;
}

.rich-emoji-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rich-editor {
  min-height: 7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(232, 230, 225, 0.18);
  border-radius: 0.55rem;
  background: rgba(8, 9, 8, 0.35);
  color: var(--frost);
  line-height: 1.5;
}

.rich-editor:focus {
  outline: 2px solid rgba(212, 120, 58, 0.45);
  outline-offset: 1px;
}

.rich-preview {
  display: grid;
  gap: 0.4rem;
}

.rich-preview-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--frost-dim);
}

.rich-preview-card {
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, rgba(236, 234, 228, 0.96), rgba(216, 213, 206, 0.96));
  color: #1c1e1c;
}

.rich-preview-body {
  font-size: 0.95rem;
  line-height: 1.45;
}

.rich-text p {
  margin: 0 0 0.65rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
}

.rich-text li {
  margin: 0.2rem 0;
}

.product-body .rich-text,
.news-card .rich-text,
.product-info .rich-text.lead {
  color: inherit;
}

.product-info .rich-text.lead {
  font-size: 1.05rem;
}

.tg-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

