/* Yoga studio site — look based on the original Rezerv page: black bar, light grey page, Poppins, pill buttons. */
:root {
  --bg: #f9f9f9;
  --ink: #111;
  --muted: #666;
  --line: #e4e4e4;
  --black: #000;
  --card: #fff;
  --accent: #2f5d5a;
  --green: #1f7a4d;
  --red: #b3261e;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 70px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ico { width: 26px; height: 26px; display: block; }

/* ---------- top bar & menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 72px; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 16px;
}
.brand { font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.desk-nav { display: none; gap: 26px; margin-left: auto; }
.desk-nav a { text-decoration: none; font-size: .92rem; opacity: .8; }
.desk-nav a:hover, .desk-nav a.on { opacity: 1; }
.top-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; display: inline-flex; }
.icon-btn .ico { width: 28px; height: 28px; }
@media (min-width: 900px) { .desk-nav { display: flex; } }

.menu { position: fixed; inset: 72px 0 0 0; background: var(--black); color: #fff; z-index: 25; overflow-y: auto; }
.menu-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 100px; }
.menu-card {
  display: flex; align-items: center; gap: 10px; background: #fff; color: #000; border-radius: 6px;
  padding: 14px 16px; text-decoration: none; font-weight: 600; margin-bottom: 18px;
}
.menu-card span { flex: 1; }
.menu-card .ico { width: 22px; height: 22px; }
.menu ul { list-style: none; margin: 0; padding: 0 12px; }
.menu li a { display: block; padding: 9px 0; text-decoration: none; font-size: 1rem; opacity: .9; }
.menu li a.on { font-weight: 700; opacity: 1; }
body.menu-open { overflow: hidden; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: .7rem; font-weight: 600; }
.bottom-nav .ico { width: 22px; height: 22px; }
.wa-float {
  position: fixed; right: 18px; bottom: 82px; z-index: 35; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- layout blocks ---------- */
main { min-height: 60vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-center { text-align: center; }
.section-center p { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 8px; }
.page-head h1 { font-size: 1.4rem; }
.page-head p { color: var(--muted); }

.hero {
  position: relative; min-height: min(78vh, 620px); display: grid; place-items: center; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 70% 80%, #4a3b30 0%, #1d1a18 45%, #0b0b0b 100%) center/cover no-repeat;
}
.hero.short { min-height: 300px; }
.hero.ocean { min-height: 380px; background: linear-gradient(180deg, #5f8a90 0%, #3c6469 45%, #23393c 100%) center/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.hero-content { position: relative; max-width: 860px; padding: 40px 20px; }
.hero h1 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
.hero p { font-size: clamp(.95rem, 1.8vw, 1.1rem); }
.hero .btn-stack { margin-top: 26px; }

.feature-img {
  aspect-ratio: 16 / 7; border-radius: var(--radius); background: linear-gradient(135deg, #cfc8bd, #8f877c) center/cover no-repeat;
  margin: 0 auto;
}

/* ---------- buttons, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--black);
  background: var(--black); color: #fff; border-radius: 999px; padding: 13px 28px; font: inherit; font-weight: 500;
  font-size: .92rem; text-decoration: none; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-block { display: flex; width: 100%; }
.btn-white { background: #fff; color: #000; border-color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline { background: transparent; color: var(--black); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-stack { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline; }

form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; font: inherit; font-weight: 400;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
.form-card { max-width: 440px; margin: 32px auto; background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.form-card h1 { font-size: 1.4rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }

.flash { max-width: var(--maxw); margin: 14px auto 0; padding: 12px 18px; border-radius: 10px; font-size: .92rem; width: calc(100% - 40px); }
.flash-ok { background: #e3f4ea; color: #134e31; }
.flash-err { background: #fde8e7; color: #7a1b15; }
.flash-info { background: #e8eef9; color: #1b3260; }

/* ---------- cards & lists ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.price { font-size: 1.5rem; font-weight: 800; margin: 8px 0 2px; }
.card .btn { margin-top: 14px; }

.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.class-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, #d9d2c7, #9c9387) center/cover no-repeat; }
.thumb.round { border-radius: 50%; }
.class-item h3 { margin: 4px 0 6px; }
.class-item p { color: #333; margin-bottom: 12px; }
@media (min-width: 700px) { .class-item { grid-template-columns: 180px 1fr; } }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eee; }
.tag-green { background: #e3f4ea; color: var(--green); }
.tag-grey { background: #ececec; color: #666; }
.tag-red { background: #fde8e7; color: var(--red); }
.tag-amber { background: #fff2d6; color: #7a5300; }

/* ---------- timetable ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 18px; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.day-tab { flex: 0 0 auto; min-width: 58px; text-align: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.day-tab b { display: block; font-size: 1.1rem; }
.day-tab small { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.day-tab.on { background: #000; color: #fff; border-color: #000; }
.day-tab.on small { color: #ccc; }
.day-tab.empty { opacity: .45; }
.day-block { margin-bottom: 28px; scroll-margin-top: 90px; }
.day-block h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.session { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.session-time strong { display: block; font-size: 1.05rem; }
.session-time span { font-size: .8rem; color: var(--muted); }
.session-title { font-weight: 700; text-decoration: none; }
.session-action { display: grid; justify-items: end; gap: 4px; text-align: right; }
.session.is-cancelled { opacity: .55; }
.note { color: var(--accent); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-weight: 600; }

/* ---------- tables (account / admin) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fafafa; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .88rem; font-weight: 500; }
.tabs a.on { background: #000; color: #fff; border-color: #000; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.stat span { font-size: .8rem; color: var(--muted); }

.admin-bar { background: #161616; color: #fff; }
.admin-bar .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.admin-bar a { flex: 0 0 auto; padding: 7px 13px; border-radius: 8px; text-decoration: none; font-size: .84rem; opacity: .8; }
.admin-bar a.on { background: #fff; color: #000; opacity: 1; font-weight: 600; }
.img-preview { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- blog, faq, footer ---------- */
.post-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card .thumb { border-radius: 0; aspect-ratio: 16 / 10; }
.post-card div.body { padding: 16px 18px 20px; }
.article { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.article .feature-img { margin-bottom: 24px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: #333; }

.footer { background: var(--black); color: #fff; margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 30px; }
.footer-brand { font-weight: 500; font-size: 1.05rem; margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .85rem; }
.footer-links a { text-decoration: none; }
.footer hr { border: 0; border-top: 1px solid #444; margin: 0 0 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .75rem; color: #ccc; }

.pass { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pass b { font-size: 1.2rem; }
.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .wa-float { bottom: 24px; }
}
