:root {
  --bg: #f3eee6;
  --bg2: #ebe3d6;
  --ink: #1c1915;
  --muted: #6e665c;
  --line: #ddd4c6;
  --card: #fffcf7;
  --accent: #2c5550;
  --accent-2: #1f3d39;
  --clay: #c45c3e;
  --ok: #2f6b4f;
  --warn: #9a5b20;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.06);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1080px, calc(100% - 28px)); margin: 0 auto; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 58px;
}
.logo { color: var(--ink); flex: 1; min-width: 0; }
.logo strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.logo span { display: block; color: var(--muted); font-size: 0.72rem; }
.langs { display: flex; gap: 4px; }
.langs a, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 10px;
  color: var(--muted); font-size: 0.75rem; font-weight: 700;
}
.langs a.active { background: var(--accent); color: #fff; }
.icon-btn { border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; }
.nav {
  display: none; flex-direction: column; gap: 4px; padding: 0 0 12px;
}
.nav.open { display: flex; }
.nav a {
  padding: 12px 10px; border-radius: 12px; color: var(--ink); font-weight: 600;
}
.nav a:hover { background: var(--bg2); }

.hero { padding: 28px 0 10px; }
.kicker { color: var(--clay); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; margin: 0 0 10px; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; }
h2 { font-size: 1.55rem; }
.lead { color: var(--muted); max-width: 34rem; margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 0; background: var(--accent); color: #fff; font-weight: 700;
}
.btn.clay { background: var(--clay); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.45; }

.grid { display: grid; gap: 14px; margin: 18px 0 32px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.card a.cover, .cover { display: block; height: 170px; background: #c9bfb0 center/cover no-repeat; }
.card-body { padding: 16px; }
.card h3 { font-size: 1.28rem; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip {
  background: var(--bg2); color: var(--ink); border-radius: 999px;
  padding: 5px 10px; font-size: 0.8rem; font-weight: 650;
}
.price-grid {
  display: grid;
  gap: 12px;
  margin: 12px 0 28px;
}
.price-card {
  display: block;
  background: #fff;
  border: 1px solid #d2c7b8;
  border-radius: 16px;
  padding: 16px 16px 18px;
  text-align: left;
}
.price-kind {
  margin: 0 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.price-amount {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}
.price-sub, .price-note { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.map-wrap {
  position: relative;
  width: 100%;
  margin: 12px 0 0;
  height: 280px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #e8e4dc;
}
.map-wrap iframe {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: 0;
}
.cover-lg { height: 220px; }

.contact-strip {
  background: var(--accent-2);
  color: #f3eee6;
}
.contacts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.contacts-trainer { margin: 0; font-size: 0.88rem; }
.contact-phone {
  color: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.contact-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-apps a.app-btn {
  color: inherit;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(243, 238, 230, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-apps a.app-btn svg { width: 18px; height: 18px; display: block; }
.contacts-bar { padding: 10px 0; }
.contacts-footer { padding: 8px 0 12px; }
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .contacts { color: var(--ink); margin-bottom: 10px; }
.site-footer .contact-apps a.app-btn { border-color: var(--line); color: var(--ink); }

.schedule-day { margin: 0 0 18px; }
.schedule-day h3 { font-size: 1.05rem; color: var(--accent-2); }
.slot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin: 8px 0;
}
.slot time { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 52px; }
.slot .grow { flex: 1; min-width: 0; }
.slot small { color: var(--muted); display: block; }
.badge { font-size: 0.72rem; font-weight: 700; color: var(--clay); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.note { color: var(--muted); font-size: 0.92rem; }
.flash { padding: 12px 14px; border-radius: 12px; background: #e5efe6; color: var(--ok); font-weight: 650; }
.flash.err { background: #f8e6e1; color: var(--clay); }

.list { display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px;
}
.row .grow { flex: 1; min-width: 0; }
.row small { color: var(--muted); }
.vis { font-variant-numeric: tabular-nums; font-weight: 700; }

.admin-nav { display: flex; gap: 8px; overflow: auto; padding: 8px 0 14px; }
.admin-nav a {
  white-space: nowrap; padding: 8px 12px; border-radius: 999px;
  background: var(--bg2); color: var(--ink); font-weight: 700; font-size: 0.88rem;
}
.admin-nav a.active { background: var(--accent); color: #fff; }

.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pad { padding: 22px 0 48px; }

.date-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.chip.on { background: var(--accent); color: #fff; }
.row.visit-row { align-items: flex-start; flex-wrap: wrap; }
.row.is-on { border-color: var(--accent); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.visit-actions input[type="date"] { width: auto; min-width: 10rem; min-height: 44px; }
.btn.danger { background: #8b3a2a; color: #fff; }
.visit-date-bar { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.visit-date-form label { margin: 0; }
.visit-date-form input[type="date"] { max-width: 100%; }

@media (min-width: 720px) {
  .icon-btn { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; padding: 0; gap: 6px; }
  .nav a { padding: 8px 10px; }
  .grid.halls { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .cover, .card a.cover { height: 200px; }
  .cover-lg { height: 280px; }
  .map-wrap { height: 380px; }
}
