/* Fabrino v1 - тёплая мастерская, редизайн по референсу: фулскрин-hero, кружки категорий */

:root {
  --bg: #f6f1e8;
  --bg-tint: #efe6d7;
  --ink: #2b241c;
  --ink-soft: #6d6152;
  --clay: #b4552d;
  --clay-deep: #93411f;
  --sand: #d9c9ae;
  --bubble: #e9decb;
  --dark: #241e17;
  --cream: #f6f1e8;
  --line: rgba(43, 36, 28, 0.16);
  --radius: 18px;
  --font-display: 'Oranienbaum', 'Georgia', serif;
  --font-body: 'Commissioner', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: 0.01em; }
h1 em { font-style: italic; color: #ffd9a8; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(rgba(20, 16, 11, 0.45), transparent);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header.is-solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.14em; }
.wordmark-dot { color: var(--clay); }
.site-header .wordmark-dot { color: #ffb877; }
.site-header.is-solid .wordmark-dot { color: var(--clay); }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.95rem; }
.site-nav a { position: relative; padding: 0.2rem 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: currentColor; transition: width 0.25s;
}
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-solid:hover { background: var(--clay-deep); border-color: var(--clay-deep); box-shadow: 0 10px 24px rgba(180,85,45,0.32); }
.btn-glass { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,0.28); }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-wide { width: 100%; }
.header-cta { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

/* ---------- hero: фулскрин фото ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 6rem clamp(1rem, 5vw, 4rem) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transform: scale(1.12);
  animation: heroZoom 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(24, 18, 12, 0.35), rgba(24, 18, 12, 0.18) 45%, rgba(24, 18, 12, 0.55)),
    linear-gradient(105deg, rgba(24, 18, 12, 0.55) 0%, transparent 55%);
}
.hero-content { max-width: 1240px; margin: 0 auto; width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; color: #ffd9a8; font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-sub { max-width: 32rem; margin: 1.4rem 0 2rem; font-size: 1.12rem; color: rgba(255,255,255,0.88); }
.hero-sub strong { color: #ffd9a8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  list-style: none;
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: clamp(2rem, 6vh, 4rem); padding: 1.5rem 0 2rem; gap: 1.5rem;
}
.stat-num { font-family: var(--font-display); font-size: 2rem; display: block; color: #ffd9a8; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

/* ---------- категории: карусель кружков ---------- */
.cats-section {
  position: relative;
  background: var(--bg);
  border-radius: 34px 34px 0 0;
  margin-top: -34px;
  z-index: 2;
  padding-top: clamp(2.6rem, 6vh, 4rem);
}
.cats-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: 2.2rem; max-width: none;
}
.cats-head h2 { margin-bottom: 0; }
.cats-arrows { display: flex; gap: 0.6rem; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent;
  font-size: 1.1rem; color: var(--ink); cursor: pointer;
  transition: all 0.2s;
}
.arrow:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.cats-track {
  display: flex; gap: clamp(1rem, 2.5vw, 2.2rem);
  overflow-x: auto; scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.cats-track::-webkit-scrollbar { display: none; }

.cat-bubble {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  text-align: center;
}
.bubble {
  width: clamp(150px, 17vw, 210px); height: clamp(150px, 17vw, 210px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2e9d8, var(--bubble));
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(43,36,28,0.08), 0 12px 28px rgba(43,36,28,0.10);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
  position: relative;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.bubble img.blend { mix-blend-mode: multiply; }
.bubble img.zoom { transform: scale(1.7); transform-origin: center 78%; }
.bubble img.shift { object-position: 22% 62%; transform: scale(1.18); }
.cat-bubble:hover .bubble {
  transform: translateY(-8px);
  box-shadow: inset 0 0 0 2px var(--clay), 0 22px 40px rgba(43,36,28,0.20);
}
.cat-bubble:hover .bubble img { transform: scale(1.08); }
.cat-bubble:hover .bubble img.zoom { transform: scale(1.82); }
.cat-bubble:hover .bubble img.shift { transform: scale(1.28); }
.bubble-name { font-family: var(--font-display); font-size: 1.25rem; }
.bubble-price { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 9vh, 5.5rem) clamp(1rem, 5vw, 4rem); max-width: 1240px; margin: 0 auto; }
.section-tinted {
  max-width: none;
  background: linear-gradient(var(--bg) 0%, var(--bg-tint) 12%, var(--bg-tint) 88%, var(--bg) 100%);
}
.section-tinted > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.sec-num {
  display: block;
  font-family: var(--font-body); font-weight: 300;
  font-size: 0.85rem; letter-spacing: 0.3em; color: var(--clay);
  margin-bottom: 0.6rem;
}

/* ---------- catalog ---------- */
.cat-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-chip {
  font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line);
  cursor: pointer; transition: all 0.2s; color: var(--ink);
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fdfaf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(43,36,28,0.14); }
.card.is-hidden { display: none; }
.card-art { background: var(--bg-tint); aspect-ratio: 4 / 3; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card-art img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--clay); font-weight: 600;
}
.card-note { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; }
.price { font-weight: 600; }
.card-link { color: var(--clay); font-weight: 500; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.card-link:hover { border-color: var(--clay); }
.card-custom { background: var(--dark); color: var(--cream); border: none; justify-content: center; }
.card-custom .card-note { color: rgba(246,241,232,0.7); }
.card-custom .card-tag { color: var(--sand); }
.fineprint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.6rem; }

/* ---------- rooms ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.room {
  background: #fdfaf4; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.room:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(43,36,28,0.14); }
.room-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.room:hover .room-photo img { transform: scale(1.06); }
.room-body { padding: 1.5rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.room-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.room-price span { font-family: var(--font-display); font-size: 1.6rem; display: block; }
.room-price em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); text-decoration: line-through; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fdfaf4;
}
.step-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--clay); display: block; margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- showroom: фото-фон ---------- */
.section-dark {
  position: relative;
  color: var(--cream);
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
}
.showroom-bg { position: absolute; inset: 0; }
.showroom-bg img { width: 100%; height: 100%; object-fit: cover; }
.showroom-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28, 22, 15, 0.92) 20%, rgba(28, 22, 15, 0.72) 60%, rgba(28,22,15,0.55));
}
.showroom-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
  position: relative;
}
.section-dark p { color: rgba(246,241,232,0.8); }
.section-dark h2 { color: var(--cream); }
.section-dark .sec-num { color: var(--sand); }
.section-dark .btn-light { margin-top: 1.6rem; }

.checklist { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--clay);
}
.showroom-note {
  border: 1px solid rgba(246,241,232,0.3); border-radius: var(--radius);
  padding: 2.4rem; text-align: center;
  background: rgba(20, 16, 11, 0.35); backdrop-filter: blur(4px);
}
.big-quote { font-family: var(--font-display); font-size: 5rem; color: var(--sand); display: block; line-height: 1; }

/* ---------- designers / b2b ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split .section-head { margin-bottom: 0; }
.offer-box { background: #fdfaf4; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.offer-box .btn { margin-top: 1.4rem; }
.offer-lead { color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq-list { max-width: 46rem; display: grid; gap: 0.8rem; }
details { border: 1px solid var(--line); border-radius: 14px; background: #fdfaf4; padding: 1.1rem 1.4rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--clay); transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- lead ---------- */
.section-lead { padding-bottom: clamp(3rem, 9vh, 5.5rem); }
.lead-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: var(--bg-tint);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(1.6rem, 4vw, 3.2rem);
}
.lead-grid > div > p { color: var(--ink-soft); margin-top: 1rem; max-width: 28rem; }
.lead-form { display: grid; gap: 1rem; }
.lead-form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 500; }
.lead-form input, .lead-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fdfaf4; color: var(--ink);
  transition: border-color 0.2s; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--clay); }
.form-ok { color: var(--clay-deep); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 5vw, 4rem);
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 2rem;
  font-size: 0.92rem; color: var(--ink-soft);
}
.site-footer .wordmark-dot { color: var(--clay); }
.site-footer p { margin-top: 0.5rem; max-width: 22rem; }
.footer-links, .footer-contacts { display: grid; gap: 0.5rem; align-content: start; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--clay); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.cat-bubble.reveal { transform: translateY(26px) scale(0.92); }
.cat-bubble.reveal.is-in { transform: none; }

/* ---------- lang toggle ---------- */
.lang-toggle { display: flex; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px; overflow: hidden; }
.site-header.is-solid .lang-toggle { border-color: var(--line); }
.lang-toggle button {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.75rem; border: none; background: transparent; color: inherit; cursor: pointer;
  opacity: 0.75;
}
.lang-toggle button.is-active { background: rgba(255,255,255,0.25); opacity: 1; }
.site-header.is-solid .lang-toggle button.is-active { background: var(--ink); color: var(--cream); }

/* ---------- variant bar ---------- */
.variant-bar {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: rgba(20, 17, 13, 0.92); color: #f6f1e8;
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  font-family: sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.variant-bar a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.15); color: #fff; font-weight: 700;
}
.variant-bar a:hover { background: #b4552d; }
body.v1 .variant-bar .vb-1 { background: #b4552d; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 92svh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; }
  .showroom-grid, .split, .lead-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .cats-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .site-nav {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .lang-toggle { margin-left: auto; }
  .nav-toggle { display: grid; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-toggle span { width: 22px; height: 2px; background: currentColor; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .bubble { width: 138px; height: 138px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
