.site-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(216, 227, 234, 0.74);
  background: rgba(247, 250, 252, 0.86);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 286px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: linear-gradient(135deg, #ffffff, #edf5f9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__image {
  width: 128px;
  height: 46px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  color: var(--title);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__text span {
  color: var(--brand-2);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--deep);
  background: var(--surface);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--title-soft);
  font-size: 14px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover .nav-link,
.nav-link.is-active {
  background: rgba(127, 198, 204, 0.14);
  color: var(--deep);
}

.dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.dropdown a:hover {
  background: var(--section);
  color: var(--title);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--deep);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  white-space: nowrap;
}

.section {
  padding: 88px 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(238, 244, 248, 0.72), rgba(234, 242, 247, 0.34));
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(127, 198, 204, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 700;
}

.section-head--center .eyebrow {
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer {
  padding: 56px 0 92px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 32px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-qr {
  display: inline-grid;
  gap: 8px;
  padding: 12px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-qr img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    max-height: calc(100vh - var(--header-height) - 24px);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: auto;
  }

  body.is-menu-open .main-nav {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    margin: 4px 0 10px;
    background: var(--surface-soft);
  }

  .header-cta {
    display: none;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner {
    width: min(100% - 22px, 1240px);
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand__image {
    width: 92px;
    height: 38px;
  }

  .brand__text strong {
    max-width: 118px;
    font-size: 12px;
    white-space: normal;
  }

  .section {
    padding: 62px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
