@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin-cyrillic-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #170c1b;
  --header-background: #170c1b;
  --gold: #e0b563;
  --pink: #c9b9c9;
  --line: #bd4f76;
  --menu-height: clamp(64px, 9.8434dvh, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: #f5ece4;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
}
main { container-type: inline-size; }
main > section:focus { outline: none; }

/* Общая фиксированная шапка из макета 1698 × 894. */
.site-header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--menu-height);
  padding-inline: 4.0636%;
  border-bottom: 1px solid rgba(224, 181, 99, 0.28);
  background: var(--header-background);
}
.header-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(10px, 0.8245vw, 16px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.site-menu {
  display: flex;
  align-items: center;
  padding: 0;
}
.site-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--pink);
  font-size: clamp(12px, 0.9423vw, 18px);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.site-link + .site-link { margin-left: 28px; }
.site-link::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.site-link[aria-current] { color: #f5ece4; }
.site-link[aria-current]::before { background: var(--gold); }
.site-link:hover { color: #f5ece4; }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: clamp(12px, 0.9423vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
a:focus, button:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.menu-toggle, .site-menu[hidden] { display: none; }

/* Первый экран: новый макет, исходное фото в капсульной рамке.
   Меньший масштаб по ширине/высоте сохраняет композицию в одном окне. */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  container-type: size;
  --unit: min(0.0588928cqw, 0.1118568cqh);
  background:
    radial-gradient(ellipse at 78% 53%, #4b3156 0%, transparent 47%),
    radial-gradient(ellipse at 0% 100%, #3f1a39 0%, transparent 37%),
    var(--background);
}
.hero p, .hero h1 { margin: 0; }
.hero-content {
  position: absolute;
  top: 23.04%;
  left: 4.0636%;
  width: 37%;
}
.eyebrow { display: none; }
.hero h1 {
  width: max-content;
  white-space: nowrap;
  font-size: calc(60 * var(--unit));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  transform: scaleX(1.25);
  transform-origin: left center;
}
.hero .hero-description {
  margin-top: calc(32 * var(--unit));
  color: var(--pink);
  font-size: calc(20 * var(--unit));
  letter-spacing: -0.015em;
  line-height: 1.6;
}
.hero-rule {
  width: calc(72 * var(--unit));
  height: calc(3 * var(--unit));
  margin-top: calc(34 * var(--unit));
  border-radius: 2px;
  background: var(--gold);
}
.model-prices {
  width: min(100%, calc(560 * var(--unit)));
  margin: calc(14 * var(--unit)) 0 0;
  padding: 0;
  list-style: none;
}
.model-prices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(69 * var(--unit));
  border-bottom: 1px solid rgba(201, 185, 201, 0.2);
  font-size: calc(22 * var(--unit));
  line-height: 1.5;
  white-space: nowrap;
}
.model-prices strong {
  margin-left: 16px;
  color: var(--gold);
  font-size: calc(24 * var(--unit));
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transform: scaleX(1.16);
  transform-origin: right center;
}
.hero-photo {
  position: absolute;
  top: calc(50% - 301.5 * var(--unit));
  right: 8.36%;
  width: calc(482 * var(--unit));
  height: calc(635 * var(--unit));
  overflow: hidden;
  border: calc(11 * var(--unit)) solid #7d6651;
  border-radius: 999px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.22);
  transform-origin: center top;
}
.hero .hero-contacts {
  position: absolute;
  bottom: 0;
  left: 4.0636%;
  right: 4.0636%;
  display: flex;
  align-items: center;
  min-height: 6.936%;
  border-top: 1px solid rgba(201, 185, 201, 0.16);
  color: var(--pink);
  font-size: calc(14 * var(--unit));
  line-height: 1.5;
}
.hero-contacts svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
}

/* Производство: макет 1697 × 889, живой текст и арочный блок. */
.production {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  container-type: size;
  --production-unit: min(0.0589275cqw, 0.1124859cqh);
  --production-purple: #b47cce;
  --production-rose: #c9558a;
  color: #f5ece4;
  background:
    radial-gradient(ellipse at 100% 0%, #4c2348 0%, transparent 42%),
    radial-gradient(ellipse at 0% 100%, #3f1a3f 0%, transparent 34%),
    #2a1230;
}
.production-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 91.99%;
  margin-inline: auto;
  padding-top: max(calc(var(--menu-height) + 24px), calc(230 * var(--production-unit)));
  padding-bottom: calc(60 * var(--production-unit));
}
.production-story {
  flex: 0 0 auto;
  width: calc(828 * var(--production-unit));
  min-width: 0;
}
.production h2 {
  width: max-content;
  white-space: nowrap;
  margin: 0;
  font-size: calc(60 * var(--production-unit));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  transform: scaleX(1.25);
  transform-origin: left center;
}
.production-rule {
  width: calc(72 * var(--production-unit));
  height: calc(3 * var(--production-unit));
  margin-top: calc(34 * var(--production-unit));
  border-radius: 2px;
  background: var(--gold);
}
.production-description {
  max-width: calc(700 * var(--production-unit));
  margin-top: calc(32 * var(--production-unit));
  color: var(--pink);
  font-size: calc(20 * var(--production-unit));
  letter-spacing: -0.015em;
  line-height: 1.65;
}
.production-description p { margin: 0; }
.production-description p + p { margin-top: calc(20 * var(--production-unit)); }
.production-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(26 * var(--production-unit));
  margin: calc(42 * var(--production-unit)) 0 0;
}
.production-stat {
  min-height: calc(92 * var(--production-unit));
  padding-left: calc(20 * var(--production-unit));
  border-left: calc(4 * var(--production-unit)) solid var(--production-purple);
  color: var(--production-purple);
}
.production-stat:nth-child(2) { border-color: var(--production-rose); color: var(--production-rose); }
.production-stat:nth-child(3) { border-color: var(--gold); color: var(--gold); }
.production-stat dt {
  font-size: calc(32 * var(--production-unit));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.125;
  white-space: nowrap;
}
.production-stat .stat-label { font-size: 0.5em; font-weight: 600; letter-spacing: -0.015em; }
.production-stat:nth-child(3) .stat-value { display: inline-block; margin-left: calc(4 * var(--production-unit)); margin-right: calc(16 * var(--production-unit)); transform: scaleX(1.16); transform-origin: left center; }
.production-stat dd {
  max-width: calc(220 * var(--production-unit));
  margin: calc(8 * var(--production-unit)) 0 0;
  color: var(--pink);
  font-size: calc(15 * var(--production-unit));
  letter-spacing: -0.015em;
  line-height: 1.5;
}
.production-features {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: calc(27 * var(--production-unit));
  width: calc(592 * var(--production-unit));
  margin: 0;
  padding: calc(96 * var(--production-unit)) calc(36 * var(--production-unit)) calc(36 * var(--production-unit));
  border: 1px solid rgba(224, 181, 99, 0.45);
  border-radius: calc(300 * var(--production-unit)) calc(300 * var(--production-unit)) calc(12 * var(--production-unit)) calc(12 * var(--production-unit));
  background: rgba(245, 236, 228, 0.035);
  box-shadow: 0 0 0 calc(10 * var(--production-unit)) rgba(245, 236, 228, 0.035);
  list-style: none;
}
.production-features li { display: flex; align-items: center; }
.production-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: calc(60 * var(--production-unit));
  height: calc(60 * var(--production-unit));
  border-radius: 50%;
  background: var(--production-purple);
  color: #1b0e20;
}
.production-features li:nth-child(2) .production-icon { background: var(--production-rose); }
.production-features li:nth-child(3) .production-icon { background: var(--gold); }
.production-icon svg { display: block; width: 46.67%; height: 46.67%; }
.production-features p {
  min-width: 0;
  margin: 0 0 0 calc(20 * var(--production-unit));
  color: #f5ece4;
  font-size: calc(20 * var(--production-unit));
  letter-spacing: -0.02em;
  line-height: 1.5;
}

/* Модели и цены: три арочные карточки в палитре первых экранов. */
.models {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  container-type: size;
  --models-unit: min(0.0589275vw, 0.1124859dvh);
  background:
    radial-gradient(ellipse at 0% 0%, #3c2647 0%, transparent 40%),
    radial-gradient(ellipse at 100% 100%, #3b2828 0%, transparent 36%),
    var(--background);
}
.models-layout {
  width: 91.8728%;
  margin-inline: auto;
  padding-top: max(calc(var(--menu-height) + 32px), calc(136 * var(--models-unit)));
  padding-bottom: calc(48 * var(--models-unit));
}
.models h2 {
  width: max-content;
  margin: 0;
  font-size: calc(60 * var(--models-unit));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  white-space: nowrap;
  transform: scaleX(1.25);
  transform-origin: left center;
}
.models-description {
  max-width: calc(860 * var(--models-unit));
  margin: calc(24 * var(--models-unit)) 0 0;
  color: var(--pink);
  font-size: max(16px, calc(20 * var(--models-unit)));
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(36 * var(--models-unit));
  margin-top: calc(48 * var(--models-unit));
}
.model-card {
  min-width: 0;
  container-type: inline-size;
  --model-accent: #b47cce;
}
.model-card-chair { --model-accent: #c9558a; }
.model-card-sofa { --model-accent: var(--gold); }
.model-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(201, 185, 201, 0.2);
  border-radius: 50cqw 50cqw calc(28 * var(--models-unit)) calc(28 * var(--models-unit));
  background: rgba(245, 236, 228, 0.045);
}
.model-card-arch {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: calc(182 * var(--models-unit));
  background: var(--model-accent);
}
.model-card-icon {
  display: grid;
  place-items: center;
  width: calc(96 * var(--models-unit));
  height: calc(96 * var(--models-unit));
  border-radius: 50%;
  background: #f5ece4;
  color: var(--model-accent);
}
.model-card-icon svg { width: 42%; height: 42%; }
.model-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: calc(28 * var(--models-unit)) calc(30 * var(--models-unit));
  text-align: center;
}
.model-card h3 {
  margin: 0;
  font-size: max(20px, calc(24 * var(--models-unit)));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.model-card-price {
  margin: calc(10 * var(--models-unit)) 0 0;
  color: var(--model-accent);
  font-size: max(26px, calc(32 * var(--models-unit)));
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  white-space: nowrap;
}
.model-card-description {
  margin: calc(26 * var(--models-unit)) 0 calc(28 * var(--models-unit));
  color: var(--pink);
  font-size: max(16px, calc(18 * var(--models-unit)));
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.model-card-dimensions {
  margin: auto 0 0;
  padding-top: calc(20 * var(--models-unit));
  border-top: 1px solid rgba(201, 185, 201, 0.16);
  color: var(--pink);
  font-size: max(14px, calc(16 * var(--models-unit)));
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.model-card-dimensions span { white-space: nowrap; }

/* На узких экранах композиция идёт потоком: текст, овальное фото, адрес.
   Контакты и навигация остаются в фиксированной шапке. */
@media (max-width: 900px), (max-width: 1024px) and (max-height: 500px) {
  :root { --menu-height: 72px; }
  .header-eyebrow { display: none; }
  .site-header { padding: 0 16px; }
  .header-phone { order: -1; font-size: 14px; padding-inline: 16px; }
  .menu-ready .menu-toggle {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(224, 181, 99, 0.4);
    border-radius: 8px;
    background: var(--header-background);
    color: var(--gold);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span {
    position: absolute;
    top: 22px;
    left: 12px;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .menu-toggle span:first-child { transform: translateY(-7px); }
  .menu-toggle span:last-child { transform: translateY(7px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .site-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    border: 1px solid rgba(224, 181, 99, 0.4);
    border-radius: 8px;
    background: var(--header-background);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  .menu-ready .site-menu {
    position: absolute;
    top: calc(var(--menu-height) + 8px);
    right: 16px;
    min-width: 200px;
  }
  .site-link { min-height: 44px; padding-left: 14px; font-size: 16px; }
  .site-link + .site-link { margin-left: 0; }
  .site-link::before { left: 0; }
  .site-header:not(.menu-ready) { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
  .site-header:not(.menu-ready) .site-menu { flex-direction: row; flex-wrap: wrap; justify-content: space-around; column-gap: 20px; order: 2; width: 100%; margin-top: 8px; }
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    container-type: normal;
    display: flex;
    flex-direction: column;
    padding: 100px 16px 0;
  }
  .hero-content { position: static; order: 1; width: 100%; max-width: 600px; margin: 0 auto; }
  .eyebrow { display: block; max-width: 340px; color: var(--gold); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.03em; }
  .hero h1 { margin-top: 24px; font-size: clamp(24px, 5.4vw, 52px); line-height: 0.98; transform: scaleX(1.15); }
  .hero .hero-description { margin-top: 24px; font-size: 16px; line-height: 1.65; }
  .hero-description br { display: none; }
  .hero-rule { width: 60px; height: 3px; margin-top: 28px; }
  .model-prices { width: 100%; margin-top: 14px; }
  .model-prices li { min-height: 64px; padding-block: 14px; font-size: 16px; white-space: normal; }
  .model-prices li span { min-width: 0; }
  .model-prices strong { margin-left: 12px; font-size: 16px; flex-shrink: 0; transform: none; }
  .hero-photo { position: relative; top: auto; right: auto; order: 2; width: 82%; max-width: 360px; height: 0; padding-top: 108%; max-height: 474px; margin: 32px auto; border-width: 8px; flex-shrink: 0; }
  .hero-photo img { position: absolute; top: 0; left: 0; }
  .hero .hero-contacts { position: static; order: 3; width: 100%; min-height: 64px; padding-block: 18px; font-size: 14px; }


}

@supports (aspect-ratio: 482 / 635) {
  @media (max-width: 900px), (max-width: 1024px) and (max-height: 500px) {
    .hero-photo { height: auto; padding-top: 0; aspect-ratio: 482 / 635; }
  }
}

@media (min-width: 375px) and (max-width: 900px), (min-width: 901px) and (max-width: 1024px) and (max-height: 500px) {
  .hero { padding-right: 24px; padding-left: 24px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hero-description { font-size: 18px; }
}

/* На компактных окнах второй экран читается обычным потоком. */
@media (max-width: 1100px) {
  .production { height: auto; min-height: 100vh; min-height: 100svh; container-type: normal; --production-unit: 1px; }
  .production-layout { flex-direction: column; gap: 56px; width: calc(100% - 48px); max-width: 700px; padding-top: calc(var(--menu-height) + 32px); padding-bottom: 48px; }
  .production-story { width: 100%; }
  .production h2 { font-size: clamp(24px, 5.4vw, 52px); transform: scaleX(1.15); }
  .production-rule { width: 56px; margin-top: 24px; }
  .production-description { max-width: none; margin-top: 28px; font-size: 16px; }
  .production-description p + p { margin-top: 16px; }
  .production-stats { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .production-stat { min-height: 0; padding-left: 16px; border-left-width: 3px; }
  .production-stat dt { font-size: 30px; }
  .production-stat .stat-label { font-size: 0.6em; }
  .production-stat dd { max-width: none; margin-top: 8px; font-size: 16px; }
  .production-features { align-self: center; width: 100%; max-width: 592px; gap: 24px; padding: 88px 24px 28px; border-radius: 300px 300px 12px 12px; box-shadow: 0 0 0 8px rgba(245, 236, 228, 0.035); }
  .production-icon { width: 48px; height: 48px; }
  .production-features p { margin-left: 16px; font-size: 16px; }
}
@media (max-width: 374px) {
  .production-layout { width: calc(100% - 32px); }
  .production-features { padding: 72px 16px 24px; }
}
@media (min-width: 600px) and (max-width: 1100px) {
  .production-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .production-stat dt { font-size: 26px; }
  .production-stat .stat-label { font-size: 0.615385em; }
  .production-features p { font-size: 18px; }
}

/* На телефонах и планшетах карточки читаются по одной сверху вниз.
   Низким широким окнам разрешена прокрутка без уменьшения текста. */
@media (max-width: 1100px), (max-height: 600px) {
  .models { height: auto; min-height: 100vh; min-height: 100svh; container-type: normal; --models-unit: 1px; }
  .models-layout { width: calc(100% - 48px); max-width: 700px; padding-top: calc(var(--menu-height) + 32px); padding-bottom: 48px; }
  .models h2 { font-size: clamp(24px, 5.4vw, 52px); transform: scaleX(1.15); }
  .models-description { max-width: none; margin-top: 24px; font-size: 16px; }
  .model-cards { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 32px; margin: 40px auto 0; }
  .model-card-arch { height: 170px; }
  .model-card-icon { width: 88px; height: 88px; }
  .model-card-content { padding: 26px 24px; }
  .model-card h3 { font-size: 22px; }
  .model-card-price { font-size: 28px; }
  .model-card-description { margin-block: 24px; font-size: 16px; }
  .model-card-dimensions { font-size: 16px; }
}
@media (max-width: 374px) {
  .models-layout { width: calc(100% - 32px); }
  .model-card-content { padding-inline: 20px; }
  .model-card h3 { font-size: 20px; }
}
@media (min-width: 1101px) and (max-height: 600px) {
  .models-layout { width: 91.8728%; max-width: none; }
  .models h2 { font-size: 60px; transform: scaleX(1.25); }
  .model-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 900px), (max-width: 1024px) and (max-height: 500px) {
  .site-header:not(.menu-ready) + main .hero,
  .site-header:not(.menu-ready) + main .production-layout,
  .site-header:not(.menu-ready) + main .models-layout { padding-top: calc(var(--menu-height) + 184px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-toggle span { transition: none; }
}

