/* ===== АкваДолина — общие стили ===== */
:root {
  --navy: #0c2437;
  --navy-2: #12344e;
  --teal: #0e8fa3;
  --teal-dark: #0a7081;
  --aqua: #e9f6f9;
  --bg: #f4fafb;
  --white: #feffff;
  --text: #1c2b36;
  --muted: #5b6f7c;
  --line: #dceaef;
  --danger: #c0392b;
  --success: #1e8e5a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(12, 36, 55, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--aqua); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.15); }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}
.logo span { color: var(--teal); }
.logo:hover { text-decoration: none; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }
.nav a.active { background: var(--teal); color: var(--white); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header__phone { color: var(--white); font-weight: 700; white-space: nowrap; }
.header__phones .header__phone:last-child { font-size: 13px; font-weight: 500; opacity: .85; }
.header__phone:hover { color: var(--aqua); text-decoration: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 72px 20px 96px;
}
.hero__eyebrow {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero__lead {
  font-size: 18px;
  color: #c9dde6;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__facts {
  list-style: none;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 24px; color: var(--teal); }
.hero__facts span { font-size: 14px; color: #a9c3cf; }
.hero__art svg { width: 100%; height: auto; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; }
.hero__wave svg { width: 100%; height: 60px; }

/* ===== Секции ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--aqua); }
.section__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.section__sub { color: var(--muted); margin-bottom: 36px; max-width: 46em; }

.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.page-head p { color: #c9dde6; max-width: 46em; }

/* ===== Сетки и карточки ===== */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(12, 36, 55, 0.12); }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--aqua);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }

.tag {
  display: inline-block;
  background: var(--aqua);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card--product .link-arrow,
.link-arrow {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}
.link-arrow::after { content: " →"; }

.card--catalog .price {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
}

/* ===== Фильтры каталога ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ===== Шаги ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}
.steps__item h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.steps__item p { color: var(--muted); font-size: 14px; }

/* ===== Услуги: виды работ ===== */
.service-list { display: grid; gap: 18px; }
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.service__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.service__head h3 { color: var(--navy); font-size: 20px; }
.service__price { color: var(--teal-dark); font-weight: 800; white-space: nowrap; }
.service ul { padding-left: 20px; color: var(--muted); }
.service li { margin-bottom: 6px; }

/* ===== CTA ===== */
.cta { background: var(--teal-dark); color: var(--white); padding: 56px 0; }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta p { color: #d3ecf1; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Контакты ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-item { margin-bottom: 26px; }
.contact-item h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.contact-item p { color: var(--muted); }
.contact-link { font-size: 20px; font-weight: 800; color: var(--teal-dark); }
.contact-item--map iframe {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contacts__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  scroll-margin-top: 90px;
}
.contacts__form h2 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.form-hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 163, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; margin-top: 5px; }

.form-status { margin-top: 14px; font-weight: 600; font-size: 15px; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ===== Подвал ===== */
.footer { background: var(--navy); color: #b9cfd9; margin-top: auto; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 30px;
}
.footer .logo--footer { display: inline-block; margin-bottom: 10px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #b9cfd9; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
}

/* ===== 404 ===== */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 80px 20px;
}
.notfound h1 { font-size: 84px; color: var(--teal); font-weight: 800; }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding: 52px 20px 80px; }
  .hero__art { display: none; }
}

@media (max-width: 768px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .header__contacts .btn { display: none; }

  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .header__phone { font-size: 14px; }
  .header__phones .header__phone:last-child { font-size: 12px; }
  .hero__facts { gap: 22px; }
  .section { padding: 52px 0; }
  .cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Калькулятор подбора системы ===== */
.calc { max-width: 760px; margin: 0 auto; }

.calc__progress {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.calc__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.calc__dot.current { border-color: var(--teal); color: var(--teal-dark); }
.calc__dot.done { background: var(--teal); border-color: var(--teal); color: var(--white); }

.calc__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.calc__card h2 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.calc__hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.calc__options { display: grid; gap: 12px; margin-bottom: 8px; }
.calc-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.calc-option:hover { border-color: var(--teal); }
.calc-option:has(input:checked) { border-color: var(--teal); background: var(--aqua); }
.calc-option input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}
.calc-option__body { display: flex; flex-direction: column; gap: 3px; }
.calc-option__label { font-weight: 700; color: var(--navy); }
.calc-option__desc { font-size: 14px; color: var(--muted); }

.calc__error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 10px 0; }

.calc__nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.calc__nav .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.calc__nav .btn:disabled:hover { transform: none; }

.calc__result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.calc__result h2 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.calc__list { list-style: none; display: grid; gap: 14px; margin: 20px 0; }
.calc__item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 16px 18px;
}
.calc__item strong { color: var(--navy); display: block; margin-bottom: 2px; }
.calc__item .calc__price { color: var(--teal-dark); font-weight: 800; }
.calc__item p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.calc__note {
  background: var(--aqua);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 24px;
}
.calc__actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .calc__card, .calc__result { padding: 22px; }
  .calc__nav { flex-direction: column-reverse; }
  .calc__nav .btn { width: 100%; }
}

/* ===== Карточки товаров с фото ===== */
.card--photo { display: flex; flex-direction: column; }
.card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.card--photo .price { margin-top: auto; padding-top: 12px; }

/* ===== Примечания в карточках каталога ===== */
.card__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
