/* ============================================
   ПОЛОТНО — переработка в стиле wovnhome
   Sans-serif, светлая палитра, чистый e-commerce
   ============================================ */

:root {
  --bg: #faf8f4;
  --bg-2: #f3eee5;
  --bg-3: #ece5d6;
  --paper: #ffffff;
  --line: #ece5d6;
  --line-strong: #d8d0bd;
  --ink: #1a1a1a;
  --ink-2: #2c2925;
  --muted: #75706a;
  --muted-2: #a39c91;
  --accent: #b08a5c;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1480px;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

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

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
h2 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; }
h3 { font-size: 16px; font-weight: 500; }
h4 { font-size: 13px; font-weight: 500; }
p { margin: 0 0 1em; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: 64px; gap: 32px;
}
.nav-left { display: flex; gap: 24px; }
.nav-right { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.nav-links a { color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--ink); }
.brand {
  font-size: 15px; letter-spacing: 0.22em; font-weight: 600;
  text-align: center; text-transform: uppercase; white-space: nowrap;
}
.brand small {
  display: block; font-size: 9px; letter-spacing: 0.28em;
  color: var(--muted); font-weight: 400; margin-top: 0; text-transform: uppercase;
}
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--ink); color: #fff;
  cursor: pointer; transition: background .2s, color .2s;
  border: 1px solid var(--ink);
}
.btn:hover { background: #2c2925; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--lg { padding: 16px 32px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }

.link-underline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

/* ============================================
   HERO + KONFIGURATOR (wovnhome style)
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: calc(100vh - 64px);
  gap: 0;
}
.hero__stage {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
}
.hero__stage svg {
  width: 100%; height: 100%; display: block;
}
.hero__breadcrumbs {
  position: absolute; top: 24px; left: 32px;
  font-size: 12px; color: var(--muted); z-index: 2;
}
.hero__breadcrumbs a { color: var(--muted); }
.hero__caption {
  position: absolute; left: 32px; bottom: 24px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; z-index: 2;
}
.hero__nav {
  position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; z-index: 2;
}
.hero__nav button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hero__nav button:hover { background: #fff; }

/* RIGHT panel — configurator */
.config {
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.config__head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
}
.config__title {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.config__h {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px;
}
.config__price {
  font-size: 14px; color: var(--muted-2);
}
.config__price b { color: var(--ink); font-weight: 500; }
.config__body { padding: 0 32px; }

/* step accordion */
.step {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.step__head {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.step__num {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.step__num b {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--ink); font-weight: 500; font-size: 11px;
}
.step.is-done .step__num b { background: var(--ink); color: #fff; }
.step__title {
  font-size: 15px; font-weight: 500; margin: 8px 0 4px;
}
.step__value {
  font-size: 13px; color: var(--muted);
}
.step__chev { color: var(--muted); transition: transform .2s; }
.step.is-open .step__chev { transform: rotate(180deg); }
.step__body {
  margin-top: 16px;
  display: none;
}
.step.is-open .step__body { display: block; }

/* choice cards (style, lining, rod) */
.choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.choice {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px 8px 12px;
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--line-strong); }
.choice.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.choice__img {
  aspect-ratio: 1; border-radius: var(--r-sm); margin-bottom: 8px;
  background: var(--bg-2); overflow: hidden; position: relative;
}
.choice__title { font-size: 12px; font-weight: 500; line-height: 1.3; }
.choice__sub { font-size: 11px; color: var(--muted); }
.choice__price { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* fabric swatches */
.swatches {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.swatch {
  position: relative; aspect-ratio: 1; border-radius: var(--r-sm);
  cursor: pointer; outline: 1px solid var(--line); outline-offset: -1px;
  transition: transform .12s;
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.swatch-name {
  font-size: 12px; color: var(--muted); margin-top: 6px;
  text-align: center;
}
.swatch-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
  font-size: 12px; color: var(--muted);
}
.swatch-filter button {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
}
.swatch-filter button.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }

/* lining row */
.lining { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* size inputs */
.measure {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.field label {
  display: block; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field .ctrl {
  display: flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  padding: 0 12px;
}
.field .ctrl:focus-within { border-color: var(--ink); }
.field input {
  flex: 1; border: 0; padding: 12px 0; background: transparent; font-size: 15px; outline: none;
}
.field .unit { color: var(--muted); font-size: 12px; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  margin-top: 8px;
}
.qty button { width: 36px; height: 36px; font-size: 16px; color: var(--ink); }
.qty button:hover { color: var(--accent); }
.qty span { padding: 0 14px; font-weight: 500; min-width: 28px; text-align: center; }

/* footer of config */
.config__foot {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: sticky; bottom: 0;
  margin-top: auto;
}
.config__total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.config__total .label { font-size: 12px; color: var(--muted); }
.config__total .sum { font-size: 22px; font-weight: 500; }
.config__note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ============================================
   Sections (light only, no dark)
   ============================================ */
.section { padding: 80px 0; }
.section-2 { background: var(--bg-2); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head__title { max-width: 720px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 14px; color: var(--muted); max-width: 480px; margin: 0; }

/* category grid (no overlays — just clean cards like wovnhome) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: block; }
.tile__img {
  aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-2); margin-bottom: 14px;
  transition: opacity .2s;
}
.tile:hover .tile__img { opacity: .92; }
.tile h3 { margin-bottom: 4px; font-size: 15px; }
.tile .meta { font-size: 12px; color: var(--muted); }
.tile .price { font-size: 13px; margin-top: 6px; }

/* features row */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  background: var(--bg); padding: 32px 24px; text-align: center;
}
.feature svg { margin: 0 auto 12px; display: block; color: var(--accent); }
.feature h4 { font-size: 13px; margin-bottom: 4px; }
.feature p { font-size: 12px; color: var(--muted); margin: 0; }

/* split editorial */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split__img { aspect-ratio: 5/6; border-radius: var(--r-sm); overflow: hidden; }
.split h2 { margin-bottom: 16px; }
.split p { font-size: 15px; line-height: 1.65; }

/* ============================================
   Page heads
   ============================================ */
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { font-size: 14px; color: var(--muted); max-width: 560px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* ============================================
   Catalog
   ============================================ */
.catalog {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
  padding: 32px 0 80px;
}
.facet { margin-bottom: 28px; }
.facet h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.facet ul { list-style: none; padding: 0; margin: 0; }
.facet li { margin-bottom: 8px; }
.facet label { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.facet input { accent-color: var(--ink); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px;
}
.product-card { display: block; }
.product-card__img {
  aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-2); margin-bottom: 12px; position: relative;
  transition: opacity .2s;
}
.product-card:hover .product-card__img { opacity: .92; }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95); color: var(--ink);
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
.product-card h3 { font-size: 14px; margin-bottom: 2px; font-weight: 500; }
.product-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.product-card .price { font-size: 13px; color: var(--ink); }
.product-card .price s { color: var(--muted-2); margin-right: 6px; }

/* ============================================
   About / Contacts
   ============================================ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value h3 { font-size: 16px; margin-bottom: 8px; }
.value p { font-size: 13px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 80px; }
.contact-info dl { display: grid; grid-template-columns: 130px 1fr; gap: 12px 24px; margin: 16px 0 0; font-size: 14px; }
.contact-info dt { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.contact-info dd { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.form label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); font-size: 14px; margin-bottom: 14px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }

/* ============================================
   Footer (light)
   ============================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 0 28px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-grid h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-grid a:hover { color: var(--ink); }
.newsletter { display: flex; gap: 6px; margin-top: 14px; }
.newsletter input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--bg);
  border-radius: 999px; font-size: 13px;
}
.newsletter button {
  background: var(--ink); color: #fff; padding: 0 18px; border-radius: 999px; font-size: 12px;
}
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; color: var(--muted); }

/* ============================================
   FABRIC SWATCH COLORS (data backgrounds)
   reused in catalog tiles and product previews
   ============================================ */
.fb-white { background: linear-gradient(180deg, #ffffff 0%, #f5efe2 100%); }
.fb-ivory { background: linear-gradient(180deg, #f6efe0 0%, #e7d9bf 100%); }
.fb-oat { background: linear-gradient(180deg, #ece1c5 0%, #c2ad84 100%); }
.fb-flax { background: linear-gradient(180deg, #e3d5b3 0%, #b89e6e 100%); }
.fb-stone { background: linear-gradient(180deg, #c8c1b1 0%, #8a8475 100%); }
.fb-mushroom { background: linear-gradient(180deg, #b3a796 0%, #7a6f60 100%); }
.fb-celadon { background: linear-gradient(180deg, #b9cdb6 0%, #87a48c 100%); }
.fb-sage { background: linear-gradient(180deg, #a3ad8b 0%, #6e7a58 100%); }
.fb-moss { background: linear-gradient(180deg, #6a7546 0%, #3a4222 100%); }
.fb-forest { background: linear-gradient(180deg, #475240 0%, #232a1f 100%); }
.fb-deepsea { background: linear-gradient(180deg, #2c3e4a 0%, #15222c 100%); }
.fb-navy { background: linear-gradient(180deg, #3e4b62 0%, #1d263a 100%); }
.fb-blush { background: linear-gradient(180deg, #e6c9bf 0%, #c69a8a 100%); }
.fb-coral { background: linear-gradient(180deg, #e2937b 0%, #b25c40 100%); }
.fb-jaipur { background: linear-gradient(180deg, #d49e3e 0%, #87571a 100%); }
.fb-gold { background: linear-gradient(180deg, #d8b56b 0%, #876318 100%); }
.fb-acorn { background: linear-gradient(180deg, #8e6e4c 0%, #4a3318 100%); }
.fb-bark { background: linear-gradient(180deg, #5b4a38 0%, #2e2418 100%); }
.fb-night { background: linear-gradient(180deg, #2a2724 0%, #0a0907 100%); }

/* ============================================
   FABRIC TEXTURE OVERLAYS (for swatches & tiles)
   Each pattern is paintable over any base color.
   ============================================ */
.tex-linen, .tex-cotton, .tex-velvet, .tex-jacquard, .tex-silk, .tex-blackout, .tex-boucle {
  position: relative; overflow: hidden;
}
.tex-linen::after, .tex-cotton::after, .tex-velvet::after,
.tex-jacquard::after, .tex-silk::after, .tex-blackout::after, .tex-boucle::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
}

/* Linen — irregular cross-weave */
.tex-linen::after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* Cotton — finer, softer plain weave */
.tex-cotton::after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 2px);
  mix-blend-mode: soft-light;
}

/* Velvet — vertical pile with subtle sheen */
.tex-velvet::after {
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.12) 0 1px,
      rgba(0,0,0,.08) 1px 2px,
      transparent 2px 4px),
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 30%, transparent 70%, rgba(255,255,255,.12));
  mix-blend-mode: overlay;
}

/* Jacquard — dotted diamond motif */
.tex-jacquard::after {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.22) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,.18) 0 1.2px, transparent 1.6px);
  background-size: 12px 12px, 12px 12px;
  mix-blend-mode: overlay;
}

/* Silk — smooth horizontal lustre */
.tex-silk::after {
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%, transparent 60%, rgba(0,0,0,.06));
  mix-blend-mode: overlay;
}

/* Blackout — dense, matte, almost no visible weave */
.tex-blackout::after {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

/* Bouclé — looped knot bumps */
.tex-boucle::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.22) 0 1.5px, transparent 2.5px);
  background-size: 16px 16px, 20px 20px, 14px 14px;
  mix-blend-mode: overlay;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .config { border-left: 0; border-top: 1px solid var(--line); }
  .hero__stage { aspect-ratio: 4/3; min-height: auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .values { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .product-grid, .grid-3, .grid-4, .values { grid-template-columns: 1fr; }
  .choices, .lining { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(5, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .config__head, .config__body, .config__foot { padding-left: 20px; padding-right: 20px; }
}
