:root {
  /* Стиль в духе Госуслуг: спокойный синий, светлый фон, чёткие границы */
  --primary: #5b9fd4;
  --primary-hover: #4a8fc4;
  --primary-light: #eef6fc;
  --accent: #e11432;
  --text: #0b1f35;
  --text-muted: #5d6570;
  --border: #d9dde3;
  --bg: #f5f7fa;
  --bg-alt: #eef2f6;
  --white: #ffffff;
  --orange: var(--primary);
  --orange-dark: var(--primary-hover);
  --navy: var(--text);
  --navy-dark: var(--text);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(11, 31, 53, 0.08);
  --shadow-lg: 0 4px 16px rgba(11, 31, 53, 0.1);
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.text-accent {
  color: var(--primary);
}

/* Верхняя информационная полоса */
.gov-strip {
  background: var(--primary-light);
  border-bottom: 1px solid #d4e8f5;
  font-size: 13px;
  color: var(--text);
}

.gov-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 8px 0;
}

.gov-strip span::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 0 rgba(74, 143, 196, 0.2);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn--call {
  white-space: nowrap;
}

a[href^="tel:"] {
  -webkit-tap-highlight-color: transparent;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #7eb8e8 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
}

.logo__city {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav a:hover {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 45%, var(--white) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge--accent {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-dark);
}

.hero__lead {
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--text-muted);
}

.hero__list {
  margin: 0 0 28px;
  padding-left: 20px;
}

.hero__list li {
  margin-bottom: 8px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 18px;
  color: var(--navy);
}

.trust-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
}

.hero__photo-wrap {
  position: relative;
}

.hero__photo {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__card {
  position: absolute;
  bottom: 24px;
  left: -16px;
  right: 24px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.hero__card p {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero__card-phone {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy-dark);
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: #b8d9f0;
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.service-card__price {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.service-card__phone {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.cta-block {
  margin-top: 48px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-block--center {
  margin-top: 40px;
}

.cta-block p {
  margin: 0 0 20px;
  font-size: 18px;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Calculator */
.calc {
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.calc__progress {
  margin-bottom: 28px;
}

.calc__progress-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.calc__progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s;
}

.calc__step-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.calc__step {
  display: none;
}

.calc__step--active {
  display: block;
}

.calc__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.calc__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.calc__head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--navy);
}

.calc__head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.calc__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  border: 2px solid transparent;
}

.option:hover {
  background: var(--primary-light);
}

.option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.calc__result {
  margin-bottom: 24px;
}

.calc__estimate {
  font-size: 18px;
  margin: 0 0 12px;
}

.calc__form,
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc__form input,
.contact__form input,
.contact__form textarea {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.15s;
}

.calc__form input:focus,
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 159, 212, 0.2);
}

.checkbox-label {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  align-items: flex-start;
}

.checkbox-label input {
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.calc__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* Reviews — Avito style */
.reviews-avito-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 auto 32px;
  padding: 12px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
}

.reviews-avito-badge__stars {
  color: #ffb021;
  letter-spacing: 1px;
}

.reviews-avito-badge strong {
  font-size: 20px;
  color: var(--navy);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.review-card--avito {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.review-card__stars {
  color: #ffb021;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1;
}

.review-card__deal {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #8b8b8b;
}

.review-card__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.review-card__footer strong {
  font-size: 15px;
  color: var(--navy);
}

.review-card__footer time {
  font-size: 13px;
  color: #8b8b8b;
  white-space: nowrap;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.about__photo {
  position: relative;
}

.about__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 14px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.about .section__title {
  text-align: left;
}

.about__text p {
  margin: 0 0 16px;
}

.about__districts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 12px;
  padding: 0;
}

.about__districts li {
  padding: 8px 14px;
  background: var(--primary-light);
  border: 1px solid #d4e8f5;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.about__note {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.advantage-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.advantage-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.advantage-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  background: linear-gradient(160deg, #4a8fc4 0%, #6aadd6 100%);
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.contact__info p {
  color: rgba(255, 255, 255, 0.85);
}

.contact__phone {
  display: inline-block;
  margin: 20px 0;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact__phone:hover {
  color: #d6e4ff;
}

.contact__city {
  font-weight: 600;
}

.contact__form {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--text);
}

/* Footer */
.footer {
  padding: 32px 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.footer__nav a:hover {
  color: #9ec5ff;
}

.footer__phone {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.footer__legal {
  width: 100%;
  margin: 0;
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
}

.footer__meta {
  width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.footer__domain {
  width: 100%;
  margin: 4px 0 0;
  font-size: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal a {
  color: inherit;
}

/* Float phone */
.float-phone {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(91, 159, 212, 0.45);
  border: 2px solid var(--white);
  transition: background 0.15s;
}

.float-phone:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  transform: translateY(0);
  transition: transform 0.3s;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner a {
  color: #9ec5ff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__box {
  position: relative;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal__box h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__card {
    left: 0;
    right: 0;
  }

  .about__photo {
    max-width: 360px;
    margin-inline: auto;
  }

  .about .section__title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .header__phone {
    display: none;
  }

  .header__actions .btn--primary.btn--sm {
    display: none;
  }

  .header__actions .btn--call {
    display: inline-flex;
  }

  .section {
    padding: 48px 0;
  }

  .calc {
    padding: 20px;
  }
}
