/* ============================================================
   Мастерская твоего голоса — тихий люкс
   Слоновая кость · графитовые чернила · приглушённое золото
   ============================================================ */

:root {
  --ivory: #f6f1e9;
  --ivory-2: #efe8db;
  --ivory-3: #e9e0d0;
  --ink: #1d1a15;
  --ink-soft: #454036;
  --muted: #8b8172;
  --gold: #b08d57;
  --gold-deep: #93703d;
  --gold-soft: rgba(176, 141, 87, .16);
  --line: rgba(29, 26, 21, .14);
  --line-soft: rgba(29, 26, 21, .08);
  --dark: #17140f;
  --dark-2: #211d16;
  --radius: 4px;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #fff; }

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

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

button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ---------- типографика ---------- */

.label {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.serif { font-family: var(--serif); }

h1, h2, h3 { font-weight: 500; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}

.section-title em {
  font-style: italic;
  color: var(--gold-deep);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 26px;
}

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 241, 233, .82);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-logo { height: 48px; width: auto; display: block; }
.footer-brand { height: 56px; }

.brand-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .05em;
  color: var(--gold-deep);
  flex: none;
}

.brand-text { line-height: 1.25; }
.brand-text b { font-weight: 600; font-size: 15px; display: block; letter-spacing: .02em; }
.brand-text span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 34px; font-size: 13.5px; letter-spacing: .04em; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .06em; font-weight: 600;
  border: 1px solid var(--ink);
  padding: 11px 22px;
  border-radius: 100px;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--ivory); }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink);
  transition: all .3s;
}
.burger span { top: 19px; }
.burger span::before { top: -7px; left: 0; right: 0; }
.burger span::after { top: 7px; left: 0; right: 0; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: 76px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(176, 141, 87, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(176, 141, 87, .10), transparent 55%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(40px, 7vh, 90px);
  padding-bottom: clamp(40px, 6vh, 70px);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7.4vw, 108px);
  line-height: .98;
  letter-spacing: -.015em;
  margin-top: 26px;
}

.hero h1 em { font-style: italic; color: var(--gold-deep); }

.hero-sub {
  margin-top: 30px;
  max-width: 470px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 18.5px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 34px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: .05em;
  border: 1px solid transparent;
  transition: all .4s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--gold-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.hero-meta {
  display: flex; gap: clamp(24px, 3vw, 48px);
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta b { display: block; color: var(--ink); font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: 14.5px; margin-top: 4px; }

.hero-visual { position: relative; margin-bottom: clamp(130px, 26vh, 260px); }

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  border-radius: 200px 200px 6px 6px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ivory-3), var(--ivory-2));
  border: 1px solid var(--line);
}

.hero-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.hero-frame .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: clamp(60px, 7vw, 110px);
  font-style: italic;
  color: var(--gold-deep);
  opacity: .5;
  z-index: 0;
}

.hero-frame .hero-emblem {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(56%, 280px);
  height: auto;
  opacity: .95;
  z-index: 1;
}

.hero-note {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(246, 241, 233, .94);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  max-width: 235px;
  box-shadow: 0 24px 50px -30px rgba(29, 26, 21, .35);
  z-index: 2;
}
.hero-note b { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; }
.hero-note span { color: var(--muted); }

/* ---------- бегущая строка ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--ivory);
}

.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-right: 18px;
}
.marquee-track i { color: var(--gold); font-style: normal; padding-right: 18px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- акцент: студия звукозаписи ---------- */

.studio-strip { background: var(--dark); color: var(--ivory); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.studio-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 8% 110%, rgba(176, 141, 87, .18), transparent 60%);
  pointer-events: none;
}
.studio-strip .label { color: var(--gold); }
.studio-strip h2 { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; font-weight: 500; margin-top: 20px; }
.studio-strip h2 em { font-style: italic; color: var(--gold); }
.studio-lead { color: rgba(246, 241, 233, .65); max-width: 460px; margin-top: 20px; font-size: 15.5px; }
.studio-strip-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 80px); align-items: center; position: relative; }
.studio-list { border-top: 1px solid rgba(246, 241, 233, .16); }
.studio-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(246, 241, 233, .16);
  transition: padding-left .35s var(--ease), background .35s;
}
.studio-row:hover { padding-left: 16px; background: rgba(176, 141, 87, .07); }
.studio-row b { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); font-weight: 500; color: var(--ivory); }
.studio-row span { color: var(--gold); font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 900px) { .studio-strip-inner { grid-template-columns: 1fr; } }

/* ---------- секции ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { max-width: 380px; color: var(--muted); font-size: 15px; }

/* манифест */

.manifest { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 100px); align-items: start; }

.manifest-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.25;
  font-weight: 500;
}
.manifest-quote em { font-style: italic; color: var(--gold-deep); }

.manifest-side {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 44px);
  color: var(--ink-soft);
  font-size: 16px;
}
.manifest-side p + p { margin-top: 18px; }
.manifest-side .sign {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
}

.principles {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--line);
}

.principle { padding: 34px 28px 40px; border-right: 1px solid var(--line); transition: background .4s; }
.principle:last-child { border-right: 0; }
.principle:hover { background: var(--ivory-2); }
.principle .num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-deep); }
.principle h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 14px 0 10px; line-height: 1.15; }
.principle p { font-size: 14px; color: var(--muted); }

/* ---------- педагоги ---------- */

.teachers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: clamp(22px, 3vw, 40px); justify-content: center; }

.teacher-card { position: relative; }
.teacher-card:nth-child(2) { transform: translateY(34px); }

.teacher-photo {
  position: relative;
  height: clamp(320px, 36vw, 480px);
  overflow: hidden;
  border-radius: 150px 150px 4px 4px;
  background: linear-gradient(165deg, var(--ivory-3), var(--ivory-2));
  border: 1px solid var(--line);
}

.teacher-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); position: relative; z-index: 1; }
.teacher-card:hover .teacher-photo img { transform: scale(1.045); }

.teacher-photo .monogram {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 76px;
  color: var(--gold-deep);
  opacity: .55;
}

.teacher-info { padding: 24px 6px 0; }
.teacher-info .role { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.teacher-info h3 { font-family: var(--serif); font-size: 31px; font-weight: 600; margin: 8px 0 8px; }
.teacher-info .tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.teacher-info p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 320px; }

/* ---------- клуб (тёмная секция) ---------- */

.club { background: var(--dark); color: var(--ivory); position: relative; overflow: hidden; }
.club::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 500px at 90% 0%, rgba(176, 141, 87, .16), transparent 60%);
  pointer-events: none;
}
.club .label { color: var(--gold); }
.club .section-title { color: var(--ivory); }
.club .section-title em { color: var(--gold); }
.club .lead { color: rgba(246, 241, 233, .68); }

.club-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }

.club-points { display: grid; gap: 0; border-top: 1px solid rgba(246, 241, 233, .14); margin-top: 10px; }
.club-point {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(246, 241, 233, .14);
}
.club-point .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }
.club-point h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.club-point p { font-size: 14px; color: rgba(246, 241, 233, .6); }

.events { margin-top: clamp(50px, 7vw, 80px); border-top: 1px solid rgba(246, 241, 233, .14); padding-top: 34px; }
.events-title { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(246, 241, 233, .5); margin-bottom: 22px; }
.event-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(246, 241, 233, .09);
  transition: padding-left .35s var(--ease), color .35s;
}
.event-row:hover { padding-left: 14px; color: var(--gold); }
.event-row .e-name { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); font-weight: 500; }
.event-row .e-date { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 233, .45); white-space: nowrap; }

/* ---------- тарифы ---------- */

.pricing-group-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  margin-bottom: 22px;
}
.pricing-group-label::after { content: ""; display: block; width: 54px; height: 1px; background: var(--gold); margin-top: 10px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }

.price-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 30px 32px;
  display: flex; flex-direction: column;
  background: var(--ivory);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative;
}
.price-card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -38px rgba(29, 26, 21, .35); border-color: var(--gold); }

.price-card.featured { background: var(--dark); color: var(--ivory); border-color: var(--dark); }
.price-card.featured .price-note, .price-card.featured .price-period { color: rgba(246, 241, 233, .6); }

.price-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--gold); color: #fff;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  padding: 6px 14px; border-radius: 100px;
}

.price-name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.price-value { font-family: var(--serif); font-size: clamp(42px, 4vw, 56px); font-weight: 500; margin: 20px 0 2px; letter-spacing: -.02em; }
.price-value sup { font-size: .42em; font-family: var(--sans); font-weight: 600; margin-left: 4px; color: var(--gold-deep); }
.price-period { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 18px; flex: 1; }
.price-card .btn { margin-top: 26px; width: 100%; }

.pricing-note {
  margin-top: 34px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 18px 24px;
}
.pricing-note svg { flex: none; }
.pricing-note b { color: var(--ink); font-weight: 600; }

/* ---------- запись ---------- */

.booking-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.form-card {
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 48px);
  position: relative;
}

.form-card::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(176, 141, 87, .3);
  border-radius: 5px; pointer-events: none;
}

.field { margin-bottom: 22px; position: relative; z-index: 1; }
.field label {
  display: block;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-message { min-height: 22px; font-size: 14px; margin: 6px 0 14px; position: relative; z-index: 1; }
.form-message.ok { color: #3d7a4a; }
.form-message.err { color: #b0433d; }

/* ---------- контакты ---------- */

.contacts { border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); }
.contact-item .c-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.contact-item .c-value { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); margin-top: 12px; line-height: 1.25; }
.contact-item .c-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.contact-item a.c-value { transition: color .3s; }
.contact-item a.c-value:hover { color: var(--gold-deep); }

.map-widget { margin-top: clamp(40px, 5vw, 60px); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -40px rgba(29, 26, 21, .35); }
.map-widget iframe { width: 100%; height: 400px; display: block; border: 0; }

.text-link { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.text-link:hover { color: var(--ink); }

/* ---------- футер ---------- */

.footer { background: var(--dark); color: rgba(246, 241, 233, .6); padding: 60px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer .brand-mark { border-color: rgba(176, 141, 87, .5); color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 16px; color: var(--ivory); }
.footer-logo b { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .02em; display: block; }
.footer-logo span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 241, 233, .4); }
.footer-links { display: flex; gap: 26px; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12.5px; color: rgba(246, 241, 233, .35); margin-top: 34px; border-top: 1px solid rgba(246, 241, 233, .1); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- появление при скролле ---------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- кабинет / админка ---------- */

.page { min-height: 100svh; padding: 130px 0 90px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 30px 70px -50px rgba(29, 26, 21, .3);
}

.panel-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.panel-sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.auth-card { max-width: 460px; margin: 8vh auto 0; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-head h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 500; }
.dash-head h1 em { font-style: italic; color: var(--gold-deep); }
.logout-btn {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 22px; font-size: 13px; letter-spacing: .05em; font-weight: 600; color: var(--ink-soft);
  transition: all .3s;
}
.logout-btn:hover { border-color: var(--ink); color: var(--ink); }

.dash-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
.dash-col { display: grid; gap: 26px; }

.sub-cards { display: grid; gap: 16px; }

.sub-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  background: var(--ivory);
}
.sub-card.active-sub { border-color: var(--gold); background: linear-gradient(120deg, var(--ivory), #fbf7ef); }
.sub-card .s-title { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.sub-card .s-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sub-card .s-left { text-align: right; flex: none; }
.sub-card .s-left b { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.sub-card .s-left span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; }

.badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.badge-green { background: rgba(74, 138, 84, .14); color: #3d7a4a; }
.badge-amber { background: rgba(200, 150, 40, .16); color: #9a7220; }
.badge-red { background: rgba(190, 80, 70, .13); color: #b0433d; }
.badge-grey { background: rgba(29, 26, 21, .08); color: var(--muted); }
.badge-gold { background: var(--gold-soft); color: var(--gold-deep); }

/* слоты */
.teacher-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  border: 1px solid var(--line); background: #fff;
  border-radius: 100px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: all .3s;
}
.pill:hover { border-color: var(--gold); color: var(--ink); }
.pill.selected { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.slot {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 10px 16px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: all .25s;
}
.slot:hover { border-color: var(--gold); }
.slot.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.slot:disabled { opacity: .3; text-decoration: line-through; pointer-events: none; }

/* занятия */
.lesson-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-date { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.lesson-date span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lesson-info b { font-weight: 600; font-size: 15px; }
.lesson-info span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cancel-btn { background: none; border: none; color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.cancel-btn:hover { color: #b0433d; }

.empty-note { color: var(--muted); font-size: 14.5px; padding: 14px 0; }

.pay-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ivory-2); border: 1px dashed var(--line);
  border-radius: 6px; padding: 18px 20px;
  font-size: 13.5px; color: var(--ink-soft);
}
.pay-note b { color: var(--ink); }

/* админка */
.admin-tabs { display: flex; gap: 8px; margin: 30px 0 26px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.admin-tab {
  background: none; border: none;
  padding: 14px 22px;
  font-size: 14px; font-weight: 600; letter-spacing: .03em; color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .3s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:hover td { background: var(--ivory); }

.tbl select {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; font-family: var(--sans); font-size: 13.5px; background: #fff;
}

.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 100px;
  padding: 8px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  transition: all .3s; white-space: nowrap;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.mini-btn.gold:hover { background: var(--gold-deep); }

.sl-edit { display: inline-flex; gap: 6px; align-items: center; }
.sl-edit input[type="number"], .sl-edit input[type="date"] {
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 10px;
  font-family: var(--sans); font-size: 12.5px; background: #fff; width: auto;
}
.sl-edit input[type="number"] { width: 56px; text-align: center; }
.mini-btn.danger { color: #b4443c; border-color: #e5c4c1; }
.mini-btn.danger:hover { background: #b4443c; border-color: #b4443c; color: #fff; }

.sch-block {
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
  background: repeating-linear-gradient(45deg, #efeadf, #efeadf 6px, #e7e0d2 6px, #e7e0d2 12px);
  border: 1px dashed var(--line); border-radius: 6px; padding: 5px 9px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 5px;
}
.sch-block b { color: var(--ink); }
.sch-block-del {
  border: none; background: none; cursor: pointer; color: var(--muted);
  font-size: 13px; padding: 0 2px; line-height: 1;
}
.sch-block-del:hover { color: #b4443c; }

.student-block { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.student-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; background: var(--ivory);
}
.student-head .st-name { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.student-head .st-phone { font-size: 13px; color: var(--muted); margin-top: 2px; }
.student-head .st-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.student-subs { padding: 16px 24px; display: grid; gap: 10px; }
.sub-line {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px;
  border-top: 1px dashed var(--line-soft); padding-top: 12px;
}
.sub-line .sl-main { color: var(--ink-soft); }
.sub-line .sl-main b { color: var(--ink); }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; font-family: var(--sans); font-size: 14px; background: #fff;
}
.checkline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.checkline input { width: 16px; height: 16px; accent-color: var(--gold); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--ivory);
  padding: 14px 26px; border-radius: 100px;
  font-size: 14px; letter-spacing: .02em;
  opacity: 0; pointer-events: none;
  transition: all .4s var(--ease);
  z-index: 100;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- расписание педагогов ---------- */

.import-box { border: 1px dashed var(--line); border-radius: 6px; padding: 14px 18px; margin-bottom: 24px; }
.import-box summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.import-box textarea {
  width: 100%; margin: 12px 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--sans); font-size: 14px; resize: vertical;
}

.schedule-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.schedule-grid { display: grid; grid-template-columns: 110px repeat(7, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 13px; }
.sch-cell { background: #fff; padding: 10px 11px; min-height: 92px; }
.sch-head { background: var(--ivory); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: auto; }
.sch-head .sch-daynum { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 600; letter-spacing: 0; margin-top: 2px; }
.sch-teacher { background: var(--ivory); font-family: var(--serif); font-size: 18px; font-weight: 600; min-height: auto; }
.sch-today { background: #fbf7ef; }
.sch-lesson { padding: 3px 0; border-bottom: 1px dashed var(--line-soft); }
.sch-lesson:last-child { border-bottom: 0; }
.sch-lesson b { font-size: 13px; font-weight: 700; }
.sch-lesson span { color: var(--muted); font-size: 12px; display: block; }
.sch-lesson.sch-cancelled b, .sch-lesson.sch-cancelled span { text-decoration: line-through; color: var(--muted); opacity: .6; }
.sch-empty { color: var(--line); }
@media (max-width: 1080px) { .schedule-grid { grid-template-columns: 80px repeat(7, minmax(120px, 1fr)); overflow-x: auto; } }

/* ---------- концерты: галерея ---------- */

.concerts-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }

.concert-group + .concert-group { margin-top: clamp(50px, 6vw, 70px); }

.concert-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; }
.concert-group-head h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 500; }
.concert-group-head span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery.portrait .gallery-item { aspect-ratio: 3 / 4; }
.gallery.landscape .gallery-item { aspect-ratio: 4 / 3; }
.gallery .gallery-item { margin-bottom: 0; }
.gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .gallery-item.feature { grid-row: span 2; }
.gallery.landscape .gallery-item.feature { grid-row: auto; grid-column: span 2; aspect-ratio: auto; height: 100%; }
.gallery .gallery-item.wide { grid-column: span 3; }
.gallery .gallery-item.wide-full { grid-column: span 4; aspect-ratio: 16 / 8; }
@media (max-width: 1080px) { .gallery .gallery-item.wide { grid-column: span 2; } .gallery .gallery-item.wide-full { grid-column: span 2; aspect-ratio: 16 / 10; } }

.gallery-more { margin-top: 16px; font-size: 13.5px; }
.gallery-more a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.gallery-more a:hover { color: var(--ink); }

/* предстоящие события */
.upcoming { margin-bottom: clamp(50px, 6vw, 70px); }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 460px)); gap: 22px; margin-top: 22px; }
.upcoming-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.upcoming-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -35px rgba(29, 26, 21, .35); }
.upcoming-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.upcoming-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.upcoming-body h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.upcoming-body p { color: var(--muted); font-size: 14px; margin-top: 10px; flex: 1; }
.upcoming-body .btn { margin-top: 20px; align-self: flex-start; }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  border: 1px solid var(--line-soft);
  background: var(--ivory-2);
}
@media (max-width: 760px) { .gallery-item { margin-bottom: 12px; } }

.gallery-item img { width: 100%; display: block; transition: transform 1s var(--ease), filter .6s; filter: saturate(.94); }
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery-item::after {
  content: "⤢";
  position: absolute; right: 14px; bottom: 10px;
  font-size: 18px; color: #fff;
  opacity: 0; transition: opacity .4s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.gallery-item:hover::after { opacity: .9; }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 17, 12, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); cursor: default; }
.lightbox .lb-close {
  position: absolute; top: 26px; right: 34px;
  background: none; border: 0; color: rgba(255,255,255,.75);
  font-size: 34px; line-height: 1; cursor: pointer; transition: color .3s;
}
.lightbox .lb-close:hover { color: #fff; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 20px; cursor: pointer; transition: all .3s;
  display: grid; place-items: center;
}
.lightbox .lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .lb-prev { left: 26px; }
.lightbox .lb-next { right: 26px; }
.lightbox .lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- видео с концертов ---------- */

.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); }
.video-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--dark); }
.video-card video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--dark); }
.video-cap { padding: 14px 20px; font-size: 13.5px; color: var(--ink-soft); background: var(--ivory); border-top: 1px solid var(--line-soft); }
.video-cap b { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; color: var(--ink); }
@media (max-width: 900px) { .videos-grid { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */

.reviews { border-top: 1px solid var(--line); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.rating-badge { display: flex; align-items: baseline; gap: 14px; }
.rating-badge .score { font-family: var(--serif); font-size: clamp(48px, 5vw, 68px); font-weight: 500; line-height: 1; }
.rating-badge .score-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.rating-badge .score-sub b { display: block; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }

.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); }
.review-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3vw, 38px);
  padding-top: clamp(46px, 4.5vw, 60px);
  background: #fff;
  position: relative;
  display: flex; flex-direction: column;
}
.review-card::before {
  content: "«";
  position: absolute; top: 2px; right: 24px;
  font-family: var(--serif);
  font-size: 76px; line-height: 1;
  color: var(--gold);
  opacity: .28;
  pointer-events: none;
}
.review-text { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; flex: 1; }
.review-author { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reviews-more { margin-top: 30px; text-align: center; }
.reviews-more a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.reviews-more a:hover { color: var(--ink); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- клуб: ссылка на концерты ---------- */

.events-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(246, 241, 233, .14);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  color: var(--ivory);
  transition: color .3s, padding-left .35s var(--ease);
}
.events-cta:hover { color: var(--gold); padding-left: 14px; }
.events-cta i { font-style: normal; color: var(--gold); }

/* ---------- telegram ---------- */

.tg-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 54px);
  background: linear-gradient(120deg, var(--ivory-2), #fbf7ef);
  position: relative; overflow: hidden;
}
.tg-block::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(176, 141, 87, .3); border-radius: 5px; pointer-events: none;
}
.tg-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.tg-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.12; margin-top: 16px; }
.tg-title em { font-style: italic; color: var(--gold-deep); }
.tg-text { color: var(--ink-soft); margin-top: 16px; max-width: 420px; font-size: 15.5px; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  background: var(--ink); color: var(--ivory);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: background .35s var(--ease);
}
.tg-btn:hover { background: var(--gold-deep); }
.tg-btn svg { flex: none; }
.tg-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tg-btn.ghost:hover { border-color: var(--ink); background: transparent; }

.tg-widget {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 480px;
  overflow-y: auto;
}
.tg-posts { display: grid; gap: 10px; padding: 14px; }
.tg-widget iframe { width: 100%; border: 0; display: block; border-radius: 4px; }
.tg-widget-fallback {
  position: absolute; inset: 0;
  display: none; place-items: center; text-align: center;
  padding: 30px; color: var(--muted); font-size: 14.5px;
  background: var(--ivory);
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle { border-bottom: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .manifest, .club-layout, .booking-cta, .concerts-head, .tg-block { grid-template-columns: 1fr; }
  .tg-widget { height: 440px; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card:nth-child(2) { transform: none; }
  .pricing-grid, .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; }
  .contacts-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 18px; }
  .lesson-row { grid-template-columns: 76px 1fr; }
  .lesson-row .cancel-btn { grid-column: 2; justify-self: start; }
}
