/* ============================================================
   ФАЙНИЙ КОСАР — спільні стилі для всіх сторінок сайту
   Кольори взято з DESIGN.md (лісова зелень + тепло-білий + лайм)
   ============================================================ */

:root {
  /* ---- КОЛЬОРИ (можна міняти тут — зміняться на всьому сайті) ---- */
  --ink: #11110d;            /* основний текст — майже чорний, теплий */
  --paper: #f5f5f2;          /* тепло-білий фон */
  --white: #ffffff;          /* чистий білий */
  --forest: #203524;         /* темна лісова зелень */
  --grove: #2d4c33;          /* світліша зелень */
  --olive: #4a5232;          /* оливковий з логотипа */
  --lime: #d1f470;           /* лаймовий акцент — тільки для кнопок */
  --divider: rgba(17, 17, 13, 0.12);
  --muted: #55564f;          /* приглушений сірий текст */
  --accent-text: #2d4c33;    /* акцентний колір тексту (у темній темі світлішає) */

  /* ---- ШРИФТИ ---- */
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---- Скидання типових відступів браузера ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;              /* великий читабельний базовий шрифт */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Обгортка вмісту по центру */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   КНОПКИ — великі, помітні, зручні для людей старшого віку
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px 28px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: 0 0 auto; }

/* Головна кнопка «Зателефонувати» — лаймова */
.btn-call {
  background: var(--lime);
  color: #11110d; /* завжди темний текст на лаймовому */
}
.btn-call:hover { box-shadow: 0 4px 0 rgba(17, 17, 13, 0.25); }

/* Зелена кнопка (для розділу про могили — стриманіша) */
.btn-forest {
  background: var(--forest);
  color: #ffffff;
}
.btn-forest:hover { background: var(--grove); }

/* Прозора кнопка з рамкою */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: rgba(17, 17, 13, 0.05); }

/* Біла прозора кнопка (на темному фоні) */
.btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Кнопки месенджерів */
.btn-viber { background: #7360f2; color: #ffffff; }
.btn-viber:hover { background: #5f4dd0; }
.btn-telegram { background: #2aabee; color: #ffffff; }
.btn-telegram:hover { background: #1e96d6; }

/* ============================================================
   ШАПКА САЙТУ
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto; /* решта елементів шапки притискається праворуч */
}
.logo-link img { width: 54px; height: 54px; }
.logo-text {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
}
.logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
}

/* Навігація */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
}
.main-nav a:hover { background: var(--paper); }
.main-nav a.active { color: var(--accent-text); font-weight: 700; }
.main-nav a.btn-call { color: #11110d; } /* темний текст на лаймовій кнопці в меню */

.header-phone { margin-left: 6px; font-size: 17px; padding: 12px 20px; }

/* Кнопка перемикання світлої/темної теми */
.theme-toggle {
  background: none;
  border: 2px solid var(--divider);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--ink); }

/* Кнопка-бургер для мобільного меню */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ============================================================
   ГЕРОЙ (перший екран)
   ============================================================ */
.hero {
  background: var(--white);
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 350;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero h1 strong { font-weight: 750; color: var(--accent-text); }
.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-note {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-img { text-align: center; }
.hero-img img { max-width: 360px; margin: 0 auto; }

/* Рядок довіри під героєм */
.trust-bar {
  background: var(--paper);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 18px 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-size: 16px;
  font-weight: 600;
}
.trust-items span { display: flex; align-items: center; gap: 9px; }
.trust-items svg { color: var(--accent-text); flex: 0 0 auto; }

/* ============================================================
   СЕКЦІЇ
   ============================================================ */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-forest { background: var(--forest); color: #ffffff; }

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.section-forest .section-label { color: var(--lime); }

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 24em;
}
.section h2 strong { font-weight: 750; }
.section-intro {
  font-size: 19px;
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 40px;
}
.section-forest .section-intro { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   КАРТКИ ПОСЛУГ
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Варіант сітки для 4 карток (сторінка «Послуги») — 2×2 */
.services-grid.four { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: var(--white);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 5px solid var(--grove);
}
/* Головна картка (могили) — тепліша, виділена */
.service-card.featured {
  background: var(--forest);
  color: #ffffff;
  border-top-color: var(--lime);
}
.service-card.featured .service-desc { color: rgba(255, 255, 255, 0.88); }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border-radius: 14px;
  color: var(--accent-text);
}
.service-card.featured .service-icon { background: var(--grove); color: var(--lime); }
.service-card h3 { font-size: 23px; font-weight: 700; line-height: 1.25; }
.service-desc { font-size: 16.5px; color: var(--muted); flex: 1; }
.service-tagline {
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}
.service-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ============================================================
   ЧОМУ МИ
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-item {
  background: var(--paper);
  padding: 30px 26px;
}
.why-item .why-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--accent-text);
  margin-bottom: 16px;
  border: 1px solid var(--divider);
}
.why-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 16px; color: var(--muted); }

/* ============================================================
   ДО / ПІСЛЯ
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ba-card { background: var(--white); padding: 14px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-photo { position: relative; overflow: hidden; }
.ba-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(17, 17, 13, 0.75);
  color: #ffffff;
}
.ba-tag.after { background: var(--grove); }
.ba-caption { padding: 14px 8px 6px; font-size: 15.5px; color: var(--muted); }

/* Заглушка, якщо фото ще не додане (малює js/main.js) */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    45deg, #e9e9e4, #e9e9e4 12px, #f0f0eb 12px, #f0f0eb 24px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

/* ============================================================
   ЯК ЦЕ ПРАЦЮЄ (кроки)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--grove);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: #11110d;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   ВІДГУКИ
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--white);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { color: #e8a33d; font-size: 18px; letter-spacing: 2px; }
.review p { font-size: 16.5px; line-height: 1.6; flex: 1; }
.review-author { font-weight: 700; font-size: 15.5px; }
.review-author small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   ФІНАЛЬНИЙ ЗАКЛИК (темно-зелена смуга)
   ============================================================ */
.cta-band { text-align: center; }
.cta-band h2 { margin-left: auto; margin-right: auto; }
.cta-band .section-intro { margin-left: auto; margin-right: auto; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.cta-phone-big {
  display: block;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-decoration: none;
  margin: 18px 0 26px;
}
.cta-phone-big:hover { color: var(--lime); }

/* ============================================================
   ПІДВАЛ
   ============================================================ */
.site-footer {
  background: #11110d; /* завжди темний, незалежно від теми */
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 30px;
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { width: 130px; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; color: rgba(255, 255, 255, 0.65); max-width: 30em; }
.site-footer h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: 4px; color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ============================================================
   ФІКСОВАНА ПАНЕЛЬ ДЗВІНКА ВНИЗУ (тільки на мобільному)
   ============================================================ */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--divider);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-call-bar .btn { flex: 1; font-size: 17px; padding: 14px 10px; }
.mobile-call-bar .btn-icon {
  flex: 0 0 56px;
  padding: 14px 0;
}

/* ============================================================
   СТОРІНКА ПОСЛУГ / БЛОГ / КОНТАКТИ — спільні дрібниці
   ============================================================ */
.page-hero {
  background: var(--white);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--divider);
}
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero h1 strong { font-weight: 750; color: var(--accent-text); }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 42em; }

.check-list { list-style: none; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  font-size: 17px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2311110d" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 13px no-repeat;
}

/* Таблиця абонементів / цін */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); }
.price-table th, .price-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 16.5px;
}
.price-table th {
  background: var(--forest);
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-table td strong { white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ============================================================
   ФОРМА КОНТАКТІВ
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lead-form {
  background: var(--white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lead-form label { font-weight: 700; font-size: 16px; display: block; margin-bottom: 6px; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: rgba(17, 17, 13, 0.04);
  border: 1px solid rgba(17, 17, 13, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid var(--lime);
  outline-offset: 0;
  border-color: var(--grove);
}
.form-status { font-size: 16px; font-weight: 600; }
.form-status.ok { color: var(--accent-text); }
.form-status.error { color: #a32222; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.contact-channels .btn { justify-content: flex-start; font-size: 20px; padding: 18px 24px; }

/* ============================================================
   ПАРТНЕРИ («одне вікно» побутових послуг)
   ============================================================ */
.partners-box {
  background: var(--white);
  border-left: 5px solid var(--lime);
  padding: 34px 30px;
}
.partners-box h2 { margin-bottom: 12px; }
.partners-box p { color: var(--muted); max-width: 46em; margin-bottom: 20px; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-tags span {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 15.5px;
  font-weight: 600;
}

/* ============================================================
   ГАЛЕРЕЯ «НАША РОБОТА»
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item { background: var(--white); padding: 14px; }
.gallery-item > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-caption { padding: 14px 8px 6px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   БЛОГ
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--white);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card .blog-date {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-card h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.blog-card h3 a { text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent-text); }
.blog-card p { font-size: 16px; color: var(--muted); flex: 1; }

/* Стаття блогу */
.article {
  background: var(--white);
  max-width: 780px;
  margin: 40px auto;
  padding: 48px clamp(22px, 5vw, 60px);
}
.article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; line-height: 1.2; margin-bottom: 10px; }
.article .article-meta { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 26px; font-weight: 700; margin: 34px 0 12px; }
.article h3 { font-size: 21px; font-weight: 700; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article .article-cta {
  background: var(--paper);
  border-left: 5px solid var(--accent-text);
  padding: 24px;
  margin: 30px 0;
}
.article .article-cta p { margin-bottom: 14px; font-weight: 600; }

/* Посилання всередині статті — помітні, із зеленим підкресленням */
.article p a,
.article li a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
}
.article p a:hover, .article li a:hover { text-decoration-color: var(--accent-text); }

/* Таблиці у статті: горизонтальна прокрутка на вузьких екранах */
.article .table-wrap { margin: 18px 0 22px; }

/* Пара фото «до / після» у статті (вертикальні фото) */
.article-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 26px;
}
.article-ba figure { margin: 0; }
.article-ba .ba-frame { position: relative; overflow: hidden; background: var(--paper); }
.article-ba img { width: 100%; height: auto; display: block; }
.article-ba .ba-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(17, 17, 13, 0.78);
  color: #ffffff;
}
.article-ba .ba-tag.after { background: var(--grove); }
.article-ba figcaption {
  font-size: 15px;
  color: var(--muted);
  padding-top: 10px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .article-ba { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   АДАПТИВНІСТЬ (мобільні пристрої)
   ============================================================ */
@media (max-width: 900px) {
  .services-grid, .why-grid, .reviews-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 76px; } /* місце під фіксовану панель */
  .section { padding: 52px 0; }

  .services-grid, .why-grid, .reviews-grid, .steps-grid,
  .ba-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }

  /* мобільне меню */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 18px; padding: 14px 12px; }
  .header-phone { display: none; } /* на мобільному є нижня панель */

  .mobile-call-bar { display: flex; }

  .hero { padding: 32px 0 40px; }
  .hero-cta .btn { width: 100%; }
  .cta-buttons .btn { width: 100%; }

  .ba-pair { grid-template-columns: 1fr 1fr; } /* до/після завжди поруч */
  .services-grid.four { grid-template-columns: 1fr; } /* 4 картки в стовпчик */
}

/* ============================================================
   ТЕМНА ТЕМА
   Вмикається кнопкою 🌙 у шапці (js/main.js запам'ятовує вибір).
   Тут просто підмінюються кольори — весь інший код спільний.
   ============================================================ */
:root[data-theme="dark"] {
  --ink: #edece4;            /* світлий текст */
  --paper: #171913;          /* темний фон сторінки */
  --white: #21241c;          /* темні поверхні (картки, шапка) */
  --muted: #a6a89b;
  --divider: rgba(237, 236, 228, 0.16);
  --accent-text: #b8d48c;    /* світло-зелений акцент замість темного */
}
/* Назва компанії в шапці — світліша, щоб читалась на темному */
:root[data-theme="dark"] .logo-text { color: #c9d3a6; }
/* Поля форми на темному фоні */
:root[data-theme="dark"] .lead-form input,
:root[data-theme="dark"] .lead-form select,
:root[data-theme="dark"] .lead-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(237, 236, 228, 0.4);
}
:root[data-theme="dark"] .form-status.error { color: #e08a8a; }
/* Заглушка для фото */
:root[data-theme="dark"] .photo-placeholder {
  background: repeating-linear-gradient(
    45deg, #262922, #262922 12px, #2d3028 12px, #2d3028 24px);
}
