﻿/* ===================== Fonts ===================== */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SF-Pro-Display-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SF-Pro-Display-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================== Variables ===================== */
:root {
  --bg: #000000;
  --bg-soft: #131313;
  --ink: #f5f4f1;
  --ink-soft: #b3b0ac;
  --accent: #9c7c5c;
  --accent-dark: #7e6248;
  --accent-light: #c2a07a;
  --border: rgba(255, 255, 255, 0.1);
  --dark: #000000;

  --font-sans: 'SF Pro Display', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'SF Pro Display', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1800px;
}

/* ===================== Reset ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-light);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 11px 22px;
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ===================== Header ===================== */
.header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100px;
  max-width: none;
  padding: 0 30px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  color: #fcfcfc;
  letter-spacing: normal;
  white-space: nowrap;
}

.logo__tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 17.6px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 29px;
  margin-left: 40px;
  margin-right: auto;
}

.nav__link {
  font-family: 'SF Pro Display', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav__link:hover::after {
  width: 100%;
}

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

.nav__item-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 6px;
}

.nav__item-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 8px 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: 'SF Pro Display', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__dropdown-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header__action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header__action-btn:hover {
  color: var(--accent);
}

.header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ===================== Mobile menu ===================== */
.header__burger {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu__logo {
  padding: 0;
}

.mobile-menu__top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.mobile-menu__phone:hover {
  color: var(--accent);
}

.mobile-menu__phone .icon {
  width: 20px;
  height: 20px;
}

.mobile-menu__close {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.mobile-menu__close:hover {
  color: var(--accent);
}

.mobile-menu__body {
  padding: 8px 20px 40px;
}

.mm-acc__head,
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mm-acc__head.is-active {
  color: var(--accent);
}

.mm-acc__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.mm-acc.is-open .mm-acc__chevron {
  transform: rotate(180deg);
}

.mm-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mm-acc.is-open .mm-acc__panel {
  max-height: 600px;
}

.mm-acc__panel-inner {
  display: flex;
  flex-direction: column;
  padding: 4px 0 10px 20px;
}

.mm-acc__link {
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mm-acc__link:hover {
  color: var(--ink);
}

.mm-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.mm-footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-footer-links a {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.mm-footer-links a:hover {
  color: var(--ink);
}


/* ===================== Search overlay ===================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 30px;
  max-height: 80vh;
  overflow-y: auto;
}

.search-overlay__field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.2rem;
  padding: 8px 0;
  outline: none;
}

.search-overlay__input::placeholder {
  color: var(--ink-soft);
}

.search-overlay__close {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.search-overlay__close:hover { color: var(--ink); }

.search-overlay__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.search-overlay__empty {
  color: var(--ink-soft);
  padding: 16px 0;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.search-result:hover { border-color: var(--accent); }

.search-result__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg);
}

.search-result__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result__name {
  font-size: 0.85rem;
  color: var(--ink);
}

.search-result__price {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ===================== Side panels (cart / favorites) ===================== */
.side-panel {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.side-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.side-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.side-panel__drawer {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.side-panel.is-open .side-panel__drawer {
  transform: translateX(0);
}

/* Правая панель (материалы) */
.side-panel--left {
  justify-content: flex-end;
}
.side-panel--left .side-panel__drawer {
  border-left: 1px solid var(--border);
  border-right: none;
  transform: translateX(100%);
  width: 420px;
}
.side-panel--left.is-open .side-panel__drawer {
  transform: translateX(0);
}

/* Содержимое панели материалов */
.mat-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.mat-panel__group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 20px 6px;
}
.mat-panel__item {
  padding: 10px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.mat-panel__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.mat-panel__item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mat-panel__item-name:hover { text-decoration: underline; }
.mat-panel__load-more {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-dark, #a0845c);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  white-space: nowrap;
  font-family: inherit;
}
.mat-panel__load-more:hover { text-decoration: underline; }
.mat-panel__swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.mat-panel__swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(128,128,128,0.2);
}
/* Hover preview inside materials panel */
.mat-swatch-preview {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}
.mat-swatch-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mat-swatch-preview img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.mat-swatch-preview span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.mat-panel__swatch--more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  background-image: none !important;
  cursor: default;
  border-radius: 4px;
}

/* Frame colors in materials panel */
.mat-panel__item--frame {
  border-bottom: 2px solid var(--border);
}
.mat-panel__item-name--plain {
  pointer-events: none;
  text-decoration: none;
  color: var(--ink);
}
.mat-panel__swatches--frame {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mat-panel__swatch--frame {
  aspect-ratio: 4/3;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mat-panel__swatch--frame:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Frame / leg colors on product page */
.product-frame-colors {
  margin-top: 16px;
}
.product-frame-colors__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1.5vw, 8px);
  margin: 8px 0 0;
}
.product-frame-colors__swatch {
  width: clamp(40px, 8vw, 56px);
  height: clamp(40px, 8vw, 56px);
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 1;
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s, transform 0.15s;
}
.product-frame-colors__swatch.is-active {
  border-color: var(--accent);
  transform: scale(1.08);
}

.side-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-panel__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.side-panel__close {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.side-panel__close:hover { color: var(--ink); }

.side-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel__empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 40px 0;
}

.side-panel__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel__total {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.panel-item__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg);
}

#favorites-panel .panel-item__img {
  width: 72px;
  height: 40px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#favorites-panel .panel-item__name {
  font-size: 1.19rem;
}

#favorites-panel .panel-item__price {
  font-size: 0.87rem;
}

.panel-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.panel-item__name {
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-item__price {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.panel-item__remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.panel-item__remove:hover { color: var(--accent); }

.product-card__wish.is-active {
  color: var(--accent);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Pro Display', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.header__phone .icon {
  color: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== Promo banners ===================== */
.promo {
  padding: 24px 0;
}

.promo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--border);
}

.promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.8) 100%);
  transition: background 0.3s ease;
}

.promo__card:hover .promo__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.88) 100%);
}

.promo__content {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.promo__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
}

.promo__title--accent {
  color: var(--accent-light);
}

.promo__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================== Sections ===================== */
.section {
  padding: 96px 0;
}

#catalog.section {
  padding-top: 48px;
}

.material-detail-page {
  padding-top: 0;
}

.mc-page__head + .section {
  padding-top: 48px;
}

/* ===================== Static info pages ===================== */
.static-content {
  max-width: 760px;
  margin: 0 auto;
}

.static-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 16px;
}

.static-content h2:first-child {
  margin-top: 0;
}

.static-content p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.static-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.static-content li {
  margin-bottom: 10px;
}

.static-content strong {
  color: var(--ink);
  font-weight: 600;
}

.static-content .btn {
  margin-top: 8px;
}

/* ===================== Blog ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  border: 1px solid var(--border);
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.blog-card__body {
  padding: 20px;
}

.blog-card__date {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin: 10px 0;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.blog-note {
  margin-top: 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__head--left {
  text-align: left;
  margin: 0 0 24px;
  max-width: none;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ===================== Catalog / product card ===================== */
.catalog__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: -24px 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.catalog__tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.catalog__tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.catalog__tab:hover {
  color: var(--ink);
}

.catalog__tab.is-active {
  color: var(--ink);
}

.catalog__tab.is-active::after {
  width: 100%;
}

.catalog__filter-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: -16px 0 32px;
}

.catalog__filter-note a {
  color: var(--accent-light);
  text-decoration: underline;
}

.catalog__filter-note:empty {
  display: none;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
  gap: 20px;
  justify-content: center;
}

.catalog__loading {
  text-align: center;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  transition: transform 0.25s ease;
}

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

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

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

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.product-card__body {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.product-card__avail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--ink-soft);
}

.product-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card__dot--green { background: #4caf50; }
.product-card__dot--red   { background: #e53935; }

.product-card__actions {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.product-card__wish,
.product-card__cart {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.product-card__wish:hover,
.product-card__cart:hover {
  color: var(--accent);
}

.product-card__title-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding-right: 26px;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-card__price {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
}

.product-card__old-price {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.82rem;
}

/* ===================== Product card hover arrows ===================== */
.product-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 3;
  flex-shrink: 0;
}

.product-card:hover .product-card__arrow {
  opacity: 1;
}

.product-card__arrow:hover {
  background: var(--accent);
}

.product-card__arrow--prev { left: 8px; }
.product-card__arrow--next { right: 8px; }

/* ===================== Product page finishes section ===================== */
.product-finishes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
}

.product-finishes__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.product-finishes__col--right {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.product-finishes__label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.product-finishes__label span {
  color: var(--ink);
  font-weight: 400;
}

.product-finishes__swatches {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 8px);
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 10px;
}

.product-finishes__swatch {
  position: relative;
  width: clamp(18px, 3.5vw, 26px);
  height: clamp(18px, 3.5vw, 26px);
  min-width: 0;
  border-radius: 5px;
  border: none;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex-shrink: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 1px rgba(128,128,128,0.25);
}

.product-finishes__swatch:hover {
  transform: scale(1.08);
}

.product-finishes__swatch.is-active {
  box-shadow: 0 0 0 2px var(--ink);
}
.product-finishes__swatch.is-active::after {
  content: none;
}

.product-finishes__swatch-more {
  width: clamp(18px, 3.5vw, 26px);
  height: clamp(18px, 3.5vw, 26px);
  min-width: 0;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
}

.product-finishes__more {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  white-space: nowrap;
}

.product-finishes__more::after {
  content: '›';
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.product-finishes__more:hover {
  color: var(--accent);
}

.product-finishes__material {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .product-finishes {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-finishes__col--right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
}

@media (max-width: 480px) {
  .product-finishes__swatch,
  .product-finishes__swatch-more {
    width: clamp(16px, 5.5vw, 22px);
    height: clamp(16px, 5.5vw, 22px);
  }
}

/* ===================== Advantages ===================== */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.advantages__item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 14px 0 10px;
}

.advantages__item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.advantages__num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
}

/* ===================== About ===================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about__content p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__list li {
  padding-left: 24px;
  position: relative;
  color: var(--ink);
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* ===================== Contacts / Form ===================== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.contacts__list a {
  font-weight: 700;
  font-size: 1.05rem;
}

.contacts__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.form__hint {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: -8px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form__field input,
.form__field textarea {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  background: var(--bg-soft);
  color: var(--ink);
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form__submit {
  margin-top: 4px;
}

.form__status {
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form__status.is-success {
  color: #3f7a4d;
}

.form__status.is-error {
  color: #b8473d;
}

/* ===================== Footer ===================== */
.footer {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__about {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 6px;
  color: #fff;
}

.footer__col a,
.footer__col span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ===================== Modal ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 36px;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__dialog h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.modal__product {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: -8px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
}

.modal__close:hover {
  color: var(--ink);
}

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  cursor: zoom-out;
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

#order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: #fff;
  padding: 14px 22px;
  font-size: 0.9rem;
  border-radius: 2px;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  max-width: calc(100vw - 48px);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ===================== Product detail ===================== */
.breadcrumbs {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 32px;
  text-align: left;
}

.breadcrumbs a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.breadcrumbs__sep {
  margin: 0 8px;
}

.breadcrumbs__current {
  color: var(--ink);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1.43fr 1fr;
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__main {
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  display: block;
  cursor: zoom-in;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.product-gallery__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.product-gallery__arrow--prev {
  left: 16px;
}

.product-gallery__arrow--next {
  right: 16px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.product-gallery__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery__thumb:hover {
  opacity: 0.85;
}

.product-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.product-detail__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.product-detail__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-detail__price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink);
}

.product-detail__old-price {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 1rem;
}

.product-detail__desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 8px;
}

.product-detail__brand {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.product-detail__brand span {
  color: var(--accent);
  font-weight: 600;
}

.product-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.product-attr {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-attr dt {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.product-attr dd {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.product-detail__tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.product-detail__info .btn--primary {
  width: auto;
  align-self: flex-start;
  padding: 11px 28px;
  margin-top: 8px;
}

.product-detail__links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  margin-top: 4px;
}

.product-detail__link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.product-detail__link-btn:hover {
  color: var(--ink);
}

.product-detail__link-btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.product-detail__link-sep {
  color: var(--border);
  font-size: 0.85rem;
}

/* ===================== Feature icons block ===================== */
.feature-block {
  margin-top: 48px;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-block__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.feature-block__icons {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 2;
  max-width: 60%;
}

.feature-block__icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.feature-block__icon:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.feature-block__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.feature-block__tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.feature-block__tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0, 0, 0, 0.85);
}

.feature-block__icon:hover .feature-block__tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .feature-block__icon {
    width: 48px;
    height: 48px;
  }

  .feature-block__icons {
    top: 12px;
    left: 12px;
    gap: 8px;
    max-width: 80%;
  }

  .feature-block__tooltip {
    font-size: 0.65rem;
    bottom: -28px;
    padding: 4px 8px;
  }

  .feature-block {
    margin-top: 32px;
  }
}

/* ===================== PDF modal ===================== */
.modal__dialog--pdf {
  width: min(900px, 95vw);
  height: 85vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal__dialog--pdf .modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.modal__dialog--pdf iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.product-detail__not-found {
  text-align: center;
  padding: 64px 0;
  color: var(--ink-soft);
}

.product-detail__not-found .btn {
  margin-top: 24px;
}

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
  .header__inner {
    height: 84px;
  }

  .header__contacts {
    margin-left: auto;
  }

  .nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .logo { padding: 18px 0; }

  .header__contacts { padding: 10px 0; }

  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contacts,
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__media {
    order: -1;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .header__inner {
    height: 72px;
  }

  .header__phone span {
    display: none;
  }

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

  .promo__card {
    min-height: 220px;
  }

  .section {
    padding: 64px 0;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal__dialog {
    padding: 28px 20px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


/* =====================================================
   КОЛЛЕКЦИИ КОЖИ — точная копия Mastrotto layout
   ===================================================== */

/* --- Страница-список (materials.html) --- */

.mc-page__head {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mc-page__head .breadcrumbs {
  margin-bottom: 6px;
}

.mc-page__title {
  font-size: clamp(1.4rem, 2.8vw, 2.24rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: -10px;
  margin-bottom: 4px;
}

.mc-page__subtitle {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.mcd-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1408;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mcd-count-badge strong {
  font-weight: 700;
}

.mc-filters-bar {
  background: var(--surface, var(--bg));
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.mc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 8px;
}
.mc-filters::-webkit-scrollbar { display: none; }

.mc-filter {
  flex: 1 1 auto;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: clamp(0.7rem, 1.2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: clamp(10px, 1.5vw, 16px) clamp(10px, 2vw, 28px);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
  text-align: center;
}

.mc-filter:hover { color: var(--ink); }

.mc-filter.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: var(--bg);
  margin-top: 0;
  padding-bottom: 60px;
}

/* Skeleton loaders */
.mc-skeleton {
  background: var(--bg);
  aspect-ratio: 3/4;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Collection card */
.mc-card {
  display: block;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: background 0.2s;
}

.mc-card:hover { background: var(--bg-soft, #111); }

.mc-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #111;
}

.mc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.mc-card:hover .mc-card__img { transform: scale(1.04); }

.mc-card__new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.mc-card__body {
  padding: 16px 16px 20px 6px;
}

.mc-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mc-card__name {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  min-width: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0;
}

.mc-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.mc-card__type {
  font-size: 0.72rem;
  color: var(--ink-soft, #888);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mc-card__colors {
  font-size: 0.72rem;
  color: var(--ink-soft, #888);
}

.mc-card__thick {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.mc-card__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mc-card__sector {
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 3px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mc-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-soft);
}

/* --- Страница-деталь (material.html) --- */

.mc-detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Hero banner */
/* Full-width colors block */
.mcd-colors-full {
  padding: 40px 20px 80px;
}

.mcd-colors__title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mcd-colors__count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.mcd-swatches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.mcd-swatch-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, z-index 0s;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

.mcd-swatch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mcd-swatch-item:hover {
  transform: scale(1.5);
  z-index: 10;
  overflow: visible;
}


.mcd-swatch-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  font-size: 0.78rem;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.mcd-swatch-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.mcd-swatch-item:hover .mcd-swatch-hover { opacity: 1; }

.mcd-swatch-req-btn {
  width: 34px;
  height: 34px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.15s, color 0.15s;
}

.mcd-swatch-req-btn .icon {
  width: 16px;
  height: 16px;
}

.mcd-swatch-req-btn:hover { background: #f0f0f0; }

.mcd-swatch-req-btn.is-active {
  color: #c00;
}

.mcd-swatch-req-btn.is-active .icon {
  fill: currentColor;
}

/* Responsive */
@media (max-width: 1100px) {
  .mc-grid { grid-template-columns: repeat(4, 1fr); }
  .mcd-swatches-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 860px) {
  .mcd-swatches-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .mc-grid { grid-template-columns: repeat(3, 1fr); }
  .mcd-swatches-grid { grid-template-columns: repeat(3, 1fr); }
  .mcd-hero { height: clamp(260px, 70vw, 400px); }
  .mcd-hero__title { font-size: 2rem; }
}

@media (max-width: 400px) {
  .mc-grid { grid-template-columns: repeat(2, 1fr); }
  .mcd-swatches-grid { grid-template-columns: repeat(3, 1fr); }
}

/* nav active state */
.nav__link--active { color: var(--ink) !important; }

/* ===================== Mobile full-screen menu ===================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.mobile-menu__logo-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.mobile-menu__logo-tag {
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mobile-menu__head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mobile-menu__phone-btn,
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s;
}
.mobile-menu__phone-btn:hover,
.mobile-menu__close:hover { color: var(--accent); }
.mobile-menu__phone-btn .icon,
.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.mobile-menu__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  padding-bottom: 40px;
}
.mobile-menu__panel--main {
  transform: translateX(0);
}
.mobile-menu__panel--main.is-hidden {
  transform: translateX(-40%);
  pointer-events: none;
}
.mobile-menu__panel--sub {
  transform: translateX(100%);
  pointer-events: none;
}
.mobile-menu__panel--sub.is-active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu__sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 6px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
}
.mobile-menu__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu__back .icon { width: 20px; height: 20px; }
.mobile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.mobile-menu__item:first-child {
  border-top: 1px solid var(--border);
}
.mobile-menu__item:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.02);
}
.mobile-menu__item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.5;
}
.mobile-menu__item:hover .icon { opacity: 1; }

@media (min-width: 1181px) {
  .mobile-menu { display: none !important; }
}

/* Category items in mobile furniture sub-panel */
.mobile-menu__cat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.mobile-menu__cat-item:first-child { border-top: 1px solid var(--border); }
.mobile-menu__cat-item:hover { background: rgba(0,0,0,0.03); }
.mobile-menu__cat-img {
  width: 76px;
  height: 56px;
  border-radius: 4px;
  background: var(--border) center / cover no-repeat;
  flex-shrink: 0;
}
.mobile-menu__cat-name {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-menu__cat-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.45;
}

/* ===================== Collections page ===================== */
.coll-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.coll-hero__breadcrumb { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 20px; }
.coll-hero__breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.coll-hero__breadcrumb a:hover { color: var(--ink); }
.coll-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.coll-hero__sub { font-size: 1rem; color: var(--ink-soft); max-width: 480px; }
.coll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 32px 0 48px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 640px) { .coll-grid { grid-template-columns: 1fr; gap: 10px; } }
.coll-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  text-decoration: none;
  overflow: hidden;
  background: #111;
  border-radius: 6px;
}
.coll-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.12) 55%, transparent 100%);
  transition: opacity 0.3s;
}
.coll-card:hover::after { opacity: 0.9; }
.coll-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.25,0,0.25,1);
}
.coll-card:hover .coll-card__bg { transform: scale(1.04); }
.coll-card__inner {
  position: relative;
  z-index: 1;
  padding: 22px 26px;
  width: 100%;
  color: #fff;
}
.coll-card__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 6px;
}
.coll-card__desc { font-size: 0.82rem; opacity: 0.65; letter-spacing: 0.04em; margin-bottom: 22px; }
.coll-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: gap 0.2s;
}
.coll-card:hover .coll-card__cta { gap: 12px; }
.coll-card--velour .coll-card__bg   { background-color: #1f1040; background-image: radial-gradient(ellipse at 30% 70%, #4b2882 0%, #1f1040 70%); }
.coll-card--leather .coll-card__bg  { background-color: #2a1206; background-image: radial-gradient(ellipse at 70% 30%, #7a3520 0%, #2a1206 70%); }
.coll-card--fauxfur .coll-card__bg  { background-color: #2c2820; background-image: radial-gradient(ellipse at 40% 60%, #6e6050 0%, #2c2820 70%); }
.coll-card--suede .coll-card__bg    { background-color: #261a10; background-image: radial-gradient(ellipse at 60% 40%, #6b4a30 0%, #261a10 70%); }
.coll-card--jacquard .coll-card__bg { background-color: #2e0a14; background-image: radial-gradient(ellipse at 35% 65%, #7a2038 0%, #2e0a14 70%); }
.coll-card--rogozhka .coll-card__bg { background-color: #262410; background-image: radial-gradient(ellipse at 65% 35%, #5e5a30 0%, #262410 70%); }
.coll-card--floc .coll-card__bg     { background-color: #0a1520; background-image: radial-gradient(ellipse at 30% 70%, #1e4870 0%, #0a1520 70%); }
.coll-card--chenille .coll-card__bg { background-color: #30100a; background-image: radial-gradient(ellipse at 70% 30%, #8c3a18 0%, #30100a 70%); }