/* =========================================================
   «Окна в порядке» — ремонт окон в Симферополе
   ========================================================= */
:root {
  --c-primary: #0f7f8c;
  --c-primary-dark: #0a5f69;
  --c-primary-soft: #e3f2f3;
  --c-accent: #ff7a1a;
  --c-accent-dark: #e8630a;
  --c-ink: #2a4a5e;
  --c-deep: #1a5f6a;       /* фон плашки расчёта и подвала */
  --c-text: #33415a;
  --c-muted: #6b7a90;
  --c-line: #dfe6f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f3f7f8;
  --c-ok: #17a34a;
  --c-danger: #d93025;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(18, 38, 58, .08);
  --shadow-lg: 0 20px 50px rgba(18, 38, 58, .16);
  --container: 1400px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--c-bg-soft); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead { font-size: 19px; color: var(--c-muted); margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); margin-bottom: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border: 0; border-radius: 12px;
  font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 26, .35); }
.btn--accent:hover { background: var(--c-accent-dark); box-shadow: 0 10px 26px rgba(255, 122, 26, .45); }
/* Shimmer: по оранжевым кнопкам заявки пробегает светлая полоса */
.btn--shimmer { position: relative; overflow: hidden; isolation: isolate; }
.btn--shimmer::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-130%) skewX(-20deg);
  animation: btn-shimmer 3.5s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0% { transform: translateX(-130%) skewX(-20deg); }
  35%, 100% { transform: translateX(330%) skewX(-20deg); }
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--ghost { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-soft); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); flex-shrink: 0; }
.logo__mark { width: 48px; height: 40px; flex-shrink: 0; }
.logo__name { display: block; font-weight: 800; font-size: 19px; line-height: 1.1; }
.logo__sub { display: block; font-size: 12px; color: var(--c-muted); font-weight: 600; }
.nav { display: flex; gap: 22px; margin: 0 auto; }
.nav a { color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--c-primary); }
.header__contact { display: flex; align-items: center; gap: 16px; }
.header__phone { text-align: right; text-decoration: none; color: var(--c-ink); white-space: nowrap; }
.header__phone b { display: block; font-size: 19px; font-weight: 800; }
.header__phone small { display: block; font-size: 12px; color: var(--c-muted); font-weight: 600; }
.header__phone:hover b { color: var(--c-primary); }
.header__call-icon { display: none; }

/* ---------- Первый экран ---------- */
.header__phone-icon { color: var(--c-primary); flex-shrink: 0; margin-right: -6px; }
.logo__mark { color: var(--c-primary); }
.header .logo__sub { color: var(--c-primary); }
.footer .logo__mark { --logo-a: #fff; --logo-b: #5fc4cc; --logo-g: rgba(255, 255, 255, .22); }

.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 60px;
  background:
    radial-gradient(760px 380px at 28% 0%, rgba(214, 238, 240, .75), rgba(214, 238, 240, 0) 70%),
    linear-gradient(180deg, #f5fafb 0%, #ffffff 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 690px; }
/* Десктоп: первый экран + полоса преимуществ занимают ровно высоту окна.
   Высота первого экрана задаёт ширину фото (пропорции кадра 1280×720), поэтому
   .hero — контейнер размеров, а фото считается в cqh/cqw. Если фото при этом
   заезжает рамой под текст, сдвигаем его вправо (--shift): рама (~35% кадра)
   остаётся правее колонки текста (край контента + 690px + 40px отступа). */
@media (min-width: 1241px) {
  .first-screen { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
  .first-screen .hero { flex: 1 0 500px; max-height: 820px; container-type: size; display: flex; align-items: center; padding: 0; }
  .hero > .container { width: 100%; padding-top: 40px; padding-bottom: 40px; }
  .hero__media { top: 0; bottom: auto; height: 100cqh; }
  .hero__media {
    --shift: max(0px, calc(max(0px, (100cqw - 1400px) / 2) + 750px - 100cqw + 100cqh * 1.155));
    width: calc(100cqh * 1.7778); aspect-ratio: auto; right: calc(-1 * var(--shift));
  }
  .hero__place { right: calc(28px + var(--shift)); }
}
.hero__sub { text-shadow: 0 0 10px #fff, 0 0 18px rgba(255, 255, 255, .9); }
.hero h1 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 20px; }
.hero h1 .hl { display: block; color: var(--c-primary); }
.hero__sub { font-size: 19px; line-height: 1.5; color: var(--c-ink); max-width: 640px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn--hero { min-height: 60px; padding: 16px 30px; border-radius: 10px; }
.btn--outline { background: #fff; color: var(--c-primary-dark); border: 1.5px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-soft); }

/* фото целиком: высота = высоте экрана, ширина по пропорциям кадра.
   Левая часть (небо, море) плавно растворяется в фон — переход как в макете;
   рама окна (~35% ширины кадра) и рука остаются чёткими */
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1280 / 720; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 14%, rgba(0,0,0,.42) 26%, rgba(0,0,0,.7) 32%, #000 35%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 14%, rgba(0,0,0,.42) 26%, rgba(0,0,0,.7) 32%, #000 35%);
}
.hero__place {
  position: absolute; right: 28px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .93); box-shadow: var(--shadow);
  color: var(--c-primary);
}
.hero__place span { color: var(--c-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.hero__place b { display: block; color: var(--c-primary); font-weight: 800; }
.hero__crimea { color: #49b0ba; flex-shrink: 0; }
.hero__note {
  position: absolute; z-index: 3; left: calc(35% - 40px); top: 72%; margin: 0;
  font-family: "Caveat", cursive; font-weight: 600; font-size: 27px; line-height: 1.05;
  color: var(--c-primary-dark); text-align: center; transform: rotate(-10deg);
}
.hero__note svg { display: block; margin: 6px 0 0 40px; color: var(--c-primary); }

/* ---------- Карточка формы ---------- */
.form-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
}
.form-card__title { font-size: 22px; margin-bottom: 6px; }
.form-card__text { font-size: 15px; color: var(--c-muted); margin-bottom: 18px; }
.form-card__gift {
  display: flex; gap: 10px; align-items: center;
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; margin-bottom: 16px;
}

.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 14px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.field__label i { font-style: normal; color: var(--c-muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 17px; color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(15, 127, 140, .15); }
.input.is-invalid { border-color: var(--c-danger); box-shadow: 0 0 0 4px rgba(217, 48, 37, .12); }
.field__error { display: none; color: var(--c-danger); font-size: 13px; margin-top: 4px; font-weight: 600; }
.field.has-error .field__error { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-muted); margin: 12px 0 16px; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--c-primary); }
.consent a { color: var(--c-muted); }
.form-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--c-muted); margin-top: 12px; text-align: center; }
.form-status { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-status.is-error { display: block; background: #fdecea; color: #a1231a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Полоса доверия ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust__item { display: flex; gap: 14px; align-items: center; }
.trust__icon { display: grid; place-items: center; flex-shrink: 0; }
.trust__icon svg, .why__item svg { width: 46px; height: 46px; }
.trust__item b { display: block; color: var(--c-ink); font-size: 16px; line-height: 1.25; }
.trust__item span { font-size: 14px; color: var(--c-muted); line-height: 1.35; display: block; }

/* ---------- Проблемы / услуги ---------- */
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.problem {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.problem__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-soft); position: relative; }
.problem__img img { width: 100%; height: 100%; object-fit: cover; }
.problem__price {
  position: absolute; left: 12px; bottom: 12px;
  background: #fff; color: var(--c-ink); font-weight: 800; font-size: 13px;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.problem__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.problem__body h3 { font-size: 17px; margin-bottom: 6px; }
.problem__symptoms { font-size: 13px; line-height: 1.45; color: var(--c-muted); margin-bottom: 10px; }
.problem__list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.problem__list li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.problem__list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.problem .btn { margin-top: auto; min-height: 42px; padding: 9px 14px; font-size: 14px; border-width: 1.5px; }

.services-more { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: 14px; font-weight: 600; color: var(--c-ink); }

.chip--link { color: var(--c-primary-dark); border-color: var(--c-primary); text-decoration: none; }
.chip--link:hover { background: var(--c-primary-soft); }

/* ---------- Остекление под заказ ---------- */
.glazing { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; background: var(--c-bg-soft); border-radius: 24px; padding: 28px 48px 28px 28px; }
.glazing__photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.glazing__photo img { width: 100%; height: 100%; object-fit: cover; }
.glazing__price { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--c-ink); font-weight: 800; font-size: 18px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.glazing h2 { font-size: clamp(26px, 2.6vw, 36px); }
.glazing__steps { list-style: none; counter-reset: gl; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.glazing__steps li { counter-increment: gl; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.glazing__steps li::before { content: counter(gl); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.glazing__steps b { color: var(--c-ink); font-size: 17px; line-height: 1.3; padding-top: 3px; }
.glazing__steps span { font-size: 15px; color: var(--c-muted); }
.glazing__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.glazing__note { font-size: 14px; color: var(--c-muted); margin: 0; max-width: 260px; }
@media (max-width: 1024px) {
  .glazing { grid-template-columns: 1fr; gap: 28px; padding: 20px 20px 32px; }
  .glazing__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .glazing { padding: 12px 12px 24px; border-radius: 20px; }
  .glazing__text { padding: 0 8px; }
  .glazing__price { font-size: 16px; left: 12px; bottom: 12px; }
  .glazing__cta .btn { width: 100%; }
  .glazing__note { max-width: none; }
}

/* ---------- Квиз ---------- */
.quiz { display: grid; grid-template-columns: 340px 1fr; background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.quiz__aside { background: var(--c-deep); color: #d3e8ea; padding: 36px 32px; display: flex; flex-direction: column; }
.quiz__aside h2 { color: #fff; font-size: 28px; }
.quiz__aside ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-size: 15px; }
.quiz__aside li { display: flex; gap: 10px; }
.quiz__master { margin-top: auto; padding-top: 24px; display: flex; gap: 14px; align-items: center; }
.quiz__master img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.quiz__master span { font-size: 14px; line-height: 1.4; }
.quiz__main { padding: 36px 40px; min-height: 480px; display: flex; flex-direction: column; }
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 14px; font-weight: 700; color: var(--c-muted); }
.quiz__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--c-bg-soft); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 25%; background: var(--c-accent); border-radius: 99px; transition: width .3s ease; }
.quiz__step { display: none; flex: 1; flex-direction: column; }
.quiz__step.is-active { display: flex; }
.quiz__q { font-size: 24px; margin-bottom: 6px; }
.quiz__hint { color: var(--c-muted); font-size: 15px; margin-bottom: 20px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 12px;
  font-weight: 600; color: var(--c-ink); transition: border-color .15s, background-color .15s;
}
.opt span::before { content: ""; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b8c4d6; flex-shrink: 0; background: #fff center / 14px no-repeat; transition: all .15s; }
.opt input[type="radio"] + span::before { border-radius: 50%; }
.opt:hover span { border-color: var(--c-primary); }
.opt input:checked + span { border-color: var(--c-primary); background: var(--c-primary-soft); }
.opt input:checked + span::before { border-color: var(--c-primary); background-color: var(--c-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.opt input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.quiz__nav { display: flex; gap: 12px; margin-top: auto; align-items: center; }
.quiz__back { background: none; border: 0; color: var(--c-muted); font-weight: 700; padding: 10px 6px; }
.quiz__back:hover { color: var(--c-ink); }
.quiz__final { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.quiz__final .field { margin: 0; }
.quiz__final .consent, .quiz__final .btn, .quiz__final .form-status { grid-column: 1 / -1; }
.quiz__gift { display: flex; gap: 12px; align-items: center; background: #fff3e8; color: #8a3a00; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }

/* ---------- Цены ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.tab:hover { border-color: var(--c-primary); }
.tab[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.price-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-panel[hidden] { display: none; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 11px 24px; border-bottom: 1px solid var(--c-line); vertical-align: middle; line-height: 1.4; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 800; color: var(--c-ink); width: 1%; }
.price-table small { color: var(--c-muted); font-size: 14px; margin-left: 4px; }
.price-table small::before { content: "· "; }
.price-table tr:hover td { background: #f7fbfb; }
.price-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 24px; padding: 22px 26px; background: #fff; border-radius: var(--radius); border: 1.5px dashed #a9d6da; }
.price-foot p { margin: 0; font-size: 15px; }
.price-foot b { color: var(--c-ink); }

/* ---------- Ремонт или замена ---------- */

/* ---------- Шаги ---------- */

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: .65fr 1.35fr; gap: 56px; align-items: stretch; }
.why__photo { border-radius: 24px; overflow: hidden; position: relative; min-height: 460px; }
.why__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.why__quote { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(255,255,255,.95); border-radius: 14px; padding: 16px 18px; font-size: 15px; color: var(--c-ink); font-weight: 600; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.why__item { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
.why__item svg { grid-row: span 2; }
.why__item h3 { font-size: 18px; margin: 2px 0 4px; }
.why__item p { font-size: 15px; margin: 0; }

/* ---------- Отзывы (шаблон) ---------- */
/* ---------- Отзывы (блок в index.html пока скрыт) ---------- */
.section__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; }
.link-more { font-weight: 700; font-size: 15px; white-space: nowrap; }
/* Лента отзывов: одна строка, листается по горизонтали (свайп, колесо с Shift, «Все отзывы →») */
.reviews { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; margin: -6px -2px 0; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
.reviews::-webkit-scrollbar { height: 6px; }
.reviews::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }
.reviews:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 16px; }
.reviews > .review { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.review { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 22px; box-shadow: 0 6px 18px rgba(18, 38, 58, .05); display: flex; flex-direction: column; }
.review__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.review__ava { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 800; font-size: 20px; }
.review__name { display: block; color: var(--c-ink); font-size: 16px; }
.review__stars { color: var(--c-accent); letter-spacing: 2px; font-size: 16px; }
.review__text { font-size: 15px; margin: 0 0 12px; flex: 1; }
.review__date { font-size: 13px; color: var(--c-muted); }

/* ---------- Как проходит работа ---------- */
.section--flow { padding-bottom: 0; overflow: hidden; }
.flow { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow__item { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 20px 18px 22px; box-shadow: 0 6px 18px rgba(18, 38, 58, .05); }
.flow__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.flow__num { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 800; font-size: 14px; }
.flow__top svg { width: 46px; height: 46px; flex-shrink: 0; color: var(--c-primary); }
.flow__item:not(:last-child) .flow__top::after {
  content: ""; flex: 1; height: 12px; margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6h57M51 1l6 5-6 5' fill='none' stroke='%23a9b6c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / auto 12px no-repeat;
}
.flow h3 { font-size: 16px; margin-bottom: 6px; }
.flow__free { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.flow p { font-size: 14px; line-height: 1.45; color: var(--c-muted); margin: 0; }

/* баннер про фурнитуру: фото справа плавно уходит в фон, как в макете */
.durability { position: relative; display: flex; align-items: center; min-height: 320px; background: linear-gradient(90deg, #eef6f7 0%, #e6f1f3 100%); }
.durability__text { position: relative; z-index: 2; max-width: 540px; padding: 44px 0; }
.durability h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; margin-bottom: 14px; }
.durability h2 .hl { color: var(--c-primary); }
.durability__lead { font-size: 19px; color: var(--c-ink); margin-bottom: 14px; }
.durability__note { font-size: 15px; font-weight: 700; color: var(--c-primary); margin: 0; }
/* фото без обрезки (по пропорциям кадра), чтобы подпись всегда стояла на светлой створке */
.durability__media { position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1536 / 704; }
.durability__media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 8%, #000 18%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 8%, #000 18%);
}
.durability__hand {
  /* светлая нижняя часть створки: 82% по ширине, 40% по высоте; стрелка смотрит на ножницы */
  position: absolute; left: 82%; top: 40%; margin: 0; white-space: nowrap;
  font-family: "Caveat", cursive; font-weight: 600; font-size: 30px; line-height: 1.02;
  color: var(--c-primary-dark); text-align: center; transform: translate(-50%, -50%) rotate(-8deg);
  text-shadow: 0 0 12px rgba(255, 255, 255, .9);
}
.durability__hand svg { display: block; margin: 4px 0 0 18%; color: var(--c-primary); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; color: var(--c-ink); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7f8c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; font-size: 16px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Финальный CTA и контакты ---------- */
.cta-band {
  display: grid; grid-template-columns: 36% minmax(0, 1fr) auto; align-items: center; gap: 28px;
  background: linear-gradient(90deg, #f6fafb 0%, #eef6f7 100%); border: 1px solid var(--c-line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); padding-right: 36px;
}
.cta-band__media { align-self: stretch; min-height: 200px; }
.cta-band__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}
.cta-band__text { padding: 28px 0; }
.cta-band h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 12px; }
.cta-band h2 .hl { color: var(--c-primary); }
.cta-band p { font-size: 15px; color: var(--c-text); margin: 0; max-width: 460px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 18px; padding: 28px 0; }
.cta-band__phone { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); white-space: nowrap; }
.cta-band__phone svg { color: var(--c-primary); flex-shrink: 0; }
.cta-band__phone b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.cta-band__phone small { display: block; font-size: 14px; color: var(--c-muted); font-weight: 600; }
.cta-band__phone:hover b { color: var(--c-primary); }

/* ---------- Подвал ---------- */
.footer { background: var(--c-deep); color: #b3d3d7; padding: 30px 0 18px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 26px; }
.footer__contacts { display: flex; align-items: center; gap: 14px; }
.footer__nav a { font-weight: 600; white-space: nowrap; }
.footer__tg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #229ed9; color: #fff !important; }
.footer__tg:hover { background: #1b87bb; }
.footer__tg svg { margin-left: -2px; }
.footer .logo { color: #fff; }
.footer .logo__sub { color: #b3d3d7; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d3e8ea; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__phone { font-size: 22px; white-space: nowrap; font-weight: 800; color: #fff !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 16px; font-size: 13px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom-links a { color: #d3e8ea; opacity: .7; }
.footer-bottom-links a:hover { opacity: 1; color: #fff; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(18, 38, 58, .6); }
.modal__dialog { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .2s ease; }
.modal__dialog .form-card { max-width: none; }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--c-bg-soft); display: grid; place-items: center; color: var(--c-ink);
}
.modal__close:hover { background: var(--c-line); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* ---------- Мобильная панель ---------- */
.mobile-bar { display: none; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto;
  display: none; gap: 16px; align-items: center;
  background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
  font-size: 14px;
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; flex: 1; }

/* ---------- Анимация появления ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .btn--shimmer::after { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) {
  .hero__note { display: none; }
  .hero__content { max-width: 660px; }
  /* 7 пунктов меню: уплотняем шапку, чтобы кнопка не переносилась и не вылезала за край */
  .header__inner { gap: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .header__contact { gap: 12px; }
  .header__contact .btn { white-space: nowrap; }
}
@media (max-width: 1320px) {
  .footer__top { column-gap: 28px; }
  .footer__nav { gap: 8px 18px; }
  .footer__nav a { font-size: 14px; }
  .footer__phone { font-size: 19px; }
  /* 8 пунктов меню на узком десктопе */
  .header__inner { gap: 12px; }
  .nav { gap: 11px; }
  .nav a { font-size: 13.5px; }
  .header__phone-icon { display: none; }
  .header__phone b { font-size: 17px; }
}
@media (max-width: 1240px) {
  .hero { padding-bottom: 40px; }
  .hero__content { max-width: 680px; }
  .hero__media { position: relative; right: auto; aspect-ratio: auto; width: auto; height: 400px; margin: 36px 20px 0; border-radius: 20px; overflow: hidden; }
  .hero__media img { -webkit-mask-image: none; mask-image: none; object-position: 72% 45%; }
  .hero__note { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .cta-band { display: block; padding-right: 0; }
  .cta-band__media { min-height: 0; height: 260px; }
  .cta-band__media img { object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .cta-band__text { padding: 8px 28px 0; }
  .cta-band__actions { padding: 20px 28px 28px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__item .flow__top::after { display: none; }
  .durability { display: block; }
  .durability__text { max-width: 680px; padding: 40px 0 28px; }
  .durability__media { position: relative; width: 100%; height: auto; }
  .durability__media img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }

  .header__contact { margin-left: auto; }
}
@media (max-width: 1024px) {
  .reviews > .review { flex-basis: calc((100% - 24px) / 2); }
  .form-card { max-width: 560px; width: 100%; }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .quiz { grid-template-columns: 1fr; }
  .quiz__master { display: none; }
  .why { grid-template-columns: 1fr; }
  .why__photo { aspect-ratio: 16 / 10; min-height: 0; }
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .cta-band { display: block; }
  .cta-band__media { min-height: 0; height: 170px; }
  .cta-band__media img { -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%); mask-image: linear-gradient(180deg, #000 65%, transparent 100%); }
  .cta-band__text { padding: 8px 20px 0; }
  .cta-band__actions { padding: 20px; flex-direction: column; align-items: stretch; }
  .cta-band__phone b { font-size: 20px; }
  .flow { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .flow__item { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 16px; }
  .flow__top { grid-row: span 2; margin: 0; }
  .flow__top { gap: 8px; }
  .flow__top svg { width: 34px; height: 34px; }
  .durability__lead { font-size: 17px; }
  .durability__media { height: 210px; aspect-ratio: auto; }
  .durability__media img { object-position: 28% 50%; }
  .durability__hand { display: none; }
  body { font-size: 16px; padding-bottom: 72px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 28px; }
  .section__lead { font-size: 17px; }
  .header__inner { gap: 12px; }
  .logo__mark { width: 41px; height: 34px; }
  .logo__name { font-size: 17px; }
  .logo__sub { font-size: 11px; }
  .header__contact .btn { display: none; }
  .header__phone b { font-size: 16px; }
  .header__phone small { display: none; }
  .hero { padding: 22px 0 40px; }
  .header__phone-icon { display: none; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero__sub { font-size: 16px; margin-bottom: 20px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .btn--hero { min-height: 56px; padding: 14px 20px; }
  .hero__media { height: 260px; margin: 28px 16px 0; border-radius: 16px; }
  .hero__place { right: 12px; bottom: 12px; padding: 10px 14px; }
  .form-card { padding: 20px 18px; border-radius: 18px; }
  .form-card__title { font-size: 20px; }
  .trust__grid { grid-template-columns: 1fr; gap: 16px; }
  .problems { grid-template-columns: 1fr; }
  .quiz__aside { padding: 28px 20px; }
  .quiz__aside ul { display: none; }
  .quiz__main { padding: 24px 18px; min-height: 0; }
  .quiz__q { font-size: 20px; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__final { grid-template-columns: 1fr; }
  .price-table td { padding: 10px 16px; font-size: 15px; }
  .price-foot { grid-template-columns: 1fr; padding: 18px; }
  .why__grid { grid-template-columns: 1fr; gap: 20px; }
  .reviews { gap: 16px; }
  .reviews > .review { flex-basis: 85%; }
  .why__photo { aspect-ratio: 4 / 5; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-row: auto; }
  .faq { grid-template-columns: 1fr; }
  .faq summary { padding: 16px 48px 16px 18px; font-size: 16px; }
  .faq details > div { padding: 0 18px 16px; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(18,38,58,.08);
  }
  .mobile-bar .btn { min-height: 52px; padding: 10px 12px; font-size: 16px; }
  .cookie { bottom: 80px; left: 10px; right: 10px; gap: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.4; }
  .cookie .btn { min-height: 38px; padding: 8px 14px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .hero__crimea { display: none; }
  .logo__sub { display: none; }
}

/* ---------- Внутренние страницы (политика, согласие, спасибо) ---------- */
.page { padding: 56px 0 80px; min-height: 60vh; }
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }
.legal__date { color: var(--c-muted); font-size: 14px; margin-bottom: 28px; }
.thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks__icon { width: 88px; height: 88px; margin: 0 auto 20px; }
.thanks h1 { font-size: clamp(30px, 4vw, 44px); }
.thanks p { font-size: 18px; }
.thanks__phone { display: inline-block; font-size: 28px; font-weight: 800; color: var(--c-ink); text-decoration: none; margin: 8px 0 28px; }
.thanks__tips { text-align: left; background: var(--c-bg-soft); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 28px; }
.thanks__tips h2 { font-size: 18px; }
.thanks__tips ul { margin: 0; padding-left: 20px; font-size: 16px; }

/* ---------- Telegram ---------- */
.btn--tg { background: #229ed9; color: #fff; }
.btn--tg:hover { background: #1b87bb; }
@media (max-width: 720px) {
  .mobile-bar { grid-template-columns: 1fr 56px 1.3fr; }
  .mobile-bar .btn--tg { padding: 0; }
}
