/* Sparta Fitness — spartafitness.ge (v2)
   ფერები BRAND.md-დან: მხოლოდ თეთრი, შავი, ნაცრისფერი.
   შრიფტი FiraGO (OFL) — BPG ExtraSquare-ის ლიცენზია არაკომერციულია. */

@font-face { font-family: "FiraGO"; src: url("fonts/firago-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("fonts/firago-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("fonts/firago-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --w-bg: #FCFCFA; --w-ink: #0B0B0B; --w-mute: #6C6C68; --w-line: #E4E4E0; --w-card: #F1F1EE;
  --b-bg: #0E0E0E; --b-ink: #F6F6F4; --b-mute: #96968F; --b-line: #2A2A28; --b-card: #181817;
  --radius: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--w-bg); color: var(--w-ink);
  font: 400 17px/1.6 "FiraGO", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.muted { color: var(--b-mute); }
.nw { white-space: nowrap; }
.sec--white .muted, .sec--grey .muted { color: var(--w-mute); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }

.ico { width: 26px; height: 26px; flex: none; }
.ico--btn { width: 18px; height: 18px; margin-right: 8px; }

/* ── header ───────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,14,14,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--b-ink); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.top.is-scrolled { background: rgba(14,14,14,.92); border-bottom-color: var(--b-line); }
.top__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.top__nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--b-mute); transition: color .2s; }
.top__nav a:hover { color: var(--b-ink); }
.top__lang {
  min-width: 40px; height: 34px; padding: 0 10px; border: 1px solid var(--b-line); border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--b-mute); transition: color .2s, border-color .2s;
}
.top__lang:hover { color: var(--b-ink); border-color: var(--b-mute); }

/* ── buttons ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--b-ink); color: var(--w-ink); }
.btn--ghost { border-color: #4a4a47; color: var(--b-ink); }
.btn--ghost:hover { border-color: var(--b-ink); }

/* live open/closed chip */
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--w-bg); color: var(--w-ink); border: 1px solid var(--w-line);
}
.chip--dark { background: rgba(255,255,255,.06); color: var(--b-ink); border-color: var(--b-line); margin-bottom: 28px; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.chip.is-open .chip__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor;
  animation: pulse 2s var(--ease) infinite;
}
.chip.is-closed { opacity: .75; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ── hero ─────────────────────────────── */
.hero {
  position: relative; overflow: hidden; background: var(--b-bg); color: var(--b-ink);
  min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 64px 0 96px;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; width: 100%; }
.hero__kicker { margin: 0 0 18px; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; line-height: 1.4; letter-spacing: .01em; color: var(--b-mute); }
.hero__h1 { margin: 0; font-weight: 700; line-height: 1.08; font-size: clamp(44px, 6.2vw, 92px); letter-spacing: -.025em; }
.hero__h1 .line { display: block; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--b-mute); max-width: 32em; margin: 28px 0 0; }
.sec--white .lead, .sec--grey .lead { color: var(--w-mute); }
.intro { margin: -20px 0 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__hours { margin: 28px 0 0; color: var(--b-mute); font-size: 15px; }

/* rotating emblem — the badge ring, rebuilt as live text */
.emblem { position: relative; width: min(400px, 100%); aspect-ratio: 1; justify-self: center; }
.emblem__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.emblem__ring text { fill: var(--b-ink); font-family: "FiraGO", sans-serif; font-weight: 700; font-size: 42px; }
.emblem__helmet { position: absolute; left: 50%; top: 50%; width: 25%; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ticker */
.ticker { background: var(--w-bg); color: var(--w-ink); border-bottom: 1px solid var(--w-line); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { padding: 22px 0; font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; white-space: nowrap; }
.ticker i { font-style: normal; padding: 22px 28px; color: var(--w-mute); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────── */
.sec { padding: 112px 0; }
.sec--tight { padding-top: 32px; }
.sec--white { background: var(--w-bg); color: var(--w-ink); }
.sec--grey { background: var(--w-card); color: var(--w-ink); }
.sec--black { background: var(--b-bg); color: var(--b-ink); }
.sec h2 { font-size: clamp(36px, 5.6vw, 72px); letter-spacing: -.02em; margin-bottom: 48px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--w-mute); }
.sec--black .eyebrow { color: var(--b-mute); }
.sub { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; color: var(--w-mute); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.tile {
  background: var(--w-card); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.tile .ico { margin-bottom: auto; }
.tile h3 { font-size: 21px; margin-top: 28px; }
.tile p { margin: 0; color: var(--w-mute); font-size: 15px; line-height: 1.5; }
.tile--big { grid-column: span 2; grid-row: span 2; background: var(--w-ink); color: var(--w-bg); padding: 36px; }
.tile--big h3 { font-size: clamp(30px, 3.4vw, 46px); }
.tile--big p { color: #A9A9A3; font-size: 17px; max-width: 26em; }
.tile--big .ico { width: 40px; height: 40px; }
.tile--big .chip { align-self: flex-start; margin-top: 18px; background: transparent; color: var(--w-bg); border-color: #3a3a37; }
.bento .tile:nth-child(2), .bento .tile:nth-child(5), .bento .tile:nth-child(6) { grid-column: span 2; }

/* price cards */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }   /* opening the teen fold must not stretch the others */
.cards--4 { grid-template-columns: repeat(4, 1fr); }   /* 4 cards on both languages (2026-10-06) */
.card {
  background: var(--w-card); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.card--main { background: var(--w-ink); color: var(--w-bg); }
.card h3 { font-size: 17px; font-weight: 500; }
.price { font-size: clamp(44px, 4.4vw, 58px); font-weight: 700; line-height: 1; margin: 22px 0 6px; letter-spacing: -.03em; }
.price span { font-size: .45em; margin-left: 3px; letter-spacing: 0; }
.per { margin: 0; font-size: 14px; color: var(--w-mute); }
.note { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--w-mute); }
.card--main .per, .card--main .note { color: #A9A9A3; }

/* teen plan folded inside the main card (owner 2026-10-06) */
.card--main[tabindex] { cursor: pointer; }
.card--main[tabindex]:focus { outline: none; }
.card--main[tabindex]:focus-visible { outline: 2px solid var(--w-bg); outline-offset: -6px; }
.more { margin: 16px 0 0; font-size: 13px; color: #A9A9A3; display: flex; align-items: center; gap: 8px; }
.more i { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.fold > div { overflow: hidden; }
.card--main.open .fold, .card--main:focus-visible .fold { grid-template-rows: 1fr; }
.card--main.open .more i, .card--main:focus-visible .more i { transform: rotate(-135deg) translate(-2px, -1px); }
@media (hover: hover) {
  .card--main:hover .fold { grid-template-rows: 1fr; }
  .card--main:hover .more i { transform: rotate(-135deg) translate(-2px, -1px); }
}
.teen { margin-top: 16px; padding: 16px 16px 14px; border-radius: 12px; background: #1E1E1C;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.teen b { font-size: 15px; font-weight: 500; }
.teen small { display: block; color: #A9A9A3; font-size: 13px; margin-top: 3px; }
.teen .tp { font-size: 30px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.teen .tp span { font-size: .5em; margin-left: 2px; }

.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.rows { border-top: 1px solid var(--w-line); }
.row { display: grid; grid-template-columns: 1fr auto 96px; gap: 16px; align-items: baseline; padding: 18px 2px; border-bottom: 1px solid var(--w-line); }
.row b { font-size: 24px; text-align: right; letter-spacing: -.01em; }
.row__hint { font-size: 14px; color: var(--w-mute); }
.rows--dark, .rows--dark .row { border-color: var(--b-line); }
.rows--dark .row__hint { color: var(--b-mute); }
.fine { margin: 36px 0 0; font-size: 15px; color: var(--w-mute); }
.fine b { color: var(--w-ink); }

/* pilates */
.pil { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pil h2 { margin-bottom: 0; }
.pil .lead { margin-top: 24px; }

/* faq */
.faq { border-top: 1px solid var(--w-line); }
.faq__item { border-bottom: 1px solid var(--w-line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 2px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--w-line); transition: transform .3s var(--ease), background .3s; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__plus { background: var(--w-ink); color: var(--w-bg); border-color: var(--w-ink); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { margin: -6px 0 24px; padding-right: 56px; color: var(--w-mute); }

/* rules */
.rules { margin: 0; padding: 0; list-style: none; }
.rules li { position: relative; padding: 20px 0 20px 60px; border-bottom: 1px solid #DCDCD7; }
/* the consent page's icons, one per rule (owner 2026-10-05) */
.rules__ico {
  position: absolute; left: 0; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--w-ink); color: var(--w-bg); display: grid; place-items: center;
}
.rules__ico svg { width: 17px; height: 17px; display: block; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin: 0 0 36px; }
.facts dt { color: var(--b-mute); font-size: 15px; }
.facts dd { margin: 0; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--b-line); aspect-ratio: 4 / 3; background: var(--b-card); }
/* corner label, not tied to the pin: the pin moves when the visitor drags or zooms the map */
.map__tag {
  position: absolute; top: 12px; right: 12px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--w-ink); color: var(--w-bg); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.55);
}
.ico--tag { width: 16px; height: 16px; stroke-width: 2.2; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.foot { background: var(--b-bg); color: var(--b-mute); border-top: 1px solid var(--b-line); font-size: 14px; }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 76px; padding-top: 16px; padding-bottom: 16px; }
.foot__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a, .foot__links button {
  color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--b-line); transition: color .2s;
}
.foot__links a:hover, .foot__links button:hover { color: var(--b-ink); }

/* cookie consent */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 40; width: min(520px, calc(100vw - 48px));
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--b-mute); }
.consent p a { color: var(--b-ink); text-underline-offset: 3px; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { min-height: 44px; padding: 0 24px; font-size: 15px; font-family: inherit; cursor: pointer; }
.consent .btn--ghost { background: transparent; }

/* privacy page */
.page-legal .top__brand { margin-right: auto; }
.legal { padding-top: 72px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.02em; }
.legal__date { margin: 14px 0 8px; color: var(--w-mute); font-size: 15px; }
.sec.legal h2 { font-size: 22px; letter-spacing: 0; margin: 40px 0 10px; }
.legal p { margin: 0; line-height: 1.7; }
.legal a { text-underline-offset: 3px; }

/* floating message button (desktop) + bottom action bar (phone) */
.float-msg {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--w-ink); color: var(--w-bg); text-decoration: none; font-weight: 500; font-size: 15px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s var(--ease);
}
.float-msg:hover { transform: translateY(-2px); }
.bar { display: none; }

/* scroll reveal — only when JS is on, so nothing is ever hidden without it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero__kicker, .js .hero__h1 .line, .js .hero .lead, .js .hero__cta, .js .hero__hours, .js .hero .chip { animation: rise .9s var(--ease) both; }
.js .hero__h1 .line + .line { animation-delay: .08s; }
.js .hero .lead { animation-delay: .16s; }
.js .hero__cta { animation-delay: .24s; }
.js .hero__hours { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ── responsive ───────────────────────── */
@media (max-width: 1080px) {
  .top__nav { gap: 18px; font-size: 14px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card--main { grid-column: span 3; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--big { grid-column: span 2; grid-row: auto; }
  .bento .tile:nth-child(n+2) { grid-column: span 1; }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__brand { margin-right: auto; }
  .hero { min-height: auto; padding: 40px 0 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .emblem { order: -1; width: 220px; margin-bottom: 8px; }
  .pil, .contact, .price-cols { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top__call { display: none; }
  .sec { padding: 80px 0; }
  .sec--tight { padding-top: 16px; }
  .sec h2 { margin-bottom: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* equal halves, a long word can't widen one (2026-10-05) */
  .card--main { grid-column: span 2; }
  .cards--4 .card:last-child { grid-column: span 2; }   /* main + 3: the last one would sit alone */
  .bento { grid-auto-rows: auto; }
  .tile { padding: 24px; }
  .tile h3 { margin-top: 20px; }
  .row { grid-template-columns: 1fr auto; }
  .row__hint { grid-row: 2; grid-column: 1; margin-top: -10px; }
  .row b { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .rules li { padding-left: 46px; }
  .faq__item p { padding-right: 0; }
  .hero__cta .btn, .contact .btn { width: 100%; white-space: normal; text-align: center; }
  .bento { grid-template-columns: 1fr; }
  .tile--big { grid-column: auto; }
  .float-msg { display: none; }
  .bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(14,14,14,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--b-line);
  }
  .bar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
    color: var(--b-ink); text-decoration: none; font-size: 12px; font-weight: 500;
  }
  .bar .ico { width: 22px; height: 22px; }
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 18px; }
  .consent .btn { flex: 1; }
  .foot__links { margin-left: 0; width: 100%; }
  .page-legal { padding-bottom: 0; }
  .page-legal .consent { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .legal { padding-top: 48px; }
}

@media (max-width: 359px) {
  .note { overflow-wrap: break-word; }   /* very narrow phones: break a long word rather than spill */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem__ring, .ticker__track, .chip.is-open .chip__dot::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__kicker, .js .hero__h1 .line, .js .hero .lead, .js .hero__cta, .js .hero__hours, .js .hero .chip { animation: none; }
  .btn, .tile, .card, .fold, .more i { transition: none; }
}
