:root {
  --ink: #17212b;
  --muted: #5e6a76;
  --line: #d7dee7;
  --paper: #ffffff;
  --soft: #f3f7f5;
  --brand: #146c63;
  --brand-dark: #0d453f;
  --accent: #d94f38;
  --sky: #dcecf7;
  --hero-eyebrow: #ffb19f;
  --status-bg: #f7f2ed;
  --header-bg: rgba(255, 255, 255, 0.94);
  --hero-overlay-a: 0.84;
  --hero-overlay-b: 0.42;
  --hero-overlay-c: 0.16;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.14);
  --card-shadow: 0 8px 24px rgba(23, 33, 43, 0.06);
  --radius: 8px;
  --focus-ring: rgba(20, 108, 99, 0.18);
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-space: clamp(56px, 8vw, 76px);
  --page-gutter: clamp(16px, 6vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

body.is-loading main {
  opacity: 0.55;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding: 14px var(--page-gutter);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: calc(var(--radius) / 2);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.header-phone {
  justify-self: end;
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.demo-banner {
  margin: 0;
  padding: 12px var(--page-gutter);
  background: var(--sky);
  color: var(--brand-dark);
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 72px var(--page-gutter);
  background:
    linear-gradient(
      90deg,
      rgba(9, 25, 33, var(--hero-overlay-a)),
      rgba(9, 25, 33, var(--hero-overlay-b)),
      rgba(9, 25, 33, var(--hero-overlay-c))
    ),
    var(--soft);
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero .eyebrow { color: var(--hero-eyebrow); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 7vw, 80px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

p.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.55;
}

.btn,
.primary-button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover,
.primary-button:hover,
.button-link:hover { background: var(--brand-dark); }

.btn:disabled,
.primary-button:disabled { opacity: 0.65; cursor: wait; }

body[data-button-style="outline"] .btn,
body[data-button-style="outline"] .primary-button,
body[data-button-style="outline"] .button-link {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}

body[data-button-style="outline"] .hero .primary-button,
body[data-button-style="outline"] .form-band .primary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
}

body[data-button-style="outline"] .hero .primary-button:hover,
body[data-button-style="outline"] .form-band .primary-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: var(--section-space) var(--page-gutter);
}

.muted { background: var(--soft); }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) { color: var(--muted); }

.grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cards > article,
.steps > div,
.service-card,
.lead-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--card-shadow);
}

.cards > article,
.service-card {
  padding: 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.cards h3,
.service-card h3 { margin-bottom: 10px; font-size: 22px; }

.cards p,
.service-card p {
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.price {
  display: block;
  margin: 18px 0;
  color: var(--brand-dark);
  font-weight: 900;
}

.review-rating {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 18px;
}

.compact > article { min-height: 160px; }

.icon-pill {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--brand-dark);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.steps > div { padding: 20px; }

.steps span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.steps strong { display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); line-height: 1.5; }

.faq-section .faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details { padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.form-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
  background: var(--ink);
  color: white;
}

body[data-form-band="brand"] .form-band {
  background: var(--brand-dark);
}

body[data-form-band="light"] .form-band {
  background: var(--soft);
  color: var(--ink);
}

body[data-form-band="light"] .form-copy p:not(.eyebrow) { color: var(--muted); }

.form-copy p:not(.eyebrow) { color: rgba(255, 255, 255, 0.78); line-height: 1.6; }

.lead-form,
.status-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.lead-form label.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea,
.lead-form select,
.status-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: white;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus,
.status-form input:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--brand);
}

.slug-input-wrap {
  display: flex;
  align-items: stretch;
}

.slug-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.slug-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.slug-hint { margin-top: -4px; }

.checkbox input { width: 18px; height: 18px; }

.form-message { margin: 0; font-weight: 800; }
.form-message.ok { color: var(--brand); }
.form-message.error { color: var(--accent); }

.form-note {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-note.ok { color: var(--brand); font-weight: 800; }
.form-note.error { color: var(--accent); font-weight: 800; }

.success-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
}

.status-section { background: var(--status-bg); }

.status-form {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.status-form .form-message { grid-column: 1 / -1; }

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.contact-grid > * {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px var(--page-gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.container {
  width: min(720px, 100%);
  margin: 0 auto;
}

.container.narrow { width: min(560px, 100%); }

.service-paused-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(23, 33, 43, 0.88), rgba(20, 108, 99, 0.78)),
    var(--soft);
  background-position: center;
  background-size: cover;
}

.service-unavailable {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px var(--page-gutter);
  color: white;
}

.service-unavailable-content { width: min(720px, 100%); }

.service-unavailable h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.slot-pick,
.slot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
}
.slot-pick.active,
.slot-card.free { border-color: var(--brand); background: var(--soft); }
.slot-card.busy { opacity: 0.72; background: #fff5f5; border-color: #f3c0c0; }
.slot-card strong,
.slot-pick { display: block; font-weight: 800; }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.schedule-day {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  cursor: pointer;
}
.schedule-day.free { background: #ecfdf5; border-color: #86efac; }
.schedule-day.partial { background: #fffbeb; border-color: #fcd34d; }
.schedule-day.busy { background: #fef2f2; border-color: #fca5a5; }
.schedule-nav { display: flex; gap: 10px; align-items: center; }
.schedule-day.panel { margin-top: 18px; }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    position: relative;
  }

  .nav-toggle { display: inline-flex; }
  .header-phone { justify-self: end; }

  .top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px var(--page-gutter);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .top-nav.is-open { display: flex; }

  .form-band,
  .contacts { grid-template-columns: 1fr; }

  .status-form { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

@media (max-width: 560px) {
  .header-phone { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
