/* Искусство клининга — дополнительные стили для новых разделов и целевых страниц.
   Подключается после /kvartiry/styles.css и /doma/styles.css. */

/* Строки условий под заголовком — компактнее, чтобы читались как один блок */
.house-page .hero-stats { gap: 9px; }

/* Единая фирменная типографика на новых фотобаннерах */
.hero-visual-copy {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 5.4%;
  display: flex;
  width: 43%;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}
.hero-visual-copy strong { font-size: clamp(19px, 2.25vw, 34px); font-weight: 900; line-height: .98; letter-spacing: -.9px; }
.hero-visual-copy.compact strong { font-size: clamp(18px, 2vw, 31px); }
.hero-visual-copy span { margin-top: 8px; color: #55a1d8; font-size: clamp(17px, 1.9vw, 29px); font-weight: 780; line-height: 1; }
.hero-visual-copy i { width: 100%; height: 2px; margin: 13px 0 10px; background: linear-gradient(90deg, #6ab4ea 0%, rgba(106,180,234, .08) 100%); box-shadow: 0 0 10px rgba(106,180,234, .8); }
.hero-visual-copy small { color: rgba(255,255,255,.9); font-size: clamp(6px, .68vw, 10px); font-style: normal; font-weight: 750; line-height: 1.35; letter-spacing: .45px; }

/* Подвал: три колонки в одну линию — бренд, услуги, контакты */
.footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr; gap: 48px; }
.footer-grid h3 { margin-bottom: 14px; }
.footer-grid p { margin: 0 0 9px; }

/* Карточки услуг раздела */
.services-section { background: #fff; }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative;
  display: flex;
  min-height: 218px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, #fff 0%, #f5f8fb 100%);
  box-shadow: 0 10px 26px rgba(26,45,58, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { border-color: #a9c7dc; box-shadow: 0 18px 36px rgba(26,45,58, .14); transform: translateY(-4px); }
.service-card::after { position: absolute; right: -70px; bottom: -92px; width: 190px; height: 190px; border-radius: 50%; background: var(--green-pale); content: ""; }
.service-card > * { position: relative; z-index: 1; }
.service-card-label { display: inline-block; margin-bottom: 14px; padding: 6px 9px; border-radius: 5px; background: var(--green-pale); color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .8px; align-self: flex-start; }
.service-card h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.2; letter-spacing: -.4px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.service-card-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--green-dark); font-size: 13px; font-weight: 850; }

/* Раздел с направлениями на главной */
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.direction-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(26,45,58, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.direction-card:hover { border-color: #a9c7dc; box-shadow: 0 18px 38px rgba(26,45,58, .15); transform: translateY(-4px); }
.direction-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--green-pale); }
.direction-card-media img { width: 100%; height: 100%; object-fit: cover; }
.direction-visual-copy {
  position: absolute;
  z-index: 2;
  top: 21%;
  left: 4.5%;
  display: flex;
  width: 45%;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 11px rgba(0, 0, 0, .32);
}
.direction-visual-copy strong { font-size: clamp(18px, 1.85vw, 25px); font-weight: 900; line-height: .93; letter-spacing: -.7px; }
.direction-visual-copy--apartment strong,
.direction-visual-copy--compact strong { font-size: clamp(18px, 1.85vw, 25px); line-height: .93; }
.direction-visual-copy--compact { width: 50%; }
.direction-visual-copy span { margin-top: 5px; color: #55a1d8; font-size: clamp(16px, 1.7vw, 23px); font-weight: 780; line-height: 1; }
.direction-visual-copy i { width: 100%; height: 2px; margin: 8px 0 6px; background: linear-gradient(90deg, #6ab4ea 0%, rgba(106,180,234, .08) 100%); box-shadow: 0 0 8px rgba(106,180,234, .72); }
.direction-visual-copy small { color: rgba(255,255,255,.9); font-size: clamp(5px, .5vw, 7px); font-style: normal; font-weight: 800; line-height: 1.35; letter-spacing: .2px; }
.direction-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.direction-card-body h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.5px; }
.direction-card-body > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.direction-links { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 0; }
.direction-links a { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); color: var(--green-dark); font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.direction-links a:hover { border-color: #a9c7dc; background: var(--green-pale); }

.yandex-rating-badge {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid #ececec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32,42,50, .11);
}
.yandex-rating-badge img { width: 90px; height: 42px; object-fit: contain; }
.yandex-rating-badge > span { display: grid; color: #202020 !important; line-height: 1; }
.yandex-rating-badge b { font-size: 21px; }
.yandex-rating-badge small { margin-top: 4px; color: #68716b; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.hero-stats .yandex-rating-badge--compact { margin-top: -8px; margin-bottom: -8px; }

/* Матрица «объект × тип уборки» */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.matrix { width: 100%; border-collapse: collapse; min-width: 680px; }
.matrix th, .matrix td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.matrix thead th { background: var(--green-pale); color: var(--green-dark); font-size: 12px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.matrix tbody th { color: var(--ink); font-size: 15px; font-weight: 800; }
.matrix td a { color: var(--green-dark); font-weight: 750; border-bottom: 1px solid rgba(47,108,152, .35); }
.matrix td a:hover { border-bottom-color: var(--green-dark); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
  .service-cards, .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 700px) {
  .hero-visual-copy { top: 15%; width: 46%; }
  .hero-visual-copy strong, .hero-visual-copy.compact strong { font-size: clamp(16px, 5vw, 22px); }
  .hero-visual-copy span { margin-top: 5px; font-size: clamp(15px, 4.6vw, 20px); }
  .hero-visual-copy i { margin: 8px 0 6px; }
  .hero-visual-copy small { font-size: 6px; letter-spacing: .2px; }
  .service-cards, .direction-grid { grid-template-columns: minmax(0, 1fr); }
  .direction-visual-copy { top: 19%; width: 46%; }
  .direction-visual-copy strong { font-size: clamp(19px, 7vw, 26px); }
  .direction-visual-copy--apartment strong { font-size: clamp(18px, 6.5vw, 24px); }
  .direction-visual-copy--compact strong { font-size: clamp(19px, 7vw, 26px); }
  .direction-visual-copy span { font-size: clamp(16px, 5.7vw, 21px); }
  .direction-visual-copy small { font-size: 6px; }
  .hero-stats .yandex-rating-badge--compact { margin: 0; }
  .service-card { min-height: 0; padding: 22px; }
  .direction-links { flex-wrap: wrap; }
  .direction-links a { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Спецуслуги: группы параметров в калькуляторе */
.cleaning-types.one-type { grid-template-columns: minmax(0, 1fr); }
.calculator-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: 1 / -1;
}
.calculator-options legend { margin-bottom: 9px; color: #57606b; font-size: 13px; font-weight: 700; }
.calculator-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.calculator-options--products .calculator-checkbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calculator-checkbox-grid .calculation-option {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 9px;
  background: #fff;
  font-weight: 700;
}
.calculator-checkbox-grid .calculation-option:has(input:checked) { border-color: var(--green); background: var(--green-pale); }
.calculator-checkbox-grid .calculation-option span { min-width: 0; line-height: 1.25; }

@media (max-width: 700px) {
  .calculator-options--products .calculator-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .calculator-options--products .calculator-checkbox-grid { grid-template-columns: minmax(0, 1fr); }
}
