/* =========================================================
   Desi Gym — Khanapara, Guwahati
   Plain HTML + CSS + JS. No framework.
   ========================================================= */

:root {
  --bg: #0E0E0C;
  --surface: #161512;
  --surface-2: #1D1C18;
  --line: #2A2823;
  --text: #F3EFE6;
  --muted: #A8A399;
  --accent: #D6FB00;        /* Desi Gym brand lime, sampled from the logo */
  --accent-ink: #0E0E0C;
  --cream: #F3EFE6;
  --cream-line: #DDD7CB;
  --ink-2: #4A463E;

  --f-display: 'Big Shoulders Display', 'Impact', 'Arial Narrow', sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-deva: 'Tiro Devanagari Hindi', serif;

  --wrap: 1280px;
  --gutter: 40px;
  --section: 120px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.disp {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--rule::before { content: ""; width: 32px; height: 2px; background: currentColor; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--f-body); font-weight: 800; font-size: 15px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #E6FF4D; }
.btn--ghost { background: transparent; color: var(--text); border-color: #4A463E; }
.btn--ghost:hover { border-color: var(--text); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #2A2823; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar__phone { color: var(--text); font-weight: 700; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 12, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 0; color: var(--text);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__cta { min-height: 48px; padding: 0 22px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; background: transparent; border: 1px solid var(--line);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero__copy { padding-bottom: 24px; }
.hero__title { font-size: clamp(60px, 9.6vw, 144px); margin-top: 28px; }
.hero__lead { font-size: 19px; color: #C9C4BA; max-width: 520px; margin-top: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__deva { margin-top: 44px; font-family: var(--f-deva); font-size: 22px; color: #8F8A80; }

.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.hero__badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: var(--accent-ink); padding: 20px 24px;
}
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 44px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.hero__badge span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Fact strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 28px 24px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact__label { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fact__value { font-size: 20px; font-weight: 800; margin-top: 6px; }

/* ---------- Section heads ---------- */
.section { padding: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-title { font-size: clamp(52px, 7vw, 96px); margin-top: 16px; }
.section-lead { max-width: 440px; color: #C9C4BA; }

/* ---------- Programs ---------- */
.programs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.program { background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.program__img { aspect-ratio: 27 / 29; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program:hover .program__img img { transform: scale(1.06); }
.program__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.program__num { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--accent); }
.program__title { font-size: 36px; font-weight: 800; }
.program__text { color: #B4AFA5; font-size: 15px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__group { display: flex; gap: 40px; padding: 22px 20px; font-size: clamp(36px, 4.5vw, 56px); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 463 / 520; object-fit: cover; }
.about__tag {
  position: absolute; right: -1px; bottom: 32px; max-width: 300px;
  background: var(--accent); color: var(--accent-ink);
  padding: 18px 22px; font-weight: 800; font-size: 16px; line-height: 1.35;
  display: flex; gap: 12px; align-items: center;
}
.about__tag svg { width: 28px; height: 28px; flex: none; }
.about__text { font-size: 18px; color: #C9C4BA; margin-top: 32px; }
.pillars { margin-top: 40px; border-top: 1px solid var(--line); }
.pillar { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--f-display); font-size: 32px; font-weight: 900; color: var(--accent); min-width: 48px; line-height: 1.1; }
.pillar h3 { font-size: 18px; font-weight: 800; }
.pillar p { color: #B4AFA5; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,12,.94) 0%, rgba(14,14,12,.78) 45%, rgba(14,14,12,.15) 100%); }
.cta-band__inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; width: 100%; }
.cta-band__title { font-size: clamp(56px, 8vw, 112px); max-width: 720px; margin-top: 16px; }
.cta-band__text { color: #D6D1C7; font-size: 18px; max-width: 460px; margin-top: 24px; }
.cta-band .hero__actions { margin-top: 32px; }

/* ---------- Plans ---------- */
.plans { background: var(--cream); color: var(--bg); }
.plans .eyebrow { color: var(--ink-2); }
.plans .section-lead { color: var(--ink-2); }
.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--cream-line); padding: 36px; display: flex; flex-direction: column; gap: 20px; transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(14,14,12,.08); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.plan__name { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #5E594F; }
.plan__chip { font-size: 12px; font-weight: 800; background: #EDE7DA; padding: 6px 10px; letter-spacing: .06em; text-transform: uppercase; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__amount { font-family: var(--f-display); font-size: clamp(60px, 6vw, 80px); font-weight: 900; line-height: .9; }
.plan__per { color: #5E594F; font-weight: 600; }
.plan__monthly { font-weight: 800; margin-top: -10px; }
.plan__desc { color: var(--ink-2); }
.plan__list { display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 15px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; }

.plan--featured { background: var(--bg); color: var(--text); border-color: var(--bg); }
.plan--featured .plan__name, .plan--featured .plan__per { color: var(--muted); }
.plan--featured .plan__desc { color: #C9C4BA; }
.plan--featured .plan__chip { background: var(--accent); color: var(--accent-ink); }
.plan--featured .plan__amount { color: var(--accent); }
.plan--featured .plan__list svg { stroke: var(--accent); }
.plans__note { margin-top: 28px; font-size: 14px; color: #5E594F; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 12px; }
.gallery__item { position: relative; overflow: hidden; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--long { grid-column: span 4; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.link-arrow svg { width: 16px; height: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,7,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; width: auto; object-fit: contain; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border: 1px solid #3A372F; background: rgba(14,14,12,.6); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.testimonials { padding-top: 0; }
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.tcard {
  scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  background: var(--surface); min-height: 446px;
}
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard__body { position: relative; padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.tcard__mark { position: absolute; width: 72px; height: 52px; color: var(--accent); }
.tcard__mark--open { top: 0; left: 48px; }
.tcard__mark--close { right: 0; bottom: 48px; }
.tcard__quote { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; font-weight: 500; max-width: 640px; }
.tcard__name { font-weight: 800; font-size: 18px; }
.tcard__role { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.slider__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.slider__dots { display: flex; gap: 6px; }
.slider__dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider__dot::before { content: ""; width: 28px; height: 4px; background: #3A372F; transition: background-color .2s ease; }
.slider__dot[aria-current="true"]::before { background: var(--accent); }
.slider__arrows { display: flex; gap: 8px; }
.slider__arrow { width: 52px; height: 52px; border: 1px solid #3A372F; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease; }
.slider__arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slider__arrow svg { width: 20px; height: 20px; }

/* ---------- Visit ---------- */
.visit { background: var(--surface); border-top: 1px solid var(--line); }
.visit__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.contact-item { display: flex; gap: 16px; }
.contact-item svg { width: 24px; height: 24px; flex: none; stroke: var(--accent); margin-top: 4px; }
.contact-item__label { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-item__value { font-size: 17px; font-weight: 600; }
.contact-item__value a:hover { color: var(--accent); }
.map { margin-top: 40px; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) contrast(.9); }

.form { background: var(--bg); border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form__title { font-size: 44px; }
.form__lead { color: #B4AFA5; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  height: 54px; width: 100%; background: var(--bg); border: 1px solid #3A372F; color: var(--text);
  padding: 0 16px; font-size: 16px; font-family: var(--f-body); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8A399' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field input.is-invalid { border-color: #FF6B5A; }
.field__error { color: #FF8A7C; font-size: 13px; min-height: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__note { font-size: 13px; color: #8F8A80; }
.form__note a { color: var(--text); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { color: var(--muted); margin-top: 20px; max-width: 320px; font-size: 15px; }
.footer h3 { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { width: 48px; height: 48px; border: 1px solid #3A372F; display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer__social svg { width: 20px; height: 20px; }
.footer__word { font-size: clamp(72px, 15vw, 220px); color: #1C1B17; margin-top: 64px; line-height: .8; white-space: nowrap; overflow: hidden; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.fab svg { width: 24px; height: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .programs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .tcard__body { padding: 56px 48px; }
}

@media (max-width: 960px) {
  :root { --section: 88px; --header-h: 72px; --gutter: 28px; }

  /* Mobile menu: opens inside the header and pushes the page content down */
  .header__inner { flex-wrap: wrap; row-gap: 0; }
  .logo { order: 1; min-height: var(--header-h); }
  .nav-toggle { display: inline-flex; order: 2; }
  .header__cta { display: none; }
  .nav {
    order: 3; flex: 0 0 100%; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .nav.is-open {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; visibility: visible;
    border-top: 1px solid var(--line);
    padding: 8px 0 24px;
  }
  .nav__link { font-family: var(--f-display); font-size: 30px; font-weight: 900; letter-spacing: .01em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav__mobile-cta { display: inline-flex; margin-top: 20px; }

  .hero { padding-top: 48px; }
  .hero__grid, .about__grid, .visit__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__copy { padding-bottom: 0; }
  .hero__media img { aspect-ratio: 4 / 4.4; }

  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 20px; border-bottom: 1px solid var(--line); }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }

  .plans__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .plan--featured { order: -1; }

  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 2; }
  .gallery__item--long { grid-column: span 2; }

  .tcard { grid-template-columns: minmax(0, 1fr); }
  .tcard__photo { aspect-ratio: 4 / 3; }
  .tcard__photo img { object-position: center 25%; }
  .tcard__body { padding: 56px 32px 64px; }
  .tcard__mark { width: 56px; height: 40px; }
  .tcard__mark--open { left: 24px; }
  .tcard__mark--close { bottom: 24px; }

  .cta-band { min-height: 480px; }
  .cta-band__bg::after { background: linear-gradient(0deg, rgba(14,14,12,.95) 10%, rgba(14,14,12,.65) 100%); }

  .fab { display: flex; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 72px; }
  body { font-size: 15px; }

  .topbar__hide-sm { display: none !important; }
  .logo img { height: 22px; }

  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { padding: 14px 18px; }
  .hero__badge strong { font-size: 34px; }
  .hero__deva { margin-top: 32px; font-size: 19px; }

  .fact__value { font-size: 17px; }

  .section-head { margin-bottom: 40px; }
  .section-title { font-size: clamp(44px, 13vw, 52px); }
  .programs__grid { grid-template-columns: minmax(0, 1fr); }
  .program__img { aspect-ratio: 4 / 3; }

  .about__tag { position: static; max-width: none; }

  .plan { padding: 28px 24px; }

  .gallery__grid { grid-auto-rows: 150px; gap: 8px; }

  .tcard__photo { aspect-ratio: 1 / 1; }
  .tcard__body { padding: 48px 20px 56px; gap: 24px; }

  .form { padding: 28px 20px; }
  .form__title { font-size: 36px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; }
  .slider__arrow { width: 48px; height: 48px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

@media (max-width: 380px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: 52px; }
  .section-title { font-size: 40px; }
  .slider__dot { width: 34px; }
  .slider__dot::before { width: 22px; }
}
