:root {
  --spatial-bg: #e6ebf0;
  --spatial-glass: rgba(255, 255, 255, 0.62);
  --spatial-glass-card: rgba(255, 255, 255, 0.78);
  --spatial-glass-border: rgba(255, 255, 255, 0.88);
  --spatial-shadow: 0 24px 60px rgba(30, 35, 45, 0.09), 0 2px 10px rgba(0, 0, 0, 0.03);
  --spatial-shadow-card: 0 14px 34px rgba(30, 35, 45, 0.06);

  --charcoal-card: #25272d;
  --charcoal-border: rgba(255, 255, 255, 0.14);
  --charcoal-pill: #33363e;
  
  --spatial-accent: #111215;
  --spatial-steel: #8a909a;

  --ink: #111215;
  --ink-muted: #5f6570;
  --ink-light: #8e949e;

  --radius-bento: 26px;
  --radius-pill: 999px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--spatial-bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 65%),
    radial-gradient(circle at 85% 30%, rgba(220, 228, 238, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  background-attachment: fixed;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; object-fit: cover; }
button, a { font: inherit; }
button { cursor: pointer; }

/* Style Switcher Bar */
.style-switcher-bar {
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: .45rem .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--spatial-glass-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  font-size: .82rem;
  color: var(--ink-muted);
}
.switcher-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 750;
  color: var(--ink);
  margin-left: .6rem;
}
.switcher-pill-group {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.switcher-btn {
  padding: .4rem .95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 750;
  font-size: .8rem;
  transition: all .2s ease;
  color: var(--ink-muted);
}
.switcher-btn.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.switcher-btn:not(.active):hover {
  background: white;
  color: var(--ink);
}

/* Header */
.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 1.2rem auto 0;
  min-height: 76px;
  padding: 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--spatial-glass);
  backdrop-filter: blur(28px);
  border: 1px solid var(--spatial-glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--spatial-shadow);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
  text-decoration: none;
}
.wordmark-mark {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.wordmark-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.72) translateY(6%); }
.wordmark strong { display: block; font-size: 1.05rem; font-weight: 850; letter-spacing: -.02em; }
.wordmark small { display: block; margin-top: .15rem; color: var(--ink-muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.header-link {
  color: var(--ink);
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Master Spatial Glass Board */
.spatial-board {
  width: min(calc(100% - 2rem), var(--max));
  margin: 2rem auto 4rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--spatial-glass);
  backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid var(--spatial-glass-border);
  border-radius: 36px;
  box-shadow: var(--spatial-shadow);
}

.board-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.board-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .95rem;
  border-radius: var(--radius-pill);
  background: white;
  border: 1px solid var(--spatial-glass-border);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.board-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--ink);
}
.board-header p {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-muted);
}

/* Bento Grid System (Identical structure to image reference) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

/* Card 1: Ana & Tatame (Featured Charcoal Card) */
.bento-ana-card {
  grid-column: span 5;
  background: var(--charcoal-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--radius-bento);
  color: white;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.bento-ana-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15,16,19,0.92) 80%);
  z-index: 1;
}
.ana-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .5s ease;
}
.bento-ana-card:hover .ana-bg-img { transform: scale(1.03); }
.bento-card-top, .bento-card-bottom { position: relative; z-index: 2; }
.ana-badge {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bento-ana-card h3 {
  font-size: 1.8rem;
  font-weight: 850;
  margin: 0;
  line-height: 1.15;
}
.bento-ana-card p {
  margin: .4rem 0 0;
  color: #c9c5bd;
  font-size: .88rem;
}

/* Card 2: Frequency Bars (Inspired by "Неделя в работе" in reference) */
.bento-freq-card {
  grid-column: span 4;
  background: var(--spatial-glass-card);
  border: 1px solid var(--spatial-glass-border);
  border-radius: var(--radius-bento);
  padding: 1.8rem;
  box-shadow: var(--spatial-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bento-head strong { font-size: 1.05rem; font-weight: 850; color: var(--ink); }
.bento-head span { font-size: .75rem; color: var(--ink-muted); }
.bento-big-stat { font-size: 2.2rem; font-weight: 900; color: var(--ink); line-height: 1; }
.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 90px;
  margin: 1.5rem 0 0;
  padding-bottom: .5rem;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 750;
  color: var(--ink-muted);
}
.bar-col.active { color: var(--ink); }
.bar-pill {
  width: 8px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
}
.bar-col.active .bar-pill {
  height: 65px;
  background: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* Card 3: Circular Ring Gauges (Inspired by 90% / 65% in reference) */
.bento-ring-card {
  grid-column: span 3;
  background: var(--spatial-glass-card);
  border: 1px solid var(--spatial-glass-border);
  border-radius: var(--radius-bento);
  padding: 1.8rem;
  box-shadow: var(--spatial-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rings-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1.2rem 0;
}
.ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.ring-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}
.ring-circle.orange {
  border-color: var(--ink);
  color: var(--ink);
}
.ring-item small {
  font-size: .68rem;
  font-weight: 750;
  color: var(--ink-muted);
  text-align: center;
}

/* Card 4: Class Times / Schedule Grid (Span 7) */
.bento-schedule-card {
  grid-column: span 7;
  background: var(--spatial-glass-card);
  border: 1px solid var(--spatial-glass-border);
  border-radius: var(--radius-bento);
  padding: 1.8rem;
  box-shadow: var(--spatial-shadow-card);
}
.schedule-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 1.2rem;
}
.schedule-slot {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.schedule-slot.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.schedule-slot strong { font-size: 1.4rem; font-weight: 900; }
.schedule-slot span { font-size: .74rem; color: var(--ink-muted); margin-top: .2rem; }
.schedule-slot.featured span { color: #bdb9b2; }

/* Card 5: The Offer / Activation (Span 5 - Charcoal Statement) */
.bento-offer-card {
  grid-column: span 5;
  background: var(--charcoal-card);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--radius-bento);
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}
.offer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offer-pill {
  padding: .35rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.offer-price-line {
  margin: 1.2rem 0;
}
.offer-old { color: #8e8a82; text-decoration: line-through; font-size: 1.25rem; font-weight: 750; }
.offer-now { font-size: 3.8rem; font-weight: 950; line-height: .95; color: white; letter-spacing: -.05em; }
.offer-now span { font-size: 1.5rem; }

/* Button Spatial Capsule */
.button-spatial {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  background: white;
  color: var(--ink);
  font-weight: 850;
  padding: .5rem .6rem .5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}
.button-spatial:hover {
  background: #f0ede6;
  transform: translateY(-2px);
}
.btn-circle-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.button-spatial:hover .btn-circle-arrow { transform: translateX(3px); }

/* Proof Section */
.proof-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--spatial-glass-border);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.proof-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--spatial-glass-border);
  box-shadow: var(--spatial-shadow-card);
}
.proof-card img { height: 320px; object-fit: contain; background: #faf9f7; }
.proof-card figcaption {
  padding: 1.1rem 1.4rem;
  font-weight: 750;
  font-size: .9rem;
  color: var(--ink);
  background: var(--spatial-glass);
}

/* FAQ Accordion */
.faq-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--spatial-glass-border);
}
.spatial-faq-item {
  background: white;
  border: 1px solid var(--spatial-glass-border);
  border-radius: 18px;
  margin-bottom: .8rem;
  padding: 0 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.spatial-faq-item summary {
  padding: 1.25rem 0;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.spatial-faq-item summary::-webkit-details-marker { display: none; }
.spatial-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--ink);
}
.spatial-faq-item[open] summary::after { content: "−"; }
.spatial-faq-item p { margin: 0 0 1.25rem; color: var(--ink-muted); font-size: .92rem; }

/* Floating Bottom Dock (Signature from reference image 2!) */
.spatial-dock {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 23, 27, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.dock-link {
  color: #c9c5bd;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 750;
  padding: .45rem .85rem;
  border-radius: var(--radius-pill);
  transition: all .2s ease;
}
.dock-link:hover, .dock-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}
.dock-btn {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: .45rem 1.1rem;
  font-weight: 850;
  font-size: .8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.dock-btn:hover { background: #f0f2f5; }

/* Responsive */
@media (max-width: 900px) {
  .bento-ana-card { grid-column: span 12; min-height: 320px; }
  .bento-freq-card { grid-column: span 7; }
  .bento-ring-card { grid-column: span 5; }
  .bento-schedule-card { grid-column: span 12; }
  .bento-offer-card { grid-column: span 12; }
  .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .bento-freq-card { grid-column: span 12; }
  .bento-ring-card { grid-column: span 12; }
  .schedule-pills { grid-template-columns: 1fr; }
  .spatial-board { padding: 1.5rem; border-radius: 24px; }
  .style-switcher-bar { flex-direction: column; gap: .5rem; border-radius: 20px; }
  .spatial-dock { bottom: .8rem; width: min(calc(100% - 1.5rem), 400px); justify-content: space-between; padding: .4rem .6rem; }
  .dock-link:not(:first-child) { display: none; }
}
