/* ═══════════════════════════════════════════
   FireFly School — styles
   ═══════════════════════════════════════════ */

:root {
  --brown-900: #1B0F09;
  --brown-800: #2A1A12;
  --brown-700: #3A251A;
  --brown-600: #4E3322;
  --brown-card: #44291B;
  --gold-500: #FFC800;
  --gold-400: #FFD84D;
  --orange-500: #E8821E;
  --cream-50: #FFF6E6;
  --cream-200: #EAD9BE;
  --cream-muted: #c9b390;

  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-gold: 0 12px 36px rgba(255, 200, 0, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Comfortaa", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--brown-700);
  color: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  counter-reset: sec;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

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

/* serif italic accent (editorial highlight on key words) */
.ital {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-500);
}

/* drops dark navy backing of the logo PNG on dark sections */
.blend-screen { mix-blend-mode: screen; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--orange-500));
  color: var(--brown-900);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255, 200, 0, .38); }
.btn--ghost {
  background: transparent;
  color: var(--cream-50);
  border: 1.5px solid rgba(255, 246, 230, .35);
}
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.kicker::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) "  /  ";
  color: var(--cream-muted);
}

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 15, 9, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 200, 0, .12);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 88px;
}
.header__logo img { height: 64px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav__link {
  font-weight: 600;
  font-size: .95rem;
  color: var(--cream-200);
  transition: color .2s;
  position: relative;
}
.nav__link:hover { color: var(--gold-500); }
.header__cta { margin-left: 8px; }
.nav__actions { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.burger span {
  width: 26px; height: 2.5px;
  background: var(--gold-500);
  border-radius: 2px;
  transition: .3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 44px 0 56px;
  background: var(--brown-800);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 200, 0, .22), transparent 42%),
    radial-gradient(circle at 50% 30%, rgba(232, 130, 30, .14), transparent 60%),
    radial-gradient(ellipse at 50% 120%, var(--brown-700), var(--brown-900) 70%);
}
.hero__inner {
  position: relative; z-index: 3; max-width: 880px;
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
}

/* glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb--1 {
  width: 360px; height: 360px;
  right: -130px; top: 6%;
  background: radial-gradient(circle at 38% 38%, var(--gold-400), var(--orange-500) 52%, transparent 72%);
  opacity: .45;
}
.orb--2 {
  width: 240px; height: 240px;
  left: -90px; bottom: 8%;
  background: radial-gradient(circle at 40% 40%, var(--gold-500), transparent 70%);
  opacity: .3;
  animation-delay: -7s;
}
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* inset editorial frame with corner crosshairs */
.hero__frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 200, 0, .22);
  border-radius: 26px;
  z-index: 2;
  pointer-events: none;
}
.hero__frame::before, .hero__frame::after {
  content: "+";
  position: absolute;
  color: var(--gold-500);
  font-size: 1.4rem;
  line-height: 1;
  opacity: .7;
}
.hero__frame::before { top: -10px; left: -8px; }
.hero__frame::after { bottom: -12px; right: -8px; }

/* hero top utility bar (live clock + location) */
.hero__topbar {
  position: absolute;
  top: 34px; left: 40px; right: 40px;
  z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Manrope", monospace;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  pointer-events: none;
}
.hero__topbar-loc { color: var(--gold-400); font-weight: 700; font-size: .98rem; letter-spacing: .04em; }
.timestamp {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.timestamp::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px 1px var(--gold-500);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hero__topbar-loc { color: var(--cream-200); }
.hero__logo { height: 290px; margin: 0; }

/* split logo lockup: static wordmark + animated firefly */
.logo-lockup { position: relative; display: inline-block; }
.logo-lockup .ll__text { display: block; height: 100%; width: auto; }
.logo-lockup .ll__fly {
  position: absolute; top: 0; left: 0;
  height: 100%; width: auto;
  animation: fireflyFly 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes fireflyFly {
  0%, 100% { transform: translate(0, 0); }
  30%      { transform: translate(3px, -4px); }
  60%      { transform: translate(-3px, -6px); }
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--gold-500);
  background: rgba(255, 200, 0, .08);
  border: 1px solid rgba(255, 200, 0, .4);
  border-radius: 999px;
  padding: 9px 22px;
  margin: 0;
}
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); margin: 0; }
.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--cream-200);
  max-width: 800px;
  margin: -10px 0 0;
}
/* numbered direction tags */
.hero__tags {
  list-style: none;
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin: 0;
}
.hero__tags li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 200, 0, .3);
  border-radius: 999px;
  background: rgba(255, 200, 0, .06);
  font-weight: 600; font-size: .92rem;
  color: var(--cream-50);
}
.hero__tags span {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--brown-900);
  border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__proof { margin: 0; color: var(--cream-200); font-size: 1.02rem; }
.hero__proof strong { color: var(--gold-500); }

.hero__scroll {
  position: relative;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 246, 230, .35);
  border-radius: 14px;
  margin: 18px 0 0;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-500);
  border-radius: 3px;
  animation: scrollDot 1.8s infinite var(--ease);
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ─── Fireflies ─── */
.fireflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.firefly {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px 2px rgba(255, 216, 77, .9), 0 0 18px 6px rgba(255, 200, 0, .5);
  opacity: 0;
  animation: floatfly var(--dur, 9s) ease-in-out infinite, glow 2.4s ease-in-out infinite;
}
@keyframes floatfly {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(22px, -28px); }
  50%  { transform: translate(-16px, -54px); }
  75%  { transform: translate(18px, -30px); }
  100% { transform: translate(0, 0); }
}
@keyframes glow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ─── Marquee ─── */
.marquee {
  overflow: hidden;
  background: var(--brown-900);
  border-top: 1px solid rgba(255, 200, 0, .15);
  border-bottom: 1px solid rgba(255, 200, 0, .15);
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-500);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { padding: 92px 0; position: relative; }
#format { padding-top: 78px; }
.section--alt {
  background:
    url("assets/firefly-watermark.png") left -50px bottom 24px / 230px auto no-repeat,
    var(--brown-800);
}
.section--feature {
  background:
    url("assets/firefly-watermark.png") right -30px top 30px / 300px auto no-repeat,
    radial-gradient(circle at 80% 0%, rgba(255, 200, 0, .12), transparent 45%),
    var(--brown-900);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__lead { color: var(--cream-200); margin-top: 14px; font-size: 1.08rem; }

/* ─── About ─── */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.about__text p { color: var(--cream-200); font-size: 1.1rem; margin-bottom: 16px; }
.about__geo { color: var(--cream-50) !important; font-weight: 600; }
.about__stats { list-style: none; display: grid; gap: 14px; }
.about__stats li {
  position: relative;
  display: flex; align-items: baseline; gap: 18px;
  background: rgba(255, 246, 230, .04);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 200, 0, .18);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  overflow: hidden;
}
.about__stats li::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--gold-400), var(--orange-500));
}
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2.7rem; color: var(--gold-500); line-height: 1; }
.stat__label { color: var(--cream-200); }

/* ─── Cards ─── */
.cards { display: grid; gap: 22px; }
.cards--directions { grid-template-columns: repeat(3, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card--wide { grid-column: span 3; }

.card {
  background: var(--brown-card);
  border: 1px solid rgba(255, 200, 0, .14);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255, 200, 0, .4); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: rgba(255, 200, 0, .12);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--cream-200); }
.card--soft { background: var(--brown-800); }

/* philosophy cards (Ціль / Візія / Задум) */
.pcard { position: relative; }
.pcard__num {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255, 200, 0, .16);
}
.pcard h3 {
  font-size: 1.45rem;
  letter-spacing: .04em;
  width: fit-content;
}
.pcard h3::after {
  content: "";
  display: block;
  width: 100%; height: 3px;
  margin: 14px 0 16px;
  background: linear-gradient(90deg, var(--gold-500), var(--orange-500), transparent);
  border-radius: 2px;
}

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { color: var(--cream-200); padding-left: 26px; position: relative; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-500); }

/* ─── Trial ─── */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trial__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.trial__text .btn { margin-top: 12px; }
.trial__steps { list-style: none; display: grid; gap: 16px; }
.trial__steps li {
  display: flex; align-items: center; gap: 18px;
  background: var(--brown-card);
  border: 1px solid rgba(255, 200, 0, .15);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 1.05rem;
}
.trial__steps span {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--gold-500);
  color: var(--brown-900);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 50%;
}

/* ─── Banner ─── */
.banner {
  text-align: center;
  background: linear-gradient(135deg, var(--brown-card), var(--brown-800));
  border: 1px solid rgba(255, 200, 0, .18);
  border-radius: var(--radius);
  padding: 56px 40px;
  max-width: 920px;
}
.banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.banner p { color: var(--cream-200); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.why__note {
  text-align: center;
  margin-top: 40px;
  color: var(--cream-200);
  font-size: 1.05rem;
}

/* ─── Placeholders ─── */
.ph {
  display: grid; place-items: center;
  color: var(--cream-muted);
  background:
    repeating-linear-gradient(45deg, rgba(255, 200, 0, .04) 0 12px, transparent 12px 24px),
    var(--brown-800);
  border: 1.5px dashed rgba(255, 200, 0, .25);
  font-size: .9rem;
}
.ph--avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; }
.ph--photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.ph--mini { width: 44px; height: 44px; border-radius: 50%; font-size: .7rem; }
.card--person { text-align: center; }
.card--person p { color: var(--cream-muted); }
/* photo gallery (Наш простір) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 200, 0, .18);
}
.gallery__item img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--big { grid-column: 1 / -1; }
.gallery__item--big img { aspect-ratio: 16 / 6; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px 18px;
  font-family: var(--font-head); font-weight: 600;
  color: var(--cream-50);
  background: linear-gradient(transparent, rgba(27, 15, 9, .85));
}

/* about photo */
.about__photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 200, 0, .2);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.about__stats--row { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }

/* ─── Prices ─── */
.price { display: flex; flex-direction: column; align-items: flex-start; }
.price__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--gold-500);
  margin: 6px 0 14px;
  min-height: 2.5em;
}
.price .btn { margin-top: auto; }
.price p:not(.price__value) { margin-bottom: 18px; }
.price--accent { border-color: var(--gold-500); box-shadow: var(--shadow-gold); }

/* ─── Reviews ─── */
.review { display: flex; flex-direction: column; gap: 14px; }
.review__stars { color: var(--gold-500); letter-spacing: 3px; }
.review p { font-style: italic; color: var(--cream-50); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__author span { color: var(--cream-200); font-weight: 600; font-size: .92rem; }

/* ─── FAQ ─── */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--brown-card);
  border: 1px solid rgba(255, 200, 0, .14);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
  transition: border-color .25s;
}
.faq__item[open] { border-color: rgba(255, 200, 0, .4); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold-500); font-size: 1.5rem; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--cream-200); padding-bottom: 20px; }

/* ─── Contacts ─── */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contacts__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 24px; }
.contacts__list { list-style: none; display: grid; gap: 16px; font-size: 1.08rem; }
.contacts__list li { display: flex; gap: 12px; color: var(--cream-200); }
.contacts__list a:hover { color: var(--gold-500); }
.contacts__list strong { color: var(--cream-50); font-weight: 700; }
.contacts__list em { color: var(--cream-muted); font-style: normal; }
.contacts__social { flex-wrap: wrap; }
.chip {
  background: rgba(255, 200, 0, .12);
  border: 1px solid rgba(255, 200, 0, .3);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--gold-500); color: var(--brown-900); }

.lead-form {
  background: var(--brown-card);
  border: 1px solid rgba(255, 200, 0, .18);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--cream-200); }
.field .muted { color: var(--cream-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream-50);
  background: var(--brown-900);
  border: 1.5px solid rgba(255, 246, 230, .18);
  border-radius: 12px;
  padding: 13px 16px;
  resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field input.invalid, .field select.invalid { border-color: #ff7a59; }
.form__note { color: var(--gold-500); font-weight: 600; text-align: center; }

/* ─── Building photo (contacts) ─── */
.building {
  position: relative;
  margin: 56px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 200, 0, .3);
  box-shadow: var(--shadow);
}
.building img,
.building .ph--building {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.ph--building { font-size: .95rem; text-align: center; padding: 20px; }
.ph--building b { color: var(--gold-500); font-weight: 600; }
/* corner brackets */
.building::before, .building::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--gold-500);
  z-index: 2;
  pointer-events: none;
}
.building::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.building::after { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.building__caption {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream-50);
  background: var(--brown-900);
}
.building__pin { font-size: 1.4rem; }

/* ─── Footer ─── */
.footer { background: var(--brown-900); padding: 56px 0 40px; text-align: center; border-top: 1px solid rgba(255, 200, 0, .12); }
.footer__logo { height: 150px; width: auto; margin: 0 auto 14px; }
.footer__slogan { font-family: var(--font-head); color: var(--gold-500); font-size: 1.2rem; margin-bottom: 10px; }
.footer__copy { color: var(--cream-muted); font-size: .9rem; }

/* ─── Decorative graphic elements ─── */

/* gradient divider — spans the full width of the heading text */
.section__head h2, .banner h2,
.about__text h2, .trial__text h2, .contacts__text h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.section__head h2, .banner h2 { margin-left: auto; margin-right: auto; }
.section__head h2::after, .banner h2::after,
.about__text h2::after, .trial__text h2::after, .contacts__text h2::after {
  content: "";
  display: block;
  width: 100%; height: 3px;
  margin: 18px 0 0;
  background: linear-gradient(90deg, var(--gold-500), var(--orange-500), transparent);
  border-radius: 2px;
}
/* centered headings fade the line on both ends */
.section__head h2::after, .banner h2::after {
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--orange-500), transparent);
}

/* crosshair "+" marks in section corners */
.section::before, .section::after {
  content: "+";
  position: absolute;
  z-index: 1;
  color: rgba(255, 200, 0, .28);
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none;
}
.section::before { top: 34px; left: 44px; }
.section::after { bottom: 34px; right: 44px; }

/* corner brackets on the groups banner */
.banner::before, .banner::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid rgba(255, 200, 0, .45);
  pointer-events: none;
}
.banner::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.banner::after { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }

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

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .nav, .header__cta { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 15, 9, .98);
    backdrop-filter: blur(14px);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255, 200, 0, .15);
  }
  .nav.open .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255, 200, 0, .08); }
  .nav.open .nav__actions { display: flex; gap: 10px; margin-top: 14px; }
  .nav.open .nav__actions .btn { flex: 1; }
  .burger { display: flex; }
  .about, .trial, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .cards--directions, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cards--directions, .cards--3, .cards--4, .gallery { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .about__stats--row { grid-template-columns: 1fr; }
  .gallery__item--big img { aspect-ratio: 4 / 3; }
  .hero__logo { height: 220px; }
  .hero__actions .btn { width: 100%; }
  .hero__topbar { top: 24px; left: 22px; right: 22px; font-size: .68rem; }
  .hero__topbar-loc { display: none; }
  .banner { padding: 40px 24px; }
  .lead-form { padding: 24px; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
