/* ============================================================
   Насадка на кран — лендинг. Світла тема.
   ============================================================ */

:root {
  --accent:       #0ea5e9;
  --accent-dark:  #0284c7;
  --accent-soft:  #e0f2fe;
  --cta:          #ff7a45;
  --cta-dark:     #f2652c;
  --ink:          #0f2436;
  --ink-soft:     #56708a;
  --line:         #e3ecf4;
  --bg:           #ffffff;
  --bg-soft:      #f3f9fd;
  --radius:       18px;
  --shadow:       0 14px 40px rgba(15, 63, 100, .08);
  --shadow-hover: 0 20px 50px rgba(15, 63, 100, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px rgba(255, 122, 69, .3);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 122, 69, .38); }
.btn:active { transform: translateY(0); }

.btn--sm  { padding: 11px 20px; font-size: 14px; }
.btn--lg  { padding: 18px 40px; font-size: 17px; }
.btn--block { width: 100%; }

.btn--outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn--outline:hover { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(14, 165, 233, .28); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.logo__icon svg { width: 21px; height: 21px; }
.logo__text { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo__text b { color: var(--accent-dark); font-weight: 800; }
.logo--light .logo__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.logo--light .logo__text b { color: #7dd3fc; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header__contacts { margin-left: auto; text-align: right; line-height: 1.3; }
.header__phone { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; }
.header__work { display: block; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Головний екран ---------- */
.hero {
  background:
    radial-gradient(1000px 520px at 88% -8%, #d8f0fd 0%, rgba(216, 240, 253, 0) 62%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero__title span { color: var(--accent-dark); }
.hero__text { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin-bottom: 22px; }

.hero__list { display: grid; gap: 10px; margin-bottom: 26px; }
.hero__list li { position: relative; padding-left: 32px; font-size: 15.5px; }
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.price__old { font-size: 20px; color: var(--ink-soft); text-decoration: line-through; }
.price__new { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink); }
.price__new span { font-size: 22px; font-weight: 700; }
.price__label {
  font-size: 13px; font-weight: 700;
  color: #fff; background: var(--cta);
  border-radius: 999px; padding: 6px 14px;
}

.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__note { font-size: 13.5px; color: var(--ink-soft); max-width: 190px; line-height: 1.35; }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero__sticker {
  position: absolute;
  right: -6px; bottom: 26px;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, .35);
}
.hero__sticker b { display: block; font-family: 'Montserrat', sans-serif; font-size: 24px; line-height: 1; }
.hero__sticker span { font-size: 12px; opacity: .9; }

/* ---------- Секції ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__title {
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section__title--left { text-align: left; }
.section__subtitle {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* ---------- Переваги ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card__text { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Режими ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mode__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 8px;
}
.mode__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.mode__text { color: var(--ink-soft); font-size: 15px; }

/* ---------- Характеристики ---------- */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.specs__media img {
  width: 100%;
  border-radius: 24px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.specs__table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; }
.specs__table td { padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.specs__table td:first-child { color: var(--ink-soft); }
.specs__table td:last-child { text-align: right; font-weight: 600; }

/* ---------- Кроки ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow);
}
.step__num {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 22px rgba(14, 165, 233, .3);
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Галерея (кільцева, з автопрокруткою) ---------- */
.gallery { position: relative; }
.gallery__viewport { overflow: hidden; padding: 4px 2px 10px; }
.gallery__track {
  display: flex;
  gap: 20px;
  transition: transform .55s cubic-bezier(.4, .01, .2, 1);
  will-change: transform;
}
.gallery__track.is-instant { transition: none; }

.gallery__slide {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 63, 100, .07);
}
.gallery__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.gallery__caption {
  display: block;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.gallery__nav {
  position: absolute;
  top: calc(50% - 34px);
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 63, 100, .12);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  z-index: 2;
}
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery__nav:active { transform: translateY(-50%) scale(.94); }
.gallery__nav--prev { left: -20px; }
.gallery__nav--next { right: -20px; }

.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.gallery__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c6dbea;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.gallery__dot.is-active { width: 26px; background: var(--accent); }

/* ---------- Відгуки ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 63, 100, .06);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.review__avatar--1 { background: #3b82f6; }
.review__avatar--2 { background: #0ea5e9; }
.review__avatar--3 { background: #8b5cf6; }
.review__avatar--4 { background: #14b8a6; }
.review__avatar--5 { background: #f97316; }
.review__avatar--6 { background: #64748b; }
.review__name { font-weight: 600; font-size: 15.5px; }
.review__meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft); }
.review__globe { width: 12px; height: 12px; flex: none; }
.review__stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; line-height: 1; }
.review__text { font-size: 14.8px; color: #274c69; }
.review__actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.review__like { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); }
.review__like svg { width: 15px; height: 15px; }

/* ---------- Форма замовлення ---------- */
.order {
  padding: 76px 0;
  background:
    radial-gradient(760px 420px at 12% 0%, #dff2fe 0%, rgba(223, 242, 254, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fd 100%);
}
.order__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.order__title { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.order__text { color: var(--ink-soft); margin-bottom: 22px; max-width: 470px; }
.order__benefits { display: grid; gap: 10px; margin-bottom: 24px; }
.order__benefits li { position: relative; padding-left: 32px; font-size: 15.5px; }
.order__benefits li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.order__price { display: flex; align-items: baseline; gap: 12px; }
.order__price-old { color: var(--ink-soft); text-decoration: line-through; font-size: 18px; }
.order__price-new { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 34px; color: var(--cta-dark); }

.order__figure { margin: 28px 0 0; }
.order__figure img {
  width: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.order__figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__field { margin-bottom: 18px; }
.form__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fbfdff;
  border: 1.6px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form__input::placeholder { color: #9db2c6; }
.form__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
}
.form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356708a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px;
  cursor: pointer;
}
.form__input.is-invalid { border-color: #e5484d; background: #fff6f6; }
.form__input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.form__error {
  display: none;
  font-size: 13px;
  color: #d92d33;
  margin-top: 6px;
}
.form__error.is-visible { display: block; }
.form__policy { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }
.form__policy a { color: var(--accent-dark); text-decoration: underline; }
.form__success {
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  background: #e8f8ef;
  color: #0f7a44;
  font-weight: 600;
}

/* ---------- Підвал ---------- */
.footer { background: #0f2436; color: #c7d7e5; padding: 52px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer__title { font-size: 16px; color: #fff; margin-bottom: 12px; }
.footer__text { font-size: 14.5px; line-height: 1.7; }
.footer__text a:hover { color: #7dd3fc; }
.footer__links { display: grid; gap: 8px; font-size: 14.5px; }
.footer__links a:hover { color: #7dd3fc; }
.footer .logo { margin-bottom: 14px; }
.footer .logo__text { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13px;
  color: #8fa8bd;
  text-align: center;
}

/* ---------- Мобільна панель ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar__call {
  flex: 0 0 52px;
  height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.mobile-bar__call svg { width: 22px; height: 22px; }
.mobile-bar__btn {
  flex: 1;
  display: grid; place-items: center;
  height: 52px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow: 0 10px 22px rgba(255, 122, 69, .3);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; max-width: 460px; margin: 0 auto; }
  .hero__text { max-width: none; }
  .specs { grid-template-columns: 1fr; gap: 32px; }
  .order__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .gallery__slide { flex: 0 0 calc((100% - 20px) / 2); }
  .gallery__nav--prev { left: 4px; }
  .gallery__nav--next { right: 4px; }

  .reviews { grid-template-columns: repeat(2, 1fr); }
  .order__figure { max-width: 520px; }
}

@media (max-width: 767px) {
  body { padding-bottom: 76px; }

  .header__contacts { display: none; }
  .header__inner { gap: 12px; }

  .hero { padding: 32px 0 44px; }
  .section { padding: 48px 0; }
  .order { padding: 48px 0; }

  .section__subtitle { margin-bottom: 30px; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 16px; display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; }
  .card__media { margin-bottom: 0; grid-row: span 2; aspect-ratio: 1; }
  .card__title { margin-top: 2px; font-size: 17px; }

  .modes { grid-template-columns: 1fr; gap: 14px; }
  .mode { padding: 22px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; padding: 18px; align-items: center; }
  .step__num { margin: 0; grid-row: span 2; }
  .step__text { grid-column: 2; }

  .price__new { font-size: 38px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__note { max-width: none; text-align: center; width: 100%; }
  .hero__sticker { width: 76px; height: 76px; right: 4px; bottom: 12px; }

  .form { padding: 22px 18px; border-radius: 18px; }
  .specs__table td { font-size: 14.5px; }

  .gallery__track { gap: 14px; }
  .gallery__slide { flex: 0 0 100%; }
  .gallery__nav { width: 40px; height: 40px; }
  .gallery__nav svg { width: 17px; height: 17px; }
  .gallery__caption { padding: 12px 14px; font-size: 13.5px; }

  .reviews { grid-template-columns: 1fr; gap: 14px; }
  .review { padding: 16px; }
  .review__text { font-size: 14.5px; }

  .order__figure { margin-top: 22px; }

  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer { padding-bottom: 90px; }

  .mobile-bar { display: flex; }
}

@media (max-width: 380px) {
  .logo__text { font-size: 18px; }
  .btn--sm { padding: 10px 14px; font-size: 13px; }
  .card { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 16 / 10; margin-bottom: 12px; }
}
