.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
}

.logo__mark span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
  background: #eef2f7;
}

.header__phone {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__cta {
  min-height: 44px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: #eef2f7;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
  content: "";
}

.burger span::before {
  position: absolute;
  top: -6px;
}

.burger span::after {
  position: absolute;
  top: 6px;
}

.footer {
  background: var(--brand-dark);
  color: #c9d4e1;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer a {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer h3 {
  color: #fff;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 6px;
}

.footer__note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa0b4;
  font-size: 0.85rem;
}

.mobile-bar {
  display: none;
}

@media (max-width: 1100px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
  }


  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .header.is-open .nav a {
    padding: 14px;
    font-size: 1.05rem;
  }
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }

}

.logo--light {
  color: #fff;
}

.footer__about {
  margin-top: 14px;
}

/* Tablet: request button next to the menu button, both on the right. */
@media (min-width: 641px) and (max-width: 900px) {
  .header__cta {
    margin-left: auto;
  }

  .burger {
    margin-left: -12px;
  }
}

@media (max-width: 640px) {
  .header__cta {
    display: none;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn {
    min-height: 48px;
    width: 100%;
  }

  body:has(.mobile-bar) {
    padding-bottom: 72px;
  }
}
