/* ploie — сайт студии. Чёрно-белая палитра лендинга НАГАЯ: белый фон,
   чёрный акцент, серые вспомогательные. Исходник: site/index.html
   (сохранён как docs/marketing/НАГАЯ_лендинг_прототип.html). */

:root {
  --bg: #ffffff; --bg2: #f4f4f4; --card: #fafafa; --line: #e3e3e3;
  --ink: #111111; --gold: #8a8a8a; --txt: #111111; --mut: #5f5f5f;
  --accent: var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--txt); line-height: 1.6;
}
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 12px; }
.sub { color: var(--mut); max-width: 640px; margin-bottom: 36px; }
section { padding: 72px 5%; max-width: 1200px; margin: 0 auto; }
.btn {
  display: inline-block; background: #111; color: #fff; padding: 15px 34px;
  border-radius: 40px; font-weight: 600; text-decoration: none; border: 1px solid #111;
  font-size: 16px; cursor: pointer; transition: .2s; box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn.ghost { background: none; border: 1px solid #111; box-shadow: none; color: #111; }
.btn.ghost:hover { background: #111; color: #fff; }
.btn.wa, .btn.tg { background: #fff; border: 1px solid #111; box-shadow: none; color: #111; }
.btn.wa:hover, .btn.tg:hover { background: #111; color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.tag {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.link { color: var(--ink); text-decoration: none; font-weight: 600; }

/* блоки/строки формы, видимые только когда филиалов больше одного */
body:not(.multi) .multi-only { display: none !important; }
body.multi .single-only { display: none !important; }

/* превью-плашка (черновик или предпросмотр по служебному адресу) */
.preview-bar {
  background: #111; color: #fff; text-align: center; font-size: 13px;
  padding: 8px 12px;
}

/* header */
header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { max-width: 1200px; margin: 0 auto; padding: 12px 5%; display: flex; align-items: center; gap: 20px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: .28em; color: #111; text-decoration: none; }
.logo.studio-logo, .nav a.logo { font-weight: 600; color: #111; }
.logo.studio-logo { white-space: nowrap; }
/* последняя буква: без хвостового интервала, чтобы черта была ровно под ней */
.logo .accent { font-weight: 900; border-bottom: 3px solid #111; letter-spacing: 0; }
.nav ul { display: flex; gap: 22px; list-style: none; margin-left: auto; }
.nav a { color: var(--mut); text-decoration: none; font-size: 14px; }
.nav a:hover { color: #000; }
.nav .btn { padding: 10px 22px; font-size: 14px; color: #fff; white-space: nowrap; }
.nav .btn:hover { color: #fff; }

/* локация / переключатель филиала */
.city-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--mut); white-space: nowrap;
}
.city-label svg { width: 14px; height: 14px; flex: none; }
.city-switch {
  display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 30px;
  padding: 4px; gap: 2px;
}
.city-switch button {
  background: none; border: none; color: var(--mut); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 24px; cursor: pointer; transition: .2s; font-family: inherit;
  white-space: nowrap;
}
.city-switch button.active { background: #111; color: #fff; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; border-bottom: 4px solid #111; }
.hero p.lead { color: var(--mut); font-size: 18px; margin-bottom: 30px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hero-badges span { border: 1px solid var(--line); border-radius: 30px; padding: 7px 16px; font-size: 13px; color: var(--mut); }
.hero-visual {
  aspect-ratio: 3 / 4; border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, rgba(0, 0, 0, .10), transparent 55%),
              radial-gradient(circle at 75% 80%, rgba(0, 0, 0, .05), transparent 50%), var(--bg2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--mut); font-size: 14px; text-align: center; padding: 20px;
}
.price-hint { margin-top: 14px; font-size: 14px; color: var(--mut); }

/* карточки */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--mut); }
.card .lvl { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--gold); }
.card.dir { position: relative; overflow: hidden; }
.card.dir::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .07), transparent 70%);
}
.card.teacher img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-bottom: 14px;
  background: var(--bg2);
}

/* филиалы: один — широкая карточка с картой, несколько — сетка */
.studios { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.studio { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; padding: 0; overflow: hidden; }
body.multi .studio { grid-template-columns: 1fr; }
.studio .info { padding: 30px; }
.studio .info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 14px 0 22px; }
.studio .info dt { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.studio .info dd { color: var(--txt); }
.studio .map {
  min-height: 280px; background: var(--bg2); border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--mut); font-size: 13px; padding: 20px;
}
body.multi .studio .map { border-left: none; border-top: 1px solid var(--line); min-height: 200px; }
.studio.active-city { border-color: #111; box-shadow: 0 0 0 2px #111 inset; }

/* цены */
.price { text-align: center; position: relative; overflow: hidden; }
.price .num { font-size: 34px; font-weight: 800; color: #111; margin: 8px 0 2px; }
.price .per { font-size: 13px; color: var(--mut); }
.price ul { list-style: none; margin: 16px 0 22px; font-size: 14px; color: var(--mut); }
.price li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hot { border-color: #111; box-shadow: 0 12px 34px rgba(0, 0, 0, .12); }
.hot .flag {
  position: absolute; top: 14px; right: -34px; transform: rotate(38deg); background: #111;
  color: #fff; font-size: 11px; padding: 3px 40px;
}

/* расписание */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.week-nav .btn { padding: 9px 18px; font-size: 13.5px; }
.lesson-row.trial td:first-child::after { content: " ✦"; color: var(--gold); }
.free-spots { font-size: 12.5px; color: var(--mut); }
.free-spots.none { color: #b42318; }
.slot-btn { padding: 6px 16px; font-size: 12.5px; }

/* faq */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; padding: 0 22px;
}
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 22px; }
details[open] summary::after { content: "—"; font-size: 16px; top: 18px; }
details p { padding-bottom: 18px; color: var(--mut); font-size: 14.5px; }

/* форма записи */
.formwrap {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
input, select, textarea {
  width: 100%; padding: 14px 18px; margin-bottom: 14px; background: #fff; border: 1px solid #cfcfcf;
  border-radius: 12px; color: #111; font-size: 15px; font-family: inherit;
}
input::placeholder { color: #9a9a9a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #111; }
label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--mut); margin-bottom: 14px; }
label.check input { width: auto; margin: 3px 0 0; }
.note { font-size: 12px; color: var(--mut); }
.field-error { color: #b42318; font-size: 12.5px; margin: -10px 0 12px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.msgr-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.msgr-row .btn { padding: 11px 22px; font-size: 14px; }
.thanks h3 { margin-bottom: 8px; }

/* липкая панель CTA на мобильных */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 10px 12px; gap: 8px;
}
.sticky-cta a { flex: 1; text-align: center; padding: 12px 6px; font-size: 13.5px; border-radius: 12px; }

footer { border-top: 1px solid var(--line); padding: 40px 5% 60px; max-width: 1200px; margin: 0 auto; color: var(--mut); font-size: 13px; }
footer .seo { margin-top: 14px; font-size: 12.5px; line-height: 1.7; }
footer a { color: var(--mut); }

.legal { max-width: 760px; margin: 40px auto; padding: 0 5% 80px; }
.legal h2 { margin-top: 28px; }
.legal h3 { margin-top: 22px; margin-bottom: 8px; }
.legal p { color: var(--mut); margin-bottom: 12px; }

.not-published { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.not-published h1 { font-size: 24px; margin-bottom: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .formwrap { grid-template-columns: 1fr; padding: 28px; }
  .nav ul { display: none; }
  .nav .city-slot { margin-left: auto; }
  .studio { grid-template-columns: 1fr; }
  .studio .map { border-left: none; border-top: 1px solid var(--line); min-height: 220px; }
}
@media (max-width: 700px) {
  .sticky-cta { display: flex; }
  footer { padding-bottom: 100px; }
  .nav > .btn { display: none; }
}
@media (max-width: 560px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .studios { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
}
.slot-btn.disabled { opacity: .45; pointer-events: none; }
