
@font-face {
  font-family: "Hoefler Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hoefler-regular.woff") format("woff");
}
@font-face {
  font-family: "Hoefler Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hoefler-italic.woff") format("woff");
}
@font-face {
  font-family: "Charter Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/charter-regular.woff") format("woff");
}
@font-face {
  font-family: "Charter Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/charter-bold.woff") format("woff");
}

  :root {
    --bg: #e7e2d7;
    --bg-elevated: #f6f3ec;
    --bg-deep: #1a1c1e;
    --text: #1c1712;
    --text-soft: #5a4f43;
    --text-on-dark: #f1ece1;
    --text-on-dark-soft: #c3c6c8;
    --accent: #7a1f22;
    --accent-strong: #9c2b2a;
    --metal: #7d6128;
    --metal-bright: #b5924a;
    --line: rgba(28, 23, 18, 0.15);
    --line-on-dark: rgba(241, 236, 225, 0.16);
    --focus-ring: #9c2b2a;

    --font-display: "Hoefler Display", Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    --font-body: "Charter Text", Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", "Roboto Mono", monospace;
  }

  /* Дизайн сознательно однотемный: фирменный светлый камень должен выглядеть
     одинаково приветливо для всех посетителей сайта, независимо от того,
     в какой теме у них открыт браузер или приложение Claude. */
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    --bg: #e7e2d7;
    --bg-elevated: #f6f3ec;
    --bg-deep: #1a1c1e;
    --text: #1c1712;
    --text-soft: #5a4f43;
    --accent: #7a1f22;
    --accent-strong: #9c2b2a;
    --metal: #7d6128;
    --metal-bright: #b5924a;
    --line: rgba(28, 23, 18, 0.15);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  button, a.btn { font-family: var(--font-body); cursor: pointer; }

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

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--metal);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--metal);
    display: inline-block;
  }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }

  /* ---------- Header ---------- */
  header.site {
    background: var(--bg-deep);
    color: var(--text-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
  }
  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-on-dark);
  }
  .brand svg { width: 30px; height: 30px; flex-shrink: 0; }
  .brand-word {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    font-variant-caps: small-caps;
  }
  nav.primary {
    display: flex;
    gap: 2.1rem;
  }
  nav.primary a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-on-dark-soft);
    position: relative;
    padding-bottom: 3px;
  }
  nav.primary a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--metal-bright);
    transition: right 0.25s ease;
  }
  nav.primary a:hover { color: var(--text-on-dark); }
  nav.primary a:hover::after { right: 0; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.75em 1.4em;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 1px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .btn-solid {
    background: var(--accent);
    color: #f6ece9;
    border-color: var(--accent);
  }
  .btn-solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
  .btn-ghost {
    border-color: var(--metal);
    color: var(--text-on-dark);
  }
  .btn-ghost:hover { border-color: var(--metal-bright); background: rgba(201, 169, 98, 0.08); }

  @media (max-width: 760px) {
    nav.primary { display: none; }
  }

  /* ---------- Hero ---------- */
  .hero {
    background: var(--bg-elevated);
    color: var(--text);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .hero-glow {
    position: absolute;
    top: -30%;
    right: -12%;
    width: 55%;
    height: 130%;
    background: radial-gradient(circle, rgba(122, 31, 34, 0.09) 0%, rgba(122, 31, 34, 0) 68%);
    pointer-events: none;
  }
  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }
  @media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
  }
  .hero-copy h1 {
    margin-top: 0.9rem;
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  .hero-copy h1 em {
    font-style: italic;
    color: var(--accent);
  }
  .hero-copy p.lead {
    margin-top: 1.4rem;
    max-width: 46ch;
    color: var(--text-soft);
    font-size: 1.03rem;
  }
  .hero-actions {
    margin-top: 2.1rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
  }
  .link-underline {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--metal);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .link-underline:hover { color: var(--text); border-color: var(--metal-bright); }

  .stat-row {
    margin-top: 3.2rem;
    display: flex;
    gap: clamp(1.6rem, 4vw, 3rem);
    flex-wrap: wrap;
  }
  .stat-row div { border-left: 1px solid var(--line); padding-left: 1rem; }
  .stat-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    color: var(--text);
  }
  .stat-label {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 0.2rem;
  }

  .door-drawing { position: relative; }
  .door-drawing svg { width: 100%; height: auto; }

  /* ---------- Section shell ---------- */
  section.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
  .band-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
  }
  .band-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 0.7rem; }
  .band-head p { max-width: 40ch; color: var(--text-soft); font-size: 0.94rem; }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }

  /* ---------- Door type lineup ---------- */
  .door-lineup {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    overflow-x: auto;
  }
  .door-item {
    background: var(--bg-elevated);
    padding: 1.8rem 1.3rem 1.4rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    transition: background 0.25s ease;
  }
  .door-item:hover { background: color-mix(in srgb, var(--bg-elevated) 85%, var(--accent) 15%); }
  .door-item svg { width: 38px; height: 46px; stroke: var(--text-soft); transition: stroke 0.25s ease; }
  .door-item:hover svg { stroke: var(--accent); }
  .door-item .name { font-size: 0.95rem; }
  .door-item .count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-soft); }

  /* ---------- Materials ---------- */
  .material-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
  }
  @media (max-width: 760px) { .material-grid { grid-template-columns: repeat(2, 1fr); } }
  .swatch {
    aspect-ratio: 3 / 4;
    position: relative;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .swatch:hover { transform: translateY(-4px); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35); }
  .swatch .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(20,17,16,0.72);
    color: #f1ece1;
    font-size: 0.78rem;
    padding: 0.55rem 0.7rem;
    letter-spacing: 0.02em;
  }
  .swatch-oak { background: repeating-linear-gradient(100deg, #7c5330, #7c5330 3px, #6b4526 3px, #6b4526 5px, #86603a 5px, #86603a 9px); }
  .swatch-ash { background: repeating-linear-gradient(100deg, #cbb994, #cbb994 4px, #b9a67e 4px, #b9a67e 6px, #d6c6a2 6px, #d6c6a2 11px); }
  .swatch-wenge { background: repeating-linear-gradient(100deg, #2a1e17, #2a1e17 3px, #1c1310 3px, #1c1310 5px, #35271e 5px, #35271e 8px); }
  .swatch-enamel { background: linear-gradient(155deg, #f4efe6, #e5ddcd); }
  .swatch-eco { background: repeating-linear-gradient(100deg, #9a8467, #9a8467 4px, #8a7358 4px, #8a7358 6px, #a5906f 6px, #a5906f 10px); }

  /* ---------- Guide ---------- */
  .guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
  }
  @media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }
  .guide-card { text-decoration: none; color: var(--text); display: block; }
  .guide-card .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--metal);
  }
  .guide-card h3 {
    margin-top: 0.7rem;
    font-size: 1.18rem;
    line-height: 1.35;
    position: relative;
    padding-bottom: 0.8rem;
  }
  .guide-card h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 1px; width: 0;
    background: var(--accent);
    transition: width 0.3s ease;
  }
  .guide-card:hover h3::after { width: 44px; }
  .guide-card p { margin-top: 0.6rem; color: var(--text-soft); font-size: 0.9rem; }

  /* ---------- CTA band ---------- */
  .cta-band {
    background: var(--bg-elevated);
    color: var(--text);
    text-align: center;
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 26ch; margin: 0.9rem auto 0; }
  .cta-band .btn { margin-top: 2rem; }

  /* ---------- Footer ---------- */
  footer.site {
    background: var(--bg-deep);
    color: var(--text-on-dark-soft);
    padding: 2.4rem 0;
    font-size: 0.82rem;
  }
  .foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .foot-links { display: flex; gap: 1.4rem; }
  .foot-links a { text-decoration: none; color: var(--text-on-dark-soft); }
  .foot-links a:hover { color: var(--text-on-dark); }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
  }

/* ---------- Breadcrumb ---------- */
.crumbs { background: var(--bg-elevated); border-bottom: 1px solid var(--line); padding: 0.85rem 0; font-size: 0.82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.crumbs a { text-decoration: none; color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs li:last-child { color: var(--text); }
.crumbs .sep { color: var(--line); }

/* ---------- Category hero ---------- */
.cat-hero { padding: clamp(2.2rem, 5vw, 3.2rem) 0 clamp(2rem, 4vw, 2.6rem); background: var(--bg); }
.cat-hero h1 { margin-top: 0.7rem; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; max-width: 26ch; }
.cat-hero p.intro { margin-top: 1.1rem; max-width: 62ch; color: var(--text-soft); font-size: 1.02rem; }
.cat-meta { margin-top: 1.4rem; display: flex; gap: 1.8rem; flex-wrap: wrap; }
.cat-meta div { border-left: 1px solid var(--line); padding-left: 0.9rem; }
.cat-meta .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.3rem; }
.cat-meta .l { font-size: 0.76rem; color: var(--text-soft); margin-top: 0.15rem; }

/* ---------- Product grid ---------- */
.product-grid { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.p-card { background: var(--bg-elevated); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: background 0.2s ease; }
.p-card:hover { background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent) 12%); }
.p-card .p-thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--bg); }
.p-card .p-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-elevated); }
.p-card .p-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.p-card .p-name { font-size: 0.9rem; line-height: 1.3; min-height: 2.4em; }
.p-card .p-price { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-soft); text-transform: uppercase; margin-top: auto; }

/* ---------- Product page ---------- */
.product-shell { padding-top: clamp(2.2rem, 5vw, 3.4rem); padding-bottom: clamp(2.2rem, 5vw, 3.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .product-shell { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); background: var(--bg-elevated); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-elevated); }
.gallery-thumbs { margin-top: 0.7rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); background: var(--bg-elevated); cursor: pointer; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-elevated); }
.p-title { margin-top: 0.8rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; max-width: 22ch; }
.p-mfr { margin-top: 0.5rem; color: var(--text-soft); font-size: 0.92rem; }
.price-block { margin-top: 1.6rem; }
.price-request { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.03em; color: var(--accent); text-transform: uppercase; }
.price-note { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-soft); max-width: 42ch; }
.p-actions { margin-top: 1.6rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spec-table { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.spec-table dl { display: grid; grid-template-columns: 1fr 1fr; }
.spec-table > div { display: contents; }
.spec-table dt, .spec-table dd { padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec-table dt { color: var(--text-soft); font-size: 0.86rem; }
.spec-table dd { text-align: right; font-size: 0.9rem; }
.related-strip h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* ---------- Filter nav (mfr-chip / cat-filters) ---------- */
.mfr-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mfr-chip {
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.5em 1em;
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mfr-chip:hover { border-color: var(--accent); color: var(--text); }
.cat-filters { margin-top: 0.4rem; }
