:root {
  --bg: #f7f0e7;
  --bg-soft: #fcf7f0;
  --surface: #fffdfa;
  --ink: #2f2823;
  --ink-soft: #403832;
  --muted: #82746a;
  --line: #e8dbcc;
  --line-strong: #dccab6;
  --accent: #b06a4e;
  --accent-dark: #92543c;
  --sage: #7c8872;
  --sand: #f0e4d4;
  --sand-deep: #e4d2bd;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(74, 51, 35, .09);
  --shadow-soft: 0 10px 30px rgba(74, 51, 35, .055);
  --display: "Onest", "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 620px at 82% -8%, #fcf5e9 0%, rgba(252, 245, 233, 0) 62%),
    radial-gradient(900px 520px at -8% 18%, #f2e3d0 0%, rgba(242, 227, 208, 0) 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sand-deep); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 239, 229, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 199, 178, .55);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  flex: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex: none;
}
.logo-word {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.logo-word span { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-item > a::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .55;
}
.nav-item:hover > a,
.nav-item:focus-within > a,
.nav-item.is-active > a {
  background: rgba(240, 228, 212, .8);
  color: var(--ink);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
  max-height: min(70vh, 620px);
  overflow-y: auto;
}
.nav-item:nth-last-child(-n+2) .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.nav-dropdown a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.nav-dropdown a:last-child {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--accent);
  font-weight: 600;
}
.header-cta { margin-left: 4px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mobile-menu .container {
  padding: 22px 0 30px;
  display: grid;
  gap: 20px;
}
.mobile-section { display: grid; gap: 5px; }
.mobile-section-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 3px;
}
.mobile-section a:not(.mobile-section-title) {
  color: var(--muted);
  font-size: 15px;
  padding: 3px 0;
}
.mobile-section a:not(.mobile-section-title):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 14px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(169, 87, 58, .18);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(138, 66, 42, .22);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-small { padding: 10px 17px; font-size: 14px; }

/* Hero */
.hero { padding: 86px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
h1 {
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 24px;
  font-weight: 500;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 20px;
}
.hero-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.size-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid rgba(217, 199, 178, .8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 360px;
  margin-top: -42px;
  margin-left: 42px;
}
.size-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.size-row span {
  width: 66px;
  font-variant-numeric: tabular-nums;
  flex: none;
  font-weight: 500;
}
.bed {
  height: 86px;
  border-radius: 12px;
  background: var(--sand);
  border: 1px solid rgba(217, 199, 178, .7);
  position: relative;
}
.bed::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(42, 35, 30, .16);
  border-radius: 7px;
}
.bed-160 { width: 64%; background: #ecdcc9; }
.bed-180 { width: 72%; background: #ddc6ab; }
.size-card p {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* Sections */
.section { padding: 66px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
  font-weight: 500;
}
h2, h3 { scroll-margin-top: 96px; }
.section-note {
  color: var(--muted);
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.home-figure {
  margin: 0 0 28px;
}
.home-figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.home-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 226px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
  font-weight: 500;
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.card .tag {
  margin-top: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
}
.card.soon { opacity: .72; box-shadow: none; }
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* Related articles */
.related {
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.related > h2 { margin-top: 0; }
.related .grid-3 { gap: 14px; }
.related .card {
  min-height: 0;
  padding: 20px;
  gap: 8px;
}
.related .card h3 { font-size: 19px; line-height: 1.25; }
.related .card p { font-size: 13px; line-height: 1.5; }
.related .card .tag { font-size: 10px; }

/* Trust */
.trust {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  box-shadow: 0 30px 70px rgba(42, 35, 30, .18);
}
.trust h2 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.trust p { color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.6; margin: 0; }
.trust .num {
  font-family: var(--display);
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Article */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 26px 0 0;
}
.breadcrumbs a { transition: color .18s ease; }
.breadcrumbs a:hover { color: var(--ink); }
.article { max-width: 790px; margin: 0 auto; }
.article h1 {
  font-size: clamp(42px, 5.4vw, 64px);
  margin-top: 26px;
  line-height: .96;
}
.article h2 {
  font-size: 36px;
  margin: 52px 0 18px;
}
.article h3 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  margin: 34px 0 12px;
  font-weight: 500;
}
.article p, .article li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.article ul { padding-left: 22px; }
.article figure { margin: 30px 0; }
.article figure img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.article figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}
.article blockquote {
  border-left: 2px solid var(--accent);
  margin: 30px 0;
  padding: 6px 0 6px 24px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.35;
}
.review-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 26px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.review-note strong { color: var(--ink); }
.review-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 30px;
}
.review-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.review-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
}
.review-stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 30px;
}
.review-columns > div {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 22px 24px;
}
.review-columns h3 { margin-top: 0; }
.review-columns ul { margin-bottom: 0; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 30px;
}
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin: 30px 0 44px;
}
.calc-form { display: grid; gap: 17px; align-content: start; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field select, .field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-soft);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.field select:focus, .field input:focus {
  outline: 2px solid rgba(169, 87, 58, .25);
  border-color: var(--accent);
  background: #fff;
}
.calc-result {
  background: linear-gradient(160deg, #332a24 0%, #241e1a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.result-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .55);
}
.result-size {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
  font-weight: 500;
}
.result-list { display: grid; gap: 10px; margin: 0; }
.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  padding-bottom: 8px;
}
.result-list dt { color: rgba(255, 255, 255, .56); font-size: 13px; }
.result-list dd { margin: 0; font-size: 14px; text-align: right; }
.result-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding-top: 14px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  margin: 22px 0 30px;
  box-shadow: var(--shadow-soft);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f2e7d8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }
td strong { font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 19px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Author */
.author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 44px 0;
}
.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  flex: none;
}
.author p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.author strong { color: var(--ink); display: block; font-size: 15px; }

/* Affiliate */
.affiliate {
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 26px;
  margin: 44px 0;
  background: rgba(255, 253, 249, .7);
}
.affiliate h3 { margin-top: 0; }
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.affiliate-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  font-size: 14px;
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease;
}
.affiliate-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.affiliate-card strong { display: block; margin-bottom: 4px; }
.affiliate-card span { color: var(--muted); font-size: 13px; }
.disclaimer { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: 60px 0 34px;
  margin-top: 72px;
}
.logo-footer { margin-bottom: 14px; }
.logo-footer .logo-mark { width: 36px; height: 36px; }
.logo-footer .logo-word { color: #fff; font-size: 26px; }
.logo-footer .logo-word span { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}
.footer-grid h3 {
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-grid a { transition: color .18s ease; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14px; line-height: 1.65; max-width: 360px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 0; font-size: 13px; }
  .nav-item > a { padding: 9px 8px; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .calc, .trust, .footer-grid, .grid-3, .grid-2, .affiliate-grid, .review-stats, .review-columns {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .hero { padding: 44px 0; }
  .hero-photo { border-radius: 22px; }
  .size-card { margin: -28px 0 0; max-width: 100%; }
  .section { padding: 42px 0; }
  .trust { padding: 34px; }
  .section-head { display: block; }
  .section-note { margin-top: 12px; }
  .result-list div { flex-direction: column; gap: 2px; }
  .result-list dd { text-align: left; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
