:root {
  --blue: #2f6fde;
  --blue-dark: #1f56b8;
  --navy: #0b2a5b;
  --text: #1b2433;
  --muted: #5d6b82;
  --line: #dfe5ef;
  --bg: #ffffff;
  --tint: #f3f6fb;
  --accent: #ff7a45;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .1s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid rgba(47, 111, 222, .45); outline-offset: 2px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.burger { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef4ff 0%, #fff 100%); padding: 64px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; background: #fff1ea; color: #c4471a;
  font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__facts { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero__facts strong { display: block; font-size: 26px; color: var(--navy); }
.hero__visual img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* Sections */
.section { padding: 80px 0; }
.section--tinted { background: var(--tint); }
.section__title { font-size: clamp(26px, 3.2vw, 38px); text-align: center; font-weight: 800; letter-spacing: -.01em; }
.section__subtitle { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }
.section__title--left, .section__subtitle--left { text-align: left; margin-left: 0; }

.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#benefits .grid--3 { margin-top: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); margin: 0; }

/* Configurator */
.configurator { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.configurator__options { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field legend { font-weight: 800; margin-bottom: 12px; padding: 0; }

.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.model--custom { border-style: dashed; }
.model--custom .model__from { font-size: 15px; color: var(--accent); }
.model {
  position: relative; display: block; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; padding: 16px; transition: border-color .2s, background .2s;
}

.model:hover { border-color: #b8c8e6; }
.model:has(input:checked) { border-color: var(--blue); background: #f2f7ff; }
.model:has(input:focus-visible) { outline: 3px solid rgba(47, 111, 222, .45); outline-offset: 2px; }
.model__name { font-weight: 800; display: block; }
.model__meta { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.model__from { font-weight: 800; color: var(--blue); display: block; margin-top: 8px; font-size: 18px; }
.model__tag {
  position: absolute; top: -10px; right: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .model input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; min-width: 56px; text-align: center;
  padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover span { border-color: #b8c8e6; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(47, 111, 222, .45); outline-offset: 2px; }
.chip input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.chips.is-off { opacity: .4; pointer-events: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: var(--blue); }
.custom-size { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 14px; }
.custom-size label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.custom-size input { width: 110px; }
.custom-size__x { font-weight: 800; padding-bottom: 10px; }
.hint { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }

input, textarea {
  font: inherit; color: var(--text); padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
input:focus, textarea:focus { border-color: var(--blue); outline: none; }
input.is-invalid { border-color: #e04848; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; }
.qty__btn { width: 42px; height: 42px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--text); }
.qty output { min-width: 36px; text-align: center; font-weight: 800; }

.summary {
  position: sticky; top: 88px;
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.summary__preview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px 14px; display: grid; justify-items: center; gap: 10px; }
.summary__preview img { width: 100%; height: auto; }
.summary__caption { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.summary__caption b { color: var(--navy); }
.summary__list { margin: 18px 0; display: grid; gap: 8px; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; font-weight: 700; text-align: right; }
.summary__price { display: grid; gap: 2px; padding-top: 14px; border-top: 1px dashed var(--line); margin-bottom: 16px; }
.price { font-size: 32px; font-weight: 800; color: var(--navy); }
.price-label { font-size: 13px; font-weight: 800; color: #c4471a; text-transform: uppercase; letter-spacing: .04em; }
.price--request { font-size: 26px; }
.summary__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.size-table { margin-top: 28px; background: #fff; border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); }
.size-table summary { cursor: pointer; font-weight: 800; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.size-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.size-table th:first-child, .size-table td:first-child { text-align: left; }
.size-table th { color: var(--muted); font-weight: 700; }
.size-table tbody tr { cursor: pointer; }
.size-table tbody tr:hover { background: var(--tint); }

/* Layers */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.layers__img { width: 100%; height: auto; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.layer-list li {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.layer-list__swatch { flex: none; width: 44px; height: 18px; border-radius: 4px; background: var(--c); border: 1px solid rgba(0,0,0,.08); }

/* Seasons */
.seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.season { border-radius: var(--radius); padding: 32px; color: #fff; }
.season--winter { background: linear-gradient(135deg, #2f6fde, #0b2a5b); }
.season--summer { background: linear-gradient(135deg, #ffb35c, #ff7a45); }
.season__icon { font-size: 36px; display: block; margin-bottom: 10px; }
.season h3 { font-size: 22px; }
.season p { margin: 0; opacity: .95; }

/* Specs */
.specs { margin: 32px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }

/* Gallery */
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.gallery figcaption { padding: 14px 18px; font-weight: 700; }

/* Reviews */
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stars { color: #f5a623; letter-spacing: 2px; }
.review p { margin: 10px 0 14px; }
.review footer { color: var(--muted); font-weight: 700; font-size: 14px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { background: var(--navy); color: #c8d6f0; padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { text-decoration: none; font-weight: 700; color: #fff; }

/* Modal */
.modal { border: 0; border-radius: 20px; padding: 0; width: min(440px, 100% - 32px); box-shadow: 0 30px 80px rgba(11,42,91,.3); }
.modal::backdrop { background: rgba(11, 42, 91, .45); }
.modal__form, .modal__success { padding: 32px 28px 26px; display: grid; gap: 14px; position: relative; }
.modal__success { text-align: center; justify-items: center; }
.modal h3 { font-size: 22px; margin: 0; }
.modal label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.modal__order { margin: 0; background: var(--tint); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.modal__note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal__check { width: 64px; height: 64px; border-radius: 50%; background: #e3f6ea; color: #1f9d55; font-size: 32px; display: grid; place-items: center; font-weight: 800; }
.np { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.np legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 10px; }
.combo { position: relative; display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.combo input:disabled { background: var(--tint); cursor: not-allowed; }
.combo__list {
  position: absolute; z-index: 5; top: calc(100% - 2px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 2px solid var(--blue); border-radius: 10px; box-shadow: var(--shadow);
}
.combo__list li { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-weight: 500; line-height: 1.35; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: #eaf1ff; }
.combo__list li.is-empty { color: var(--muted); cursor: default; background: none; }
.combo__note { font-size: 12px; color: var(--muted); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { display: none; color: #e04848; font-size: 13px; font-weight: 600; }
.error.is-shown { display: block; }

/* Responsive */
@media (max-width: 1000px) {
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .configurator { grid-template-columns: 1fr; }
  .summary { position: static; }
  .header__phone { display: none; }
}
@media (max-width: 820px) {
  .hero__inner, .layers { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }
  .layers__img { max-width: 420px; margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr; }
  .seasons { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .burger {
    display: block; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .2s;
  }
  .burger span { top: 19px; }
  .burger span::before { top: -7px; left: 0; }
  .burger span::after { top: 7px; left: 0; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 32px; }
  .grid--4 { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configurator__options { padding: 20px; }
  .hero__facts { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
