/**
 * Dent Aura — Global Styles
 * Shared components: nav, footer, modal, buttons, FAQ, CTA, sticky bar, scroll-reveal
 */

/* ══════════════════════════════
   RESET & TOKENS
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111111;
  --dark: #1C1C1C;
  --gray-dark: #3A3A3A;
  --gray-mid: #6E6E6E;
  --gray-60: #666666;
  --gray-light: #C8C8C8;
  --gray-pale: #F0F0EF;
  --gray-10: #E8E8E8;
  --gray-05: #F5F5F5;
  --white: #FFFFFF;

  --blue: #1B5A9E;
  --blue-hover: #154C8A;
  --blue-light: #2670BF;
  --blue-pale: #E8F0FA;
  --blue-mid: #D0E4F8;
  --blue-seat: #2563A8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --r-sm: 3px;
  --r: 6px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);

  --tr: .22s ease;
  --transition: .22s ease;
  --gray-40: #9A9A9A;
  --gray-20: #DADADA;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Playfair по умолчанию рисует «старинные» цифры (3, 4, 5 уходят ниже строки) */
  font-variant-numeric: lining-nums;
}

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

/* ══════════════════════════════
   TYPOGRAPHY
══════════════════════════════ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--black);
}

h1 { font-size: clamp(40px, 4.5vw, 62px); }
h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-size: clamp(24px, 2.5vw, 36px); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); }

/* ══════════════════════════════
   SECTION HEADERS
══════════════════════════════ */
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
}
.section-tag--dark { color: rgba(255,255,255,.55); }
.section-tag--dark::before { background: var(--blue-light); }

.section-header { margin-bottom: 56px; }

/* ══════════════════════════════
   PAGE HEADER (общие для внутренних страниц)
══════════════════════════════ */
/* Хлібні крихти — один стиль на всьому сайті.
   Неяскраві, але читабельні: #767676 на білому = 4.5:1 (WCAG AA). */
.ph-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #767676;
  margin-bottom: 20px;
}
.ph-breadcrumb a {
  color: #767676;
  text-decoration: none;
  transition: color var(--transition);
}
.ph-breadcrumb a:hover { color: var(--blue); }
.ph-breadcrumb span { color: var(--gray-light); }
.ph-breadcrumb span:last-child { color: var(--gray-dark); }

.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.ph-tag::before { content: ''; width: 20px; height: 2px; background: var(--blue); }

.ph-h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 18px;
}
.ph-h1 em { font-style: italic; color: var(--blue); }
/* Довгі слова в RU/EN («конфиденциальности») на вузьких екранах — перенос по складах, інакше розрив */
.ph-h1, .legal-content h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

.ph-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-60);
  max-width: 480px;
  margin-bottom: 32px;
}

.ph-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sec-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.sec-tag::before { content: ''; width: 16px; height: 2px; background: var(--blue); }

.sec-h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.sec-h2 em { font-style: italic; color: var(--blue); }

@media (max-width: 900px) {
  .ph-actions { flex-direction: column; align-items: stretch; }
  .ph-actions .btn-primary,
  .ph-actions .btn-outline { width: 100%; justify-content: center; }
}

/* Иконки внутри текста/кнопок */
.da-ico { flex-shrink: 0; vertical-align: -3px; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border: 1.5px solid var(--blue);   /* та же рамка, что у .btn-outline → одна высота */
  padding: 16px 32px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,90,158,.3);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-light);
  padding: 16px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-white-fill {
  background: #fff;
  color: var(--blue);
  border: none;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.btn-white-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ══════════════════════════════
   MESSENGER CHIPS
══════════════════════════════ */
.msg-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-label {
  font-size: 12px;
  color: var(--gray-mid);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.chip:hover,
.chip:focus-visible {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip-viber { background: #7360f2; color: #fff; }
.chip-tg { background: #229ED9; color: #fff; }
.chip-wa { background: #25D366; color: #fff; }

/* Service item SVG icon */
.si-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.da-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-pale);
  transition: box-shadow .3s;
}
.da-nav.elevated {
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
}

.nav-logo { text-decoration: none; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-logo-fallback {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .02em;
}
.nav-logo-fallback span { color: var(--blue); }

.da-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.da-nav .nav-links li {
  display: list-item;
  padding: 0;
  margin: 0;
  border: none;
}
.da-nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gray-60);
  text-decoration: none;
  transition: color .2s;
  display: inline;
  padding: 0;
}
.da-nav .nav-links a:hover,
.da-nav .nav-links a.active { color: var(--black); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-phone:hover { color: var(--blue); }

/* ── Перемикач мови (inc/i18n.php → da_language_switcher) ── */
.lang-sw { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lang-sw li { display: flex; }
.lang-sw a, .lang-sw span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--r-sm); font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-decoration: none; }
.lang-sw--nav { margin-right: 6px; padding-right: 12px; border-right: 1px solid var(--gray-10); }
.lang-sw--nav a { color: var(--gray-60); }
.lang-sw--nav a:hover { color: var(--blue); background: var(--blue-pale); }
.lang-sw--nav span { color: var(--black); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.lang-sw--drawer { gap: 8px; }
.lang-sw--drawer a, .lang-sw--drawer span { min-width: 48px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .78); font-size: 13px; }
.lang-sw--drawer a:hover { border-color: #fff; color: #fff; }
.lang-sw--drawer span { background: #fff; border-color: #fff; color: var(--black); }

.nav-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.nav-btn:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* Burger (mobile): три лінії → хрестик. Фон GeneratePress на hover/focus гасимо */
.nav-burger,
.nav-burger:hover,
.nav-burger:focus,
.nav-burger:active {
  background: transparent;
  color: var(--black);
}
.nav-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 0; }
.nav-burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s, top .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer (як у hmdd-ppc): темна панель зліва + затемнення */
.da-drawer { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.da-drawer.is-open { pointer-events: auto; }
.da-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .32s ease;
}
.da-drawer.is-open .da-drawer__overlay { opacity: 1; }
.da-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #fff;
  /* тінь лише у відкритої панелі — закрита стоїть впритул за лівим краєм і тінь падала на сторінку */
  box-shadow: none;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), box-shadow .32s;
}
.da-drawer.is-open .da-drawer__panel { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
html.da-drawer-open,
html.da-drawer-open body { overflow: hidden; }

.da-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  flex: none;
}
.da-drawer__logo img { height: 32px; width: auto; display: block; }

/* Круглий хрестик, лінії — псевдоелементами, щоб стояв рівно по центру */
.da-drawer__close,
.da-drawer__close:hover,
.da-drawer__close:focus {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.da-drawer__close:hover { background: rgba(255, 255, 255, .18); }
.da-drawer__close::before,
.da-drawer__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.6px;
  margin: -.8px 0 0 -7px;
  background: currentColor;
  border-radius: 2px;
}
.da-drawer__close::before { transform: rotate(45deg); }
.da-drawer__close::after { transform: rotate(-45deg); }

.da-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
}
.da-drawer__sec + .da-drawer__sec {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.da-drawer__lbl {
  display: block;
  margin: 18px 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.da-drawer__sec + .da-drawer__sec .da-drawer__lbl { margin-top: 0; }

.da-drawer__menu,
.da-drawer__info { list-style: none; margin: 0; padding: 0; }
.da-drawer__menu li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.da-drawer__menu li:last-child { border-bottom: 0; }
.da-drawer__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color var(--transition);
}
.da-drawer__menu a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .35;
  transition: opacity var(--transition), transform var(--transition);
}
.da-drawer__menu a:hover,
.da-drawer__menu a[aria-current="page"] { color: var(--blue-mid); }
.da-drawer__menu a:hover::after { opacity: .8; transform: translateX(2px) rotate(45deg); }

.da-drawer__info li + li { margin-top: 12px; }
.da-drawer__info a,
.da-drawer__static {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color var(--transition);
}
.da-drawer__info a:hover { color: #fff; }
.da-drawer__info .da-ico { color: var(--blue-mid); margin-top: 1px; vertical-align: 0; }

.da-drawer__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.da-drawer__cta { width: 100%; }
.da-drawer__msg { display: flex; gap: 8px; }
.da-drawer__msg .chip { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .da-nav { padding: 0 20px; }
  .da-nav .nav-links { display: none; }
  .da-nav .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .lang-sw--nav { display: none; }
}

/* Админ-бар WP (залогинен): сдвигаем фиксированную шапку и липкие элементы */
.admin-bar .da-nav { top: 32px; }
.admin-bar .da-drawer { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .da-nav { top: 46px; }
  .admin-bar .da-drawer { top: 46px; }
}
@media screen and (max-width: 600px) {
  /* на узких экранах WP делает бар absolute — шапка тогда уезжала под него */
  #wpadminbar { position: fixed; }
}

/* Content offset for fixed nav */
body { padding-top: 68px; }

/* ══════════════════════════════
   STICKY MOBILE BAR
══════════════════════════════ */
.sticky-mobile {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: none;
  background: var(--blue);
  padding: 14px 20px;
  gap: 10px;
}
.sticky-mobile a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-sm);
  padding: 12px 8px;
}
.sticky-mobile .sm-call {
  background: #fff;
  color: var(--blue);
}
.sticky-mobile .sm-record {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}

@media (max-width: 768px) {
  .sticky-mobile { display: flex; }
  body { padding-bottom: 72px; }
}

/* ══════════════════════════════
   CTA STRIP
══════════════════════════════ */
.cta-strip {
  background: var(--blue);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.cta-strip-left h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.cta-strip-left h3 em { font-style: italic; color: #fff; opacity: .85; }
.cta-strip-left p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.cta-or {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-phone-white {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  background: rgba(0,0,0,.18);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.btn-phone-white svg { flex-shrink: 0; }
.btn-phone-white:hover,
.btn-phone-white:focus-visible {
  color: #fff;
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.35);
}

@media (max-width: 900px) {
  .cta-strip {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }
}

/* ══════════════════════════════
   FAQ ACCORDION
══════════════════════════════ */
.faq-section { padding: 100px 48px; background: var(--white); }
/* Две независимые колонки — открытый пункт не сдвигает соседнюю */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 48px;
}
.faq-col { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-10);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--blue-mid); }
.faq-item.open {
  border-color: var(--blue-mid);
  box-shadow: 0 6px 20px rgba(27,90,158,.06);
}
.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  gap: 16px;
  transition: color .2s;
}
.faq-item:hover .faq-q,
.faq-item.open .faq-q { color: var(--blue); }

.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s, color .2s;
}
.faq-item:hover .faq-chevron { background: var(--blue-mid); }
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-mid);
}
.faq-item.open .faq-a { max-height: 400px; }

@media (max-width: 900px) {
  .faq-section { padding: 60px 20px; }
  .faq-grid { display: flex; flex-direction: column; gap: 10px; }
  .faq-col { display: contents; }
  .faq-q { padding: 18px 20px; }
  .faq-a-inner { padding: 0 20px 18px; }
}

/* ══════════════════════════════
   FOOTER — преміальний: глибокий графіт з синім відтінком, великий телефон
══════════════════════════════ */
.da-footer {
  --ft-bg: #0D1117;
  --ft-line: rgba(255,255,255,.08);
  --ft-muted: rgba(255,255,255,.55);
  --ft-dim: rgba(255,255,255,.38);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(38,112,191,.22), transparent 60%),
    linear-gradient(180deg, #111720 0%, var(--ft-bg) 100%);
  color: #fff;
  padding: 72px 48px 8px;
  border-top: 1px solid rgba(38,112,191,.35);
}
.ft-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ft-line);
}
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 48px; width: auto; display: block; }
.ft-lead { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.7; color: var(--ft-muted); }
.ft-call { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.ft-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid); }
.ft-phone {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.ft-phone:hover { color: var(--blue-mid); }
.ft-call-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.ft-msg {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.ft-msg:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; transform: translateY(-2px); }

.ft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--ft-line);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ft-dim);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;   /* GeneratePress даёт ul margin-left: 3em */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: var(--ft-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.ft-hours { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ft-hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--ft-line); }
.ft-hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.ft-hours dt { color: var(--ft-dim); }
.ft-hours dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.ft-hours div.is-today dt, .ft-hours div.is-today dd { color: #fff; font-weight: 600; }
.ft-now[hidden] { display: none; } /* без графіка на сьогодні (вихідний) — не показувати порожню крапку */
.ft-now { margin: 14px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ft-muted); }
.ft-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9AA4B1; }
.ft-now.is-open::before { background: #4CC38A; box-shadow: 0 0 0 4px rgba(76,195,138,.15); }
.ft-contacts a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.ft-contacts .da-ico { color: var(--blue-mid); margin-top: 3px; vertical-align: 0; }

.ft-pay { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-bottom: 1px solid var(--ft-line); }
.ft-pay .ft-label { color: var(--ft-dim); }
.ft-pay-logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ft-pay-logos li { display: flex; align-items: center; }
.ft-pay-logos img { display: block; width: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .2s; }
.ft-pay-logos li:hover img { opacity: 1; }
.ft-pay-logos .pay-sq img { height: 30px; }
.ft-pay-logos .pay-wm img { height: 15px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 28px; position: relative; z-index: 1; }
.footer-copy { font-size: 12px; color: var(--ft-dim); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: var(--ft-dim); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; }


@media (max-width: 1100px) { .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .da-footer { padding: 52px 20px 4px; }
  .ft-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 36px; }
  .ft-call { align-items: flex-start; text-align: left; }
  .ft-call-actions { justify-content: flex-start; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 0; }
  .ft-pay { flex-direction: column; align-items: flex-start; }
  .ft-pay-logos { gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.da-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.da-overlay.open { display: flex; }

.da-modal {
  background: #fff;
  width: min(460px, 94vw);
  border-radius: var(--r);
  padding: 44px 40px;
  position: relative;
  animation: modalIn .3s ease;
}

.modal-x {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gray-pale);
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-x:hover { background: var(--gray-light); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 28px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-60);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #D4D4D4;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }
.field input::placeholder,
.field textarea::placeholder { color: #9A9A9A; }
/* Випадаючий список: власна стрілка (рідну прибрано appearance: none) */
.field select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B5A9E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
.field select:invalid,
.field select option[value=""] { color: #767676; }

.modal-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.modal-submit:hover { background: var(--blue-light); }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--gray-60);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 20px 0;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-10);
}

.modal-messengers {
  display: flex;
  gap: 8px;
}
.modal-messengers .chip {
  flex: 1;
  justify-content: center;
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.sr {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.sr.d1 { transition-delay: .1s; }
.sr.d2 { transition-delay: .2s; }
.sr.d3 { transition-delay: .3s; }
.sr.vis { opacity: 1; transform: none; }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
}

/* ═══════════════════════════════════════
   404 PAGE
═══════════════════════════════════════ */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    text-align: center;
}
.p404-inner { max-width: 560px; }
.p404-code {
    font-family: var(--font-serif);
    font-size: clamp(100px, 15vw, 180px);
    font-weight: 700;
    color: var(--gray-10);
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: 8px;
}
.p404-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}
.p404-desc {
    font-size: 15px;
    color: var(--gray-60);
    line-height: 1.7;
    margin-bottom: 32px;
}
.p404-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.p404-links { text-align: center; }
.p404-links p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-40);
    margin-bottom: 12px;
}
.p404-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.p404-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}
.p404-links a:hover { color: var(--blue-hover); }

@media (max-width: 900px) {
    .page-404 { padding: 48px 20px; }
    .p404-actions { flex-direction: column; }
    .p404-actions .btn-primary,
    .p404-actions .btn-outline { width: 100%; justify-content: center; }
}

/* ══════════════════════════════
   LEAD FORMS (модалка + контакты)
══════════════════════════════ */
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js-da-lead .is-invalid { border-color: #D64545 !important; }
.js-da-lead.is-sending [type="submit"] { opacity: .6; cursor: progress; }
.lead-msg { font-size: 13px; line-height: 1.5; margin-top: 10px; }
.lead-msg:empty { display: none; }
.lead-msg.is-ok { color: #1E7B45; }
.lead-msg.is-err { color: #D64545; }

/* ── SEO-ТЕКСТ СТОРІНКИ (головна, про нас, ціни, контакти) ── */
.seo-section {
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}
.seo-body { font-size: 14px; color: var(--gray-60); line-height: 1.8; }
.seo-body p { margin-bottom: 14px; }
.seo-body strong { color: var(--black); font-weight: 600; }

.seo-aside {
    background: var(--blue);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    position: sticky;
    top: 84px;
}
.seo-aside h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.seo-aside p { font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 20px; line-height: 1.55; }
.aside-btn {
    display: block;
    width: 100%;
    background: #fff;
    color: var(--blue);
    padding: 13px 20px;
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}
.aside-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.aside-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: var(--r-sm);
    transition: border-color var(--transition);
}
.aside-phone:hover { border-color: #fff; }

.seo-body h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--black); margin: 32px 0 12px; }
.seo-body h2:first-child, .seo-body h3:first-child { margin-top: 0; }
.seo-body h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--black); margin: 24px 0 8px; }
.seo-body ul { margin: 0 0 14px; padding-left: 20px; }
.seo-body li { margin-bottom: 6px; }
.seo-body a { color: var(--blue); }

/* Згортання довгого тексту: текст у DOM повністю (для пошуковиків), видно перші ~420px */
.seo-collapse { position: relative; }
.seo-collapse.is-collapsed .seo-body { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.seo-more { display: none; margin-top: 16px; background: none; border: 0; padding: 8px 0; min-height: 40px; color: var(--blue); font: 600 14px var(--font-sans); cursor: pointer; }
.seo-collapse.is-collapsible .seo-more { display: inline-flex; align-items: center; gap: 6px; }
.seo-more:hover, .seo-more:focus { background: none; color: var(--blue); text-decoration: underline; }

@media (max-width: 900px) {
    .seo-section { grid-template-columns: 1fr; gap: 32px; }
    .seo-aside { position: static; }
}
@media (max-width: 768px) {
    .seo-section { padding: 40px 20px; }
    .seo-body h2 { font-size: 22px; }
}
