/* Страница "Клининг от Бегимай · SunService" (/cleaning/). Все стили внутри .sun. */

.sun {
  --sun-blue: #1565a8;
  --sun-blue-hover: #10528a;
  --sun-blue-dark: #0c3f72;
  --sun-ink: #142033;
  --sun-muted: #5b6b82;
  --sun-bg: #f4f7fb;
  --sun-surface: #ffffff;
  --sun-mist: #e7f1fa;
  --sun-sun: #f6b40e;
  --sun-wa: #1fa855;
  --sun-wa-hover: #188a45;
  --sun-line: rgba(20, 32, 51, .09);
  --sun-shadow: 0 10px 30px rgba(20, 50, 90, .08);
  --sun-radius: 22px;

  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--sun-ink);
  background: var(--sun-bg);
  margin-top: -14px; /* body имеет отступ под fixed-навбар чуть больше его высоты */
}

.sun section[id] {
  scroll-margin-top: 120px;
}

.sun h1, .sun h2, .sun h3 {
  color: var(--sun-ink);
}

.sun-h1, .sun-h2, .sun-fact-value, .sun-cta-phone, .sun-step span, .sun-calc-total-value {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  letter-spacing: -.01em;
}

.sun-h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin: .5rem 0 1.25rem;
}

.sun-h1 span {
  display: block;
  color: var(--sun-blue);
}

.sun-h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: .35rem 0 1rem;
}

.sun-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sun-blue);
}

.sun-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--sun-muted);
  max-width: 34rem;
}

.sun-muted {
  color: var(--sun-muted);
  line-height: 1.6;
}

.sun-intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.sun-link {
  color: var(--sun-blue);
  font-weight: 700;
  text-decoration: none;
}

.sun-dot {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--sun-sun);
  box-shadow: 0 0 0 4px rgba(246, 180, 14, .25);
  flex: none;
}

/* Кнопки */
.sun-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}

.sun-btn-sm {
  min-height: 38px;
  padding: .4rem 1.1rem;
  font-size: .9rem;
}

.sun-btn-primary {
  background: var(--sun-blue);
  color: #fff;
}

.sun-btn-primary:hover {
  background: var(--sun-blue-hover);
  color: #fff;
}

.sun-btn-ghost {
  background: var(--sun-surface);
  border-color: var(--sun-line);
  color: var(--sun-ink);
}

.sun-btn-ghost:hover {
  border-color: var(--sun-blue);
  color: var(--sun-blue);
}

.sun-btn-wa {
  background: var(--sun-wa);
  color: #fff;
}

.sun-btn-wa:hover {
  background: var(--sun-wa-hover);
  color: #fff;
}

.sun-btn-light {
  background: #fff;
  color: var(--sun-blue-dark);
}

.sun-btn-light:hover {
  background: var(--sun-mist);
  color: var(--sun-blue-dark);
}

/* Подменю разделов */
.sun-subnav {
  position: sticky;
  top: 56px;
  z-index: 1010;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sun-line);
  padding: .55rem 0;
}

.sun-subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--sun-ink);
  text-decoration: none;
  white-space: nowrap;
}

.sun-subnav-links {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.sun-subnav-links::-webkit-scrollbar {
  display: none;
}

.sun-subnav-links a {
  padding: .35rem .7rem;
  border-radius: 999px;
  color: var(--sun-muted);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
}

.sun-subnav-links a:hover {
  background: var(--sun-mist);
  color: var(--sun-blue);
}

/* Первый экран */
.sun-hero {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.sun-hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--sun-shadow);
  background: var(--sun-surface);
}

.sun-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sun-hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sun-shadow);
  font-size: .88rem;
  line-height: 1.3;
  color: var(--sun-muted);
}

.sun-hero-badge b {
  color: var(--sun-ink);
}

/* Факты */
.sun-facts {
  background: var(--sun-surface);
  border-top: 1px solid var(--sun-line);
  border-bottom: 1px solid var(--sun-line);
  padding: 2.5rem 0;
}

.sun-fact-value {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--sun-blue);
  margin-bottom: .4rem;
}

.sun-facts p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--sun-muted);
}

/* Блоки */
.sun-block {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.sun-surface {
  background: var(--sun-surface);
}

.sun-mist {
  background: var(--sun-mist);
}

/* Цитаты */
.sun-quote {
  position: relative;
  padding: 2rem 2rem 1.75rem 2.25rem;
  border-radius: var(--sun-radius);
  background: var(--sun-surface);
  box-shadow: var(--sun-shadow);
  border-left: 5px solid var(--sun-sun);
}

.sun-quote blockquote {
  font-size: 1.12rem;
  line-height: 1.65;
}

.sun-quote figcaption {
  font-weight: 700;
  color: var(--sun-muted);
  font-size: .92rem;
}

.sun-quote figcaption::before {
  content: "- ";
}

.sun-quote-wide blockquote {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Услуги */
.sun-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--sun-radius);
  background: var(--sun-surface);
  border: 1px solid var(--sun-line);
  transition: box-shadow .2s, transform .2s;
}

.sun-card:hover {
  box-shadow: var(--sun-shadow);
  transform: translateY(-2px);
}

.sun-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 1rem 0 .5rem;
}

.sun-card p {
  color: var(--sun-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.sun-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sun-mist);
  color: var(--sun-blue);
  display: grid;
  place-items: center;
}

.sun-icon svg, .sun-float svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sun-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--sun-line);
}

.sun-price {
  font-weight: 800;
  color: var(--sun-ink);
}

.sun-card-foot a {
  font-weight: 700;
  color: var(--sun-blue);
  text-decoration: none;
  white-space: nowrap;
}

.sun-card-foot a::after {
  content: " \2192";
}

/* Прайс */
.sun-price-table {
  border-radius: var(--sun-radius);
  border: 1px solid var(--sun-line);
  overflow: hidden;
  background: var(--sun-surface);
}

.sun-price-group {
  padding: .75rem 1.5rem;
  background: var(--sun-bg);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sun-blue);
}

.sun-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .95rem 1.5rem;
  border-top: 1px solid var(--sun-line);
}

.sun-price-group + .sun-price-row {
  border-top: 0;
}

.sun-price-row b {
  white-space: nowrap;
  font-weight: 800;
}

/* Калькулятор */
.sun-calc {
  padding: 1.75rem;
  border-radius: var(--sun-radius);
  background: var(--sun-surface);
  box-shadow: var(--sun-shadow);
}

.sun-calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 40px;
  gap: .75rem;
  align-items: end;
  margin-bottom: .9rem;
}

.sun-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--sun-muted);
}

.sun-calc .form-control, .sun-calc .form-select {
  min-height: 48px;
  border-radius: 12px;
  border-color: rgba(20, 32, 51, .16);
}

.sun-calc .form-control:focus, .sun-calc .form-select:focus {
  border-color: var(--sun-blue);
  box-shadow: 0 0 0 .2rem rgba(21, 101, 168, .18);
}

.sun-calc-remove {
  width: 40px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--sun-bg);
  color: var(--sun-muted);
  font-size: 1.4rem;
  line-height: 1;
}

.sun-calc-remove:hover {
  background: #fde8e8;
  color: #b42318;
}

.sun-calc-remove[hidden] {
  display: block !important;
  visibility: hidden;
}

.sun-calc-add {
  border: 1.5px dashed rgba(21, 101, 168, .45);
  background: transparent;
  color: var(--sun-blue);
  font-weight: 700;
  border-radius: 12px;
  padding: .55rem 1rem;
}

.sun-calc-add:hover {
  background: var(--sun-mist);
}

.sun-calc-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sun-line);
}

.sun-calc-total-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--sun-muted);
}

.sun-calc-total-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sun-blue-dark);
}

.sun-calc-total-value.is-empty {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sun-muted);
}

.sun-calc-note {
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--sun-muted);
}

@media (max-width: 575.98px) {
  .sun-calc {
    padding: 1.25rem;
  }

  .sun-calc-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    padding-bottom: .9rem;
    border-bottom: 1px dashed var(--sun-line);
  }

  .sun-field-service {
    grid-column: 1 / -1;
  }

  .sun-calc-total .sun-btn {
    width: 100%;
  }
}

/* Шаги */
.sun-step {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--sun-radius);
  background: var(--sun-surface);
  border: 1px solid var(--sun-line);
}

.sun-step span {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sun-sun);
}

.sun-step h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: .75rem 0 .4rem;
}

.sun-step p {
  margin: 0;
  color: var(--sun-muted);
  line-height: 1.55;
}

/* Вопросы */
.sun-faq details {
  border-bottom: 1px solid var(--sun-line);
}

.sun-faq details:first-child {
  border-top: 1px solid var(--sun-line);
}

.sun-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.sun-faq summary::-webkit-details-marker {
  display: none;
}

.sun-faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sun-blue);
}

.sun-faq details[open] summary::after {
  content: "\2212";
}

.sun-faq details p {
  margin: 0 0 1.15rem;
  color: var(--sun-muted);
  line-height: 1.6;
  max-width: 42rem;
}

/* Финальный блок */
.sun-cta {
  padding: 4.5rem 0;
  background: radial-gradient(circle at 85% 15%, rgba(246, 180, 14, .28), transparent 40%), var(--sun-blue-dark);
  color: rgba(255, 255, 255, .82);
  text-align: center;
}

.sun-cta .sun-kicker {
  color: var(--sun-sun);
}

.sun-cta .sun-h2 {
  color: #fff;
}

.sun-cta-phone {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.sun-cta-phone:hover {
  color: var(--sun-sun);
}

/* Плавающая кнопка WhatsApp (мобильные) */
.sun-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1020;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun-wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 168, 85, .4);
}

.sun-float:hover {
  color: #fff;
}

@media (max-width: 767.98px) {
  .sun-hero {
    padding-top: 2rem;
  }

  .sun-block {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .sun-quote {
    padding: 1.5rem 1.25rem 1.25rem 1.5rem;
  }

  .sun-price-row {
    padding: .85rem 1rem;
  }

  .sun-price-group {
    padding: .7rem 1rem;
  }
}
