/* =========================================================
   CLEANHOME WA — MAIN STYLE
   Стиль: светлый, минималистичный, SEO-friendly
   ========================================================= */

/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
  background-color: #f9fafb;
  line-height: 1.6;
}

/* ---------- LAYOUT ---------- */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.center {
  text-align: center;
}

/* ---------- HEADER ---------- */
header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a3d62;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #0a84ff;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  background: url("assets/cleaning-hero.webp") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.hero-benefits {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.95rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn--primary {
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 4px 10px rgba(10, 132, 255, 0.3);
}

.btn--primary:hover {
  background: #006adf;
}

.btn--outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn--outline:hover {
  background: #fff;
  color: #0a84ff;
}

/* ---------- AREAS ---------- */
.areas {
  background-color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.areas h2 {
  font-size: 1.8rem;
  color: #0a3d62;
  margin-bottom: 1rem;
}

.areas p {
  color: #555;
  margin-bottom: 1.5rem;
}

.cities-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.cities-list a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: #e9f4ff;
  color: #0a3d62;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.cities-list a:hover {
  background: #0a84ff;
  color: #fff;
}

/* ---------- WHY CHOOSE US ---------- */
.why {
  padding: 4rem 1rem;
  background: #f3f7fb;
}

.why h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.9rem;
  color: #0a3d62;
}

.features {
  justify-content: center;
}

.feature {
  flex: 1 1 220px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

/* ---------- SERVICES ---------- */
.services {
  background: #fff;
  padding: 4rem 1rem;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0a3d62;
}

.services-grid {
  justify-content: center;
}

.service-card {
  flex: 1 1 300px;
  background: #f8fbff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  color: #0a84ff;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ---------- PROCESS ---------- */
.process {
  background: #f3f7fb;
  padding: 4rem 1rem;
}

.process h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0a3d62;
}

.steps {
  justify-content: center;
  text-align: center;
}

.step {
  flex: 1 1 250px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 45px;
  height: 45px;
  background: #0a84ff;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: #fff;
  padding: 4rem 1rem;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0a3d62;
}

.testimonials-grid {
  justify-content: center;
}

.testimonial {
  flex: 1 1 300px;
  background: #f9fbfd;
  border-left: 4px solid #0a84ff;
  padding: 1.5rem;
  border-radius: 8px;
  font-style: italic;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.testimonial .name {
  margin-top: 1rem;
  text-align: right;
  font-weight: 600;
  font-style: normal;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #0a84ff, #0073e6);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem;
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.cta p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: #0a3d62;
  color: #fff;
  padding: 3rem 1rem 1.2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

footer p,
footer a {
  color: #dbe7f3;
  font-size: 0.95rem;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.6rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    right: 1rem;
    top: 70px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: #0a3d62;
  }

  .hero {
    padding: 5rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .feature,
  .service-card,
  .step,
  .testimonial {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   NEW SECTIONS: QUOTE FORM, BEFORE/AFTER, TRUST (BADGES)
   ========================================================= */

/* ---------- QUOTE FORM (на главной) ---------- */
.quote-form {
  margin: 1.5rem auto 0;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef3f8;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #d9e3ef;
  background: #f9fbfe;
  color: #222;
  font: 500 1rem/1.2 "Segoe UI", Arial, sans-serif;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #8aa0b8;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #0a84ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10,132,255,.15);
}

.quote-form textarea {
  grid-column: 1 / -1; /* на всю ширину */
  min-height: 110px;
  resize: vertical;
}

/* Блок с двумя полями в ряд, например Город + Телефон */
.quote-form .form-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.quote-form .btn {
  grid-column: 1 / -1;
  justify-self: start; /* выравнивание кнопки слева */
  padding: 0.9rem 1.5rem;
}

/* Подписи/ошибки */
.form-hint {
  font-size: .9rem;
  color: #667a90;
  margin-top: .25rem;
}

.form-error {
  font-size: .9rem;
  color: #b10020;
  margin-top: .25rem;
}

/* Мобильная адаптация формы */
@media (max-width: 720px) {
  .quote-form {
    grid-template-columns: 1fr;
    padding: .9rem;
  }
  .quote-form .form-row {
    grid-template-columns: 1fr;
  }
  .quote-form .btn {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}

/* ---------- BEFORE / AFTER (фото до/после) ---------- */
.before-after {
  background: #fff;
  padding: 3.5rem 1rem;
}

.before-after h2 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 1.5rem;
}

.before-after .flex {
  justify-content: center;
}

.ba-pair {
  position: relative;
  flex: 1 1 420px;
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  background: #eef4fb;
}

/* Картинки стекаются одна на другой (для статичного сравнения «до/после» по наведению) */
.ba-pair img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .35s ease;
}

/* Показываем метки "До"/"После" */
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10,61,98,.9);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .3px;
  font-size: .85rem;
  z-index: 2;
}
.ba-label--after {
  left: auto;
  right: 10px;
  background: rgba(10,132,255,.92);
}

/* Вариант “наведение меняет изображение” (если используешь две <img> в .ba-pair) */
.ba-pair img.after {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.ba-pair:hover img.after {
  opacity: 1;
}

/* Сетка из нескольких пар */
.ba-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  align-items: stretch;
}

@media (max-width: 820px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- TRUST / GUARANTEES (доверие, значки) ---------- */
.trust {
  background: #f3f7fb;
  padding: 3.8rem 1rem;
  text-align: center;
}

.trust h2 {
  color: #0a3d62;
  font-size: 1.9rem;
  margin-bottom: .6rem;
}

.trust p {
  max-width: 780px;
  margin: 0.4rem auto 1.6rem;
  color: #4e6377;
  font-size: 1.02rem;
}

/* Плашки преимуществ */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
  width: min(1100px, 100%);
  margin: 0 auto 1.4rem;
}

.trust-card {
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}

.trust-card img {
  width: 44px;
  height: 44px;
  margin-bottom: .7rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  color: #0a3d62;
  margin-bottom: .35rem;
}

.trust-card p {
  font-size: .95rem;
  color: #587087;
  margin: 0;
}

/* Лента значков/бейджей (Google rating, лицензии и т.д.) */
.badge-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.badge-list img {
  height: 34px;
  width: auto;
  filter: grayscale(15%);
  opacity: .9;
}

.badge-list img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 1024px) {
  .trust-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- OPTIONAL: FAQ (если решишь добавить) ---------- */
.faq {
  background: #fff;
  padding: 3.5rem 1rem;
}
.faq h2 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 1.2rem;
}
.faq-item {
  width: min(900px, 100%);
  margin: 0 auto .8rem;
  border: 1px solid #e6eef6;
  border-radius: 10px;
  background: #f9fbfe;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  color: #0a3d62;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-a {
  padding: 0 1.1rem 1rem;
  color: #4e6377;
  display: none;
}
.faq-item.open .faq-a { display: block; }
/* =========================================================
   PROMO (скидка) + SEO TEXT
   ========================================================= */

/* ---------- PROMO (скидка 10%) ---------- */
.promo {
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4fb 100%);
  padding: 2.2rem 1rem 2.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* тонкий декоративный блик */
.promo::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 180px;
  background: radial-gradient(60% 60% at 50% 0%,
              rgba(10,132,255,.16) 0%, rgba(10,132,255,0) 70%);
  pointer-events: none;
}

.promo h2,
.promo .promo__title {
  font-size: 1.6rem;
  line-height: 1.25;
  color: #0a3d62;
  margin-bottom: .55rem;
}

.promo p,
.promo .promo__subtitle {
  font-size: 1.05rem;
  color: #445a70;
  margin-bottom: 1rem;
}

.promo .btn {
  padding: .9rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(10,132,255,.25);
}

.promo .btn:active {
  transform: translateY(1px);
}

/* узкая “барная” версия (если нужен тонкий верхний баннер) */
.promo--bar {
  padding: .7rem 1rem;
  background: #0a84ff;
  color: #fff;
}
.promo--bar .btn { background:#fff; color:#0a84ff; box-shadow:none; }
.promo--bar .btn:hover { background:#e7f0ff; }

/* ---------- SEO TEXT БЛОК ---------- */
.seo-text {
  background: #ffffff;
  padding: 2.2rem 1rem;
}

.seo-text .container {
  width: min(1000px, 92%);   /* слегка уже, чтобы читалось легче */
}

.seo-text h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  color: #0a3d62;
  margin-bottom: .8rem;
}

.seo-text p {
  color: #374e63;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: .85rem;
}

/* выделения внутри текстов */
.seo-text strong { color: #0a3d62; font-weight: 800; }
.seo-text em     { font-style: italic; color: #28465b; }

/* мягкая «лента» под абзацами, как на скрине */
.seo-text .container > p:last-child {
  background: linear-gradient(180deg, #f0f6ff 0%, rgba(240,246,255,0) 100%);
  padding: .6rem .5rem;
  border-radius: 10px;
}

/* тонкая разделительная линия сверху/снизу секции, чтобы
   блок аккуратно стыковался с соседями */
.seo-text {
  border-top: 1px solid #eef3f8;
  border-bottom: 1px solid #eef3f8;
}

/* ---------- ADAPTIVE ---------- */
@media (max-width: 768px) {
  .promo { padding: 1.6rem 1rem 2rem; }
  .promo h2, .promo .promo__title { font-size: 1.35rem; }
  .promo p  { font-size: 1rem; }

  .seo-text h2 { font-size: 1.3rem; }
  .seo-text p  { font-size: 1rem; line-height: 1.65; }
}

@media (max-width: 480px) {
  .promo .btn { width: 100%; }
}
/* Блокировка скролла страницы, когда открыт бургер */
.no-scroll { overflow: hidden; }

/* Мобильное меню */
@media (max-width: 768px) {
  header .menu-toggle {
    display: inline-block;
    font-size: 1.8rem;
    background: none;
    border: 0;
    cursor: pointer;
    color: #0a3d62;
  }
  header nav { position: relative; }

  /* Список по умолчанию скрыт */
  header .nav-links,
  header nav > ul {
    display: none;
  }

  /* Открытое состояние */
  header .nav-links.open,
  header nav > ul.open {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    position: absolute;
    right: 1rem;
    top: 64px;              /* под шапкой */
    background: #fff;
    padding: 1rem;
    border: 1px solid #e6eef6;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    z-index: 1000;
    min-width: 220px;
  }

  /* Ссылки в мобильном меню */
  header .nav-links.open a,
  header nav > ul.open a {
    color: #0a3d62;
    text-decoration: none;
    padding: .45rem .2rem;
  }
  header .nav-links.open a:hover,
  header nav > ul.open a:hover {
    color: #0a84ff;
  }
}
/* =========================================================
   FULLSCREEN BURGER MENU
   ========================================================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: #0a3d62;
  cursor: pointer;
  z-index: 1001;
}

/* Анимация иконки */
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: #0a3d62;
  margin: 5px 0;
  transition: all .3s;
}
.menu-toggle.active::before {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active::after {
  transform: translateY(-8px) rotate(-45deg);
}
.menu-toggle.active span {
  opacity: 0;
}

/* Стили полноэкранного меню */
header .nav-links,
header nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
}

/* --- десктоп --- */
@media (min-width: 769px) {
  header .nav-links,
  header nav > ul { display: flex !important; position: static; background: none; box-shadow: none; }
}

/* --- мобилка --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  header .nav-links,
  header nav > ul {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    transform: scale(0.95) translateY(-30px);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    z-index: 1000;
  }

  header .nav-links.show,
  header nav > ul.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  header .nav-links a,
  header nav > ul a {
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    color: #0a3d62;
    transition: color .25s;
  }

  header .nav-links a:hover,
  header nav > ul a:hover {
    color: #0a84ff;
  }

  /* затемнение фона страницы при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(3px);
    z-index: 999;
  }
}
