:root {
  --ink: #0f1419;
  --ink-soft: #1c2b2a;
  --stone: #f6f4ef;
  --stone-2: #ebe8e1;
  --card: #eeebe4;
  --card-img: #e8e4dc;
  --surface: #ffffff;
  --primary: #2f4f4a;
  --primary-dark: #1c2b2a;
  --primary-light: #4a726b;
  --accent: #c4a574;
  --accent-dark: #a68b5b;
  --success: #2f4f4a;
  --success-dark: #1c2b2a;
  --text: #1c2128;
  --text-muted: #6b7280;
  --text-light: #8a8175;
  --border: rgba(15, 20, 25, 0.08);
  --border-strong: rgba(15, 20, 25, 0.14);
  --bg: var(--stone);
  --bg-soft: var(--stone-2);
  --bg-gray: var(--surface);
  --dark: var(--ink-soft);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --max-w: 1280px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(15, 20, 25, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 2.5rem, var(--max-w)); margin-inline: auto; }

/* Header — единая премиальная шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-top { display: none; }
.header-bar {
  background: transparent;
  color: var(--text);
}
.header-bar__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  position: relative;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo::after { display: none; }
.catalog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink-soft);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--stone);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.catalog-toggle svg { width: 18px; height: 18px; }
.catalog-toggle:hover,
.catalog-toggle.is-open {
  background: var(--primary);
  transform: translateY(-1px);
}
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 79, 74, 0.12);
}
.header-search input {
  width: 100%;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: var(--text);
}
.header-search input::placeholder { color: var(--text-light); }
.header-search button {
  background: var(--stone-2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.header-search button:hover { background: var(--primary); color: #fff; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.header-nav a {
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink-soft); }
.header-contacts { text-align: right; }
.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.header-phone svg { color: var(--accent); }
.header-phone a:hover { color: var(--primary); }
.header-callback {
  font-size: 13px;
  color: var(--primary);
  border-bottom: none;
  cursor: pointer;
  margin-top: 2px;
  display: inline-block;
  opacity: 0.85;
}
.header-callback:hover { opacity: 1; text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.header-icon-btn:hover {
  border-color: var(--primary-light);
  background: var(--surface);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Catalog dropdown */
.catalog-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 99;
  max-height: 70vh;
  overflow-y: auto;
}
.catalog-menu.is-open { display: block; }
.catalog-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
}
.catalog-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.catalog-menu__link:hover { background: var(--stone-2); color: var(--primary-dark); }
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-img);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  margin: 28px 0 56px;
  padding: 0 max(1.25rem, calc((100% - var(--max-w)) / 2 + 1.25rem));
}
.hero-carousel__viewport {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-carousel__track {
  display: flex;
  width: 100%;
  transform: translateX(calc(var(--carousel-index, 0) * -100%));
  transition: transform 0.55s var(--ease);
}
.hero-carousel__track.is-instant { transition: none; }
.hero-carousel__slide { flex: 0 0 100%; display: block; }
.hero-carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1140 / 380;
  object-fit: cover;
}
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.hero-carousel__arrow:hover {
  background: var(--ink-soft);
  color: var(--stone);
  border-color: var(--ink-soft);
}
.hero-carousel__arrow--prev { left: max(2rem, calc((100% - var(--max-w)) / 2 + 0.5rem)); }
.hero-carousel__arrow--next { right: max(2rem, calc((100% - var(--max-w)) / 2 + 0.5rem)); }
.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
  background: transparent;
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.hero-carousel__dot.is-active {
  background: var(--primary);
  width: 28px;
}
.hero-carousel__dot:hover { background: var(--primary-light); }

/* Sections */
.section { margin-bottom: 72px; }
.section-head { margin-bottom: 28px; }
.section-head__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-soft);
  text-transform: none;
  margin: 0;
}

/* Category grid */
.category-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
  cursor: pointer;
}
.category-card:hover {
  background: var(--stone-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.category-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.45) 0%, transparent 70%),
    linear-gradient(165deg, var(--card) 0%, var(--card-img) 55%, #e0dbd2 100%);
  filter: drop-shadow(0 6px 14px rgba(28, 43, 42, 0.1));
}
.category-card__icon { font-size: 36px; margin-bottom: 12px; line-height: 1; }
.category-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.category-card__count {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  min-width: 0;
}
.product-card:hover {
  background: var(--stone-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
  z-index: 1;
  position: relative;
}
.product-card__img {
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.45) 0%, transparent 70%),
    linear-gradient(165deg, var(--card) 0%, var(--card-img) 55%, #e0dbd2 100%);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.45s var(--ease);
  filter: drop-shadow(0 8px 20px rgba(28, 43, 42, 0.12));
}
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__img svg, .img-placeholder svg { width: 50%; opacity: 0.35; }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.product-card__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.product-card:hover .product-card__name { color: var(--primary); }
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.product-card__price small { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}
.btn:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--stone);
}
.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-soft);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.product-card__buy { flex-shrink: 0; }

/* Advantages */
.advantages {
  background: var(--ink-soft);
  color: var(--stone);
  padding: 64px 0;
  margin-bottom: 72px;
  border-radius: 0;
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.advantage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border-left: none;
  padding-left: 28px;
}
.advantage__icon { font-size: 32px; flex-shrink: 0; }
.advantage__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(246, 244, 239, 0.9);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 28px 0 20px;
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* Pages */
.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink-soft);
}
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 24px;
  font-size: 14px;
  border: none;
}
.sort-bar > span { color: var(--text-muted); margin-right: 4px; }
.sort-bar a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}
.sort-bar a:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.sort-bar a.active {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--stone);
}

/* Flypage */
.flypage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
.flypage__gallery { display: flex; flex-direction: column; gap: 14px; }
.flypage-img {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 85% 75% at 50% 38%, rgba(255, 255, 255, 0.95) 0%, transparent 72%),
    linear-gradient(165deg, #faf8f3 0%, var(--stone) 50%, #ebe6dc 100%);
  min-height: 460px;
  box-shadow: var(--shadow);
}
.flypage-img__photo {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(28, 43, 42, 0.15));
}
.flypage-thumbs {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.flypage-thumb {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  background: var(--surface);
  cursor: pointer;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}
.flypage-thumb.is-active,
.flypage-thumb:hover { border-color: var(--primary); }
.flypage-thumb img { width: 100%; height: 100%; object-fit: contain; }
.flypage-info h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.flypage-sku {
  color: var(--text-light);
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.flypage-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.flypage-price span { font-size: 18px; font-weight: 500; color: var(--text-muted); }
.flypage-tier-hint {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.flypage-minimum { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.flypage-buy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.flypage-addtocart {
  flex: 1;
  min-width: 200px;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
}
.flypage-addtocart:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.flypage-opt-price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.flypage-opt-price__zag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.flypage-opt-price ul { list-style: none; }
.flypage-opt-price li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.flypage-opt-price li:last-child { border-bottom: none; }
.flypage-opt-price li.is-active {
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(47, 79, 74, 0.06);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.flypage-opt-price li.is-active strong { color: var(--primary); }
.flypage-vopros {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px 0;
}
.flypage-vopros span {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.flypage-vopros:hover span { border-bottom-color: var(--primary); }
.flypage-description {
  margin: 32px 0 56px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}
.flypage-desc-zag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Qty */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}
.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-light);
}
.qty-control button:hover { color: var(--primary); background: var(--stone); }
.qty-control input {
  width: 52px;
  text-align: center;
  border: none;
  outline: none;
  background: transparent;
  font-weight: 600;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-table th, .cart-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cart-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--stone);
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-total {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
  margin-bottom: 24px;
  color: var(--ink-soft);
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-item-cell { display: flex; align-items: center; gap: 14px; }
.cart-item-cell img {
  width: 60px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--stone);
  border-radius: 8px;
  padding: 4px;
}

/* Footer */
.site-footer {
  background: var(--ink-soft);
  color: rgba(246, 244, 239, 0.75);
  border-top: none;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.footer__desc {
  font-size: 14px;
  color: rgba(246, 244, 239, 0.55);
  line-height: 1.7;
  max-width: 320px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(246, 244, 239, 0.6);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(246, 244, 239, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-admin-link {
  color: rgba(246, 244, 239, 0.35);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-admin-link:hover {
  color: rgba(246, 244, 239, 0.7);
}

/* SEO */
.seo-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.seo-text h2 {
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.seo-text p { margin-bottom: 12px; }
.seo-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--surface);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--stone);
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  display: grid;
  place-items: center;
}
.modal h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--stone);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 79, 74, 0.1);
  background: var(--surface);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink-soft);
  color: var(--stone);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* Auth & account */
.auth-page { padding: 40px 0 64px; }
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.auth-card h1 { font-size: 28px; margin-bottom: 8px; color: var(--ink-soft); }
.auth-card h2 { font-size: 18px; margin-bottom: 16px; color: var(--ink-soft); }
.auth-card__sub, .auth-card__foot { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.auth-form .form-group { margin-bottom: 14px; }
.form-error { color: #b91c1c; font-size: 14px; margin: 10px 0; }
.account-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account-section-title { font-size: 20px; margin: 28px 0 16px; color: var(--ink-soft); }
.orders-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.order-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.order-card__date { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.order-card__total { font-weight: 600; margin-bottom: 8px; }
.order-card__items { list-style: none; font-size: 14px; color: var(--text-muted); }
.order-card__items li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.order-card__comment { font-size: 14px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.reorder-card { max-width: none; margin: 0 0 48px; }
.reorder-table input.reorder-qty {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.reorder-row--missing td { opacity: 0.65; }
.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--stone-2);
  white-space: nowrap;
}
.order-status--new { background: #dbeafe; color: #1d4ed8; }
.order-status--confirmed { background: #d1fae5; color: #047857; }
.order-status--processing { background: #fef3c7; color: #b45309; }
.order-status--shipped { background: #e0e7ff; color: #4338ca; }
.order-status--done { background: #dcfce7; color: #15803d; }
.order-status--cancelled { background: #fee2e2; color: #b91c1c; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}
.checkout-form, .checkout-summary { max-width: none; margin: 0; }
.checkout-table { font-size: 14px; }
.order-success__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.header-icon-btn.is-active { color: var(--primary); background: rgba(47, 79, 74, 0.08); }

/* Responsive */
@media (max-width: 1100px) {
  .header-bar__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo actions actions"
      "toggle search search"
      "nav nav nav";
    gap: 12px 16px;
    padding: 16px 0;
  }
  .logo { grid-area: logo; }
  .catalog-toggle { grid-area: toggle; }
  .header-search { grid-area: search; }
  .header-nav {
    grid-area: nav;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
  }
  .header-contacts { display: none; }
  .header-actions { grid-area: actions; justify-self: end; }
  .catalog-menu__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .hero-carousel { margin: 16px 0 40px; padding: 0 1rem; }
  .hero-carousel__viewport { border-radius: 16px; }
  .hero-carousel__arrow { width: 40px; height: 40px; }
  .hero-carousel__arrow--prev { left: 1.25rem; }
  .hero-carousel__arrow--next { right: 1.25rem; }
  .advantages__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .flypage { grid-template-columns: 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}