/* =========================================================
   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; }
/* ===================== PREMIUM FAQ ===================== */

/* Сетка: липкое меню слева + контент справа */
.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

/* Левое липкое меню */
.faq-aside {
  position: sticky;
  top: 90px; /* ниже хедера */
  align-self: start;
  height: fit-content;
}
.faq-aside__inner {
  background: #ffffff;
  border: 1px solid #e6eef6;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.faq-aside__title {
  font-size: 1.05rem;
  color: #0a3d62;
  margin-bottom: .6rem;
}
.faq-nav {
  display: grid;
  gap: .4rem;
  margin-bottom: 1rem;
}
.faq-nav__link {
  display: block;
  padding: .55rem .7rem;
  border-radius: 10px;
  text-decoration: none;
  color: #0a3d62;
  background: #f8fbff;
  border: 1px solid #e6eef6;
  transition: background .2s, color .2s, box-shadow .2s;
}
.faq-nav__link:hover { background: #0a84ff; color: #fff; }
.faq-nav__link.is-active {
  background: linear-gradient(135deg,#e9f4ff,#f3f8ff);
  box-shadow: inset 0 0 0 2px #0a84ff33;
}

/* Поиск */
.faq-search__field {
  position: relative;
}
.faq-search input {
  width: 100%;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  padding: .85rem 2.3rem .85rem .95rem;
  font: 500 1rem/1.2 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.faq-search__clear {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: #eef4fb; border: 1px solid #e6eef6; cursor: pointer;
  font-size: 18px; line-height: 1; color: #0a3d62;
}

/* Контент */
.faq-content {
  min-width: 0; /* предотвращает переполнение */
}
.faq-section {
  margin-bottom: 2rem;
}
.faq-section__header {
  display: flex; align-items: center; gap: .6rem;
  margin: .4rem 0 1rem;
}
.faq-section__icon {
  width: 28px; height: 28px; opacity: .9;
}
.faq-section h2 {
  color: #0a3d62;
}

/* Карточка вопроса — «премиум»: стекло + градиентная рамка */
.faq-card {
  background: rgba(255,255,255,.82);
  border-radius: 14px;
  border: 1px solid #e6eef6;
  padding: .2rem;
  margin-bottom: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

/* декоративная тонкая градиентная полоска сверху */
.faq-card::before {
  content: "";
  position: absolute; left: 12px; right: 12px; top: 0;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg,#0a84ff33,#61a6ff66,#0a84ff33);
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.faq-card__q {
  width: 100%;
  text-align: left;
  padding: 1rem 1rem 1rem 1.1rem;
  border: 0; background: transparent; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  color: #0a3d62; font-weight: 700;
}
.faq-card__toggle {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid #dbe7f3;
  background: #f6faff;
  font-weight: 900; color: #0a84ff;
}

.faq-card__a {
  padding: 0 1rem 1rem 1.1rem;
  color: #4e6377;
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}

.faq-card.open .faq-card__a { max-height: 420px; }
.faq-card.open .faq-card__toggle { background: #0a84ff; color: #fff; border-color: #0a84ff; }

/* CTA внизу */
.faq-cta { margin-top: 2rem; }
.faq-cta__inner{
  background: linear-gradient(135deg,#0a84ff,#0073e6);
  color: #fff; border-radius: 16px; padding: 1.4rem 1.2rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
}
.faq-cta__inner h3 { font-size: 1.3rem; }
.faq-cta__inner p{ opacity:.95; }

/* Адаптив */
@media (max-width: 1024px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; order: -1; }
  .faq-aside__inner { display: grid; gap: 1rem; }
  .faq-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .faq-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faq-cta__inner { flex-direction: column; align-items: flex-start; }
}
/* =========================================================
   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;
  }
}

