/* ── Header ───────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color var(--d-3) var(--e-signal), border-color var(--d-3) var(--e-signal);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgb(0 0 0 / 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.hdr__in {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: block; flex: none; width: 150px; }
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo .lg-r { transform-box: fill-box; transform-origin: center; }

.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--fg-2);
  padding: 8px 0; white-space: nowrap;
  transition: color var(--d-2) var(--e-signal);
}
.nav a::after { /* мережева лінія з вузлом */
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--v-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-3) var(--e-signal);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }

.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.hdr__phone { display: flex; flex-direction: column; line-height: 1.05; }
.hdr__phone .data { font-size: 17px; color: var(--fg); letter-spacing: .01em; }
.hdr__phone small { font-size: 11px; color: var(--fg-3); margin-top: 3px; }
.hdr__login {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap;
  transition: color var(--d-2) var(--e-signal);
}
.hdr__login svg { width: 16px; height: 16px; }
.hdr__login:hover { color: var(--fg); }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg);
  transition: transform var(--d-3) var(--e-tune), opacity var(--d-2);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.hdr__call { display: none; }

@media (max-width: 1240px) {
  .nav { gap: 18px; }
  .hdr__phone small { display: none; }
}
@media (max-width: 1140px) {
  .nav, .hdr__login, .hdr__phone { display: none; }
  .burger { display: block; }
  .hdr__call {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line-2); border-radius: 50%;
  }
  .hdr__call svg { width: 17px; height: 17px; }
  .hdr__right { gap: 12px; }
}
@media (max-width: 760px) {
  .logo { width: 128px; }
  .hdr__right .btn--sm { display: none; }
}

/* ── Мобільне меню ───────────────────────── */
.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--ink-0);
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity var(--d-3) var(--e-signal), visibility 0s linear var(--d-3);
  overflow-y: auto;
}
.menu-open .mnav { visibility: visible; opacity: 1; transition-delay: 0s; }
.mnav__rings { position: absolute; right: -150px; top: -96px; width: 300px; opacity: .3; pointer-events: none; }
.mnav__list { position: relative; }
.mnav__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mnav__list a {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--f-display); font-weight: 500; font-size: 30px; letter-spacing: -.03em;
  padding: 11px 0 12px;
}
.mnav__list a .data { font-size: 13px; color: var(--fg-4); letter-spacing: .02em; }
.mnav__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mnav__foot .btn { width: 100%; }
.mnav__meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-3); }

/* ── Секції ──────────────────────────────── */
.section { position: relative; padding-block: var(--section-y); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; color: var(--fg-3); letter-spacing: .01em;
}
.eyebrow::before { /* вузол мережі */
  content: ""; width: 7px; height: 7px; background: var(--v-500);
  box-shadow: 0 0 12px var(--v-glow);
}
.h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.042em;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--fg-3); }

/* Мережева лінія: лінія — вузол — лінія */
.netline { display: flex; align-items: center; gap: 10px; color: var(--line-2); }
.netline::before, .netline::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.netline i { width: 7px; height: 7px; background: currentColor; flex: none; }

/* ── Footer ──────────────────────────────── */
.ftr { padding: 0 0 36px; border-top: 1px solid var(--line); }
.ftr__top { padding-block: 72px 64px; row-gap: 48px; }
.ftr__brand { grid-column: 1 / span 4; }
.ftr__brand img { width: 176px; }
.ftr__brand p { margin-top: 20px; color: var(--fg-3); font-size: 14px; max-width: 26em; }
.ftr__col { grid-column: span 2; }
.ftr__col h3 { font-size: 13px; font-weight: 500; color: var(--fg-3); margin-bottom: 16px; }
.ftr__col li + li { margin-top: 10px; }
.ftr__col a { font-size: 15px; color: var(--fg-2); transition: color var(--d-2); }
.ftr__col a:hover { color: var(--fg); }
.ftr__contact { grid-column: span 2; }
.ftr__contact .data { font-size: 22px; display: block; color: var(--fg); }
.ftr__contact small { display: block; color: var(--fg-3); font-size: 13px; margin: 4px 0 14px; }
.ftr__legal {
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: baseline;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-3);
}
.ftr__legal .data { font-size: 14px; color: var(--fg-2); letter-spacing: .02em; }
.ftr__reg { display: flex; align-items: baseline; gap: 10px; color: var(--fg-2); flex-basis: 100%; }
.ftr__reg i { width: 7px; height: 7px; flex: none; background: var(--v-500); box-shadow: 0 0 10px var(--v-glow); transform: translateY(-1px); }
@media (min-width: 761px) { .ftr__legal { padding-right: 76px; } }
@media (max-width: 1100px) {
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__col, .ftr__contact { grid-column: span 4; }
}
@media (max-width: 640px) {
  .ftr__col { grid-column: span 6; }
  .ftr__contact { grid-column: 1 / -1; }
}
