:root {
  --teal: #2BB8A5;
  --teal-dark: #0E4D45;
  --teal-deep: #1F9C8A;
  --orange: #FF8A1F;
  --mint: #EAF8F4;
  --white: #ffffff;
  --gray: #5b6b68;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--teal-dark);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid #d7ece7;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--teal-dark); }
.logo img { width: 42px; height: 42px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--teal-dark); font-weight: 600; font-size: 15px; }
.phone { font-weight: 800; text-decoration: none; color: var(--teal-dark); }

.region-select {
  border: 2px solid var(--teal); border-radius: 12px; padding: 8px 12px;
  font: inherit; font-weight: 600; color: var(--teal-dark); background: var(--white);
}

/* ---------- герой ---------- */
.hero { background: var(--mint); padding: 48px 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 18px; color: var(--gray); margin: 0 0 24px; }
.hero-mascot { width: 100%; max-width: 360px; justify-self: center; }

.btn {
  display: inline-block; border: none; border-radius: 14px; padding: 14px 22px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--orange); color: var(--white);
}
.btn:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); }

/* ---------- блоки ---------- */
section { padding: 56px 0; }
section h2 { font-size: 30px; margin: 0 0 8px; }
section .lead { color: var(--gray); margin: 0 0 28px; font-size: 17px; }

/* ---------- выбор региона ---------- */
.regions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.region-list { display: flex; flex-direction: column; gap: 10px; }
.region-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 2px solid #d7ece7;
  background: var(--white); cursor: pointer; font: inherit; text-align: left; color: var(--teal-dark);
}
.region-item:hover, .region-item.is-hover { border-color: var(--teal); background: var(--mint); }
.region-item.is-active { border-color: var(--teal-dark); background: var(--mint); font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #e9eceb; color: var(--gray); }
.badge.live { background: var(--teal); color: var(--white); }

.map-wrap { border-radius: var(--radius); background: var(--mint); padding: 12px; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-region { fill: #bfe6de; stroke: var(--teal-dark); stroke-width: 2; cursor: pointer; transition: fill .2s; }
.map-region:hover, .map-region.is-hover { fill: var(--teal); }
.map-region.is-active { fill: var(--orange); }
.map-region.is-soon { fill: #d9ecE8; }
.map-label { font-size: 15px; font-weight: 700; fill: var(--teal-dark); pointer-events: none; }
.map-tip { margin-top: 10px; font-size: 15px; color: var(--gray); min-height: 22px; }

/* ---------- услуги ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 2px solid #d7ece7; border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.card .icon { font-size: 34px; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--gray); font-size: 15px; }
.card .price { font-weight: 800; color: var(--orange); }
.card a { margin-top: auto; font-weight: 700; text-decoration: none; }

/* ---------- калькулятор ---------- */
.calc { background: var(--mint); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.calc .group { margin-bottom: 16px; }
.calc label.title { display: block; font-weight: 700; margin-bottom: 8px; }
.calc select, .calc input[type="number"] {
  width: 100%; padding: 12px; font: inherit; border-radius: 12px; border: 2px solid #bfe6de; background: var(--white); color: var(--teal-dark);
}
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto; padding: 10px 12px; border-radius: 12px; border: 2px solid #bfe6de;
  background: var(--white); font: inherit; font-weight: 600; cursor: pointer; color: var(--teal-dark);
}
.seg button.is-on { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
.result { background: var(--white); border-radius: 18px; padding: 22px; }
.result .total { font-size: 34px; font-weight: 800; color: var(--orange); margin: 6px 0 12px; }
.result ul { padding-left: 18px; margin: 8px 0; color: var(--gray); font-size: 15px; }
.result .note { font-size: 13px; color: var(--gray); margin-top: 12px; }
.result .btn { width: 100%; text-align: center; margin-top: 12px; }

/* ---------- контакты и футер ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact {
  border-radius: var(--radius); padding: 20px; background: var(--mint);
}
.contact b { display: block; margin-bottom: 6px; }
.footer { background: var(--teal-dark); color: #d6efe9; padding: 28px 0; font-size: 14px; }
.footer a { color: var(--white); }

/* ---------- слайдер ---------- */
.slider-section { padding: 40px 0 8px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; background: var(--mint); aspect-ratio: 16 / 7; }
.slides { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; display: flex; align-items: center; justify-content: center; }
.slide.is-current { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--white); padding: 8px 16px; border-radius: 12px; font-weight: 700; color: var(--teal-dark);
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--white); color: var(--teal-dark); font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.dots { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #bfe6de; cursor: pointer; padding: 0; }
.dot.is-on { background: var(--teal-dark); }

/* ---------- мобильная версия ---------- */
@media (max-width: 860px) {
  .hero .container, .regions, .calc { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .nav { display: none; }
  .header .container { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .hero-mascot { max-width: 260px; }
}
