/* ===== SunShield — лендінг сонцезахисної плівки ===== */
/* Mobile-first. Палітра: прохолодний синьо-блакитний + сонячний CTA. */

:root {
  --bg:        #0b1f33;        /* глибокий синій фон */
  --bg-2:      #123a5c;        /* світліший синій */
  --surface:   #ffffff;
  --surface-2: #f1f6fb;
  --ink:       #0b1f33;        /* основний текст на світлому */
  --ink-soft:  #4a5b6b;
  --on-dark:   #eaf3fb;
  --on-dark-soft:#a9c2d8;
  --accent:    #ff8a3d;        /* сонячний помаранчевий CTA */
  --accent-d:  #f2731a;
  --silver:    #cfe0ef;        /* дзеркально-сріблястий */
  --line:      #d7e3ef;
  --radius:    16px;
  --shadow:    0 10px 30px rgba(11,31,51,.12);
  --shadow-lg: 0 20px 50px rgba(11,31,51,.20);
  --maxw:      1180px;
  --gap:       clamp(16px, 4vw, 28px);
  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 32px);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff;
  box-shadow: 0 8px 22px rgba(242,115,26,.38);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,115,26,.5); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ===== Секції ===== */
.section { padding-block: clamp(48px, 9vw, 96px); }
.section:nth-of-type(even) { background: var(--surface); }
.section__title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 .4em;
  letter-spacing: -.02em;
}
.section__lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.2em;
  font-size: 1.08rem;
}
.accent { color: var(--accent); }

/* ===== Сітки/картки ===== */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: .2em 0 .35em; font-size: 1.18rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card__ico { font-size: 2rem; display: block; }
.card__img { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 12px; object-fit: cover; }

/* ===== HERO (слайдер + текст поверх) ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 82vh, 760px);
  color: var(--on-dark);
  background: var(--bg); /* fallback до завантаження фото */
  overflow: hidden;
}
.hero__viewport { position: absolute; inset: 0; overflow: hidden; }
.hero__track {
  display: flex; height: 100%; width: 100%;
  transition: transform .9s cubic-bezier(.65, 0, .35, 1); /* плавний ease-in-out */
  will-change: transform;
}
.hero__slide {
  flex: 0 0 100%; height: 100%;
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,19,31,.92) 0%, rgba(8,19,31,.6) 55%, rgba(8,19,31,.25) 100%),
    linear-gradient(180deg, rgba(8,19,31,.3) 0%, rgba(8,19,31,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 10vw, 96px); }
.hero__text { max-width: 700px; }
.hero__brand { display: inline-block; font-weight: 700; letter-spacing: .02em; color: var(--silver); margin-bottom: 14px; }
.hero__title {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.1; margin: 0 0 .35em; letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__subtitle { color: var(--on-dark); font-size: 1.12rem; max-width: 540px; margin: 0 0 1.4em; opacity: .92; }
.hero__badges {
  list-style: none; padding: 0; margin: 0 0 1.6em;
  display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 600; font-size: .96rem;
}

/* офер: зліва ціна за м² зі знижкою, справа кнопка */
.hero__offer {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 16px 20px; border-radius: 16px;
  background: rgba(8, 19, 31, .5); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__price { display: grid; gap: 4px; }
.hero__price-label {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft);
}
.hero__price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero__price-old { color: var(--on-dark-soft); font-size: 1.1rem; }
.hero__price-new { color: #fff; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.hero__price-badge {
  background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem;
  padding: 3px 9px; border-radius: 999px; align-self: center;
}
.hero__cta { text-align: center; white-space: nowrap; }

/* від планшета — зліва ціна, справа кнопка в один рядок */
@media (min-width: 561px) {
  .hero__offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
}

/* стрілки */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; display: none; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero__arrow:hover { background: rgba(255,255,255,.32); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

/* крапки */
.hero__dots {
  position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero__dot {
  width: 11px; height: 11px; border-radius: 50%; padding: 0;
  border: 2px solid rgba(255,255,255,.85); background: transparent; cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.hero__dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }

/* ===== Рішення / Демо ===== */
.solution__inner { display: grid; gap: 32px; align-items: center; }
.solution__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: 1.2em 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8rem;
  display: grid; place-items: center; font-weight: 700;
}
/* інтерактивне порівняння «до/після» */
.ba {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  cursor: ew-resize; touch-action: pan-y; user-select: none;
}
.ba__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.ba__img--before { will-change: clip-path; } /* верхній шар, обрізається JS-ом */
.ba__label {
  position: absolute; top: 14px; z-index: 3; pointer-events: none;
  padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff;
}
.ba__label--before { left: 14px; background: rgba(11, 31, 51, .75); }
.ba__label--after { right: 14px; background: var(--accent); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2;
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff;
  background: var(--accent); color: #fff; cursor: ew-resize;
  display: grid; place-items: center; pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.ba__handle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.demo__hint { text-align: center; color: var(--ink-soft); margin: 14px 0 0; font-size: .95rem; }

/* ===== Калькулятор ===== */
.calc__box {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--on-dark);
  border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: clamp(24px, 5vw, 40px);
  display: grid; gap: 28px; max-width: 860px; margin-inline: auto;
}
.calc__form { display: grid; gap: 18px; }
/* наочна схема: поле «Ширина» над вікном, «Висота» — зліва від нього */
.calc__diagram {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px 14px;
  align-items: center;
}
.calc__field { display: grid; gap: 6px; }
.calc__field label { font-weight: 600; color: var(--on-dark-soft); font-size: .9rem; white-space: nowrap; }
.calc__field input {
  width: 100%; padding: 12px 14px; font-size: 1.05rem; border-radius: 12px;
  border: 1px solid rgba(207, 224, 239, .3); background: rgba(255, 255, 255, .06); color: #fff;
}
.calc__field input:focus { outline: 2px solid var(--accent); }
.calc__field--width { grid-column: 2; grid-row: 1; justify-items: center; }
.calc__field--width input { max-width: 170px; text-align: center; }
.calc__field--height { grid-column: 1; grid-row: 2; }
.calc__field--height input { max-width: 120px; }
.calc__window { grid-column: 2; grid-row: 2; }
.calc__window svg { display: block; width: 100%; height: auto; max-width: 260px; margin-inline: auto; }
.calc__field--count { max-width: 200px; }
.calc__output { display: grid; align-content: center; }
.calc__error { color: #ffd2b3; font-weight: 600; margin: 0; }
.calc__result { display: grid; gap: 10px; text-align: center; }
.calc__area { font-size: 1.1rem; margin: 0; color: var(--on-dark-soft); }
.calc__price { margin: 0; display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.calc__old { color: var(--on-dark-soft); font-size: 1.2rem; }
.calc__new { color: var(--accent); font-size: 2.4rem; font-weight: 800; }
.calc__note { color: var(--on-dark-soft); margin: 0 0 8px; font-size: .92rem; }
.calc__min { color: #ffd2b3; margin: 0 0 10px; font-size: .88rem; font-weight: 600; }

/* ===== Кроки ===== */
.steps__list { list-style: none; padding: 0; counter-reset: none; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px;
}

/* ===== Характеристики ===== */
.specs__list {
  max-width: 760px; margin: 0 auto; display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.specs__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.specs__list > div:first-child { border-top: 0; }
.specs__list dt { font-weight: 700; margin: 0; }
.specs__list dd { margin: 0; color: var(--ink-soft); text-align: right; }

/* ===== Відгуки ===== */
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__head img { border-radius: 50%; object-fit: cover; }
.review__head div { display: flex; flex-direction: column; line-height: 1.2; }
.review__head span { color: var(--ink-soft); font-size: .85rem; }
.stars { color: #ffb800; margin: 0 0 6px; letter-spacing: 2px; }

/* ===== FAQ ===== */
.faq__list { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px; box-shadow: var(--shadow);
}
.faq__item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 16px; color: var(--ink-soft); }

/* ===== Форма заявки ===== */
.section.lead { background:
  radial-gradient(120% 90% at 20% 0%, rgba(255,138,61,.18), transparent 55%),
  linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%); color: var(--on-dark); }
.lead .section__title { color: var(--on-dark); }
.lead .section__lead { color: var(--on-dark-soft); }
/* самарі замовлення (розмір/кількість/площа/ціна) */
.order-summary {
  max-width: 460px; margin: 0 auto 18px; display: grid; gap: 9px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.order-summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--on-dark-soft); font-size: .98rem; }
.order-summary__row b { color: #fff; font-weight: 700; }
.order-summary__row--total { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 11px; margin-top: 2px; align-items: baseline; }
.order-summary__row--total b { color: var(--accent); font-size: 1.4rem; }
.order-summary__old { color: var(--on-dark-soft); text-decoration: line-through; font-weight: 500; font-size: .85rem; }
.order-summary__min { color: #ffd2b3; font-size: .82rem; text-align: center; margin: 2px 0 0; }

.lead-form { max-width: 460px; margin-inline: auto; display: grid; gap: 14px; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  padding: 15px 18px; font-size: 1.05rem; border-radius: 12px;
  border: 1px solid rgba(207,224,239,.3); background: rgba(255,255,255,.95); color: var(--ink);
}
.form-status { text-align: center; margin: 4px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: #ffd2b3; }
.form-status.is-ok { color: #9be8b0; }

/* ===== Футер ===== */
.footer { background: #07131f; color: var(--on-dark-soft); padding-block: 40px; }
.footer__inner { display: grid; gap: 18px; text-align: center; }
.footer__brand { font-weight: 700; color: var(--silver); font-size: 1.1rem; }
.footer__contacts { display: grid; gap: 6px; }
.footer__contacts a { text-decoration: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: .9rem; }
.footer__links a { color: var(--on-dark-soft); }

/* ===== Sticky CTA (тільки мобільний): білий бар на всю ширину ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(11, 31, 51, .14);
  transition: transform .3s ease, opacity .3s ease;
}
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.sticky-cta__timer { display: grid; line-height: 1.15; }
.sticky-cta__label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.sticky-cta__time {
  font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums;
}
.sticky-cta__btn { padding: 12px 18px; font-size: .98rem; white-space: nowrap; }

/* ============ ПЛАНШЕТ ============ */
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__arrow { display: grid; }
  .solution__inner { grid-template-columns: 1fr 1fr; }
  .calc__box { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; text-align: left; align-items: center; }
  .footer__contacts { justify-items: start; }
  .footer__links { justify-content: flex-end; }
  .sticky-cta { display: none; } /* на ширших екранах CTA в секціях достатньо */
}

/* ============ ДЕСКТОП ============ */
@media (min-width: 1280px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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

/* ===== Юридичні сторінки (policy / agreement) ===== */
.legal-top { background: #07131f; color: var(--on-dark); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.legal-brand { font-weight: 700; color: var(--silver); text-decoration: none; }
.legal-back { color: var(--on-dark-soft); text-decoration: none; font-size: .95rem; }
.legal-back:hover { color: #fff; }
.legal { max-width: 820px; padding-block: clamp(32px, 6vw, 64px); }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .3em; letter-spacing: -.02em; }
.legal__updated { color: var(--ink-soft); margin: 0 0 2em; font-size: .95rem; }
.legal h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.3em; margin: .4em 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--accent-d); }
.legal__note {
  background: var(--surface); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 8px; margin: 1.2em 0; box-shadow: var(--shadow);
}
.legal__ph { color: var(--accent-d); font-weight: 600; } /* плейсхолдери реквізитів */

/* ===== Сторінка подяки ===== */
.thanks { max-width: 620px; text-align: center; padding-block: clamp(48px, 9vw, 90px); }
.thanks__icon {
  width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(242, 115, 26, .4);
}
.thanks h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 .3em; letter-spacing: -.02em; }
.thanks__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0 auto 1.8em; max-width: 480px; }
.thanks-summary {
  max-width: 440px; margin: 0 auto 1.8em; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.thanks-summary__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 6px; }
.thanks-summary p { margin: 0; color: var(--ink); font-weight: 600; }
.thanks__steps { text-align: left; max-width: 430px; margin: 0 auto 2em; padding-left: 1.2em; color: var(--ink); }
.thanks__steps li { margin-bottom: .6em; line-height: 1.6; }
.thanks__contact { color: var(--ink-soft); margin-top: 1.4em; font-size: .95rem; }
.thanks__contact a { color: var(--accent-d); }
