/* ===== Базові стилі ===== */
:root {
  --color-dark: #1b2a41;
  --color-ink: #14171c;
  --color-ink-dark: #000000;
  --color-primary: #2e5f92;
  --color-primary-dark: #234a75;
  --color-blue: #5b9fd6;
  --color-blue-dark: #4988bd;
  --color-blue-light: #a5c9e3;
  --color-blue-pale: #eef5fb;
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #2b2f36;
  --color-muted: #6b7280;
  --color-border: #dde1e7;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(27, 42, 65, 0.08);
  --shadow-lg: 0 10px 28px rgba(27, 42, 65, 0.16);
  --container: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Іконки ===== */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__title {
  margin-bottom: 12px;
}

.section__title::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-ink), var(--color-blue-light));
  margin-top: 10px;
}

.section__subtitle {
  color: var(--color-muted);
  margin-bottom: 40px;
  max-width: 680px;
}

/* ===== Анімації появи ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Верхня панель ===== */
.topbar {
  background: var(--color-dark);
  color: #cfd6e0;
  font-size: 0.875rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: #ffffff;
  font-weight: 600;
}

/* ===== Шапка ===== */
.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  position: relative;
}

/* ===== Логотип «Твій Майстер» ===== */
.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  display: block;
  height: 76px;
  width: auto;
  transition: opacity 0.25s ease;
}

.logo:hover img {
  opacity: 0.88;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav a.active {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-ink);
  line-height: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(46, 95, 146, 0.35);
}

.header__cta-icon { display: none; width: 18px; height: 18px; flex: none; }

.header__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 95, 146, 0.45);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary:hover {
  background: var(--color-ink-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Головний банер ===== */
.hero {
  background-color: var(--color-dark);
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.94) 35%, rgba(46, 95, 146, 0.82) 100%),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1600&q=60");
  background-size: cover;
  background-position: center;
  color: #e8edf4;
  padding: 92px 0;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 720px;
  animation: fade-up 0.7s ease both;
}

.hero p {
  max-width: 600px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  animation: fade-up 0.7s ease 0.15s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.3s both;
}

.hero__facts {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.45s both;
}

.hero__fact strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
}

.hero__fact span {
  font-size: 0.9rem;
  color: #b9c4d4;
}

/* ===== Картки послуг ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 159, 214, 0.55);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(27, 42, 65, 0.10);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover .card__icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

/* Картка з фотографією */
.card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media {
  overflow: hidden;
  border-bottom: 3px solid var(--color-primary);
}

.card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card--photo:hover .card__img {
  transform: scale(1.06);
}

.card__body {
  padding: 22px 24px 26px;
}

.card__body h3 {
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Список усередині картки */
.card__list {
  list-style: none;
  margin-top: 12px;
}

.card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.card__link::after {
  content: " →";
  transition: margin-left 0.2s ease;
}

.card__link:hover::after {
  margin-left: 4px;
}

/* ===== Переваги ===== */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.feature:hover .feature__num {
  background: var(--color-ink);
  transform: scale(1.08);
}

.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--color-muted); font-size: 0.95rem; }

/* ===== Бренди ===== */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
  background: var(--color-blue-pale);
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq details[open] {
  border-color: rgba(91, 159, 214, 0.55);
}

.faq summary {
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--color-muted);
}

/* ===== Блок заклику ===== */
.cta {
  background: var(--color-primary);
  background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: #dbe4ef;
  text-align: center;
  padding: 56px 0;
}

.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta p {
  margin-bottom: 28px;
}

.cta .phone-big {
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.cta .phone-big:hover {
  transform: scale(1.04);
}

/* ===== Заголовки сторінок ===== */
.page-head {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  background-size: cover;
  background-position: center;
  color: #dbe4ef;
  padding: 60px 0;
}

.page-head h1 {
  color: #fff;
  margin-bottom: 10px;
  animation: fade-up 0.7s ease both;
}

.page-head p {
  max-width: 680px;
  animation: fade-up 0.7s ease 0.15s both;
}

.page-head--services {
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.93) 30%, rgba(46, 95, 146, 0.85) 100%),
    url("https://images.unsplash.com/photo-1600585152220-90363fe7e115?auto=format&fit=crop&w=1600&q=60");
}

.page-head--power {
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.93) 30%, rgba(46, 95, 146, 0.85) 100%),
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1600&q=60");
}

.page-head--tips {
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.93) 30%, rgba(46, 95, 146, 0.85) 100%),
    url("https://images.unsplash.com/photo-1530124566582-a618bc2615dc?auto=format&fit=crop&w=1600&q=60");
}

.page-head--about {
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.93) 30%, rgba(46, 95, 146, 0.85) 100%),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=60");
}

.page-head--reviews {
  background-image:
    linear-gradient(120deg, rgba(27, 42, 65, 0.93) 30%, rgba(46, 95, 146, 0.85) 100%),
    url("https://images.unsplash.com/photo-1556740758-90de374c12ad?auto=format&fit=crop&w=1600&q=60");
}

/* ===== Перелік послуг ===== */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
}

.service-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 44px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-list li:hover {
  transform: translateX(4px);
  border-color: var(--color-blue);
  box-shadow: var(--shadow);
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Кроки роботи ===== */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  counter-increment: step;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { color: var(--color-muted); font-size: 0.92rem; }

/* ===== Дві колонки з фото ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split h2 { margin-bottom: 14px; }
.split p { color: var(--color-muted); margin-bottom: 14px; }

/* ===== Галерея ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(27, 42, 65, 0.88));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Чек-лист ===== */
.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 95, 146, 0.14);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Примітка / callout ===== */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-blue-pale);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 28px;
}

.callout .icon {
  color: var(--color-primary-dark);
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.callout--warn {
  background: rgba(20, 23, 28, 0.05);
  border-left-color: var(--color-ink);
}

.callout--warn .icon {
  color: var(--color-ink);
}

.callout p { color: var(--color-text); font-size: 0.95rem; }
.callout strong { color: var(--color-ink); }

/* ===== Статистика ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* ===== Контакти ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 8px rgba(27, 42, 65, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-item__icon .icon {
  width: 20px;
  height: 20px;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.contact-item a {
  font-weight: 600;
  font-size: 1.05rem;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ===== Таблиця графіка ===== */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.schedule td {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule td:last-child {
  text-align: right;
  font-weight: 600;
}

.schedule tr:last-child td { border-bottom: none; }

/* ===== Плаваюча кнопка дзвінка ===== */
.fab-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 90;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fab-call:hover {
  background: var(--color-ink-dark);
  color: #fff;
  transform: scale(1.07);
}

.fab-call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-ink);
  animation: fab-pulse 2.2s ease-out infinite;
}

@keyframes fab-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ===== Модалка «Залишити заявку» ===== */
body.lead-modal-lock { overflow: hidden; }

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lead-modal-overlay.is-open { opacity: 1; visibility: visible; }

.lead-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.lead-modal-overlay.is-open .lead-modal { transform: translateY(0); }

.lead-modal h2 { margin: 0 0 8px; font-size: 1.35rem; color: var(--color-ink); }

.lead-modal__hint { color: var(--color-muted); font-size: 0.92rem; margin: 0 0 20px; }

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg);
  color: var(--color-muted);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lead-modal__close:hover { background: var(--color-border); color: var(--color-ink); }

.lead-modal form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
}

.lead-modal form input,
.lead-modal form select,
.lead-modal form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.lead-modal form input:focus,
.lead-modal form select:focus,
.lead-modal form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.lead-modal__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-modal__submit { width: 100%; margin-top: 4px; }

.lead-modal__status {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.lead-modal__status.is-error { color: #c0392b; }
.lead-modal__status.is-success { color: #1e7e45; }

/* ===== Відгуки ===== */
.reviews-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -8px 0 28px;
  color: var(--color-muted);
}

.reviews-summary strong {
  font-size: 1.5rem;
  color: var(--color-ink);
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.review-card__stars {
  color: #e0a72f;
  letter-spacing: 2px;
  font-size: 1rem;
  flex: none;
}

.review-card__meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.review-card__pending-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-blue-light);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.review-card.is-pending {
  border-color: var(--color-blue-light);
  background: var(--color-blue-pale);
}

.review-form-card {
  max-width: 560px;
  margin: 0 auto;
}

.review-form-card h2 {
  margin-bottom: 8px;
}

.review-form__hint {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.review-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
}

.review-form input,
.review-form select,
.review-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.review-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-form__submit { width: 100%; margin-top: 4px; }

.review-form__status {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.review-form__status.is-error { color: #c0392b; }
.review-form__status.is-success { color: #1e7e45; }

/* ===== Підвал ===== */
.footer {
  background: var(--color-dark);
  color: #aab5c5;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #aab5c5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer a:hover {
  color: #fff;
  padding-left: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #7d8899;
}

/* ===== Зменшений рух ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Адаптивність ===== */
@media (max-width: 920px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: var(--shadow);
    animation: fade-up 0.25s ease both;
  }

  .nav.open { display: flex; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .map-frame { min-height: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split img { height: 260px; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 44px 0; }
  .hero { padding: 56px 0; }
  .hero__facts { gap: 24px; }

  .grid--3, .grid--4, .steps, .stats, .service-list, .gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .fab-call {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }

  .header .container { gap: 8px; }
  .logo img { height: 56px; }
  .header__actions { gap: 6px; }
  .header__cta { padding: 6px 10px; gap: 5px; font-size: 0.76rem; }
  .nav-toggle { padding: 6px 9px; }

  .lead-modal { padding: 26px 20px 22px; }
}

@media (max-width: 460px) {
  .logo img { height: 46px; }
}
