/* ============================================================
   GS-Навесы — главный стиль
   Mobile-first. Брейкпоинты: 640 / 900 / 1200
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-gray: #f4f5f7;
  --bg-dark: #14181f;
  --bg-dark-2: #1c222c;
  --text: #1d2129;
  --text-soft: #5a6170;
  --text-inverse: #f3f4f6;
  --text-inverse-soft: #a8afbd;
  --accent: #e8a33d;
  --accent-hover: #f2b355;
  --accent-active: #d18f2a;
  --accent-ink: #221703;
  --danger: #c0392b;
  --line: #e3e5ea;
  --line-dark: #2b323e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 24, 31, 0.16);
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --header-h: 68px;
}

/* -------- база -------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}

h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow { max-width: 860px; }

/* -------- кнопки -------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s,
              transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
.burger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn--lg { padding: 16px 32px; font-size: 1.02rem; }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(232, 163, 61, 0.35);
}
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--accent:active { background: var(--accent-active); transform: translateY(0); box-shadow: none; }

.btn--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.btn--dark:hover { background: #232a36; transform: translateY(-2px); }
.btn--dark:active { background: #0e1115; transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--ghost:active { background: rgba(255, 255, 255, 0.14); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline:hover { background: var(--text); color: #fff; }
.btn--outline:active { background: #000; border-color: #000; }

/* -------- шапка -------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(20, 24, 31, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text-inverse);
  transition: box-shadow 0.25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.logo__mark { color: #fff; flex-shrink: 0; }
.logo__text {
  font: 700 1rem/1.1 var(--font-head);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo__text small {
  font: 500 0.68rem/1.2 var(--font-body);
  color: var(--text-inverse-soft);
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 14px;
  margin-inline: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-inverse-soft);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

.header__contact {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  transition: color 0.2s;
}
.header__phone:hover { color: var(--accent); }
.header__hours {
  font-size: 0.72rem;
  color: var(--text-inverse-soft);
  white-space: nowrap;
}

.header__cta { display: none; flex-shrink: 0; padding: 10px 16px; font-size: 0.88rem; }

.burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню */
.nav.is-open {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg-dark);
  padding: 12px 20px 24px;
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.nav.is-open a {
  padding: 14px 4px;
  font-size: 1.05rem;
  color: var(--text-inverse);
  border-bottom: 1px solid var(--line-dark);
}
.nav.is-open a:last-child { border-bottom: 0; }

/* -------- герой -------- */

.hero {
  position: relative;
  color: var(--text-inverse);
  padding: calc(var(--header-h) + 56px) 0 72px;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.72) 0%, rgba(14, 17, 22, 0.45) 45%, rgba(14, 17, 22, 0.82) 100%),
    linear-gradient(100deg, rgba(14, 17, 22, 0.85) 0%, rgba(14, 17, 22, 0.25) 65%);
}

.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-inverse);
  margin: 0 0 22px;
}
.hero__badge svg { color: var(--accent); flex-shrink: 0; }

.hero__title {
  font-size: clamp(1.7rem, 4.6vw + 0.6rem, 3.3rem);
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  margin-top: 14px;
}

.hero__subtitle {
  max-width: 56ch;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  color: var(--text-inverse-soft);
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  max-width: 760px;
}
.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.hero__facts strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}
.hero__facts span {
  font-size: 0.85rem;
  color: var(--text-inverse-soft);
}

/* -------- акция с таймером -------- */

.offer { background: var(--accent); color: var(--accent-ink); }

.offer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 40px;
}

.offer__title {
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.7rem);
  margin-bottom: 10px;
}
.offer__text p { max-width: 60ch; font-weight: 500; }

.offer__timer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex-shrink: 0;
}

.timer { display: flex; gap: 10px; }
.timer__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  padding: 10px 8px;
  background: rgba(20, 24, 31, 0.92);
  color: #fff;
  border-radius: var(--radius-sm);
}
.timer__cell b {
  font: 700 1.6rem/1.1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.timer__cell span {
  font-size: 0.68rem;
  color: var(--text-inverse-soft);
  margin-top: 2px;
}

/* -------- секции: общее -------- */

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: var(--text-inverse); }
.section--danger { background: #fdf6f0; }

.section__head {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-active);
  margin-bottom: 12px;
}
.section__tag--light { color: var(--accent); }
.section__tag--danger { color: var(--danger); }

.section__title {
  font-size: clamp(1.45rem, 2.6vw + 0.7rem, 2.3rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}
.section__lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 64ch;
}
.section--dark .section__lead { color: var(--text-inverse-soft); }

/* -------- квиз -------- */

.quiz {
  max-width: 780px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

.quiz__progress {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-gray);
  overflow: hidden;
  margin-bottom: 28px;
}
.quiz__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quiz__step { border: 0; padding: 0; margin: 0; display: none; }
.quiz__step.is-active { display: block; }

.quiz__q {
  font: 600 1.15rem/1.35 var(--font-head);
  margin-bottom: 20px;
  padding: 0;
}

.quiz__options {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz__option { position: relative; display: block; cursor: pointer; }
.quiz__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz__option span {
  display: block;
  padding: 15px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.quiz__option:hover span { border-color: #c9cdd6; }
.quiz__option input:checked + span {
  border-color: var(--accent);
  background: #fdf4e4;
  box-shadow: 0 0 0 1px var(--accent);
}
.quiz__option input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.quiz__nav .btn--ghost {
  color: var(--text-soft);
  border-color: var(--line);
}
.quiz__nav .btn--ghost:hover { border-color: var(--text-soft); background: var(--bg-gray); color: var(--text); }
.quiz__next { margin-left: auto; }

.quiz__phone-step { display: none; }
.quiz__phone-step.is-active { display: block; }

.quiz__final {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.quiz__submit { width: 100%; }

.quiz__success,
.calc__success {
  text-align: center;
  padding: 24px 8px;
}
.quiz__success svg,
.calc__success svg { margin-inline: auto; margin-bottom: 16px; }
.quiz__success h3,
.calc__success h3 { font-size: 1.3rem; }
.quiz__success p { color: var(--text-soft); max-width: 46ch; margin-inline: auto; }

/* -------- поля форм -------- */

.field { display: block; }
.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field__label i { font-style: normal; font-weight: 500; color: var(--text-soft); }
.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font: 500 1rem/1.3 var(--font-body);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: #a3a9b5; }
.field__input:hover { border-color: #c9cdd6; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.25);
}
.field__input.is-invalid { border-color: var(--danger); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 14px;
}
.form-note a { color: inherit; }
.form-note--light { color: var(--text-inverse-soft); }

/* -------- виды навесов -------- */

.types {
  display: grid;
  gap: 24px;
}

.type-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.type-card__media { position: relative; }
.type-card__media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.type-card__price {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  background: rgba(20, 24, 31, 0.88);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.type-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.type-card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.type-card__body > p { color: var(--text-soft); font-size: 0.95rem; }

.type-card__list {
  margin: 14px 0 22px;
  display: grid;
  gap: 8px;
  flex: 1;
}
.type-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}
.type-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.type-card .btn { align-self: flex-start; }

/* -------- этапы -------- */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.step__num {
  font: 700 2rem/1 var(--font-head);
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 14px; }
.step__time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  background: #fff;
  border-radius: 999px;
  color: var(--text);
}

/* -------- сплит-блоки (металл, поликарбонат, антипример) -------- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.split__text .section__title { font-size: clamp(1.35rem, 2vw + 0.7rem, 1.9rem); }
.split__text > p { color: var(--text-soft); }
.section--dark .split__text > p { color: var(--text-inverse-soft); }

.checklist { display: grid; gap: 14px; margin-block: 22px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist b { display: block; }
.checklist--light { color: var(--text-inverse); }
.checklist--light li { color: var(--text-inverse-soft); }
.checklist--light b { color: var(--text-inverse); }

.split__note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(232, 163, 61, 0.12);
  border: 1px solid rgba(232, 163, 61, 0.4);
}
.split__note svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.split__note p { font-size: 0.9rem; margin: 0; color: var(--text-inverse); }

/* -------- производство -------- */

.production {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.production__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.production__item img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.production__item figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.production__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.production__facts li {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.production__facts b {
  display: block;
  font: 700 1.5rem/1.2 var(--font-head);
  color: var(--accent-active);
  margin-bottom: 4px;
}
.production__facts span { font-size: 0.85rem; color: var(--text-soft); }

/* -------- антипример -------- */

.fail-list { display: grid; gap: 14px; margin-block: 22px; }
.fail-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.97rem;
  color: var(--text-soft);
}
.fail-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--danger);
}
.fail-list b { display: block; color: var(--text); }

.fail-total {
  padding: 16px 20px;
  border-left: 4px solid var(--danger);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
}

/* -------- гарантии -------- */

.guarantee {
  display: grid;
  gap: 22px;
}
.guarantee__card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.guarantee__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guarantee__card svg { margin-bottom: 18px; }
.guarantee__card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.guarantee__card p { font-size: 0.93rem; color: var(--text-soft); }

/* -------- галерея -------- */

.gallery {
  display: grid;
  gap: 18px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(14, 17, 22, 0.85));
}

.gallery__cta {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: center;
}
.gallery__cta p {
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 22px;
}

/* -------- отзывы -------- */

.reviews { display: grid; gap: 22px; }

.review {
  margin: 0;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.review__stars {
  color: var(--accent);
  letter-spacing: 4px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.review p { font-size: 0.95rem; flex: 1; }
.review footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review footer b { font-size: 0.95rem; }
.review footer span { font-size: 0.82rem; color: var(--text-soft); }

/* -------- финальная форма -------- */

.calc {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(232, 163, 61, 0.18), transparent 60%),
    var(--bg-dark);
  color: var(--text-inverse);
}

.calc__inner {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.calc__lead { color: var(--text-inverse-soft); font-size: 1.05rem; }

.calc__deadline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(232, 163, 61, 0.12);
  border: 1px solid rgba(232, 163, 61, 0.4);
}
.calc__deadline svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.calc__deadline p { margin: 0; font-size: 0.92rem; }

.calc__form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}
.calc__form h3 { font-size: 1.25rem; margin-bottom: 4px; }
.calc__form .form-note { margin-top: 0; }
.calc__submit { width: 100%; }

/* -------- FAQ -------- */

.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  position: relative;
  transition: background-color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--text);
  border-bottom: 2.5px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item summary:hover { background: #ecedf0; }
.faq__item p {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* -------- контакты -------- */

.contacts__inner {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

.contacts__list { display: grid; gap: 20px; margin-block: 26px; }
.contacts__list li { display: flex; flex-direction: column; gap: 4px; }
.contacts__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-inverse-soft);
}
.contacts__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-inverse);
  text-decoration: none;
}
a.contacts__value:hover { color: var(--accent); }
.contacts__value--row { display: flex; gap: 12px; flex-wrap: wrap; }

.msg-btn {
  display: inline-flex;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, filter 0.2s;
}
.msg-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.msg-btn--wa { background: #1faa53; }
.msg-btn--tg { background: #2a9dd8; }

.contacts__hint { color: var(--text-inverse-soft); font-size: 0.92rem; max-width: 46ch; }

.contacts__cta {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.contacts__cta h3 { font-size: 1.25rem; margin: 0; }
.contacts__cta p { color: var(--text-inverse-soft); margin: 0 0 8px; }
.contacts__cta .btn { align-self: stretch; }

/* -------- подвал -------- */

.footer {
  background: #0e1116;
  color: var(--text-inverse-soft);
  padding-top: 48px;
}

.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
}

.logo--footer { color: #fff; }
.logo--footer .logo__text { font-size: 1rem; }
.footer__brand p { font-size: 0.88rem; margin-top: 14px; max-width: 34ch; }

.footer__nav { display: grid; gap: 10px; }
.footer__nav a {
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__nav a:hover { color: #fff; }

.footer__contacts { display: grid; gap: 6px; font-size: 0.9rem; }
.footer__phone {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.footer__contacts a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
}
.footer__bottom a { color: inherit; }

/* -------- плавающая кнопка -------- */

.fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 90;
  display: block;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.98rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(232, 163, 61, 0.5);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.fab.is-visible { transform: translateY(0); }
.fab:active { background: var(--accent-active); }

/* на мобильных плавающая кнопка не должна закрывать подвал */
@media (max-width: 899px) {
  .footer { padding-bottom: 78px; }
}

/* -------- анимация появления -------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Планшет ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  .quiz__options { grid-template-columns: 1fr 1fr; }
  .quiz__final { grid-template-columns: 1fr 1fr; }
  .quiz__final .quiz__submit { grid-column: 1 / -1; }

  .types { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .guarantee { grid-template-columns: 1fr 1fr; }
  .production__facts { grid-template-columns: repeat(4, 1fr); }
  .hero__facts { grid-template-columns: repeat(4, 1fr); }

  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* ============================================================
   Десктоп ≥ 900px
   ============================================================ */
@media (min-width: 900px) {
  .header__contact { display: flex; }
  .fab { display: none; }

  .offer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .offer__timer { align-items: flex-end; }

  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__text { order: 1; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }

  .production__item img { aspect-ratio: 21 / 9; }

  .calc__inner { grid-template-columns: 1.1fr 1fr; }
  .contacts__inner { grid-template-columns: 1.2fr 1fr; }
}

/* ============================================================
   Широкий десктоп ≥ 1200px
   ============================================================ */
@media (min-width: 1200px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }

  .types { grid-template-columns: repeat(4, 1fr); }
  .type-card__body { padding: 20px 20px 24px; }
  .type-card__body h3 { font-size: 1.1rem; }

  .steps { grid-template-columns: repeat(5, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .guarantee { grid-template-columns: repeat(4, 1fr); }
}
