/* =============================================================
   Entvocg — Jelgavas izklaides klubs
   Galvenā stila lapa
   ============================================================= */

/* ---------- 1. Mainīgie ---------- */
:root {
  --bg: #0a0c10;
  --bg-soft: #10141a;
  --bg-card: #141922;
  --bg-elev: #1a202b;

  --gold: #c8a24a;
  --gold-light: #e6c87d;
  --gold-deep: #9a7a2e;

  --text: #eae7e1;
  --text-muted: #a2a8b4;
  --text-dim: #79808d;

  --line: rgba(200, 162, 74, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --wrap: 1180px;
  --gap: 24px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: Georgia, "Times New Roman", "Liberation Serif", serif;

  --shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Pamati ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .5em; }

strong { color: #fff; font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #17120a;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #17120a; }

/* ---------- 3. Izkārtojums ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead { font-size: 1.12rem; color: var(--text-muted); }

/* ---------- 4. Pogas ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  font-family: inherit;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1408;
}
.btn--gold:hover { color: #1a1408; background: linear-gradient(135deg, #f0d896, var(--gold-light)); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--sm { padding: 10px 20px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- 5. Galvene ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 12, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name {
  font-family: var(--font-head);
  font-size: 1.32rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.logo__sub {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 15px;
  color: var(--text-muted);
  font-size: .93rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--gold-light); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 1px;
  background: var(--gold);
}

.nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.burger .icon--close, .burger.is-open .icon--menu { display: none; }
.burger.is-open .icon--close { display: block; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #06080b;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(95% 75% at 18% 32%, rgba(10, 12, 16, .42), rgba(10, 12, 16, .82) 72%),
    linear-gradient(180deg, rgba(10, 12, 16, .42) 0%, rgba(10, 12, 16, .18) 42%, rgba(10, 12, 16, .95) 100%);
}

.hero__inner { padding: clamp(80px, 12vh, 130px) 0 clamp(56px, 8vh, 90px); max-width: 720px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 16, .5);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
  font-weight: 600;
}
.hero__badge svg { width: 26px; height: 26px; }

.hero h1 { margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-light); }

.hero__text {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #cfd3da;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: .92rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta .icon { color: var(--gold); }

/* ---------- 7. Josla ar faktiem ---------- */
.strip {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.strip__item {
  background: var(--bg-soft);
  padding: 30px 26px;
  text-align: center;
}
.strip__num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.strip__label { font-size: .88rem; color: var(--text-muted); }

/* ---------- 8. Kārtis ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-4px); }
.card h3 { color: #fff; margin-bottom: .45em; }
.card p { color: var(--text-muted); font-size: .97rem; }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(200, 162, 74, .18), rgba(200, 162, 74, .04));
  border: 1px solid var(--line);
  color: var(--gold-light);
  margin-bottom: 20px;
}

/* Spēļu kartes ar attēlu */
.gcard {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.gcard:hover { border-color: var(--line); transform: translateY(-4px); }
.gcard__media {
  background: linear-gradient(160deg, #1d2430, #0f1319);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px;
  display: grid;
  place-items: center;
}
.gcard__media img { width: 100%; max-width: 190px; height: auto; }
.gcard__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.gcard__body h3 { color: #fff; }
.gcard__body p { color: var(--text-muted); font-size: .97rem; }
.gcard__tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.gcard__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.gcard__foot b { color: var(--gold-light); font-weight: 600; }

/* ---------- 9. Sadalītais bloks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #1b222e, #0d1116);
  padding: 34px;
}
.split__media img { width: 100%; height: auto; }
.split__body h2 { color: #fff; }
.split__body p { color: var(--text-muted); }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%) no-repeat center/9px 2px,
    rgba(200, 162, 74, .1);
}
.checklist li strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* ---------- 10. Tabula ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .95rem;
}
thead th {
  background: var(--bg-elev);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 400;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
tbody td:first-child { color: #fff; font-weight: 600; }

/* ---------- 11. BUJ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  color: #fff;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { color: var(--text-muted); padding-bottom: 22px; font-size: .97rem; }

/* ---------- 12. Karte ---------- */
.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  min-height: 420px;
}
.map__frame { position: relative; width: 100%; aspect-ratio: 16 / 8; min-height: 420px; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.map__skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 18px, transparent 18px 36px),
    linear-gradient(160deg, #161c26, #0e1218);
  color: var(--text-dim);
  text-align: center;
  padding: 24px;
}
.map__skeleton .icon { width: 38px; height: 38px; color: var(--gold); margin-inline: auto; }
.map__skeleton span { display: block; font-size: .9rem; margin-top: 12px; }

.map__card {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 3;
  background: rgba(10, 12, 16, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-width: 330px;
  box-shadow: var(--shadow);
}
.map__card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.map__card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 14px; }

/* ---------- 13. Kontakti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-item .card__icon { width: 48px; height: 48px; margin-bottom: 16px; }
.contact-item h3 { font-size: 1.12rem; color: #fff; }
.contact-item p, .contact-item a { font-size: .97rem; color: var(--text-muted); }
.contact-item a:hover { color: var(--gold-light); }

.hours { width: 100%; border-collapse: collapse; min-width: 0; }
.hours td { padding: 11px 0; border-bottom: 1px dashed var(--line-soft); font-size: .96rem; }
.hours td:first-child { color: var(--text); font-weight: 500; }
.hours td:last-child { text-align: right; color: var(--gold-light); white-space: nowrap; }
.hours tr:last-child td { border-bottom: 0; }

/* ---------- 14. Teksta lapas ---------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(70% 120% at 80% 0%, rgba(200, 162, 74, .1), transparent 60%),
    linear-gradient(180deg, #0d1117, var(--bg));
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero p { color: var(--text-muted); max-width: 720px; font-size: 1.08rem; }

.crumbs { font-size: .84rem; color: var(--text-dim); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); }
.crumbs span { margin: 0 8px; opacity: .5; }

.prose { max-width: 860px; }
.prose h2 { color: #fff; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--gold-light); margin-top: 1.8em; font-size: 1.22rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--gold); }

.note {
  border-left: 3px solid var(--gold);
  background: rgba(200, 162, 74, .06);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.note strong { color: var(--gold-light); }
.note p { color: var(--text); }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 40px;
}
.toc h2 { font-size: 1.1rem; margin-bottom: .7em; color: #fff; margin-top: 0; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { color: var(--text-muted); margin-bottom: .35em; }

/* ---------- 15. CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 85% 10%, rgba(200, 162, 74, .16), transparent 62%),
    linear-gradient(160deg, #191f2a, #0d1116);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.cta h2 { color: #fff; max-width: 680px; margin-inline: auto; }
.cta p { color: var(--text-muted); max-width: 620px; margin-inline: auto; margin-bottom: 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- 16. Kājene ---------- */
.footer {
  background: #070a0d;
  border-top: 1px solid var(--line-soft);
  padding: clamp(50px, 6vw, 76px) 0 30px;
  font-size: .94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer p { color: var(--text-dim); font-size: .92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); }
.footer ul a:hover { color: var(--gold-light); }
.footer__logo { margin-bottom: 18px; }

.age-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  margin-top: 18px;
  font-size: .82rem;
  color: var(--gold-light);
  font-weight: 600;
}
.age-chip svg { width: 28px; height: 28px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--text-dim);
  font-size: .86rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 17. Vecuma pārbaude ---------- */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.agegate[hidden] { display: none; }
.agegate__box {
  width: min(100%, 470px);
  background: linear-gradient(160deg, #161c26, #0d1116);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow);
}
.agegate__box svg { width: 74px; height: 74px; margin: 0 auto 20px; }
.agegate__box h2 { font-size: 1.6rem; color: #fff; }
.agegate__box p { color: var(--text-muted); font-size: .96rem; }
.agegate__box .btn-row { justify-content: center; margin-top: 26px; }
.agegate__small { font-size: .8rem; color: var(--text-dim); margin-top: 22px; }

/* ---------- 18. Adaptīvais dizains ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 880px) {
  .header__phone { display: none; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0c1015;
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 20px 24px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .nav__phone { display: inline-flex; }
}

@media (max-width: 780px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .map__card { position: static; max-width: none; margin: 0; border-radius: 0; border-inline: 0; border-bottom: 0; }
  .map { min-height: 0; }
  .map__frame { min-height: 340px; aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .strip__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .logo__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .card:hover, .gcard:hover { transform: none; }
}
