/* Автоцентр — базові стилі
   Палітра: світлий фон, темний чорнильний текст, бірюзовий акцент.
   Шрифти: Literata (заголовки) + Manrope (текст). */

:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #14201e;
  --ink-soft: #3c4b47;
  --muted: #4c5b57;
  --line: #dce3e0;
  --line-soft: #e6ebe9;
  --accent: #0e7c6b;
  --accent-dark: #0b5c4f;
  --accent-light: #7fd8c4;
  --tint: #e3f1ec;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --shell: 1280px;
  --gutter: 24px;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 20px; letter-spacing: 0; font-family: var(--font-text); }

p { margin: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(44px, 6vw, 72px) 0; }
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: var(--surface); border-color: #c9d4d0; color: var(--ink); font-weight: 600; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-s);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: 1.3px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--accent-dark); }

.header-contact { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 17px; font-weight: 700; color: var(--ink); display: block; }
.header-hours { font-size: 12px; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #c9d4d0;
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Перший екран */
.hero { background: var(--surface); padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 5vw, 64px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.facts__value { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.facts__label { font-size: 14px; color: var(--muted); }

/* Форма */
.lead-form {
  padding: 30px;
  border-radius: var(--radius-l);
  background: var(--bg);
  border: 1px solid var(--line);
}
.lead-form--dark { background: var(--ink); border-color: #31463f; }
.lead-form__title { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.lead-form__note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.lead-form--dark .lead-form__title { color: #fff; }
.lead-form--dark .lead-form__note { color: #b7c4c0; }
.lead-form__fields { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.lead-form__row { display: flex; gap: 14px; }
.lead-form__row > * { flex: 1 1 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: #2c3a36; }
.lead-form--dark .field label { color: #dce3e0; }
.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d4d0;
  border-radius: var(--radius-s);
  background: var(--surface);
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--ink);
}
.lead-form--dark .field input,
.lead-form--dark .field select {
  background: #1c2c29;
  border-color: #38504a;
  color: #fff;
}
.field input::placeholder { color: #8a9793; }
.form-consent { font-size: 12px; line-height: 1.5; color: #5a6864; }
.lead-form--dark .form-consent { color: #93a29e; }

/* Картки послуг */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__title { font-size: 20px; font-weight: 700; }
.card__text { font-size: 15px; color: var(--muted); }
.card__link { margin-top: auto; font-size: 15px; font-weight: 600; }
.card--dark { background: var(--ink); border-color: var(--ink); }
.card--dark .card__icon { background: rgba(255, 255, 255, .12); }
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: #b7c4c0; }
.card--dark .card__link { color: var(--accent-light); }
.card--dark .card__link:hover { color: #fff; }

/* Кроки */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step__index { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent); }
.step__rule { height: 3px; margin: 10px 0 16px; background: var(--tint); border-radius: 2px; }
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step__text { font-size: 15px; color: var(--muted); }

/* Ціни */
.prices { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.prices__note { margin: 16px 0 20px; font-size: 16px; color: var(--muted); }
.callout { padding: 20px; border-radius: var(--radius-m); background: var(--tint); }
.callout__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.callout__text { font-size: 14px; color: #2c3a36; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding: 16px 28px; font-size: 14px; color: var(--muted); }
th, td { padding: 18px 28px; text-align: left; font-size: 16px; }
thead th {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr + tr td { border-top: 1px solid var(--line-soft); }
tbody th { font-weight: 600; }
.cell-muted { color: var(--muted); font-size: 15px; }
.cell-price { font-weight: 700; text-align: right; white-space: nowrap; }
thead th:last-child { text-align: right; }

/* Темна смуга */
.band {
  margin: 0 var(--gutter);
  padding: 44px 48px;
  background: var(--ink);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.band__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.band__title { color: #fff; margin-bottom: 12px; }
.band__text { color: #b7c4c0; max-width: 62ch; }
.band__body { flex: 1 1 520px; }

/* Питання */
.faq { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq__item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__answer { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* Хлібні крихти */
.crumbs { padding-top: 22px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: #9aa8a4; padding: 0 4px; }

/* Сторінка послуги */
.service-hero { padding: 28px 0 56px; }
.service-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.service-hero__text { display: flex; flex-direction: column; gap: 22px; }
.spec { display: flex; flex-wrap: wrap; gap: 14px; }
.spec__item {
  flex: 1 1 180px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.spec__label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.spec__value { font-size: 20px; font-weight: 700; }

.doc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.doc-card { padding: 30px; background: var(--bg); border-radius: 16px; }
.section--surface .doc-card { background: var(--bg); }
.doc-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check-list svg { flex: none; margin-top: 3px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.note { padding: 28px; background: var(--tint); border-radius: 16px; }
.note h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.note p { font-size: 15px; color: #2c3a36; }

/* Підвал */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer__about { max-width: 320px; }
.site-footer__about p { font-size: 14px; color: var(--muted); margin-top: 10px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col li { color: var(--muted); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }

/* Адаптив */
@media (max-width: 1040px) {
  .hero__grid,
  .service-hero__grid,
  .prices,
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .band { flex-direction: column; align-items: flex-start; padding: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-header__inner { position: relative; min-height: 70px; }
  .header-contact .header-hours { display: none; }
  .btn--header { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead-form { padding: 22px; }
  .lead-form__row { flex-direction: column; }
  .card { padding: 22px; }
  .facts { gap: 24px; }
  .band { margin: 0 var(--gutter); padding: 26px; }
  th, td { padding: 14px 18px; font-size: 15px; }
  caption { padding: 14px 18px; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
