@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #E6F7FE;
  --surface: #FFFFFF;
  --navy: #252D75;
  --navy-hover: #1C2360;
  --accent: #4F7FD6;
  --accent-soft: #97BCF0;
  --ink: #2B3363;
  --muted: #4A5285;
  --shadow: 0 12px 32px rgba(37, 45, 117, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 96px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 7vw, 54px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 24px;
}

h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
}

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

.ico {
  width: 22px;
  height: 22px;
  flex: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

section[id] {
  scroll-margin-top: 16px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--surface);
}

@media (min-width: 768px) {
  .section {
    padding: 88px 0;
  }
}

/* Header */

.site-header {
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.logo img {
  height: 64px;
  width: auto;
}

@media (min-width: 768px) {
  .logo img {
    height: 84px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.header-phone__text {
  display: none;
}

@media (min-width: 768px) {
  .header-phone__text {
    display: inline;
  }
}

.header-actions .btn--write {
  display: none;
  min-height: 48px;
  width: auto;
  padding: 10px 22px;
}

@media (min-width: 768px) {
  .header-actions .btn--write {
    display: inline-flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--navy);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--navy-hover);
}

.btn--ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--accent-soft);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.btn:focus-visible,
.header-phone:focus-visible,
.logo:focus-visible,
.contact-lines a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1024px) {
  .cta-grid--wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.max-wrap {
  display: flex;
  flex-direction: column;
}

.hint {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
}

.hint:empty {
  display: none;
}

/* Hero */

.hero {
  padding: 24px 0 56px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(151, 188, 240, 0.55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(151, 188, 240, 0.35), transparent 60%),
    linear-gradient(180deg, #F2FBFF 0%, #E6F7FE 100%);
}

.hero__grid {
  display: grid;
  gap: 28px;
  grid-template-areas:
    "text"
    "offer"
    "cta";
}

.hero__text {
  grid-area: text;
}

.offer {
  grid-area: offer;
}

.hero__cta {
  grid-area: cta;
}

.lead {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .hero {
    padding: 48px 0 88px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "text offer"
      "cta offer";
    align-items: center;
    column-gap: 56px;
    row-gap: 40px;
  }

  .hero__cta {
    align-self: start;
    max-width: 560px;
  }
}

.offer {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}

.offer__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.offer__price {
  margin-top: 4px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

.offer__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #DCEBF8;
}

.offer__list .ico {
  color: var(--accent);
  margin-top: 1px;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
}

@media (min-width: 600px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Chain */

.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chain li {
  position: relative;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.chain li + li {
  margin-top: 26px;
}

.chain li + li::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.chain__note {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 900px) {
  .chain {
    flex-direction: row;
    align-items: stretch;
  }

  .chain li {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chain li + li {
    margin-top: 0;
    margin-left: 30px;
  }

  .chain li + li::before {
    top: 50%;
    left: -22px;
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* Water */

.source {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--muted);
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  padding: 10px 16px;
  border: 1.5px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

/* Cards */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--navy);
}

.card__icon .ico {
  width: 28px;
  height: 28px;
}

.card p {
  color: var(--muted);
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contacts */

.contact-lines {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 18px;
}

.contact-lines a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  background: var(--navy);
  color: #E6F7FE;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: #FFFFFF;
}

.site-footer .disclaimer {
  margin-top: 20px;
  opacity: 0.85;
}

/* Mobile bottom bar */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(37, 45, 117, 0.12);
}

.mobile-bar .btn {
  min-height: 52px;
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}
