/* ============================================================
   ПІДЛОГА ЛЬВІВ — стилі
   Темний графіт + бурштиновий акцент. Кольори — у :root.
   ============================================================ */

:root {
  --bg: #101114;
  --bg-2: #16181d;
  --card: #1b1e24;
  --card-2: #20242b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceae6;
  --muted: #9a958c;
  --accent: #e79a3c;
  --accent-strong: #f3aa4e;
  --accent-dark: #b97e2b;
  --ok: #45c06f;
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-s: 10px;
  --header-h: 72px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ---------- базове ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #14100a; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head--center .kicker::after { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }

.h2 { font-size: clamp(1.55rem, 3.6vw, 2.5rem); }
.h2 .accent { color: var(--accent); }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #17120a;
  font-size: 14px; font-weight: 800; letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(231, 154, 60, 0.25); }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.4); color: #fff; box-shadow: none; }

.btn--small { padding: 11px 20px; font-size: 13px; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
/* блюр — на псевдоелементі, а не на самій шапці: backdrop-filter на предку
   зробив би шапку containing block для fixed-меню і ламав би його позицію */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.site-header.scrolled { background: rgba(16, 17, 20, 0.82); border-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; z-index: 110; position: relative; color: #fff; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center;
  color: #17120a; font-size: 15px; font-weight: 800;
}
.logo i { font-style: normal; color: var(--accent); }

.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: width 0.3s; }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; font-size: 14.5px; }
.nav-phone svg { width: 17px; height: 17px; color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 6px auto; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 14, 17, 0.94) 0%, rgba(13, 14, 17, 0.55) 45%, rgba(13, 14, 17, 0.6) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(56px, 9vh, 110px); }
.hero-title {
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  max-width: 21ch;
  color: #fff;
  margin-bottom: 0.5em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { max-width: 56ch; font-size: 1.05rem; color: rgba(236, 234, 230, 0.82); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px; font-weight: 700; color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip b { color: var(--accent); font-weight: 800; }

/* ---------- стрічка ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 36px; white-space: nowrap;
  margin-right: 36px; text-transform: uppercase; letter-spacing: 0.06em;
}
.marquee-track span::after { content: "◆"; font-size: 0.55rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- переваги ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s, border-color 0.3s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(231, 154, 60, 0.45); }
.feat-ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(231, 154, 60, 0.12); border: 1px solid rgba(231, 154, 60, 0.3);
  display: grid; place-items: center; color: var(--accent);
}
.feat-ico svg { width: 23px; height: 23px; }
.feat h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feat p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- послуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.svc:hover { transform: translateY(-5px); border-color: rgba(231, 154, 60, 0.5); box-shadow: var(--shadow); }
.svc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.svc:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.svc h3 { font-size: 1.05rem; margin-bottom: 8px; }
.svc p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-price { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--accent); }
.svc-link { font-size: 13px; font-weight: 800; color: var(--text); background: none; border: 0; padding: 0; display: inline-flex; gap: 7px; align-items: center; transition: color 0.25s, gap 0.25s; }
.svc-link::after { content: "→"; color: var(--accent); }
.svc-link:hover { color: var(--accent); gap: 11px; }

/* ---------- роботи ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 100px; background: transparent;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted);
  transition: all 0.25s;
}
.filter-btn:hover { border-color: rgba(231, 154, 60, 0.6); color: var(--accent); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #17120a; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.proj:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj:hover { transform: translateY(-5px); border-color: rgba(231, 154, 60, 0.5); box-shadow: var(--shadow); }
.proj.hidden { display: none; }
.proj-cover { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.proj:hover .proj-cover img { transform: scale(1.05); }
.proj-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(13, 14, 17, 0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; color: #fff;
}
.proj-badge svg { width: 13px; height: 13px; color: var(--accent); }
.proj-info { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj-info h3 { font-size: 0.94rem; margin: 0; font-weight: 600; }
.proj-count { font-size: 12px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }

.gallery-more { text-align: center; margin-top: 36px; }
.gallery-more[hidden] { display: none; }

/* ---------- процес ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { display: grid; gap: 8px; counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.3s;
}
.step:hover { border-color: rgba(231, 154, 60, 0.45); }
.step-num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(231, 154, 60, 0.12); border: 1px solid rgba(231, 154, 60, 0.35);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

.process-video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.process-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; max-height: 560px; }
.process-video figcaption {
  padding: 16px 18px; font-size: 0.9rem; color: var(--muted);
  background: var(--card); border-top: 1px solid var(--line);
}
.process-video figcaption b { color: var(--text); }

/* ---------- ціни ---------- */
.price-groups { display: grid; gap: 40px; max-width: 920px; margin-inline: auto; }
.price-group h3 {
  font-size: 1.1rem; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.price-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.price-group h3 small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.price-rows { display: grid; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.price-row:last-child { border-bottom: 0; }
.price-name { color: var(--text); }
.price-name small { display: block; color: var(--muted); font-size: 12.5px; }
.price-dots { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.15); transform: translateY(-4px); min-width: 20px; }
.price-val { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--accent); white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 38px; max-width: 60ch; margin-inline: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.cta .container { position: relative; z-index: 2; text-align: center; padding-block: clamp(70px, 9vw, 120px); }
.cta-title { font-size: clamp(1.5rem, 3.6vw, 2.4rem); color: #fff; max-width: 24ch; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 2em; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- контакти ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(231, 154, 60, 0.5); }
.contact-ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
}
.contact-ico svg { width: 24px; height: 24px; }
.contact-ico--phone { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #17120a; }
.contact-ico--viber { background: #7360f2; }
.contact-ico--tg { background: #2aabee; }
.contact-ico--inst { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.contact-card b { font-size: 1.02rem; }
.contact-card span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }

.area-note {
  margin-top: 34px; padding: 22px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; gap: 16px; align-items: center;
  color: var(--muted); font-size: 0.96rem;
}
.area-note svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; }
.area-note b { color: var(--text); }

/* ---------- футер ---------- */
.site-footer { background: #0c0d10; border-top: 1px solid var(--line); padding: 48px 0 26px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand p { font-size: 0.9rem; max-width: 36ch; margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 0.92rem; transition: color 0.25s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 22px; font-size: 0.85rem; }
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- мобільна панель звʼязку ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;
  background: rgba(16, 17, 20, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.action-bar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-s);
  font-size: 11px; font-weight: 700; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
}
.action-bar a svg { width: 20px; height: 20px; }
.action-bar a.is-call { background: var(--accent); border-color: var(--accent); color: #17120a; }
.action-bar .ico-viber { color: #8b7cf7; }
.action-bar .ico-tg { color: #2aabee; }
.action-bar .ico-inst { color: #dd2a7b; }

/* ---------- плаваючі кнопки (десктоп) ---------- */
.float-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
}
.float-stack.show { opacity: 1; visibility: visible; transform: none; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s;
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-btn svg { width: 24px; height: 24px; }
.float-btn--phone { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #17120a; }
.float-btn--viber { background: #7360f2; }
.float-btn--tg { background: #2aabee; }

#toTop {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(27, 30, 36, 0.9); backdrop-filter: blur(8px);
  color: var(--text); font-size: 1.1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s, background 0.25s;
}
#toTop.show { opacity: 1; visibility: visible; }
#toTop:hover { background: var(--accent); color: #17120a; border-color: var(--accent); }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 11, 0.96); }
.lb-stage-wrap { position: relative; z-index: 2; max-width: min(92vw, 900px); text-align: center; }
.lb-stage { display: flex; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 92vw; max-height: 78vh; border-radius: var(--radius-s); margin-inline: auto; background: #000; }
.lb-cap { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }
.lb-cap b { color: #fff; font-weight: 700; }
.lb-btn {
  position: absolute; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(27, 30, 36, 0.7);
  color: #fff; font-size: 1.2rem;
  transition: background 0.25s, border-color 0.25s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #17120a; }
.lb-prev { left: 2.5vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2.5vw; top: 50%; transform: translateY(-50%); }
.lightbox.lb--single .lb-prev, .lightbox.lb--single .lb-next { display: none; }
.lb-close { top: 20px; right: 2.5vw; }
.lb-count { position: absolute; top: 32px; left: 2.5vw; z-index: 3; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.12em; }

/* ---------- анімації появи ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
/* 1025–1360px: контент майже впритул до країв — зменшуємо плаваючі кнопки,
   щоб не накривали ціни/картки */
@media (min-width: 1025px) and (max-width: 1360px) {
  .float-stack { right: 8px; gap: 10px; }
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 20px; height: 20px; }
  #toTop { left: 8px; width: 42px; height: 42px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 90px 24px 40px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 24px; margin: auto; }
  .nav-link { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
  .nav-phone-li { margin-top: 10px; }

  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-video { max-width: 420px; margin-inline: auto; }

  /* до 1024px: нижня панель звʼязку замість плаваючих кнопок,
     щоб нічого не перекривало контент */
  body { padding-bottom: 84px; }
  .action-bar { display: flex; }
  .float-stack { display: none; }
  #toTop { bottom: 98px; }
  /* нижня панель не має накривати чіпи в hero */
  .hero-content { padding-bottom: calc(clamp(56px, 9vh, 110px) + 84px); }
}

@media (max-width: 640px) {
  #toTop { left: 14px; }

  .feat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .proj-info { padding: 12px 12px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .proj-info h3 { font-size: 0.82rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .price-row { flex-wrap: wrap; }
  .price-dots { display: none; }
  .price-val { margin-left: auto; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-stage img, .lb-stage video { max-height: 66vh; }
}

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.calc-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 24px;
}
.calc-label { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--text); margin-bottom: 10px; }
.calc-label small { color: var(--muted); font-weight: 600; }
.calc-label--sub { margin-top: 14px; }
.calc-input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.calc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 154, 60, 0.18); }
select.calc-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }

.calc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-seg button {
  padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 100px; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all 0.25s;
}
.calc-seg button:hover { border-color: rgba(231, 154, 60, 0.6); color: var(--accent); }
.calc-seg button.is-active { background: var(--accent); border-color: var(--accent); color: #17120a; }

.calc-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.calc-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg-2);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.calc-chip:hover { border-color: rgba(231, 154, 60, 0.5); }
.calc-chip input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.calc-chip:has(input:checked) { border-color: var(--accent); color: var(--text); background: rgba(231, 154, 60, 0.08); }

.calc-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }

.calc-result {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--card); border: 1px solid rgba(231, 154, 60, 0.35); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.calc-result h3 { font-size: 1.05rem; margin-bottom: 16px; }
.calc-lines { display: grid; gap: 2px; margin-bottom: 16px; }
.calc-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.calc-line span { color: var(--muted); }
.calc-line b { white-space: nowrap; font-weight: 700; }
.calc-empty { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.calc-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0 4px;
  border-top: 2px solid rgba(231, 154, 60, 0.4);
}
.calc-total span { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.calc-total b { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); white-space: nowrap; }
.calc-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 16px; }
.calc-note b { color: var(--text); }
.calc-result .btn { width: 100%; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .calc-chips { grid-template-columns: 1fr; }
}

/* ---------- блог: список статей ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(231, 154, 60, 0.5); box-shadow: var(--shadow); }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.35; }
.post-card p { font-size: 0.9rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.post-card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.post-card-meta b { color: var(--accent); font-weight: 700; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- блог: сторінка статті ---------- */
.post-wrap { max-width: 800px; margin-inline: auto; }
.post-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.post-crumbs a { color: var(--accent); }
.post-crumbs a:hover { text-decoration: underline; }
.post-title { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.post-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 30px; }

.post-content { font-size: 1.02rem; }
.post-content h2 { font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.post-content h3 { font-size: 1.08rem; margin: 1.5em 0 0.5em; }
.post-content p { color: #cfccc5; }
.post-content ul, .post-content ol { color: #cfccc5; padding-left: 22px; margin: 0 0 1em; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content strong { color: var(--text); }
.post-content blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--text);
}
.post-content figure { margin: 1.6em 0; }
.post-content figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.post-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--card); color: var(--text); font-weight: 700; white-space: nowrap; }
.post-content td { color: #cfccc5; }

.post-cta {
  margin: 44px 0;
  background: var(--card); border: 1px solid rgba(231, 154, 60, 0.35); border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.post-cta h3 { font-size: 1.15rem; }
.post-cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.4em; }
.post-cta .hero-actions { justify-content: center; margin-bottom: 0; }

.post-related { border-top: 1px solid var(--line); padding-top: 28px; }
.post-related h3 { font-size: 1.05rem; margin-bottom: 14px; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post-related a { color: var(--accent); font-weight: 600; }
.post-related a:hover { text-decoration: underline; }
