/* Студия «Ритм» — RU-лендинг с заглушками. Отдельный CSS, без сборки. */

:root {
  --bg: #0f1220;
  --bg-muted: #151a2e;
  --surface: #1c2238;
  --surface-2: #222a45;
  --text: #eef1fb;
  --text-dim: #a9b1cf;
  --accent: #ffca3a;
  --accent-2: #6c8cff;
  --messenger: #2aabee;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  margin: 0; padding: 10px 16px;
  clip: auto;
  background: var(--accent);
  color: #111;
  border-radius: 10px;
  z-index: 100;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__mark {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a { color: var(--text-dim); font-size: 0.98rem; }
.nav a:hover { color: var(--text); }

.nav__cta {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #111 !important;
  font-weight: 600;
}
.nav__cta:hover { filter: brightness(1.05); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #111; }
.btn--primary:hover { filter: brightness(1.06); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); }

.btn--messenger {
  background: var(--messenger);
  color: #fff;
  font-size: 1.05rem;
  padding: 15px 28px;
}
.btn--messenger:hover { filter: brightness(1.06); }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(108, 140, 255, 0.25), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(255, 202, 58, 0.16), transparent 55%),
    var(--bg);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: .02em;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

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

.hero__lead {
  margin: 0 0 28px;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.hero__badges li { position: relative; padding-left: 22px; }
.hero__badges li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section { padding: 72px 0; }
.section--muted { background: var(--bg-muted); }

.section__head { margin-bottom: 36px; }
.section__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.section__subtitle { margin: 0; color: var(--text-dim); max-width: 640px; }

/* Cards (направления) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-2); }

.card__icon { font-size: 2rem; margin-bottom: 12px; }
.card__title { margin: 0 0 8px; font-size: 1.2rem; }
.card__text { margin: 0; color: var(--text-dim); font-size: 0.97rem; }

/* Schedule (расписание) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule th,
.schedule td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule thead th {
  background: var(--surface-2);
  font-size: 0.95rem;
  color: var(--text);
}

.schedule tbody th {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.schedule td { color: var(--text-dim); }
.schedule tbody tr:last-child th,
.schedule tbody tr:last-child td { border-bottom: 0; }

.schedule__note {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Plans (абонементы) */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan__name { margin: 0 0 10px; font-size: 1.25rem; }

.plan__price {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
.plan__per {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 4px;
}

.plan__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.plan__features li { position: relative; padding-left: 24px; }
.plan__features li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent-2);
  font-weight: 700;
}

.plan__cta { margin-top: auto; }

/* CTA (запись через мессенджер) */
.cta {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(42, 171, 238, 0.22), transparent 60%),
    var(--bg-muted);
  padding: 76px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta__inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta__text { margin: 0 0 26px; color: var(--text-dim); font-size: 1.1rem; }

.cta__hint {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.cta__hint code {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.cta__fineprint {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 40px 0 28px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand--footer { margin-bottom: 8px; }
.site-footer__tagline { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

.site-footer__contacts {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
}
.stub { color: var(--text); opacity: 0.8; }

.site-footer__legal {
  padding-top: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; padding: 10px 20px; }
  .nav { gap: 14px; }
  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
}
