/* -----------------------------------------------------------------
   Namasté – Rezervace: design system port
   Palette, type, spacing lifted from the design bundle.
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --sand-50: #FBF6F0; --sand-100: #F5ECE1; --sand-200: #ECDCCB;
    --sand-300: #DEC5A9; --sand-400: #CFAF8D; --sand-500: #B8946D; --sand-600: #9A7552;
    --clay-500: #965627; --clay-700: #5A3A22; --clay-900: #3A2718;
    --sage-100: #E3EFEC; --sage-200: #C6DDD7; --sage-300: #9DC1B8;
    --sage-400: #86B1A7; --sage-500: #5F9187; --sage-700: #3F6F66; --sage-900: #284A44;
    --cream: #FFF9F1; --white: #FFFFFF;

    --success: #5F9187; --warning: #C98A3D; --danger: #B4553F; --info: #6E8FA6;
    --success-bg: #E3EFEC; --warning-bg: #F7EAD6; --danger-bg: #F5E0DA; --info-bg: #E4ECF1;

    --cat-yoga: #9DC1B8; --cat-pilates: #DEC5A9; --cat-massage: #D9B0A0;
    --cat-workshop: #B9B3CF; --cat-individual: #C7C98F;

    --bg-page: var(--sand-50); --bg-band: var(--sand-400);
    --surface-card: var(--white); --surface-muted: var(--sand-100); --surface-sunken: var(--sand-200);
    --text-strong: var(--clay-900); --text-body: var(--clay-700); --text-muted: #8A6E57;
    --text-on-dark: var(--cream); --text-on-sage: var(--white);
    --border-subtle: #E8DACA; --border-default: #D9C4AD; --border-strong: var(--sand-500);
    --accent: var(--sage-300); --accent-hover: var(--sage-400); --accent-press: var(--sage-500); --accent-ink: var(--sage-700);
    --focus-ring: 0 0 0 3px rgba(95,145,135,.35);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fs-hero: clamp(56px, 8vw, 88px);
    --fs-h1: clamp(32px, 5vw, 48px);
    --fs-h2: clamp(24px, 3vw, 36px);
    --fs-h3: 22px; --fs-h4: 18px;
    --fs-lg: 18px; --fs-md: 16px; --fs-sm: 14px; --fs-xs: 12px;
    --lh-tight: 1.1; --lh-snug: 1.3; --lh-body: 1.6;
    --ls-tight: -0.02em; --ls-eyebrow: 0.14em;

    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
    --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
    --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
    --shadow-soft: 0 2px 10px rgba(90,58,34,.06);
    --shadow-card: 0 6px 24px rgba(90,58,34,.08);
    --shadow-float: 0 14px 40px rgba(90,58,34,.14);
    --shadow-cta:  0 10px 26px rgba(95,145,135,.35);
    --dur-fast: 150ms; --dur-base: 250ms;
    --ease-calm: cubic-bezier(.4,.1,.2,1);
    --container: 1200px;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-body);
    font: 400 var(--fs-md)/var(--lh-body) var(--font-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-strong);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0;
}
a { color: var(--accent-ink); text-decoration: none; transition: color var(--dur-fast) var(--ease-calm); }
a:hover { color: var(--clay-500); }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container.page { padding-top: 48px; padding-bottom: 24px; }
.section-h { font-size: var(--fs-h3); margin: 0 0 14px; }
.section-h-gap { margin-top: 40px; }
.empty-state-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-strong); }
.empty-state-hint { margin: 10px 0 20px; }

.newsletter-thanks { max-width: 560px; margin: 0 auto; padding: 32px 24px; }
.newsletter-thanks-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 72px; height: 72px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(184,137,75,.12);
    color: var(--accent, #b8894b);
}
.newsletter-thanks-actions { justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-form { margin-top: 16px; }
.hint-form { margin-top: 14px; }
.eyebrow {
    font: 700 var(--fs-xs)/1 var(--font-body);
    letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-ink);
}
.page-title { font-size: var(--fs-h1); font-weight: 900; margin: 8px 0 12px; }
.page-lead { color: var(--text-muted); max-width: 560px; margin: 0 auto var(--space-6); text-align: center; }
.page-lead--start { text-align: left; margin-left: 0; }
.section-title-block { text-align: center; margin-bottom: var(--space-6); }

/* -- Site header ------------------------------------------------- */
.site-header { position: relative; z-index: 1100; background: var(--bg-band); color: #fff; }
.site-header.overlay { position: absolute; inset: 0 0 auto 0; background: rgba(207,175,141,.55); }
.site-header .topbar {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; gap: var(--space-4);
    padding: 4px 32px 0; font-size: 12.5px; font-weight: 600; letter-spacing: -.02em;
}
.site-header .topbar .spacer { flex: 1; }
.site-header .topbar span, .site-header .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.site-header .band { position: relative; text-align: center; padding: 2px 0 6px; }
.site-header .band .logo img { height: 52px; cursor: pointer; }
.site-header nav { display: flex; justify-content: center; gap: 20px; margin-top: 4px; flex-wrap: wrap; }
.site-header nav a {
    color: #fff; font: 600 14.5px/1 var(--font-body);
    letter-spacing: -.02em; padding: 3px 2px; border-bottom: 2px solid transparent;
    opacity: .88;
}
.site-header nav a.is-active { opacity: 1; border-bottom-color: #fff; }
.site-header nav a:hover { opacity: 1; color: #fff; }
.site-header .nav-item { position: relative; display: inline-flex; align-items: center; }
.site-header .nav-item.has-submenu > a::after {
    content: "\25BE"; font-size: 10px; margin-left: 4px; opacity: .75;
    display: inline-block; transform: translateY(-1px);
}
.site-header .nav-submenu {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 6px);
    background: var(--sand-500);
    padding: 4px 0; min-width: 130px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-calm), transform var(--dur-fast) var(--ease-calm);
    z-index: 50;
}
.site-header .nav-submenu a {
    display: block; padding: 6px 14px;
    font: 600 12.5px/1.3 var(--font-body); color: #fff;
    border-bottom: none; opacity: .9; white-space: nowrap;
}
.site-header .nav-submenu a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.site-header .nav-item:hover .nav-submenu,
.site-header .nav-item:focus-within .nav-submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0);
}
.site-header .who { color: var(--cream); font-size: var(--fs-sm); opacity: .9; }
.site-header .who em { font-style: normal; opacity: .8; }

.lang-switch {
    display: inline-flex; align-items: center; gap: 2px;
    margin-left: 4px; padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.22);
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 6px; border-radius: 4px;
    color: rgba(255,249,241,.7); text-decoration: none;
    transition: background .18s var(--ease-calm), color .18s var(--ease-calm);
}
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-switch a.is-active { color: #fff; background: rgba(255,255,255,.18); }

.header-user {
    display: inline-flex; align-items: center; gap: 8px;
    margin-left: 6px; padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.22);
}
.header-user .header-user-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cream); text-decoration: none;
    padding: 2px 6px; border-radius: 999px;
    transition: background .18s var(--ease-calm);
}
.header-user .header-user-link:hover { background: rgba(255,255,255,.1); }
.header-user .header-user-name { font-weight: 600; letter-spacing: -.01em; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user .header-user-name em { font-style: normal; opacity: .75; margin-left: 3px; }
.header-user .header-user-icon {
    display: inline-flex; align-items: center; gap: 4px;
    color: rgba(255,249,241,.85); padding: 4px 6px; border-radius: 6px;
}
.header-user .header-user-icon:hover { color: #fff; background: rgba(255,255,255,.1); }
.header-user .user-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

/* Mobile nav toggle – checkbox-driven, no JS. Hidden on desktop. */
.nav-toggle-input { display: none; }
.nav-toggle {
    display: none;
    position: absolute; top: 14px; right: 16px;
    width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
    color: #fff; cursor: pointer; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.12);
    transition: background var(--dur-fast) var(--ease-calm);
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.nav-toggle .nav-toggle-open,
.nav-toggle .nav-toggle-close { display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-open { display: none; }
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-close { display: inline-flex; }

.nav-backdrop, .nav-panel-close, .nav-panel-logo { display: none; }

/* -- Hero -------------------------------------------------------- */
.hero {
    position: relative; min-height: 640px;
    background: url("assets/textureWall.png") center/cover, var(--sand-400);
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    overflow: hidden;
    padding: 260px 24px 90px;
}
.hero::before {
    content: ""; position: absolute; left: 0; bottom: 0; top: 0; width: 44%; max-width: 640px;
    background: url("assets/texturePampas.png") left bottom/contain no-repeat; opacity: .95; pointer-events: none;
}
.hero-inner { position: relative; text-shadow: 0 2px 18px rgba(90,58,34,.35); max-width: 900px; }
.hero-inner h1 { color: #fff; font-weight: 900; font-size: var(--fs-hero); line-height: 1; }
.hero-inner .kicker { font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; margin-top: 30px; letter-spacing: .02em; }
.hero-inner .kicker--sub { font-size: clamp(18px, 2.2vw, 28px); margin-top: 18px; }
.hero-inner h2 { color: #fff; font-weight: 800; font-size: clamp(30px, 4vw, 46px); margin-top: 60px; }
.hero-social { display: flex; gap: 22px; justify-content: center; margin-bottom: 30px; }

/* -- Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--radius-pill);
    padding: 13px 28px; font: 600 15px/1 var(--font-body);
    cursor: pointer; text-decoration: none;
    transition: background var(--dur-fast) var(--ease-calm),
                box-shadow var(--dur-fast) var(--ease-calm),
                color var(--dur-fast) var(--ease-calm);
}
.btn-lg { padding: 20px 40px; font-size: 18px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-primary { background: var(--sage-300); color: #fff; }
.btn-primary:hover { background: var(--sage-400); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:active { background: var(--sage-500); }
.btn-secondary { background: var(--white); color: var(--text-strong); border-color: var(--border-default); }
.btn-secondary:hover { background: var(--sand-100); color: var(--text-strong); }
.btn-sand { background: var(--sand-400); color: #fff; }
.btn-sand:hover { background: var(--sand-500); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-ink); }
.btn-ghost:hover { background: var(--sand-100); color: var(--accent-ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* -- Cards / forms ---------------------------------------------- */
.card {
    background: var(--surface-card); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-card); border: 1px solid var(--border-subtle);
}
.card.muted   { background: var(--surface-muted); box-shadow: none; }
.card--centered { text-align: center; }
.card.outline { background: transparent; box-shadow: none; border: 1px solid var(--border-default); }
.card.narrow  { max-width: 480px; margin: 0 auto; }
.card h2 { font-size: var(--fs-h3); margin-bottom: 4px; }
.card .card-lead { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 18px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .cols { grid-template-columns: 1fr; } }

form label {
    display: block; margin: 12px 0;
    font: 600 var(--fs-sm)/1.3 var(--font-body); color: var(--text-strong);
}
form input {
    display: block; width: 100%; margin-top: 6px;
    padding: 12px 14px; font: 400 15px/1.3 var(--font-body);
    background: #fff; color: var(--text-strong);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    transition: border-color var(--dur-fast) var(--ease-calm), box-shadow var(--dur-fast) var(--ease-calm);
}
form input:focus { outline: none; border-color: var(--sage-400); box-shadow: var(--focus-ring); }

/* -- Flash ------------------------------------------------------- */
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); margin: 8px 0 16px;
    display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm);
}
.flash-ok  { background: var(--success-bg); color: var(--sage-700);  border: 1px solid var(--sage-300); }
.flash-err { background: var(--danger-bg);  color: var(--danger);     border: 1px solid var(--danger); }

/* -- Schedule ---------------------------------------------------- */
.schedule-toolbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 14px; margin-bottom: 18px;
}
.week-nav {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill); padding: 5px;
    box-shadow: var(--shadow-soft);
}
.week-nav a, .week-nav button {
    background: transparent; border: 0; padding: 7px 12px;
    border-radius: var(--radius-pill); color: var(--text-body); cursor: pointer;
    font: 600 var(--fs-sm)/1 var(--font-body);
}
.week-nav a:hover, .week-nav button:hover { background: var(--sand-100); color: var(--text-strong); }
.week-nav .range { padding: 0 10px; text-align: center; }
.week-nav .range strong {
    display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px;
    color: var(--text-strong); line-height: 1.1;
}
.week-nav .range small { color: var(--text-muted); font-size: 11px; }

.week-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px; align-items: stretch;
}
@media (max-width: 1080px) { .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .week-grid { grid-template-columns: 1fr; } }

.room-equipment {
    margin: 28px 0 8px;
    padding: 22px 26px;
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-subtle, #e6dfd0);
    border-left: 4px solid var(--accent, #b8894b);
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-soft, 0 4px 18px rgba(0,0,0,.05));
}
.room-equipment-eyebrow {
    font: 700 var(--fs-xs)/1 var(--font-body);
    letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
    color: var(--accent-ink); margin-bottom: 8px;
}
.room-equipment p { margin: 0; color: var(--text-body); line-height: 1.65; }
@media (max-width: 480px) {
    .room-equipment { padding: 18px 18px; }
}

.day {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 7px;
    display: flex; flex-direction: column;
    min-height: 160px;
    box-shadow: var(--shadow-soft);
}
.day.is-today { background: var(--sand-100); border-color: var(--accent-ink); }
.day.is-past  { opacity: .6; }
.day-head {
    text-align: center; padding: 2px 0 7px;
    border-bottom: 1px solid var(--border-subtle); margin-bottom: 6px;
}
.day-name  { font: 700 10px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); color: var(--text-muted); text-transform: uppercase; }
.day.is-today .day-name { color: var(--accent-ink); }
.day-date  { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-strong); margin-top: 2px; }
.day-empty { font-size: 11px; color: var(--text-muted); text-align: center; padding: 12px 4px; font-style: italic; }
.day-slots { display: flex; flex-direction: column; gap: 5px; flex: 1; }

.class-card {
    background: var(--sand-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); padding: 7px 9px 8px;
    display: flex; flex-direction: column; gap: 2px;
    border-left: 3px solid var(--cat-yoga);
    transition: transform var(--dur-fast) var(--ease-calm), box-shadow var(--dur-fast) var(--ease-calm), background var(--dur-fast) var(--ease-calm);
    min-width: 0;
}
.class-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); background: var(--surface-card); }
.class-card.is-full { opacity: .8; }
.class-card .time  { font: 700 11px/1 var(--font-body); color: var(--accent-ink); letter-spacing: .02em; }
.class-card .title { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.class-card .meta  { font-size: 10px; color: var(--text-muted); overflow-wrap: anywhere; }
.class-card .class-price {
    font-size: 11px; font-weight: 600; color: var(--sage-700); letter-spacing: .01em; margin-top: 2px;
    display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap;
}
.class-card .class-price > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.class-card .class-price-member {
    white-space: nowrap; font-weight: 600; font-size: 10px;
    color: var(--accent-ink); background: var(--sand-100);
    padding: 2px 6px; border-radius: var(--radius-pill);
}
.class-card.is-full .class-price { color: var(--text-muted); }
.class-card .class-qr-btn {
    display: inline-flex; align-items: center; gap: 3px;
    font: 600 10px/1 var(--font-body); letter-spacing: .02em;
    color: var(--sage-700); background: transparent;
    border: 1px solid var(--sage-200, rgba(135,160,135,.4));
    border-radius: 999px; padding: 2px 7px; cursor: pointer;
    flex: 0 0 auto; margin-left: auto;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.class-card .class-qr-btn:hover { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.class-card .class-qr-btn .icon { flex: 0 0 auto; }

/* -- QR payment modal (per-class SPAYD) ---------------------------- */
.qr-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.qr-modal[hidden] { display: none; }
.qr-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(26,20,16,.55);
    backdrop-filter: blur(2px);
}
.qr-modal-inner {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px -20px rgba(26,20,16,.4);
    width: min(420px, 100%);
    padding: 22px 24px 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}
.qr-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.qr-modal-title {
    margin: 2px 0 2px;
    font: 700 18px/1.2 var(--font-display);
    color: var(--text-strong);
}
.qr-modal-sub { margin: 0; font-size: 12px; color: var(--text-muted); }
.qr-modal-close {
    background: transparent; border: 0; font-size: 24px; line-height: 1;
    color: var(--text-muted); cursor: pointer; padding: 2px 6px; margin: -4px -8px 0 0;
}
.qr-modal-close:hover { color: var(--text-strong); }
.qr-modal-box {
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    background: #faf7f2;
    border-radius: var(--radius);
    min-height: 240px;
    margin-bottom: 14px;
}
.qr-modal-box img, .qr-modal-box canvas { display: block; max-width: 100%; height: auto; }
.qr-modal-bank {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
    margin: 0 0 10px;
    font-size: 12px;
}
.qr-modal-bank dt { color: var(--text-muted); }
.qr-modal-bank dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.qr-modal-bank .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.qr-modal-hint { margin: 0; font-size: 11px; }
.qr-modal-actions { display: flex; justify-content: center; margin-top: 10px; }
.qr-modal-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
body.has-qr-open { overflow: hidden; }
@media (max-width: 560px) {
    .qr-modal { padding: 0; align-items: flex-end; }
    .qr-modal-backdrop { backdrop-filter: none; }
    .qr-modal-inner {
        width: 100%;
        max-height: 92vh;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -20px 50px -20px rgba(26,20,16,.4);
        animation: qr-sheet-in .22s ease-out;
    }
    .qr-modal-head { margin-bottom: 10px; }
    .qr-modal-title { font-size: 16px; }
    .qr-modal-close {
        font-size: 28px; padding: 8px 12px; margin: -8px -8px 0 0;
        min-width: 44px; min-height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .qr-modal-box { padding: 10px; min-height: 0; margin-bottom: 12px; }
    .qr-modal-bank { font-size: 13px; gap: 2px 12px; }
    .qr-modal-hint { font-size: 12px; }
}
@keyframes qr-sheet-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.schedule-price-hint { text-align: center; margin: 14px auto 0; max-width: 60ch; }
.schedule-price-hint a { color: var(--sage-700); text-decoration: underline; text-underline-offset: 2px; }
.schedule-pay-hint {
    display: flex; align-items: center; gap: 8px;
    width: fit-content; max-width: 100%;
    margin: 0 auto 14px; padding: 8px 14px;
    background: var(--sage-100, #E3EFEC); color: var(--sage-700);
    border-radius: 999px; font: 500 12px/1.3 var(--font-body); text-align: left;
}
.schedule-pay-hint .icon { flex: 0 0 auto; color: var(--sage-700); }
.class-card .row {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 5px; margin-top: 6px; min-width: 0;
}
.class-card .row .badge { align-self: flex-start; font-size: 10px; padding: 2px 7px; }
.class-card .row form.inline { display: block; width: 100%; margin: 0; }
.class-card .row .btn,
.class-card .row .btn-sm {
    width: 100%; padding: 6px 10px; font-size: 11px;
    justify-content: center; box-sizing: border-box; max-width: 100%;
}
.class-card .row .hint { font-size: 10px; }
.class-card-login {
    margin-top: 6px; display: flex; width: 100%; box-sizing: border-box;
    padding: 6px 10px; font-size: 11px;
    background: var(--sage-100); border-color: var(--sage-200); color: var(--accent-ink);
}
.class-card-login:hover { background: var(--sage-300); border-color: var(--sage-300); color: #fff; }

/* Wider cards (4-col tablet layer): keep badge + button side-by-side. */
@media (min-width: 781px) and (max-width: 1080px) {
    .class-card .row {
        flex-direction: row; align-items: center;
        justify-content: space-between; flex-wrap: wrap;
    }
    .class-card .row .btn,
    .class-card .row .btn-sm { width: auto; padding: 7px 14px; }
    .class-card .row form.inline { width: auto; margin-left: auto; }
}

/* Larger typography and comfy layout when day cells are wide (≤4 cols). */
@media (min-width: 781px) and (max-width: 1080px) {
    .class-card { padding: 12px 14px; }
    .class-card .time  { font-size: 13px; }
    .class-card .title { font-size: 15px; }
    .class-card .meta  { font-size: 12px; }
    .day { padding: 12px 10px; }
    .day-date { font-size: 22px; }
}

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 11px/1 var(--font-body); padding: 4px 9px; border-radius: var(--radius-pill);
    background: var(--sand-100); color: var(--text-body); white-space: nowrap;
}
.badge.badge-success { background: var(--success-bg); color: var(--sage-700); }
.badge.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge.badge-warn    { background: var(--warning-bg); color: #8A5A1E; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* -- Table (my bookings history) -------------------------------- */
.tbl {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--surface-card); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-subtle);
}
.tbl th, .tbl td { padding: 14px 16px; text-align: left; font-size: var(--fs-sm); }
.tbl th { background: var(--surface-muted); color: var(--text-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.tbl tbody tr + tr td { border-top: 1px solid var(--border-subtle); }

/* -- Booking rows on myprofile.php ------------------------------- */
.booking-row {
    display: grid; grid-template-columns: 90px 1fr auto; gap: 20px;
    align-items: center; padding: 20px 22px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.booking-row .gcal-btn {
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.booking-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 12px; flex-wrap: wrap;
}
.booking-row + .booking-row { margin-top: 12px; }
.booking-row .date-block {
    text-align: center; border-right: 1px solid var(--border-subtle); padding-right: 16px;
}
.booking-row .date-block .dow { font: 700 11px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); color: var(--text-muted); text-transform: uppercase; }
.booking-row .date-block .num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text-strong); }
.booking-row .info .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-strong); }
.booking-row .info .meta { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

@media (max-width: 640px) {
    .booking-row { grid-template-columns: 80px 1fr; }
    .booking-row .booking-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* -- Footer ------------------------------------------------------ */
.site-footer {
    background: var(--clay-900); color: var(--cream); padding: 48px 32px; margin-top: 80px;
}
.site-footer .inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.site-footer img { height: 70px; }
.site-footer .contact { font-size: 14px; line-height: 1.9; opacity: .85; }
.site-footer .social { display: flex; gap: 18px; opacity: .9; }
.site-footer .social a { color: var(--cream); }

/* -- Icons (inline SVG helper) ---------------------------------- */
.icon { width: 1em; height: 1em; vertical-align: -.15em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* -- Utility ---------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer-lg { height: 48px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.inline { display: inline-block; }
.hint { color: var(--text-muted); font-size: var(--fs-sm); }
.tbl-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(90deg, var(--surface-card) 30%, rgba(255,255,255,0)) left / 20px 100% no-repeat local,
        linear-gradient(-90deg, var(--surface-card) 30%, rgba(255,255,255,0)) right / 20px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(90,58,34,.12), rgba(0,0,0,0)) left / 12px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(90,58,34,.12), rgba(0,0,0,0)) right / 12px 100% no-repeat scroll;
}

/* ==============================================================
   Responsive – tablet & mobile refinements
   ============================================================== */
@media (max-width: 960px) {
    .container { padding: 0 24px; }
    .schedule-toolbar { gap: 12px; }
}

@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .container.page { padding-top: 28px; padding-bottom: 16px; }

    /* Header: compact topbar, logo, hamburger reveals a stacked drop-down nav. */
    .site-header .topbar {
        flex-wrap: wrap; padding: 4px 12px 0;
        font-size: 11.5px; gap: 4px 10px; line-height: 1.35;
    }
    .site-header .band { padding: 2px 0 4px; }
    .site-header .band .logo img { height: 40px; }

    .nav-toggle {
        display: inline-flex;
        top: 4px; right: 10px;
        width: 44px; height: 44px;
    }

    /* Backdrop that doubles as a tap-to-close target. */
    .nav-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(20,20,25,.55);
        opacity: 0; visibility: hidden;
        transition: opacity .25s var(--ease-calm), visibility .25s;
        z-index: 999;
        cursor: pointer;
    }
    .nav-toggle-input:checked ~ .nav-backdrop {
        opacity: 1; visibility: visible;
    }

    /* Logo at the top of the slide-in panel. */
    .nav-panel-logo {
        display: flex !important;
        justify-content: center;
        padding: 14px 20px 6px !important;
        border-bottom: 1px solid rgba(255,255,255,.14);
        min-height: 0 !important;
    }
    .nav-panel-logo img { height: 38px; width: auto; display: block; }

    /* Close button inside the panel. */
    .nav-panel-close {
        display: inline-flex;
        align-items: center; justify-content: center;
        position: absolute;
        top: 10px; right: 10px;
        width: 40px; height: 40px;
        color: #fff; cursor: pointer;
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,.1);
        transition: background var(--dur-fast) var(--ease-calm);
    }
    .nav-panel-close:hover, .nav-panel-close:focus-visible {
        background: rgba(255,255,255,.2); outline: none;
    }

    /* Slide-in panel from the right. */
    .site-header nav {
        display: flex;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 86vw);
        margin: 0;
        padding: 8px 0 88px;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--sand-500);
        border-top: none;
        border-left: 1px solid rgba(255,255,255,.18);
        box-shadow: -12px 0 32px rgba(0,0,0,.28);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform .3s var(--ease-calm);
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
    }
    .nav-toggle-input:checked ~ nav { transform: translateX(0); }

    /* Lock page scroll while the panel is open. */
    html:has(.nav-toggle-input:checked),
    body:has(.nav-toggle-input:checked) { overflow: hidden; }
    body:has(.nav-toggle-input:checked) .mobile-cta { display: none; }

    .site-header nav a,
    .site-header nav .who {
        padding: 11px 20px;
        font-size: 15px; opacity: 1; text-align: left;
        border-bottom: 1px solid rgba(255,255,255,.14);
        min-height: 44px;
        display: flex; align-items: center;
    }
    .site-header nav a.is-active {
        background: rgba(255,255,255,.14);
        border-bottom-color: rgba(255,255,255,.14);
        border-left: 3px solid #fff;
        padding-left: 17px;
    }
    .site-header nav .who {
        font-size: 12px; opacity: .85; padding: 10px 20px;
        min-height: 0;
    }
    .site-header .nav-item { display: block; width: 100%; }
    .site-header .nav-item.has-submenu > a::after { display: none; }
    .site-header .nav-submenu {
        position: static; transform: none;
        opacity: 1; visibility: visible; pointer-events: auto;
        background: rgba(0,0,0,.08); box-shadow: none; min-width: 0;
        padding: 0; border-radius: 0;
    }
    .site-header .nav-submenu a {
        padding: 11px 20px 11px 36px; font-size: 13.5px; opacity: .9;
        border-bottom: 1px solid rgba(255,255,255,.1);
        min-height: 44px;
    }
    .site-header .nav-submenu a::before {
        content: "›";
        margin-right: 10px;
        opacity: .55;
        font-size: 15px;
    }

    /* Hero – tune down the giant top padding and min-height. */
    .hero { min-height: 460px; padding: 130px 20px 60px; }
    .hero::before { width: 60%; opacity: .8; }
    .hero-inner .kicker, .hero-inner .kicker--sub { margin-top: 20px; }
    .hero-inner h2 { margin-top: 40px; }

    /* Titles – slightly less air on small screens. */
    .section-title-block { margin-bottom: var(--space-5); }
    .page-title { margin-top: 6px; }

    /* Two-column layouts collapse cleanly. */
    .cols { gap: 16px; }

    /* Schedule toolbar stacks; week nav takes the full row. */
    .schedule-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .week-nav { justify-content: space-between; }
    .week-nav .range strong { font-size: 16px; }

    /* Day cells: compact head, no min-height on mobile stacked layout. */
    .day { min-height: auto; padding: 10px; }
    .day-head { padding: 2px 0 8px; margin-bottom: 8px; }
    .day-date { font-size: 20px; }

    /* Cards – tighter padding. */
    .card { padding: 22px; border-radius: var(--radius-md); }

    /* Prevent iOS from auto-zooming into any form field on focus. */
    form input, form textarea, form select, .admin-form select { font-size: 16px; }

    /* Booking row: date + info on row 1, badge + cancel button on row 2. */
    .booking-row {
        grid-template-columns: 68px 1fr;
        grid-template-areas:
            "date info"
            "actions actions";
        gap: 12px 16px; padding: 16px 18px;
    }
    .booking-row .date-block { grid-area: date; padding-right: 12px; border-right: 1px solid var(--border-subtle); }
    .booking-row .date-block .num { font-size: 22px; }
    .booking-row .info { grid-area: info; min-width: 0; }
    .booking-row .info .name { font-size: 18px; }
    .booking-row .booking-actions { grid-area: actions; gap: 8px; }
    .booking-row .booking-actions form { margin-left: auto; }

    /* Section headings tighter on mobile. */
    .section-h-gap { margin-top: 28px; }

    /* Footer stacks – center everything. */
    .site-footer { padding: 36px 20px; margin-top: 56px; }
    .site-footer .inner { justify-content: center; text-align: center; }
    .site-footer .contact { flex: 1 0 100%; }
}

@media (max-width: 480px) {
    /* Drop the wide email link, keep the phone number visible. */
    .site-header .topbar { justify-content: space-between; }
    .site-header .topbar .topbar-mail { display: none; }
    .site-header .header-user .header-user-name { display: none; }
    .site-header .header-user { padding-left: 8px; margin-left: 4px; }

    .hero { min-height: 380px; padding: 110px 16px 48px; }
    .hero-inner h2 { font-size: 26px; margin-top: 30px; }

    .card { padding: 18px; }
    form input { padding: 14px; font-size: 16px; /* prevents iOS zoom */ }
    .btn { padding: 14px 22px; }
    .btn-sm { padding: 10px 16px; }

    /* Class card row – badge + button on their own line if tight. */
    .class-card .row { flex-wrap: wrap; }
    .class-card .row form, .class-card .row a.btn { margin-left: auto; }

    /* History table – convert rows to stacked cards using data-label pseudo. */
    .tbl { display: block; background: transparent; border: 0; box-shadow: none; }
    .tbl thead { display: none; }
    .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl tr {
        background: var(--surface-card); border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px;
        box-shadow: var(--shadow-soft);
    }
    .tbl tbody tr + tr td { border-top: 0; }
    .tbl td {
        padding: 4px 0; font-size: 14px;
        display: flex; justify-content: space-between; gap: 12px;
    }
    .tbl td::before {
        content: attr(data-label);
        font: 700 11px/1.4 var(--font-body); letter-spacing: var(--ls-eyebrow);
        color: var(--text-muted); text-transform: uppercase;
        flex: 0 0 auto;
    }
}

/* Touch-friendly minimums everywhere. */
@media (hover: none) {
    .btn, .week-nav a, .week-nav button { min-height: 44px; }
    .class-card:hover { transform: none; box-shadow: var(--shadow-soft); }
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Accessibility utility */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Sticky header — dimensions stay constant to avoid content jumps on scroll. */
.site-header {
    position: sticky; top: 0;
    transition: box-shadow var(--dur-base) var(--ease-calm),
                background var(--dur-base) var(--ease-calm);
}
.site-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(90,58,34,.14);
}

/* Overlay header: crisper contrast on hero */
body.has-overlay-header .site-header {
    background: linear-gradient(180deg, rgba(58,39,24,.62) 0%, rgba(58,39,24,.28) 60%, rgba(58,39,24,0) 100%);
    box-shadow: none;
}
body.has-overlay-header .site-header.is-scrolled {
    background: var(--bg-band);
    box-shadow: 0 6px 24px rgba(90,58,34,.14);
}

/* Hero legibility */
.hero-home::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(58,39,24,.28) 0%, rgba(58,39,24,.55) 100%);
    pointer-events: none;
}
.hero-home > .hero-inner { position: relative; z-index: 2; }

/* Reveal on scroll */
.reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 600ms var(--ease-calm), transform 600ms var(--ease-calm);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 26px 24px;
    box-shadow: var(--shadow-soft); margin: 0;
    display: flex; flex-direction: column; gap: 16px;
    position: relative;
}
.testimonial::before {
    content: "\201C"; position: absolute; top: -8px; left: 18px;
    font-family: var(--font-display); font-size: 68px; color: var(--sage-300); line-height: 1;
}
.testimonial blockquote { margin: 0; padding-top: 10px; color: var(--text-body); font-style: italic; }
.testimonial figcaption { color: var(--text-muted); font-size: 13px; margin-top: auto; }
.testimonial figcaption strong { color: var(--text-strong); font-style: normal; }

/* FAQ – CSS-only accordion */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.faq summary {
    list-style: none; cursor: pointer;
    padding: 18px 22px; font-weight: 700; color: var(--text-strong);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-caret { transition: transform var(--dur-base) var(--ease-calm); color: var(--accent-ink); display: inline-flex; }
.faq details[open] .faq-caret { transform: rotate(180deg); }
.faq details p { margin: 0 22px 18px; color: var(--text-body); line-height: 1.7; }

/* Newsletter */
.newsletter {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, var(--sand-100), var(--sand-50));
    border: 1px solid var(--border-subtle);
}
.newsletter-copy h3 { font-family: var(--font-display); font-size: 24px; margin: 8px 0 6px; }
.newsletter-copy p  { color: var(--text-muted); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1; min-width: 200px;
    padding: 14px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-pill);
    background: #fff; font: 400 15px/1.3 var(--font-body);
}
.newsletter-form input:focus { outline: none; border-color: var(--sage-400); box-shadow: var(--focus-ring); }

/* Cookie banner */
.cookie-banner {
    position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
    background: var(--clay-900); color: var(--cream);
    border-radius: var(--radius-md); padding: 14px 18px;
    box-shadow: var(--shadow-float);
}
.cookie-inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; min-width: 240px; }
.cookie-banner .btn-primary { background: var(--sage-300); color: var(--clay-900); }

/* Mobile sticky book CTA */
.mobile-cta {
    display: none;
    position: fixed; z-index: 25; left: 12px; right: 12px; bottom: 12px;
    background: var(--sage-500); color: #fff;
    text-align: center; padding: 14px 16px;
    border-radius: var(--radius-pill); box-shadow: var(--shadow-float);
    font-weight: 700; font-size: 15px; align-items: center; justify-content: center; gap: 8px;
}
.mobile-cta:hover { color: #fff; background: var(--sage-700); }

/* Rezervace: category filter chips */
.chip-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 18px; padding: 6px;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
    align-items: center;
    width: fit-content; max-width: 100%;
}
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 0;
    padding: 8px 14px; border-radius: var(--radius-pill);
    font: 600 13px/1 var(--font-body); color: var(--text-body); cursor: pointer;
    white-space: nowrap; transition: background var(--dur-fast) var(--ease-calm), color var(--dur-fast) var(--ease-calm);
}
.chip:hover { background: var(--sand-100); color: var(--text-strong); }
.chip.is-active { background: var(--sage-500); color: #fff; }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--sw, var(--accent)); }
.chip.is-active .swatch { background: rgba(255,255,255,.9); }

/* -------- Mobile / tablet refinements for the marketing pages -------- */
@media (max-width: 960px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .mobile-cta { display: inline-flex; }
    body { padding-bottom: 76px; } /* leave space above sticky CTA */
}

/* Print styles */
@media print {
    .site-header, .site-footer, .mobile-cta, .cookie-banner,
    .schedule-toolbar, .btn, form, .cta-band { display: none !important; }
    body { background: #fff; color: #111; padding: 0; }
    .container.page { padding-top: 8px; }
    .class-card, .booking-row, .tbl { box-shadow: none; border-color: #ccc; }
    a { color: #111; text-decoration: none; }
    .week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==============================================================
   Landing page + shared marketing components
   ============================================================== */

/* Overlay header on hero: absolute-position header, body pushes hero up. */
body.has-overlay-header { padding-top: 0; }
body.has-overlay-header .site-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    background: linear-gradient(180deg, rgba(90,58,34,.55) 0%, rgba(90,58,34,.15) 70%, rgba(90,58,34,0) 100%);
}

/* Section rhythm */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-title { font-size: var(--fs-h2); font-weight: 800; margin: 8px 0 12px; }
.band-cream { background: var(--surface-muted); border-radius: var(--radius-lg); padding: 56px 32px; }

/* Hero – landing variant */
.hero-home { padding: 220px 24px 90px; text-align: center; min-height: 640px; }
.hero-home .hero-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,.14); color: #fff; font: 700 12px/1 var(--font-body);
    letter-spacing: var(--ls-eyebrow); text-transform: uppercase; margin-bottom: 20px;
    backdrop-filter: blur(2px);
}
.hero-cta {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-top: 36px;
}
.hero-cta .btn-secondary { background: rgba(255,255,255,.92); border-color: transparent; }

/* Feature grid (home categories) */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    background: var(--surface-card); border-radius: var(--radius-lg); padding: 28px 26px;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-subtle);
    display: flex; flex-direction: column; gap: 10px;
    border-top: 4px solid var(--cat, var(--accent));
    transition: transform var(--dur-fast) var(--ease-calm), box-shadow var(--dur-fast) var(--ease-calm);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature-badge {
    display: inline-block; align-self: flex-start;
    background: color-mix(in srgb, var(--cat, var(--accent)) 30%, #fff);
    color: var(--clay-900);
    padding: 4px 12px; border-radius: var(--radius-pill);
    font: 700 11px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.feature-card h3 { font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.feature-card p  { margin: 0; color: var(--text-body); }
.feature-link {
    margin-top: auto; font-weight: 700; color: var(--accent-ink);
    padding-top: 8px;
}

/* Stats grid */
.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.stat {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
    box-shadow: var(--shadow-soft);
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--sage-700); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }

/* Cols variants */
.cols.cols-2 { grid-template-columns: 1fr 1fr; }
.cols.cols-lead { align-items: center; gap: 48px; }

/* Soon-classes grid (home page) */
.soon-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.soon-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 6px;
}
.soon-day { font: 700 11px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); color: var(--accent-ink); text-transform: uppercase; }
.soon-time { font-weight: 700; color: var(--text-strong); }
.soon-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 4px 0; }
.soon-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

/* Big CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--sage-500), var(--sage-700));
    color: #fff; border-radius: var(--radius-lg);
    padding: 56px 32px; margin: 72px 0 24px; text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 10px; }
.cta-band p  { color: rgba(255,255,255,.9); margin: 0 0 24px; }
.cta-band .btn-primary { background: #fff; color: var(--sage-700); }
.cta-band .btn-primary:hover { background: var(--sand-50); color: var(--sage-700); }

/* Category cards (lekce page) */
.cat-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 32px;
}
.cat-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 18px; text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--cat, var(--accent));
}
.cat-card h3 { font-size: 18px; margin: 4px 0; }
.cat-card p  { color: var(--text-muted); font-size: 13px; margin: 0; }

/* Week schedule list (lekce page) */
.week-list { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 18px; }
.week-day { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.week-day-head { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; color: var(--text-strong); }
.week-day-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.week-day-item {
    display: grid; grid-template-columns: 130px 1fr auto auto;
    gap: 16px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--cat-yoga);
    border-radius: var(--radius-md); background: var(--sand-50);
}
.wdi-time { font-weight: 700; color: var(--accent-ink); }
.wdi-name { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); }
.wdi-meta { color: var(--text-muted); font-size: 13px; }
.wdi-btn  { justify-self: end; }

/* Teacher cards */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teacher-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.teacher-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 26px 22px; text-align: center;
    box-shadow: var(--shadow-soft);
}
.teacher-avatar {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sage-300), var(--sage-500));
    color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 34px;
    overflow: hidden; position: relative;
}
.teacher-avatar.has-photo { background: var(--sand-100); }
.teacher-avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.teacher-name { font-family: var(--font-display); font-size: 22px; margin: 4px 0; }
.teacher-role { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.teacher-bio  { color: var(--text-body); margin-top: 10px; }

/* Price cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .price-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .price-grid-4 { grid-template-columns: 1fr; } }
.price-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-soft);
    text-align: center;
}
.price-card h3 { font-size: 20px; margin: 6px 0; }
.price-card p  { color: var(--text-muted); font-size: 14px; }
.price-eyebrow {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--sand-100); color: var(--text-muted);
    font: 700 11px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
    margin-bottom: 8px;
}
.price-card.featured { border-color: var(--sage-400); box-shadow: var(--shadow-card); transform: translateY(-4px); }
.price-card.featured .price-eyebrow { background: var(--sage-300); color: #fff; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--sage-700); margin: 8px 0 6px; }
.price-amount.price-sm { font-size: 22px; margin: 0; }

/* Checklist / steps */
.check-list, .steps { padding-left: 0; list-style: none; margin: 0; }
.check-list li, .steps li { padding: 8px 0 8px 32px; position: relative; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--sage-300); color: #fff; text-align: center; line-height: 22px;
    font-weight: 700; font-size: 12px;
}
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--sand-300); color: var(--clay-900); text-align: center; line-height: 22px;
    font-weight: 700; font-size: 12px;
}

/* Massage grid */
.massage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.massage-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 10px;
}
.massage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.massage-head h3 { font-size: 20px; }
.massage-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* masaze.php – bookable massage / physio slots (reuses .day + .class-card) */
.therapy-slots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px; align-items: start;
}
.therapy-slots .day { min-height: 0; }
.therapy-slots .class-card .row { flex-wrap: wrap; }

/* admin/therapy.php – client list inside the slot table */
.therapy-booking { font-size: 12.5px; line-height: 1.5; }
.therapy-booking + .therapy-booking { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--border-subtle); }

/* Contact / map */
.contact-line { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--text-body); }
.map-embed {
    margin-top: 16px; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border-subtle); background: var(--sand-100);
}
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

form textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 12px 14px; font: 400 15px/1.4 var(--font-body);
    background: #fff; color: var(--text-strong);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    resize: vertical; min-height: 120px;
}
form textarea:focus { outline: none; border-color: var(--sage-400); box-shadow: var(--focus-ring); }

/* Enriched footer */
.site-footer .inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
    align-items: flex-start; text-align: left;
}
.foot-brand img { height: 64px; }
.foot-tag { color: rgba(255,249,241,.72); font-size: 14px; margin-top: 8px; max-width: 260px; }
.foot-col h4 { color: var(--cream); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.foot-col a { display: block; color: rgba(255,249,241,.82); padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-col .social { display: flex; gap: 14px; margin-top: 12px; }
.foot-col .social a { display: inline-flex; padding: 0; }
.foot-col--newsletter { max-width: 280px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.newsletter-form input[type=email] {
    flex: 1 1 160px; min-width: 0; padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,249,241,.25); background: rgba(255,249,241,.08);
    color: var(--cream); font-size: 14px;
}
.newsletter-form input[type=email]::placeholder { color: rgba(255,249,241,.5); }
.newsletter-form input[type=email]:focus { outline: none; border-color: rgba(255,249,241,.55); background: rgba(255,249,241,.14); }
.newsletter-form button { flex: 0 0 auto; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hp-field {
    position: absolute !important;
    left: -10000px; top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}
.captcha-field input {
    max-width: 120px;
    letter-spacing: 2px;
}
.email-obf { unicode-bidi: bidi-override; }
.email-obf .email-at, .email-obf .email-dot { font-style: normal; }
.phone-noise { display: none; }
.foot-legal {
    max-width: var(--container); margin: 24px auto 0; padding-top: 20px;
    border-top: 1px solid rgba(255,249,241,.12); font-size: 12px; color: rgba(255,249,241,.55);
    display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline;
}
.foot-legal .foot-ico { opacity: .8; letter-spacing: .02em; }

.foot-newsletter-cta {
    max-width: var(--container); margin: 24px auto 0;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(255,249,241,.06);
    border: 1px solid rgba(255,249,241,.14);
    border-radius: 999px;
    color: var(--cream); text-decoration: none;
    font-size: 14px;
    transition: background .18s ease, border-color .18s ease;
}
.foot-newsletter-cta:hover { background: rgba(255,249,241,.10); border-color: rgba(255,249,241,.24); }
.foot-newsletter-cta > span:first-of-type { flex: 1; min-width: 0; opacity: .9; }
.foot-newsletter-cta-btn {
    font-weight: 600; padding: 6px 14px; border-radius: 999px;
    background: var(--accent, #b8894b); color: #fff; white-space: nowrap;
}
@media (max-width: 640px) {
    .foot-newsletter-cta { border-radius: var(--radius-lg, 14px); }
    .foot-newsletter-cta > span:first-of-type { flex: 1 1 100%; }
    .foot-newsletter-cta-btn { margin-left: auto; }
}

.newsletter-page { max-width: 520px; margin: 0 auto; padding: 28px 26px; }
.newsletter-page-form { display: flex; flex-direction: column; gap: 14px; }
.newsletter-page-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.newsletter-page-form input {
    padding: 10px 12px; border: 1px solid var(--border-subtle);
    border-radius: 10px; font: inherit; color: var(--text-body);
    background: var(--surface-card);
}
.newsletter-page-form input:focus-visible { outline: 2px solid var(--accent, #b8894b); outline-offset: 1px; }
.newsletter-page-form .btn { align-self: flex-start; }
.newsletter-page-form .hint { margin: 0; font-size: 12px; color: var(--text-muted); }

/* -------- Mobile / tablet refinements for the marketing pages -------- */
@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid     { grid-template-columns: repeat(3, 1fr); }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid   { grid-template-columns: repeat(2, 1fr); }
    .soon-grid    { grid-template-columns: repeat(2, 1fr); }
    .site-footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 48px 0; }
    .band-cream { padding: 32px 20px; }
    .hero-home { padding: 150px 20px 70px; min-height: 480px; }
    .hero-cta  { gap: 10px; }
    .cols.cols-2 { grid-template-columns: 1fr; }
    .cols.cols-lead { gap: 24px; }

    .feature-grid { grid-template-columns: 1fr; }
    .cat-grid     { grid-template-columns: repeat(2, 1fr); }
    .teacher-grid { grid-template-columns: 1fr; }
    .price-grid   { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .soon-grid    { grid-template-columns: 1fr; }
    .massage-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num   { font-size: 32px; }

    .week-day-item {
        grid-template-columns: 1fr;
        gap: 4px; padding: 14px;
    }
    .wdi-btn { justify-self: stretch; margin-top: 8px; }

    .cta-band { padding: 40px 22px; margin: 48px 0 16px; }

    .site-footer .inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
    .foot-legal { text-align: left; }

    /* Overlay header falls back to solid on small screens to keep nav readable. */
    body.has-overlay-header .site-header {
        position: relative;
        background: var(--bg-band);
    }
}

@media (max-width: 480px) {
    .hero-home { padding: 120px 16px 56px; min-height: 400px; }
    .hero-home .hero-eyebrow { font-size: 11px; padding: 5px 10px; }
    .cat-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .price-amount { font-size: 28px; }
}

/* ==============================================================
   Admin area
   ============================================================== */
body.admin-body {
    margin: 0;
    background:
        radial-gradient(1000px 500px at 100% 0, rgba(157,193,184,.14), transparent 60%),
        radial-gradient(700px 400px at 0 100%, rgba(184,148,109,.10), transparent 60%),
        var(--sand-50);
    background-attachment: fixed;
}
.admin-layout {
    display: grid; grid-template-columns: 208px 1fr; min-height: 100vh;
}
.admin-scrim { display: none; }
.admin-sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 16px 0 12px;
    display: flex; flex-direction: column;
    color: var(--cream);
    background:
        linear-gradient(180deg, #3f2a1c 0%, var(--clay-900) 65%),
        var(--clay-900);
    border-right: 1px solid rgba(0,0,0,.35);
    box-shadow: 1px 0 0 rgba(255,249,241,.05) inset, 0 6px 30px rgba(0,0,0,.15);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,249,241,.2) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,249,241,.15); border-radius: 3px; }
.admin-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px 14px; border-bottom: 1px solid rgba(255,249,241,.08);
    margin-bottom: 10px;
    position: relative;
}
.admin-brand::after {
    content: "";
    position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage-500), transparent);
    opacity: .5;
}
.admin-brand img { height: 32px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.admin-brand strong { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.admin-brand small  { display: block; color: rgba(255,249,241,.5); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; margin-top: 2px; }
.admin-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 8px; flex: 1; }
.admin-nav a {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px 7px 12px; border-radius: 6px;
    color: rgba(255,249,241,.72); font-weight: 600; font-size: 13px;
    transition: background var(--dur-fast) var(--ease-calm),
                color var(--dur-fast) var(--ease-calm),
                padding-left var(--dur-fast) var(--ease-calm);
}
.admin-nav a .icon { flex: 0 0 auto; width: 14px; height: 14px; opacity: .75; transition: opacity var(--dur-fast) var(--ease-calm); }
.admin-nav a:hover { background: rgba(255,249,241,.06); color: #fff; padding-left: 14px; }
.admin-nav a:hover .icon { opacity: 1; }
.admin-nav a.is-active {
    background: linear-gradient(90deg, rgba(95,145,135,.55), rgba(95,145,135,.15));
    color: #fff;
}
.admin-nav a.is-active::before {
    content: "";
    position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--sage-300);
    box-shadow: 0 0 10px rgba(157,193,184,.6);
}
.admin-nav a.is-active .icon { opacity: 1; }
.admin-nav .sep {
    color: rgba(255,249,241,.35); font-size: 9.5px;
    padding: 12px 10px 4px; letter-spacing: .18em;
    text-transform: uppercase; font-weight: 700;
}
.admin-foot {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,249,241,.08);
    font-size: 11px; color: rgba(255,249,241,.55); line-height: 1.4;
    background: rgba(0,0,0,.15);
}
.admin-foot strong { color: rgba(255,249,241,.9); font-weight: 700; }
.admin-foot a { color: rgba(255,249,241,.82); }

.admin-main { padding: 24px 32px 40px; min-width: 0; }
.admin-header {
    position: relative;
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.admin-header::after {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    width: 52px; height: 2px;
    background: linear-gradient(90deg, var(--sage-500), var(--sage-300));
    border-radius: 2px;
}
.admin-header h1 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text-strong);
}
.admin-header .who {
    color: var(--text-muted); font-size: 12.5px;
    letter-spacing: .04em;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px; margin-bottom: 28px;
}
.admin-stat {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-soft);
}
.admin-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--sage-700); line-height: 1; }
.admin-stat .lbl { color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }

.my-next-class {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--sage-50, #f1f5ee) 0%, var(--surface-card) 100%);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--sage-700);
    border-radius: var(--radius-md); padding: 18px 22px;
    box-shadow: var(--shadow-soft); margin: 0 0 18px;
}
.my-next-class-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 72px; padding: 10px 14px;
    background: var(--white); border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}
.my-next-class-date .dow {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
}
.my-next-class-date .num {
    font-family: var(--font-display); font-weight: 800;
    font-size: 22px; color: var(--text-strong); line-height: 1.1;
}
.my-next-class-info { flex: 1 1 220px; min-width: 0; }
.my-next-class-eyebrow {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--sage-700); font-weight: 700; margin-bottom: 4px;
}
.my-next-class-name {
    margin: 0 0 4px; font-size: 20px; color: var(--text-strong);
}
.my-next-class-meta { color: var(--text-muted); font-size: 14px; }
.my-next-class-meta strong { color: var(--text-strong); }

.my-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px; margin: 0 0 32px;
}
.my-stat {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}
.my-stat--credit {
    background: linear-gradient(135deg, var(--cream, #faf5ec) 0%, var(--surface-card) 100%);
    border-color: var(--border-strong, var(--border-subtle));
}
.my-stat .num {
    font-family: var(--font-display); font-weight: 800;
    font-size: 30px; color: var(--sage-700); line-height: 1;
}
.my-stat .num .unit {
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    letter-spacing: 0; text-transform: none; margin-left: 2px;
}
.my-stat .num-text {
    font-size: 16px; line-height: 1.2; color: var(--text-strong);
    overflow-wrap: anywhere;
}
.my-stat .lbl {
    color: var(--text-muted); font-size: 11px; letter-spacing: .06em;
    text-transform: uppercase; margin-top: 8px;
}
.my-stat-sub {
    display: block; margin-top: 6px;
    color: var(--text-muted); font-size: 12px;
}
.my-stat-sub--link {
    color: var(--sage-700); font-weight: 600; text-decoration: none;
}
.my-stat-sub--link:hover { text-decoration: underline; }

.stats-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 22px 24px;
    box-shadow: var(--shadow-soft); margin: 0 0 24px;
}
.stats-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.stats-head h3 { margin: 0; font-size: 18px; color: var(--text-strong); }
.stats-head-meta { color: var(--text-muted); font-size: 13px; }
.stats-grid {
    display: grid; gap: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}
.stats-block h4 {
    font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); margin: 0 0 10px; font-weight: 700;
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.attend-chart {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px; align-items: end;
}
.attend-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.attend-bar-num { font-size: 11px; font-weight: 700; color: var(--text-strong); height: 14px; line-height: 14px; }
.attend-bar-track {
    width: 100%; height: 100px;
    background: var(--surface-muted);
    border-radius: 6px;
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
}
.attend-bar-fill {
    width: 100%;
    height: var(--pct, 0%);
    background: linear-gradient(180deg, var(--sage-500, #8aa682), var(--sage-700, #4f6b4a));
    border-radius: 6px 6px 0 0;
    transition: height var(--dur-base) var(--ease-calm);
    min-height: 2px;
}
.attend-bar-lbl { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

.stats-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stats-list-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.stats-list-name { color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stats-list-num { color: var(--text-muted); font-weight: 600; font-size: 13px; flex: none; }
.stats-list-track { height: 6px; background: var(--surface-muted); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.stats-list-fill {
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, var(--sage-500, #8aa682), var(--sage-700, #4f6b4a));
    border-radius: 999px;
}

/* Bar sizes for myprofile.php charts, snapped to 5 % steps (no inline styles). */
.pct-0 { --pct: 0%; }
.pct-5 { --pct: 5%; }
.pct-10 { --pct: 10%; }
.pct-15 { --pct: 15%; }
.pct-20 { --pct: 20%; }
.pct-25 { --pct: 25%; }
.pct-30 { --pct: 30%; }
.pct-35 { --pct: 35%; }
.pct-40 { --pct: 40%; }
.pct-45 { --pct: 45%; }
.pct-50 { --pct: 50%; }
.pct-55 { --pct: 55%; }
.pct-60 { --pct: 60%; }
.pct-65 { --pct: 65%; }
.pct-70 { --pct: 70%; }
.pct-75 { --pct: 75%; }
.pct-80 { --pct: 80%; }
.pct-85 { --pct: 85%; }
.pct-90 { --pct: 90%; }
.pct-95 { --pct: 95%; }
.pct-100 { --pct: 100%; }

.mini-chart {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 6px;
    align-items: end;
    padding: 8px 4px 0;
}
.mini-chart-col {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; min-width: 0;
}
.mini-chart-bar-wrap {
    width: 100%; height: 120px;
    display: flex; align-items: flex-end;
    background: linear-gradient(var(--border-subtle) 1px, transparent 1px) 0 50% / 100% 60px repeat-y;
    border-radius: 4px;
}
.mini-chart-bar {
    width: 100%;
    height: var(--bar-h, 2%);
    background: linear-gradient(180deg, var(--sage-400), var(--sage-300));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: opacity var(--dur-fast) var(--ease-calm);
}
.mini-chart-col:hover .mini-chart-bar { opacity: .85; }
.mini-chart-num {
    font: 700 11px/1 var(--font-body);
    color: var(--text-strong);
}
.mini-chart-lbl {
    font-size: 10px; color: var(--text-muted); white-space: nowrap;
}
@media (max-width: 720px) {
    .mini-chart { grid-template-columns: repeat(7, 1fr); grid-auto-rows: auto; }
    .mini-chart-col:nth-child(-n+7) { display: none; }
    .mini-chart-bar-wrap { height: 90px; }
}

.admin-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.7) inset,
        0 1px 2px rgba(58,39,24,.04),
        0 8px 24px -18px rgba(58,39,24,.15);
    margin-bottom: 16px;
    overflow: hidden;
}
.admin-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0, rgba(95,145,135,.4) 20%, rgba(95,145,135,.7) 50%, rgba(95,145,135,.4) 80%, transparent 100%);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-calm);
}
.admin-card:hover::before { opacity: 1; }
.admin-card h2 {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 700; margin-bottom: 12px;
    color: var(--text-strong); letter-spacing: -.01em;
}

.admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.admin-tbl th, .admin-tbl td { padding: 10px 10px; text-align: left; vertical-align: middle; }
.admin-tbl th {
    color: var(--text-muted); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(236,220,203,.35), transparent);
    font-weight: 700;
    padding-top: 8px; padding-bottom: 8px;
}
.admin-tbl tbody tr + tr td { border-top: 1px solid var(--border-subtle); }
.admin-tbl tbody tr { transition: background var(--dur-fast) var(--ease-calm); }
.admin-tbl tbody tr:hover { background: linear-gradient(90deg, rgba(227,239,236,.4), rgba(227,239,236,.15)); }
.admin-tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--sage-500); }
.admin-tbl .actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.admin-tbl .actions .btn { padding: 5px 10px; font-size: 12px; }
.admin-tbl--sortable th a {
    display: inline-flex; align-items: center; gap: 6px;
    color: inherit; text-decoration: none; font: inherit;
    text-transform: inherit; letter-spacing: inherit;
    cursor: pointer;
}
.admin-tbl--sortable th a:hover { color: var(--text-strong); }
.admin-tbl--sortable .sort-arrow { font-size: 9px; color: var(--accent-ink); opacity: .9; }
.admin-tbl--sortable .sort-arrow--idle { opacity: .3; }

.admin-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.admin-form-row.full { grid-template-columns: 1fr; }
.admin-form label { margin: 0; }
.admin-form select,
.admin-form textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 12px 14px; font: 400 15px/1.3 var(--font-body);
    background: #fff; color: var(--text-strong);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
}
.admin-form textarea { resize: vertical; min-height: 72px; }

.admin-toggle-input { display: none; }
.admin-toggle {
    display: none;
    position: sticky; top: 0; z-index: 20;
    background: linear-gradient(90deg, #3f2a1c, var(--clay-900));
    color: #fff;
    padding: 12px 16px; align-items: center; gap: 10px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.3);
}
.admin-toggle .icon { color: #fff; }

@media (max-width: 960px) {
    .admin-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-main { padding: 16px 12px; }
    .admin-toggle { display: flex; }
    .admin-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 30;
        width: 84vw; max-width: 320px;
        height: 100dvh; transform: translateX(-100%);
        transition: transform var(--dur-base) var(--ease-calm);
        box-shadow: var(--shadow-float);
    }
    .admin-toggle-input:checked ~ .admin-layout .admin-sidebar { transform: translateX(0); }
    .admin-toggle-input:checked ~ .admin-layout .admin-scrim {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 25;
    }
    .admin-header { gap: 8px; margin-bottom: 16px; }
    .admin-header h1 { font-size: 26px; }
    .admin-header .who { font-size: 12px; }
    .admin-card { padding: 16px; border-radius: var(--radius-md); }
    .admin-card h2 { font-size: 18px; }
    .admin-card-head { flex-wrap: wrap; gap: 8px; }
    .admin-card-head .btn { padding: 8px 12px; font-size: 13px; }

    /* Filter/toolbar rows: stack, full-width search */
    .admin-card > form.row-wrap { flex-wrap: wrap; gap: 8px; }
    .admin-card > form.row-wrap .week-nav { width: 100%; overflow-x: auto; }
    .filter-input { width: 100%; min-width: 0; flex: 1 1 100%; }

    /* Card-ify wide admin tables on phone screens. */
    .admin-tbl,
    .admin-tbl thead,
    .admin-tbl tbody,
    .admin-tbl tr,
    .admin-tbl th,
    .admin-tbl td { display: block; }
    .admin-tbl { font-size: 14px; }
    .admin-tbl thead { display: none; }
    .admin-tbl tbody tr {
        background: var(--surface-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 12px 14px;
        margin-bottom: 10px;
        box-shadow: var(--shadow-soft);
    }
    .admin-tbl tbody tr + tr td { border-top: none; }
    .admin-tbl tbody tr:hover { background: var(--surface-card); }
    .admin-tbl td {
        padding: 6px 0;
        display: flex; justify-content: space-between; align-items: flex-start;
        gap: 10px;
        border: none;
    }
    .admin-tbl td[data-label]::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
        font-weight: 600;
        flex: 0 0 auto;
        margin-right: 8px;
        align-self: center;
    }
    .admin-tbl td.actions {
        display: flex; justify-content: stretch; flex-wrap: wrap;
        gap: 8px; padding-top: 10px; margin-top: 6px;
        border-top: 1px dashed var(--border-subtle);
    }
    .admin-tbl td.actions::before { display: none; }
    .admin-tbl .actions .btn,
    .admin-tbl .actions form { flex: 1 1 auto; }
    .admin-tbl .actions .btn { padding: 10px 12px; font-size: 13px; width: 100%; }
    .admin-tbl .actions form.inline { display: block; }

    /* Tbl-wrap: no need for horizontal scroll gradients in cards mode */
    .tbl-wrap {
        overflow-x: visible;
        background: none;
    }
}

@media (max-width: 480px) {
    .admin-main { padding: 12px 10px; }
    .admin-card { padding: 14px; }
    .admin-header h1 { font-size: 22px; }
    .admin-toggle { padding: 10px 14px; font-size: 14px; }
    .admin-sidebar { width: 88vw; }
}

/* Admin thumbnails for teacher/user photos. */
.teacher-thumb {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-300), var(--sage-500));
    color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 18px;
    object-fit: cover; overflow: hidden;
}
img.teacher-thumb { display: inline-block; }
.teacher-thumb--placeholder { background: linear-gradient(135deg, var(--sand-300), var(--sand-500)); color: #fff; }

.teacher-photo-preview {
    display: flex; align-items: center; gap: 14px; margin-top: 10px;
    padding: 10px; background: var(--surface-muted); border-radius: var(--radius-md);
}
.teacher-photo-preview img {
    width: 96px; height: 96px; border-radius: 12px; object-fit: cover;
    box-shadow: var(--shadow-soft);
}

/* User avatar (site header + profile page). */
.user-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-300), var(--sage-500));
    color: #fff; font-weight: 700; font-size: 13px;
    overflow: hidden; vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar--lg { width: 96px; height: 96px; font-size: 32px; box-shadow: var(--shadow-soft); }
.user-avatar--md { width: 44px; height: 44px; font-size: 16px; }

.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell-name { min-width: 0; overflow-wrap: anywhere; }

.profile-card {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 20px 22px;
    box-shadow: var(--shadow-soft); margin-bottom: 24px;
}
.profile-card-info { flex: 1 1 240px; min-width: 0; }
.profile-card-info h2 { font-size: 22px; margin-bottom: 2px; }
.profile-card-info .muted { color: var(--text-muted); font-size: 14px; }
.profile-card-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-card-form input[type=file] { max-width: 220px; font-size: 13px; }

.pref-card {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 16px 22px;
    box-shadow: var(--shadow-soft); margin-bottom: 24px;
}
.pref-card-info { flex: 1 1 260px; min-width: 0; }
.pref-card-info h3 { font-size: 17px; margin: 0 0 4px; }
.pref-card-info .muted { color: var(--text-muted); font-size: 13px; margin: 0; }
.pref-card-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-edit-form { align-items: flex-end; flex: 1 1 100%; }
.profile-edit-form .profile-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 160px; }
.profile-edit-form .profile-field > span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.profile-edit-form .profile-field input { width: 100%; }
.profile-edit-form .btn { align-self: flex-end; }
@media (max-width: 640px) {
    .profile-edit-form .profile-field { flex: 1 1 100%; }
    .profile-edit-form .btn { width: 100%; }
}
/* myprofile.php – two-column card layout: bookings/credits/history on the
   left, account settings stacked in a narrower side column. */
.my-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px; align-items: start;
}
.my-main, .my-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.my-card {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}
.my-card.pref-card { margin-bottom: 0; }
.my-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.my-card-head h3 { margin: 0; font-size: 18px; color: var(--text-strong); }
.my-card .empty-state { padding: 12px 0 4px; }
/* Bookings inside a card: flat rows split by hairlines instead of nested boxes. */
.my-card .booking-row {
    background: none; border: 0; box-shadow: none; border-radius: 0;
    padding: 16px 0; border-top: 1px solid var(--border-subtle);
}
.my-card-head + .booking-row { border-top: 0; padding-top: 0; }
.my-card .booking-row + .booking-row { margin-top: 0; }
.my-card .tbl-wrap { margin: 0; }
.my-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.my-pager-info { font-size: 13px; color: var(--text-muted); }
#my-history tr[hidden] { display: none !important; }
.my-pager .btn:disabled { opacity: .4; cursor: default; }
/* Side column: one field per row, full-width actions. */
.my-card--stack { flex-direction: column; align-items: stretch; gap: 14px; }
.my-card--stack .pref-card-info { flex: 0 0 auto; }
.my-card--stack .pref-card-form { flex-direction: column; align-items: stretch; flex: 0 0 auto; }
.my-card--stack .profile-edit-form .profile-field { flex: 0 0 auto; min-width: 0; margin: 0; }
.my-card--stack .btn { width: 100%; align-self: stretch; }
.my-card--stack .hint { margin: 0; }
@media (max-width: 1000px) {
    .my-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .my-card { padding: 18px 16px; }
    .my-card .booking-row { grid-template-columns: 70px 1fr; }
    .my-card .booking-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Credits (permanent-pass wallet) UI on myprofile.php + rezervace helpers. */
.credits-balance {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 700;
    color: var(--text-strong, #3a2718);
    line-height: 1.1; margin: 10px 0 2px;
}
.credits-balance-unit { font-size: 18px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.credits-discount {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 12px 0 8px; padding: 12px 14px;
    background: var(--sand-100); border: 1px solid var(--sand-400);
    border-left: 4px solid var(--sage-700); border-radius: var(--radius-md);
    color: var(--text-strong, #3a2718); font-size: 14px; line-height: 1.45;
}
.credits-discount svg { flex: 0 0 auto; margin-top: 2px; color: var(--sage-700); }
.credits-discount strong { color: var(--sage-700); font-weight: 800; }
/* Bank-transfer top-up: price picks, amount form and payment details in one box. */
.credits-topup {
    flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 12px;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md, 12px);
    padding: 14px 16px; background: var(--sand-50);
}
.credits-topup .credits-bank { margin-top: 0; }
.credits-presets { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.credits-presets-lbl { flex: 1 1 100%; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.credits-preset {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 8px 14px; cursor: pointer; text-align: left;
    background: var(--white); color: var(--text-strong);
    border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    font: 400 13px/1.2 var(--font-body);
    transition: border-color var(--dur-fast) var(--ease-calm), background var(--dur-fast) var(--ease-calm);
}
.credits-preset strong { font-size: 15px; font-weight: 600; }
.credits-preset:hover { background: var(--sand-100); }
.credits-preset.is-active { border-color: var(--sage-400); background: var(--sand-100); box-shadow: var(--focus-ring); }
.credits-form { flex: 1 1 100%; align-items: flex-end; flex-wrap: nowrap; }
/* Base `form label` margin pushes the input above the button baseline –
   drop it and size the button to the input so both share one line. */
.credits-form .profile-field { margin: 0; }
.credits-form .btn { flex: 0 0 auto; height: 46px; white-space: nowrap; }
@media (max-width: 640px) {
    .credits-form { flex-wrap: wrap; }
}
.credits-bank, .credits-history {
    flex: 1 1 100%;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px; margin-top: 8px;
}
.credits-bank > summary, .credits-history > summary {
    cursor: pointer; font-weight: 600; color: var(--text-strong);
    padding: 4px 0; list-style: none;
}
.credits-bank > summary::-webkit-details-marker,
.credits-history > summary::-webkit-details-marker { display: none; }
.credits-bank > summary::before, .credits-history > summary::before {
    content: '▸'; display: inline-block; margin-right: 8px;
    transition: transform .15s ease; color: var(--text-muted);
}
.credits-bank[open] > summary::before, .credits-history[open] > summary::before { transform: rotate(90deg); }
.credits-bank-dl {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
    margin: 10px 0; font-size: 14px;
}
.credits-bank-dl dt { color: var(--text-muted); }
.credits-bank-dl dd { margin: 0; }
.credits-qr { text-align: center; margin: 14px 0 6px; }
.credits-qr .poukaz-qr-box { min-width: 220px; min-height: 220px; padding: 12px; }
.credits-qr .poukaz-qr-amount { margin-top: 10px; }
.credits-qr .hint { margin-top: 8px; }
.credits-history-list { list-style: none; margin: 10px 0 0; padding: 0; }
.credits-history-list li {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: baseline;
    gap: 12px; padding: 6px 0;
    border-bottom: 1px dashed var(--border-subtle);
    font-size: 14px;
}
.credits-history-list li:last-child { border-bottom: none; }
.credits-history-date { color: var(--text-muted); font-size: 12px; }
.credits-history-kind { color: var(--text-body); min-width: 0; overflow-wrap: anywhere; }
.credits-history-delta { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credits-history-delta.is-plus { color: #4a7a47; }
.credits-history-delta.is-minus { color: #a24c3b; }
@media (max-width: 560px) {
    .credits-history-list li { grid-template-columns: 1fr auto; }
    .credits-history-date { grid-column: 1 / -1; }
}

/* Admin credits – inline decide form keeps approve/reject + note on one row. */
.credit-decide-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.credit-decide-form input[type=text] { max-width: 220px; flex: 1 1 160px; }

.switch {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none;
}
.switch input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.switch .switch-track {
    position: relative;
    width: 44px; height: 24px;
    background: #d9d3c4;
    border-radius: 999px;
    transition: background .18s ease;
    flex: none;
}
.switch .switch-knob {
    position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .18s ease;
}
.switch input:checked + .switch-track { background: var(--accent, #b8894b); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(184,137,75,.25); }
.switch .switch-label { font-size: 14px; color: var(--text-muted); }

/* Checkbox row (used in edit forms). */
.checkbox-inline {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text-body); font-size: 14px;
    cursor: pointer; user-select: none;
    padding: 4px 0;
}
.checkbox-inline input[type=checkbox] {
    width: 18px; height: 18px; accent-color: var(--sage-500);
    margin: 0;
}

/* Mobile-only sort selector for admin tables (thead is hidden on phones). */
.mobile-sort { display: none; }
@media (max-width: 780px) {
    .mobile-sort {
        display: flex; flex-wrap: wrap; align-items: center;
        gap: 8px; margin-bottom: 12px;
        padding: 10px 12px;
        background: var(--surface-muted);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
    }
    .mobile-sort-label {
        flex: 0 0 auto;
        font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
        color: var(--text-muted); font-weight: 700;
    }
    .mobile-sort select {
        flex: 1 1 auto; min-width: 0;
        padding: 8px 10px; font: 400 14px/1.2 var(--font-body);
        background: #fff; color: var(--text-strong);
        border: 1px solid var(--border-default); border-radius: var(--radius-sm);
    }
}

/* Users table desktop – compact rows: smaller avatar, tighter padding,
   subtler action buttons so rows scan quickly. */
.admin-tbl--users { font-size: 13px; }
.admin-tbl--users th,
.admin-tbl--users td { padding: 6px 8px; }
.admin-tbl--users th { font-size: 10px; letter-spacing: .1em; padding-top: 6px; padding-bottom: 6px; }
.admin-tbl--users tbody tr:hover { background: linear-gradient(90deg, rgba(227,239,236,.35), transparent); }
.admin-tbl--users .user-avatar--md { width: 30px; height: 30px; font-size: 12px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.admin-tbl--users .user-cell { gap: 8px; }
.admin-tbl--users .user-cell-name strong { font-size: 13.5px; font-weight: 700; }
.admin-tbl--users .user-cell-name .hint { font-size: 11px; color: var(--text-muted); }
.admin-tbl--users td[data-label="E-mail"]  { color: var(--text-body); }
.admin-tbl--users td[data-label="Telefon"],
.admin-tbl--users td[data-label="Registrace"] {
    color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.admin-tbl--users td[data-label="Rezervací"] {
    font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-strong);
}
.admin-tbl--users .badge {
    font-size: 10.5px; padding: 2px 8px; letter-spacing: .05em; text-transform: lowercase;
}
.admin-tbl--users .actions { gap: 4px; }
.admin-tbl--users .actions .btn {
    padding: 4px 9px; font-size: 11.5px; line-height: 1.4;
    border-radius: 6px; font-weight: 600;
}
.admin-tbl--users .actions form.inline { display: inline-flex; }

/* Users table on mobile: minimized single-glance card layout.
   Uses grid to place avatar/name/type on row 1, contact info + meta as
   dense inline text underneath, actions on a single compact row. */
@media (max-width: 780px) {
    .admin-tbl--users tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name    type"
            "email   email"
            "phone   phone"
            "meta    meta"
            "actions actions";
        padding: 10px 12px;
        margin-bottom: 8px;
        gap: 2px 8px;
        align-items: center;
    }
    .admin-tbl--users td {
        display: block;
        padding: 0;
        border: 0;
        font-size: 13px;
        min-width: 0;
        word-break: break-word;
    }
    .admin-tbl--users td::before { display: none !important; }

    .admin-tbl--users td[data-label="Jméno"]       { grid-area: name; }
    .admin-tbl--users td[data-label="Typ"]         { grid-area: type; justify-self: end; }
    .admin-tbl--users td[data-label="E-mail"]      { grid-area: email; font-size: 12.5px; color: var(--text-muted); }
    .admin-tbl--users td[data-label="Telefon"]     { grid-area: phone; font-size: 12.5px; color: var(--text-muted); }
    .admin-tbl--users td[data-label="Registrace"]  { grid-area: meta; font-size: 11px; color: var(--text-muted); opacity: .85; }
    .admin-tbl--users td[data-label="Poslední přihlášení"] { grid-area: meta; font-size: 11px; color: var(--text-muted); opacity: .85; justify-self: center; }
    .admin-tbl--users td[data-label="Rezervací"]   {
        grid-area: meta; font-size: 11px; color: var(--text-muted); opacity: .85;
        justify-self: end;
    }
    /* Prefix small meta labels so date/count are self-explanatory. */
    .admin-tbl--users td[data-label="Registrace"]::before,
    .admin-tbl--users td[data-label="Poslední přihlášení"]::before,
    .admin-tbl--users td[data-label="Rezervací"]::before {
        display: inline !important;
        margin: 0;
        font-size: 11px; text-transform: none; letter-spacing: 0;
        color: var(--text-muted); opacity: .8; font-weight: 500;
    }
    .admin-tbl--users td[data-label="Registrace"]::before          { content: "reg. "; }
    .admin-tbl--users td[data-label="Poslední přihlášení"]::before { content: "přihl. "; }
    .admin-tbl--users td[data-label="Rezervací"]::before           { content: "rez. "; }

    .admin-tbl--users td[data-label="Jméno"] strong { font-size: 14.5px; line-height: 1.15; }
    .admin-tbl--users .user-cell { gap: 8px; align-items: center; }
    .admin-tbl--users .user-avatar--md {
        width: 32px; height: 32px; font-size: 13px;
    }
    .admin-tbl--users td[data-label="Typ"] .badge {
        font-size: 10px; padding: 2px 7px;
    }

    .admin-tbl--users td.actions {
        grid-area: actions;
        display: flex; flex-direction: row; flex-wrap: wrap;
        gap: 6px; padding-top: 8px; margin-top: 4px;
        border-top: 1px dashed var(--border-subtle);
    }
    .admin-tbl--users td.actions .btn,
    .admin-tbl--users td.actions form {
        flex: 0 1 auto; width: auto;
    }
    .admin-tbl--users td.actions .btn {
        padding: 6px 10px; font-size: 12px; width: auto;
    }
    .admin-tbl--users td.actions form.inline { display: inline-flex; }

    /* Mobile sort: single row, smaller. */
    .mobile-sort { padding: 6px 10px; gap: 6px; margin-bottom: 10px; }
    .mobile-sort-label { font-size: 10px; }
    .mobile-sort select { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 480px) {
    .admin-tbl--users tbody tr { padding: 8px 10px; gap: 2px 6px; }
    .admin-tbl--users td[data-label="Jméno"] strong { font-size: 14px; }
    .admin-tbl--users .user-avatar--md { width: 28px; height: 28px; font-size: 12px; }
    .admin-tbl--users td.actions .btn { padding: 5px 8px; font-size: 11.5px; }
}

/* Newsletter landing CTA (index.php between schedule and footer). */
.newsletter-cta { padding: 28px 32px; margin: 40px 0 8px; }
@media (max-width: 720px) {
    .newsletter-cta { grid-template-columns: 1fr; padding: 22px 20px; margin-top: 28px; }
}

/* Class-card "who's going?" pill + roster modal. */
.class-card.has-roster { cursor: pointer; }
.roster-link {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--sand-100); border: 1px solid var(--border-subtle);
    padding: 4px 10px; border-radius: 999px;
    color: var(--text-strong); font: 600 12px/1 var(--font-body);
    letter-spacing: -.01em; cursor: pointer;
    transition: background var(--dur-fast) var(--ease-calm), color var(--dur-fast) var(--ease-calm), border-color var(--dur-fast) var(--ease-calm);
}
.roster-link .icon { width: 12px; height: 12px; }
.roster-link:hover, .roster-link:focus-visible {
    background: var(--sage-300); color: #fff; border-color: var(--sage-300); outline: none;
}

.roster-modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.roster-modal[hidden] { display: none; }
.roster-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(31,25,20,.5);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.roster-modal-inner {
    position: relative;
    background: var(--surface-card); color: var(--text-body);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(90,58,34,.28);
    max-width: 420px; width: 100%;
    max-height: calc(100vh - 32px);
    display: flex; flex-direction: column;
    padding: 18px 20px 20px;
    animation: rosterFadeIn .18s var(--ease-calm) both;
}
@keyframes rosterFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.roster-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.roster-modal-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.roster-modal-close {
    background: none; border: 0; font-size: 26px; line-height: 1;
    color: var(--text-muted); cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--dur-fast) var(--ease-calm), color var(--dur-fast) var(--ease-calm);
}
.roster-modal-close:hover, .roster-modal-close:focus-visible {
    background: var(--sand-100); color: var(--text-strong); outline: none;
}
.roster-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
    max-height: 55vh; overflow-y: auto;
}
.roster-item {
    display: inline-flex; align-items: center;
    background: var(--surface-muted); border: 1px solid var(--border-subtle);
    border-radius: 999px; padding: 6px 12px;
    font-size: 13px; font-weight: 600; color: var(--text-strong);
}
.roster-empty { margin: 8px 0 0; }
body.has-roster-open { overflow: hidden; }

/* ============================================================
   Utility classes (extracted from inline styles)
   ============================================================ */

/* Category colour pass-through: sets --cat based on data-cat attribute.
   Elements can then reference var(--cat) in border-left-color, --cat, etc. */
[data-cat="yoga"]       { --cat: var(--cat-yoga); }
[data-cat="pilates"]    { --cat: var(--cat-pilates); }
[data-cat="workshop"]   { --cat: var(--cat-workshop); }
[data-cat="individual"] { --cat: var(--cat-individual); }
[data-cat="massage"]    { --cat: var(--cat-massage); }
[data-cat="events"]     { --cat: var(--sage-300); }

/* Border-left cards honour --cat when present (fall back to yoga tint) */
.class-card    { border-left-color: var(--cat, var(--cat-yoga)); }
.week-day-item { border-left-color: var(--cat, var(--cat-yoga)); }

/* Row modifiers */
.row-end   { justify-content: flex-end; gap: 8px; }
.row-wrap  { gap: 10px; flex-wrap: wrap; }

/* Filter / search inputs stretched inside a .row */
.filter-input { flex: 1; min-width: 200px; }

/* Card header (compact header for content cards inside .admin-card) */
.admin-card-head { margin: 0 0 12px; }
.admin-card-head h2 { margin: 0; font-size: 22px; }

/* Form action bar at the bottom of forms */
.form-actions { margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 480px) {
    .form-actions { gap: 8px; }
    .form-actions .btn { flex: 1 1 auto; }
}

/* Small inline hint next to a heading / counters */
.hint-inline { display: block; margin-top: 4px; font-weight: 400; }
.hint-top    { margin-top: 8px; }
.hint-lift   { margin: -4px 0 12px; }
.count-tag   { font-size: 14px; font-weight: 400; }

/* Spacing modifiers */
.map-embed--spaced { margin-top: 12px; }
.week-nav--tight   { padding: 4px; }

/* ==============================================================
   Mobile polish – targeted refinements
   ============================================================== */

/* Hide the mobile sticky CTA (and its body padding) inside the admin area. */
body.admin-body .mobile-cta { display: none !important; }
@media (max-width: 720px) {
    body.admin-body { padding-bottom: 0; }
}

/* Prevent horizontal overflow from over-wide media/embeds. */
img, iframe, video { max-width: 100%; }

/* Larger, more forgiving tap targets across the site. */
@media (hover: none) {
    a.chip, .chip { min-height: 40px; }
    .faq summary { min-height: 52px; }
    .nav-toggle, .admin-toggle { min-height: 48px; }
    .btn-sm { min-height: 40px; }
    .admin-nav a { padding-top: 14px; padding-bottom: 14px; }
}

/* Overflowing chip filter row scrolls horizontally on phones. */
@media (max-width: 720px) {
    .chip-row {
        width: auto; max-width: none;
        overflow-x: auto; flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; }
}

/* Newsletter form: stack input + button below 480px for readable layout. */
@media (max-width: 480px) {
    .newsletter { padding: 22px; }
    .newsletter-copy h3 { font-size: 20px; }
    .newsletter-form { flex-direction: column; align-items: stretch; }
    .newsletter-form input { min-width: 0; width: 100%; }
    .newsletter-form .btn { width: 100%; }
}

/* Cookie banner should not overlap the mobile sticky CTA on small screens. */
@media (max-width: 720px) {
    .cookie-banner { bottom: 84px; left: 8px; right: 8px; padding: 12px 14px; }
    .cookie-inner p { font-size: 12.5px; min-width: 0; }
}

/* Tighter section rhythm and container padding on very small screens. */
@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .container { padding: 0 14px; }
    .container.page { padding-top: 22px; padding-bottom: 12px; }
    .band-cream { padding: 26px 16px; }
    .cta-band { padding: 32px 18px; margin: 32px 0 12px; }
    .cta-band h2 { font-size: 24px; }
    .site-footer { padding: 28px 16px; margin-top: 40px; }
    .foot-tag { font-size: 13px; }
    .map-embed iframe { height: 240px; }
    .section-h { font-size: 20px; }
    .page-lead { font-size: 15px; }
    .btn-lg { padding: 16px 28px; font-size: 16px; }
}

/* Testimonial / card padding – less generous on tiny screens. */
@media (max-width: 480px) {
    .testimonial { padding: 22px 20px; }
    .testimonial blockquote { font-size: 15px; line-height: 1.55; }
    .card { padding: 18px; }
    .feature-card { padding: 22px 20px; }
    .teacher-card { padding: 22px 18px; }
    .price-card { padding: 22px 18px; }
    .massage-card { padding: 20px; }
    .soon-card { padding: 18px; }
}

/* Header topbar: keep it a single tidy line on narrow phones. */
@media (max-width: 480px) {
    .site-header .topbar { padding: 4px 10px 0; gap: 2px 8px; font-size: 11px; }
    .site-header .band { padding: 0 0 4px; }
    .site-header .band .logo img { height: 34px; }
    .nav-toggle { top: 3px; right: 8px; width: 42px; height: 42px; }
    .site-header nav { width: min(300px, 88vw); }
    .site-header nav a,
    .site-header nav .who { padding: 10px 18px; font-size: 14.5px; min-height: 42px; }
    .site-header .nav-submenu a { padding: 9px 18px 9px 34px; font-size: 13px; min-height: 38px; }
    /* Trim topbar chrome: drop long items so the utility row fits in one line. */
    .site-header .topbar .topbar-mail { display: none; }
    .site-header .header-user .header-user-name { display: none; }
    .site-header .topbar .lang-switch { margin-left: 0; padding-left: 4px; }
    .site-header .header-user { padding-left: 4px; margin-left: 2px; }
    /* Hide social icons in the utility row on the tightest screens – they still show in the footer. */
    .site-header .topbar > a[aria-label="Facebook"],
    .site-header .topbar > a[aria-label="Instagram"],
    .site-header .topbar > a[aria-label="YouTube"] { display: none; }
}

/* Feature-card grid: nudge gap down on tablet, keep readable on phone. */
@media (max-width: 720px) {
    .feature-grid, .soon-grid, .teacher-grid, .price-grid, .massage-grid { gap: 14px; }
    .cat-grid { gap: 10px; }
}

/* Stats: 2×2 reads better than 1×4 on phones (only fall to 1 col on very tight). */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Weekly schedule mobile: when day cell is 1-column, class-card lays out
   with time on the left and title/actions filling the rest for scannability. */
@media (max-width: 480px) {
    .day { padding: 10px; }
    .day-slots { gap: 10px; }
    .class-card {
        display: grid;
        grid-template-columns: 62px 1fr;
        column-gap: 12px; row-gap: 2px;
        align-items: center;
        padding: 12px 14px;
        background: var(--surface-card);
    }
    .class-card .time  { grid-row: 1 / span 2; align-self: center; font-size: 15px; }
    .class-card .title { font-size: 15px; }
    .class-card .meta  { grid-column: 2; font-size: 12px; }
    .class-card .class-price { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; }
    .class-card .class-qr-btn { font-size: 11px; padding: 3px 9px; }
    .class-card .row   {
        grid-column: 1 / -1; margin-top: 8px;
        flex-direction: row; align-items: center;
        justify-content: space-between; flex-wrap: wrap; gap: 8px;
    }
    .class-card .row form.inline { width: auto; margin-left: auto; }
    .class-card .row .btn,
    .class-card .row .btn-sm { width: auto; padding: 10px 16px; font-size: 13px; }
    .class-card .row .badge  { font-size: 11px; padding: 4px 9px; }
}

/* Booking row on very tight phones: put the cancel button below the info,
   keep the badge on the same line as the info. */
@media (max-width: 400px) {
    .booking-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "info"
            "actions";
        padding: 14px 16px;
    }
    .booking-row .date-block {
        border-right: 0; border-bottom: 1px solid var(--border-subtle);
        padding: 0 0 8px; text-align: left;
        display: flex; align-items: baseline; gap: 8px;
    }
    .booking-row .date-block .num { font-size: 20px; }
    .booking-row .booking-actions form { flex: 1 1 100%; margin-left: 0; }
    .booking-row .booking-actions form .btn { width: 100%; }
}

/* Admin: header stacks nicely on mobile. */
@media (max-width: 560px) {
    .admin-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .admin-header .who { font-size: 12px; }
    .admin-main { padding: 16px 12px; }
    .admin-card { padding: 18px; border-radius: var(--radius-md); }
    .admin-form-row { gap: 12px; }
    .admin-card-head { flex-direction: row; align-items: center; }
    .admin-card-head h2 { font-size: 18px; }
    .admin-tbl { font-size: 13px; }
    .admin-tbl th, .admin-tbl td { padding: 10px 8px; }
    .admin-tbl .actions { flex-direction: column; gap: 4px; }
    .admin-tbl .actions .btn { width: 100%; }
}

/* Give the admin sidebar drawer a bit more breathing room on mobile. */
@media (max-width: 480px) {
    .admin-sidebar { width: 84vw; }
    .admin-brand img { width: 40px; height: 40px; }
}

/* Hero – tighten further on very small phones, drop the pampas texture
   so the copy has room to breathe. */
@media (max-width: 480px) {
    .hero-home { padding: 110px 14px 44px; min-height: 360px; }
    .hero::before { display: none; }
    .hero-inner h1 { font-size: 42px; line-height: 1.05; }
    .hero-inner .kicker { font-size: 16px; margin-top: 16px; }
    .hero-inner .kicker--sub { font-size: 14px; margin-top: 10px; }
    .hero-cta { margin-top: 24px; gap: 8px; }
    .hero-cta .btn { width: 100%; max-width: 340px; }
}

/* Feature link chevron pushes down; keep it comfortable on mobile. */
@media (max-width: 480px) {
    .feature-link { padding-top: 12px; }
}

/* Landscape phones: bring the hero down further so nothing runs off screen. */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-home { min-height: 320px; padding-top: 90px; padding-bottom: 40px; }
    body.has-overlay-header .site-header { background: var(--bg-band); position: relative; }
}

/* -- Public gallery -------------------------------------------- */
.gallery-social { text-align: center; margin-top: -8px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gallery-section { margin-bottom: 8px; }

.album-back-link { color: inherit; text-decoration: none; }
.album-back-link:hover { text-decoration: underline; }

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.album-card {
    display: flex; flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none; color: inherit;
    transition: transform var(--dur-base) var(--ease-calm), box-shadow var(--dur-base) var(--ease-calm);
}
.album-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.album-card.is-empty { pointer-events: none; opacity: .65; }
.album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-muted);
    overflow: hidden;
}
.album-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform var(--dur-base) var(--ease-calm);
}
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-cover-empty {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--surface-muted), var(--surface-card));
}
.album-count {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px;
    background: rgba(58,39,24,.78); color: var(--cream);
    font-size: 12px; font-weight: 600;
    border-radius: 999px;
}
.album-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.album-title { font-size: 20px; margin: 0; color: var(--text-strong); }
.album-desc { font-size: 14px; color: var(--text-muted); margin: 0; }
.album-cta { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent, #b8894b); }
.album-cta-empty { color: var(--text-muted); font-weight: 500; }

.gallery-item-wrap { position: relative; }
.gallery-download {
    position: absolute; top: 8px; right: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: rgba(58,39,24,.78); color: var(--cream);
    font-size: 12px; font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    opacity: 0; transition: opacity var(--dur-fast) var(--ease-calm), background var(--dur-fast) var(--ease-calm);
}
.gallery-download:hover { background: rgba(58,39,24,.92); }
.gallery-item-wrap:hover .gallery-download,
.gallery-item-wrap:focus-within .gallery-download { opacity: 1; }
@media (max-width: 720px) {
    .gallery-download { opacity: 1; padding: 5px 8px; font-size: 11px; }
    .gallery-download span { display: none; }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--dur-base) var(--ease-calm);
    display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 8px 12px;
    background: linear-gradient(0deg, rgba(58,39,24,.72), rgba(58,39,24,0));
    color: var(--cream); font-size: 13px; font-weight: 600;
    opacity: 0; transition: opacity var(--dur-fast) var(--ease-calm);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; }
@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-caption { opacity: 1; font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* -- Legal / long-form content pages ---------------------------- */
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page h2 {
    font-size: var(--fs-h3);
    margin: 32px 0 10px;
    color: var(--text-strong);
}
.legal-page h2:first-child { margin-top: 8px; }
.legal-page p { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page li + li { margin-top: 2px; }
.legal-page .hint {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-style: italic;
}
.legal-page ol.legal-list {
    list-style: none;
    padding-left: 0;
    counter-reset: legal;
}
.legal-page ol.legal-list > li {
    counter-increment: legal;
    position: relative;
    padding-left: 42px;
    margin-bottom: 18px;
}
.legal-page ol.legal-list > li::before {
    content: counter(legal) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-ink);
    font-size: var(--fs-h4);
    min-width: 32px;
}

/* -- Kontakt: exterior studio photo ----------------------------- */
.studio-outside {
    margin: 0 0 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.studio-outside img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
}
.studio-outside figcaption {
    padding: 8px 12px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    background: var(--surface-muted, #faf6ed);
    font-style: italic;
}

/* -- Admin gallery grid ----------------------------------------- */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.gal-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease;
}
.gal-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-1px); }
.gal-card.is-hidden { opacity: .55; }
.gal-check {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    background: rgba(255,255,255,.9);
    border-radius: 999px;
    padding: 3px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gal-check input { margin: 0; cursor: pointer; }
.gal-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--muted, #eee);
    overflow: hidden;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-meta { padding: 10px 12px 6px; flex: 1; min-width: 0; }
.gal-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gal-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.gal-sub .badge {
    background: #f3e6cf;
    color: #7c5c1f;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
}
.gal-actions {
    padding: 6px 12px 12px;
    display: flex; gap: 6px; align-items: center;
}
.gal-actions .btn { flex: 1; text-align: center; }
.gal-quick {
    position: absolute;
    top: 8px; right: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    transition: opacity .15s ease;
}
.gal-card:hover .gal-quick,
.gal-card:focus-within .gal-quick { opacity: 1; }
.gal-quick-btn {
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 999px;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.gal-quick-btn:hover { background: #fff; }
.gal-quick-btn.gal-quick-del:hover { background: #f8d7d7; }
.gal-preview {
    margin-top: 8px;
    max-width: 220px;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    border: 1px solid var(--border);
}
.gal-preview img { width: 100%; height: auto; display: block; }
.bulk-bar {
    margin: 8px 0 4px;
    padding: 8px 10px;
    background: var(--surface-muted, #faf6ed);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    display: flex; gap: 12px; align-items: center;
    flex-wrap: wrap;
}
.bulk-bar .checkbox-inline { margin: 0; }
.gal-sort-hint {
    margin-left: 8px;
    font-size: 12px;
}
.gal-grid--sortable .gal-card {
    cursor: grab;
    user-select: none;
}
.gal-grid--sortable .gal-card:active { cursor: grabbing; }
.gal-grid--sortable .gal-card.is-dragging {
    opacity: .35;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
    transform: scale(.98);
}
.gal-grid--sortable .gal-card.drop-before {
    box-shadow: -3px 0 0 0 var(--accent, #b8894b);
}
.gal-grid--sortable .gal-card.drop-after {
    box-shadow: 3px 0 0 0 var(--accent, #b8894b);
}
.gal-grid.is-saving { opacity: .7; pointer-events: none; }
.gal-grid--sortable .gal-thumb,
.gal-grid--sortable .gal-thumb img { -webkit-user-drag: none; user-drag: none; }
@media (max-width: 600px) {
    .gal-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .gal-quick { opacity: 1; }
    .gal-title { font-size: 13px; }
}

/* ============================================================
   Landing page (index.php)
   ============================================================ */

@keyframes homeRise {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes homeFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes homeGrow {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes homeRuleGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes homeCountShine {
    0%   { background-position: 200% 50%; }
    100% { background-position: -50% 50%; }
}

/* Stagger every top-level home section on load. Skipped when the user prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .home-hero,
    .home-video,
    .home-features,
    .home-about,
    .home-stats,
    .home-final-quote {
        opacity: 0;
        animation: homeRise .7s var(--ease-calm) forwards;
    }
    .home-hero        { animation-delay: 40ms; }
    .home-video       { animation-delay: 180ms; animation-name: homeGrow; }
    .home-features    { animation-delay: 320ms; }
    .home-features .home-feature {
        opacity: 0;
        animation: homeRise .55s var(--ease-calm) forwards;
    }
    .home-features .home-feature:nth-child(1) { animation-delay: 380ms; }
    .home-features .home-feature:nth-child(2) { animation-delay: 460ms; }
    .home-features .home-feature:nth-child(3) { animation-delay: 540ms; }
    .home-features .home-feature:nth-child(4) { animation-delay: 620ms; }
    .home-about       { animation-delay: 340ms; }
    .home-stats       { animation-delay: 200ms; }
    .home-final-quote { animation-delay: 160ms; }
}

/* -- Hero ---------------------------------------------------- */
.home-hero {
    position: relative;
    text-align: center;
    padding: 28px 20px 40px;
    max-width: 860px; margin: 0 auto;
}
.home-hero .eyebrow {
    position: relative;
    display: inline-block;
    color: var(--accent-ink);
    padding: 0 22px 10px;
    margin-bottom: 22px;
    letter-spacing: .18em;
}
.home-hero .eyebrow::before,
.home-hero .eyebrow::after {
    content: "";
    position: absolute; top: 50%;
    width: 40px; height: 1px;
    background: currentColor; opacity: .35;
    transform-origin: center;
    transform: scaleX(0);
    animation: homeRuleGrow .7s var(--ease-calm) 320ms forwards;
}
.home-hero .eyebrow::before { right: 100%; }
.home-hero .eyebrow::after  { left: 100%; }
.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.18;
    color: var(--text-strong);
    margin: 0;
    text-wrap: balance;
}
.home-hero-title::after {
    content: "";
    display: block;
    width: 56px; height: 2px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-ink) 60%, transparent);
    transform: scaleX(0);
    animation: homeRuleGrow .8s var(--ease-calm) 600ms forwards;
}

/* -- Video --------------------------------------------------- */
.home-video {
    position: relative;
    max-width: 960px; margin: 0 auto var(--space-7);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0b0b0b;
    box-shadow: 0 20px 60px -20px rgba(58,39,24,.35), 0 2px 6px rgba(58,39,24,.08);
    isolation: isolate;
}
.home-video::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(157,193,184,.55), rgba(184,148,109,.35) 55%, rgba(157,193,184,.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.home-video-frame {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9;
}
.home-video-frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    display: block;
}

/* -- Feature cards ------------------------------------------- */
.home-features {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 var(--space-8);
}
.home-feature {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .25s var(--ease-calm), box-shadow .25s var(--ease-calm), border-color .25s var(--ease-calm);
    overflow: hidden;
}
.home-feature::before {
    content: "";
    position: absolute; top: 0; left: 50%;
    width: 44px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-ink));
    border-radius: 0 0 3px 3px;
    transform: translateX(-50%) scaleX(.35);
    transform-origin: center;
    transition: transform .3s var(--ease-calm), width .3s var(--ease-calm);
}
.home-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -12px rgba(58,39,24,.18);
    border-color: rgba(157,193,184,.55);
}
.home-feature:hover::before { transform: translateX(-50%) scaleX(1); width: 72px; }
.home-feature-num {
    font-family: var(--font-display);
    font-size: 34px;
    background: linear-gradient(135deg, var(--accent-ink), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700; line-height: 1;
    margin-bottom: 14px;
    font-feature-settings: "lnum";
}
.home-feature h3 {
    font-family: var(--font-body);
    font-size: 13.5px; font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-strong);
    line-height: 1.45;
    margin: 0;
}
.home-feature h3 span { color: var(--accent); margin: 0 4px; font-weight: 400; }
@media (max-width: 960px) { .home-features { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* -- About --------------------------------------------------- */
.home-about {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-7) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.home-about-head {
    position: sticky; top: 100px;
    align-self: start;
}
.home-about-head .eyebrow { margin-bottom: 10px; letter-spacing: .18em; }
.home-about-head .section-h {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
    letter-spacing: -.01em;
}
.home-about-head .section-h::after {
    content: "";
    display: block;
    width: 40px; height: 2px;
    background: var(--accent);
    margin-top: 16px;
    border-radius: 2px;
}
.home-about-body p {
    font-size: 16px; line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 18px;
}
.home-about-body p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 700;
    color: var(--accent-ink);
    float: left;
    line-height: .95;
    padding: 4px 12px 0 0;
}
.home-quote {
    position: relative;
    margin: 32px 0;
    padding: 26px 28px 24px 44px;
    background: linear-gradient(135deg, var(--sage-100), var(--surface-muted));
    border-radius: var(--radius-md);
    box-shadow: inset 3px 0 0 var(--accent-ink);
}
.home-quote::before {
    content: "\201C";
    position: absolute; top: 8px; left: 14px;
    font-family: var(--font-display);
    font-size: 56px; line-height: 1;
    color: var(--accent);
    opacity: .5;
}
.home-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-strong);
    margin: 0 0 10px;
    quotes: none;
}
.home-quote figcaption { color: var(--text-muted); font-size: 13px; letter-spacing: .04em; }
.home-about-cta { margin-top: 26px; }
.home-about-cta .btn {
    padding: 14px 32px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
    box-shadow: var(--shadow-cta);
}
@media (max-width: 780px) {
    .home-about { grid-template-columns: 1fr; gap: 20px; padding: var(--space-6) 0; }
    .home-about-head { position: static; }
    .home-about-head .section-h::after { margin-left: 0; }
}

/* -- Stats --------------------------------------------------- */
.home-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px; margin: 0 auto var(--space-8);
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(157,193,184,.14), transparent 60%),
        var(--surface-muted);
}
.home-stat {
    position: relative;
    padding: 8px 6px;
}
.home-stat + .home-stat::before {
    content: "";
    position: absolute; left: -12px; top: 20%;
    width: 1px; height: 60%;
    background: var(--border-subtle);
}
.home-stat-num {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.4vw, 68px);
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-ink) 0%, var(--sage-500) 40%, var(--accent-ink) 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    animation: homeCountShine 5s linear infinite;
}
.home-stat-lbl {
    font-size: 11px; font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (max-width: 560px) {
    .home-stats { grid-template-columns: 1fr; gap: 8px; padding: var(--space-5) var(--space-3); }
    .home-stat + .home-stat::before {
        left: 20%; right: 20%; top: -4px;
        width: auto; height: 1px;
    }
}

/* -- Styly jógy page ----------------------------------------- */
.styly-bar { color: var(--accent); margin: 0 6px; font-weight: 400; display: inline-block; transform: translateY(-1px); }

.styly-namaste {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-ink);
    margin-top: 14px !important;
}

.styly-section { margin-bottom: var(--space-8); }
.styly-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-6);
}
.styly-section-head .eyebrow { margin-bottom: 8px; }
.styly-section-head .section-h { margin-bottom: 10px; }
.styly-section-lead {
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
}

.styly-list { display: grid; grid-template-columns: 1fr; gap: 24px; }

.styly-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: start;
}
.styly-photo {
    margin: 0;
    position: sticky;
    top: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.styly-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
}
@media (max-width: 900px) {
    .styly-split { grid-template-columns: 1fr; gap: 24px; }
    .styly-photo { position: static; order: -1; }
    .styly-photo img { max-height: 320px; }
}

.styly-item {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    position: relative;
}
.styly-item h3 {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--text-strong);
}
.styly-item h3 span {
    color: var(--accent);
    margin: 0 6px;
    font-weight: 400;
}
.styly-item .styly-tag {
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
}
.styly-item h4 {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--accent-ink);
    margin: 22px 0 10px;
}
.styly-item p { margin: 0 0 12px; line-height: 1.7; color: var(--text-strong); }
.styly-item p:last-child { margin-bottom: 0; }
.styly-item .styly-namaste { margin-top: 16px; }
.styly-item .styly-note {
    font-size: 13.5px;
    color: var(--text-muted);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 14px;
    margin-top: 16px;
}
.styly-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.styly-bullets li {
    padding: 4px 0 4px 2px;
    line-height: 1.65;
}
.styly-quote {
    margin: 18px 0;
    padding: 16px 20px;
    background: var(--surface-muted);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-strong);
    font-size: 15.5px;
    line-height: 1.6;
}
.styly-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
}
.styly-quote--sm { font-size: 14px; }

/* -- Form row for side-by-side fields ----------------------- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row > label { margin: 0; }
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* -- Collapsible card body (details/summary toggle) ---------- */
.styly-details { margin: 0; }
.styly-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    border: 1px solid var(--border-subtle);
    transition: background var(--dur-fast) var(--ease-calm),
                color var(--dur-fast) var(--ease-calm),
                border-color var(--dur-fast) var(--ease-calm);
}
.styly-details > summary::-webkit-details-marker { display: none; }
.styly-details > summary::before { content: attr(data-more); }
.styly-details[open] > summary::before { content: attr(data-less); }
.styly-details > summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--dur-fast) var(--ease-calm);
}
.styly-details[open] > summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}
.styly-details > summary:hover,
.styly-details > summary:focus-visible {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    outline: none;
}
.styly-body { padding-top: 20px; }
.styly-body > p:first-child { margin-top: 0; }
.styly-body > h4:first-child { margin-top: 0; }

@media (max-width: 560px) {
    .styly-item { padding: 22px 18px; }
    .styly-item h3 { font-size: 20px; }
    .styly-item .styly-tag { font-size: 14px; }
    .styly-quote { padding: 14px 16px; font-size: 14.5px; }
    .styly-details > summary { padding: 9px 14px; font-size: 12px; }
}

/* -- Final quote --------------------------------------------- */
.home-final-quote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-8);
    padding: var(--space-6) 20px;
    position: relative;
}
.home-final-quote::before,
.home-final-quote::after {
    content: "";
    display: block;
    width: 32px; height: 1px;
    background: var(--accent);
    opacity: .5;
    margin: 0 auto;
}
.home-final-quote::before { margin-bottom: 24px; }
.home-final-quote::after  { margin-top: 20px; }
.home-final-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2.8vw, 32px);
    color: var(--text-strong);
    margin: 0 0 14px;
    quotes: none;
    line-height: 1.35;
    text-wrap: balance;
}
.home-final-quote cite {
    display: block;
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: .1em;
    font-size: 13px;
    text-transform: uppercase;
}

/* -- Landing page: mobile tuning ----------------------------- */
@media (max-width: 720px) {
    .home-hero { padding: 16px 12px 26px; }
    .home-hero .eyebrow { font-size: 11px; padding: 0 18px 8px; margin-bottom: 16px; }
    .home-hero .eyebrow::before,
    .home-hero .eyebrow::after { width: 24px; }
    .home-hero-title { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.22; }
    .home-hero-title::after { margin-top: 16px; }

    .home-video { margin-bottom: var(--space-6); border-radius: var(--radius-md); }

    .home-features { margin-bottom: var(--space-7); }
    .home-feature { padding: 20px 16px 18px; border-radius: var(--radius-md); }
    .home-feature-num { font-size: 26px; margin-bottom: 10px; }
    .home-feature h3 { font-size: 12.5px; letter-spacing: .06em; }

    .home-about { gap: 18px; padding: var(--space-6) 0; margin-bottom: var(--space-7); }
    .home-about-head .section-h { font-size: 26px; }
    .home-about-body p { font-size: 15px; line-height: 1.7; }
    .home-about-body p:first-child::first-letter { font-size: 2.6em; padding: 2px 10px 0 0; }
    .home-quote { margin: 22px 0; padding: 20px 18px 18px 34px; }
    .home-quote::before { font-size: 42px; top: 4px; left: 10px; }
    .home-quote blockquote { font-size: 16px; }
    .home-about-cta .btn { width: 100%; padding: 14px 20px; }

    .home-stats { margin-bottom: var(--space-7); }
    .home-stat-num { font-size: 44px; margin-bottom: 4px; }
    .home-stat-lbl { font-size: 10.5px; }

    .home-final-quote { padding: var(--space-5) 12px; margin-bottom: var(--space-6); }
    .home-final-quote blockquote { font-size: 20px; }
    .home-final-quote cite { font-size: 11px; }
}
@media (max-width: 380px) {
    .home-hero-title { font-size: 22px; }
    .home-feature { padding: 18px 12px 16px; }
    .home-stat-num { font-size: 40px; }
}

/* -----------------------------------------------------------------
   Puppy & štěněcí vibe – landing page
------------------------------------------------------------------ */
.puppy-hero {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 36px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto var(--space-7);
    padding: 24px 0 12px;
}
.puppy-hero-copy { text-align: left; }
.puppy-hero-copy .eyebrow {
    display: inline-block;
    color: var(--accent-ink);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 22px;
}
.puppy-hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.15;
    margin: 0 0 18px;
}
.puppy-hero-lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--accent-ink);
    margin: 0 0 14px;
}
.puppy-hero-sub {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--text-body);
    line-height: 1.65;
}
.puppy-hero-cta {
    display: flex; gap: 14px; flex-wrap: wrap;
}
.puppy-hero-cta .btn {
    padding: 12px 26px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.puppy-hero-visual {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: var(--clay-500);
}
.puppy-hero-visual img { display: block; width: 100%; height: auto; }
@media (max-width: 780px) {
    .puppy-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .puppy-hero-copy { text-align: center; }
    .puppy-hero-sub { margin-left: auto; margin-right: auto; }
    .puppy-hero-cta { justify-content: center; }
    .puppy-hero-visual { max-width: 280px; margin: 0 auto; }
}

.puppy-tagline {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-8);
    padding: 18px 20px;
}
.puppy-tagline p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-strong);
    line-height: 1.6;
}
.puppy-tagline-bar { color: var(--accent); margin: 0 8px; font-weight: 400; }

.puppy-form-block {
    max-width: 780px;
    margin: 0 auto var(--space-8);
    padding: 34px 28px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 100px;
}
.puppy-form-head { text-align: center; margin-bottom: 22px; }
.puppy-form-head .eyebrow { color: var(--accent-ink); margin-bottom: 8px; display: inline-block; }
.puppy-form-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--text-strong);
    margin: 0 0 10px;
}
.puppy-form-head p { margin: 0; color: var(--text-muted); }
.puppy-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.puppy-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 14px; color: var(--text-muted);
}
.puppy-form .puppy-form-full { grid-column: 1 / -1; }
.puppy-form input,
.puppy-form textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-strong);
}
.puppy-form input:focus-visible,
.puppy-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.puppy-form textarea { resize: vertical; min-height: 120px; }
.puppy-form .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) {
    .puppy-form { grid-template-columns: 1fr; }
    .puppy-form-block { padding: 26px 20px; }
}

.puppy-about {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-7) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    scroll-margin-top: 100px;
}
.puppy-about-head { position: sticky; top: 100px; align-self: start; }
.puppy-about-head .eyebrow { margin-bottom: 8px; }
.puppy-about-head h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    color: var(--text-strong);
    margin: 0;
}
.puppy-about-body p {
    font-size: 16px; line-height: 1.75;
    color: var(--text-body);
    margin: 0 0 18px;
}
@media (max-width: 780px) {
    .puppy-about { grid-template-columns: 1fr; gap: 20px; padding: var(--space-6) 0; }
    .puppy-about-head { position: static; }
}

.puppy-features {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
}
.puppy-features-head { text-align: center; margin-bottom: 28px; }
.puppy-features-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.puppy-features-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 34px);
    color: var(--text-strong);
    margin: 0;
}
.puppy-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.puppy-feature {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.puppy-feature:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.puppy-feature-icon {
    font-size: 28px; line-height: 1;
    margin-bottom: 12px;
}
.puppy-feature h3 {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-strong);
    margin: 0 0 10px;
}
.puppy-feature p {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}
@media (max-width: 960px) { .puppy-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .puppy-features-grid { grid-template-columns: 1fr; } }

.puppy-classes {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
}
.puppy-classes-head { text-align: center; margin-bottom: 28px; }
.puppy-classes-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.puppy-classes-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 34px);
    color: var(--text-strong);
    margin: 0;
}
.puppy-classes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.puppy-class-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.puppy-class-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.puppy-class-tag {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    color: var(--accent);
    line-height: 1; margin-bottom: 12px;
}
.puppy-class-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-strong);
    margin: 0 0 6px;
}
.puppy-class-sub {
    margin: 0 0 14px;
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.puppy-class-card > p {
    margin: 0 0 16px;
    color: var(--text-body);
    line-height: 1.65;
}
.puppy-class-list {
    list-style: none; padding: 0; margin: auto 0 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    display: flex; flex-direction: column; gap: 8px;
}
.puppy-class-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.5;
}
.puppy-class-list li::before {
    content: "";
    position: absolute; left: 0; top: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}
@media (max-width: 960px) { .puppy-classes-grid { grid-template-columns: 1fr; } }

.puppy-info {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-7) 0;
    border-top: 1px solid var(--border-subtle);
}
.puppy-info-head { position: sticky; top: 100px; align-self: start; }
.puppy-info-head .eyebrow { margin-bottom: 8px; }
.puppy-info-head h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    color: var(--text-strong);
    margin: 0;
}
.puppy-info-body p {
    font-size: 16px; line-height: 1.75;
    color: var(--text-body);
    margin: 0 0 18px;
}
.puppy-info-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 780px) {
    .puppy-info { grid-template-columns: 1fr; gap: 20px; padding: var(--space-6) 0; }
    .puppy-info-head { position: static; }
}

/* -----------------------------------------------------------------
   Dárkový poukaz – landing page
------------------------------------------------------------------ */
.poukaz-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-6) 0;
}
.poukaz-hero-copy .eyebrow {
    display: inline-block;
    color: var(--accent-ink);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 18px;
}
.poukaz-hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.poukaz-hero-lead {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-ink);
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 18px;
}
.poukaz-hero-sub {
    color: var(--text-body);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 540px;
}
.poukaz-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.poukaz-hero-cta .btn {
    padding: 12px 26px; letter-spacing: .08em;
    text-transform: uppercase; font-weight: 700;
}
.poukaz-hero-visual {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: var(--clay-500);
}
.poukaz-hero-visual img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
    .poukaz-hero { grid-template-columns: 1fr; gap: 28px; }
    .poukaz-hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
}

.poukaz-variants {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    scroll-margin-top: 100px;
}
.poukaz-variants-head { text-align: center; margin-bottom: 28px; }
.poukaz-variants-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.poukaz-variants-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 34px);
    color: var(--text-strong);
    margin: 0 0 10px;
}
.poukaz-variants-head p { margin: 0 auto; max-width: 640px; color: var(--text-muted); }
.poukaz-variants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.poukaz-variant {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.poukaz-variant:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.poukaz-variant.is-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--sage-100) 0%, var(--surface-card) 60%);
}
.poukaz-variant-badge {
    align-self: center;
    font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--sage-100);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}
.poukaz-variant.is-featured .poukaz-variant-badge { background: var(--accent); color: #fff; }
.poukaz-variant-price {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700;
    color: var(--text-strong); line-height: 1;
}
.poukaz-variant p { margin: 0; color: var(--text-body); font-size: 14px; line-height: 1.55; }
.poukaz-variant .btn { align-self: center; margin-top: auto; }
@media (max-width: 960px) { .poukaz-variants-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .poukaz-variants-grid { grid-template-columns: 1fr; } }

.poukaz-how {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-7) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.poukaz-how-head { text-align: center; margin-bottom: 28px; }
.poukaz-how-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.poukaz-how-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 32px);
    color: var(--text-strong);
    margin: 0;
}
.poukaz-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.poukaz-how-step {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
}
.poukaz-how-num {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700;
    color: var(--accent);
    line-height: 1; margin-bottom: 12px;
}
.poukaz-how-step h3 {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-strong);
    margin: 0 0 8px;
}
.poukaz-how-step p { margin: 0; color: var(--text-body); font-size: 14px; line-height: 1.6; }
@media (max-width: 780px) { .poukaz-how-grid { grid-template-columns: 1fr; } }

.poukaz-order {
    max-width: 780px;
    margin: 0 auto var(--space-8);
    padding: 34px 28px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 100px;
}
.poukaz-order-head { text-align: center; margin-bottom: 22px; }
.poukaz-order-head .eyebrow { display: inline-block; color: var(--accent-ink); margin-bottom: 8px; }
.poukaz-order-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 30px);
    color: var(--text-strong);
    margin: 0 0 10px;
}
.poukaz-order-head p { margin: 0; color: var(--text-muted); }
.poukaz-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.poukaz-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 14px; color: var(--text-muted);
}
.poukaz-form .poukaz-form-full { grid-column: 1 / -1; }
.poukaz-form input,
.poukaz-form textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-strong);
}
.poukaz-form input:focus-visible,
.poukaz-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.poukaz-form textarea { resize: vertical; min-height: 100px; }
.poukaz-form .btn { grid-column: 1 / -1; justify-self: start; }
.poukaz-order-contact {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
@media (max-width: 560px) {
    .poukaz-form { grid-template-columns: 1fr; }
    .poukaz-order { padding: 26px 20px; }
}

.poukaz-payment {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: var(--space-7) 0;
    border-bottom: 1px solid var(--border-subtle);
    scroll-margin-top: 100px;
}
.poukaz-payment-head { text-align: center; margin-bottom: 26px; }
.poukaz-payment-head .eyebrow { display: inline-block; margin-bottom: 8px; }
.poukaz-payment-head h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 32px);
    color: var(--text-strong);
    margin: 0 0 8px;
}
.poukaz-payment-head p { margin: 0 auto; max-width: 640px; color: var(--text-muted); }
.poukaz-payment-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
}
.poukaz-qr { text-align: center; }
.poukaz-qr-box {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    min-width: 248px; min-height: 248px;
}
.poukaz-qr-box img,
.poukaz-qr-box canvas { display: block; }
.poukaz-qr-amount { margin-top: 14px; }
.poukaz-qr-amount span {
    display: block;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 4px;
}
.poukaz-qr-amount strong {
    font-family: var(--font-display);
    font-size: 22px; color: var(--text-strong);
}
.poukaz-qr-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); }
.poukaz-qr-placeholder {
    padding: 24px; border: 1px dashed var(--border-default);
    border-radius: var(--radius-md); color: var(--text-muted);
    background: var(--surface-muted);
}
.poukaz-bank {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}
.poukaz-bank dt {
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted); padding-top: 3px;
}
.poukaz-bank dd { margin: 0; color: var(--text-strong); font-size: 15px; line-height: 1.5; }
.poukaz-bank dd em { font-style: normal; color: var(--text-muted); font-size: 13px; }
.poukaz-bank .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}
@media (max-width: 780px) {
    .poukaz-payment-grid { grid-template-columns: 1fr; gap: 22px; }
    .poukaz-bank { grid-template-columns: 1fr; }
    .poukaz-bank dt { padding-top: 0; }
}

/* -----------------------------------------------------------------
   Admin – rezervace: per-class attendee roster
------------------------------------------------------------------ */
.roster-groups {
    display: grid; gap: 12px;
}
.roster-group {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.roster-group > summary {
    list-style: none;
    cursor: pointer;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 12px 16px;
    background: var(--surface-muted);
    color: var(--text-strong);
    font-size: 14px;
}
.roster-group > summary::-webkit-details-marker { display: none; }
.roster-group > summary::before {
    content: "▸";
    display: inline-block;
    color: var(--accent-ink);
    transition: transform .18s ease;
    margin-right: 2px;
}
.roster-group[open] > summary::before { transform: rotate(90deg); }
.roster-group-when { color: var(--text-body); }
.roster-group-title { font-weight: 700; }
.roster-group-meta { color: var(--text-muted); font-size: 13px; }
.roster-group > summary .badge { margin-left: auto; }
.roster-attendees {
    list-style: decimal inside;
    margin: 0;
    padding: 12px 20px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px 20px;
}
.roster-attendees li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-subtle);
    color: var(--text-strong);
    font-size: 14px;
}
.roster-attendee-name { font-weight: 600; }
.roster-attendee-contact {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* -----------------------------------------------------------------
   Home hero with media & shared page-hero-media pattern
------------------------------------------------------------------ */
.home-hero--media {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: var(--container);
    padding: clamp(20px, 3vw, 40px) 20px clamp(28px, 4vw, 56px);
    text-align: left;
}
.home-hero--media .home-hero-body {
    text-align: left;
}
.home-hero--media .home-hero-title {
    text-align: left;
}
.home-hero--media .home-hero-title::after {
    margin-left: 0;
}
.home-hero--media .eyebrow::before { display: none; }
.home-hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(58,39,24,.32), 0 2px 6px rgba(58,39,24,.06);
    aspect-ratio: 4 / 5;
}
.home-hero-media img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
@media (max-width: 820px) {
    .home-hero--media {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .home-hero--media .home-hero-body,
    .home-hero--media .home-hero-title { text-align: center; }
    .home-hero--media .home-hero-title::after { margin-left: auto; }
    .home-hero--media .eyebrow::before { display: inline-block; }
    .home-hero-media { aspect-ratio: 16 / 11; max-height: 420px; }
}

/* -- Hero with full-width background image + inline video --------- */
.home-hero--bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    /* Break out of the .container.page horizontal padding so the bg fills the viewport. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}
.home-hero--bg::before {
    content: "";
    position: absolute; inset: 0;
    /* Deeper gradient on the text (left) side for solid contrast, fading toward the video. */
    background:
        linear-gradient(100deg, rgba(14,10,8,.78) 0%, rgba(14,10,8,.55) 50%, rgba(14,10,8,.22) 100%),
        linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}
.home-hero-bg-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(60px, 7vw, 100px) 20px;
    text-align: left;
    color: #fff;
}
.home-hero--bg .home-hero-body {
    text-align: left;
    /* Soft readable backdrop behind the whole text block so busy image regions
       don't eat the type. */
    text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
}
.home-hero--bg .eyebrow,
.home-hero--bg .home-hero-title,
.home-hero--bg .home-hero-tagline { color: #fff; }
.home-hero--bg .eyebrow {
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: .22em;
    opacity: .95;
    margin-bottom: 14px;
}
.home-hero--bg .home-hero-title {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
    line-height: 1.15;
    font-size: clamp(26px, 3.4vw, 44px);
}
.home-hero--bg .eyebrow::before { display: none; }
.home-hero--bg .home-hero-title::after {
    background: rgba(255,255,255,.85);
    margin-left: 0;
    width: 72px;
    height: 3px;
    margin-top: 20px;
}
.home-hero-tagline {
    margin: 20px 0 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.5;
    max-width: 46ch;
}
.home-hero-cta-row {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.home-hero--bg .home-hero-cta {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
    text-shadow: none;
}
.home-hero-sub {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.22);
    max-width: 52ch;
}
.home-hero-sub-eyebrow {
    color: rgba(255,255,255,.9);
    margin-bottom: 10px;
}
.home-hero-sub-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-display, inherit);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: clamp(15px, 1.4vw, 20px);
    line-height: 1.35;
}
.home-hero-video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
    background: #000;
}
.home-hero-video iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 820px) {
    .home-hero-bg-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 18px;
    }
    .home-hero--bg .home-hero-body,
    .home-hero--bg .home-hero-title { text-align: center; }
    .home-hero--bg .home-hero-title::after { margin-left: auto; }
    .home-hero--bg .eyebrow::before { display: inline-block; background: rgba(255,255,255,.75); }
    .home-hero-cta-row { justify-content: center; }
    .home-hero-sub { margin-left: auto; margin-right: auto; }
}

.page-hero-media {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: var(--container);
    margin: 0 auto var(--space-7);
    padding: clamp(12px, 2vw, 24px) 20px;
}
.page-hero-media-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(58,39,24,.32), 0 2px 6px rgba(58,39,24,.06);
    aspect-ratio: 4 / 5;
}
.page-hero-media-img img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
.page-hero-media-body .page-title { margin-top: 6px; }
.page-hero-media-body .page-lead { margin-top: 14px; }
@media (max-width: 820px) {
    .page-hero-media {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-hero-media-img {
        aspect-ratio: 4 / 5;
        max-width: 420px;
        margin: 0 auto;
    }
    .page-hero-media-img img { object-position: center top; }
}

/* -- Page hero: full-width background image variant ----------------
   Mirrors the index.php .landing-hero look: full-bleed cover photo
   under a flat warm-brown tint, cream text on top. */
.page-hero-media--bg {
    position: relative;
    display: flex;
    align-items: center;
    grid-template-columns: none;
    background-color: #dcc19e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    min-height: clamp(420px, 48vw, 640px);
    padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 48px);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    color: #fff;
    text-align: left;
    gap: 0;
}
/* Dark warm-brown filter over the photo so white text stays legible.
   Landing page (.landing-hero) is a separate component and is unaffected. */
.page-hero-media--bg::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(58,39,24,.45) 0%, rgba(58,39,24,.6) 100%);
}
.page-hero-media--bg .page-hero-media-body {
    position: relative; z-index: 1;
    width: 100%;
    max-width: var(--landing-max, 1200px);
    margin: 0 auto;
}
.page-hero-media--bg .eyebrow,
.page-hero-media--bg .page-title,
.page-hero-media--bg .page-lead { color: #fff; }
.page-hero-media--bg .eyebrow::before { display: none; }

@media (max-width: 820px) {
    .page-hero-media--bg {
        padding: 56px 18px;
        text-align: center;
    }
    .page-hero-media--bg .page-hero-media-body { margin: 0 auto; }
}

/* -----------------------------------------------------------------
   Home promo grid (Open lekce / Akce) — mirrors original site
------------------------------------------------------------------ */
.home-promo {
    max-width: var(--container);
    margin: 0 auto var(--space-8);
    padding: 0 20px;
}
.home-promo-head {
    text-align: center;
    margin-bottom: var(--space-5);
}
.home-promo-head .eyebrow {
    display: inline-block;
    letter-spacing: .18em;
    color: var(--accent-ink);
    margin-bottom: 10px;
}
.home-promo-head .section-h { margin: 4px 0 10px; }
.home-promo-head .page-lead { max-width: 640px; margin: 0 auto; }
.home-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.promo-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sand-100);
    box-shadow: 0 10px 30px -14px rgba(58,39,24,.28), 0 1px 3px rgba(58,39,24,.06);
    text-decoration: none;
    color: #fff;
    transition: transform var(--dur-med) var(--ease-calm), box-shadow var(--dur-med) var(--ease-calm);
}
.promo-tile img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-calm);
}
.promo-tile::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 55%;
    background: linear-gradient(to top, rgba(58,39,24,.72), rgba(58,39,24,0));
    pointer-events: none;
}
.promo-tile-cap {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    z-index: 1;
    font: 600 14.5px/1.35 var(--font-body);
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.promo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -16px rgba(58,39,24,.35), 0 2px 6px rgba(58,39,24,.08);
}
.promo-tile:hover img { transform: scale(1.05); }
.promo-tile:focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .home-promo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
    .home-promo-grid { grid-template-columns: 1fr; gap: 12px; }
    .promo-tile { aspect-ratio: 4 / 3; }
}
.promo-tile[data-zoom-src] { cursor: zoom-in; }

/* Zoom lightbox for promo tiles */
.promo-zoom {
    position: fixed; inset: 0; z-index: 120;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.promo-zoom[hidden] { display: none; }
.promo-zoom-backdrop {
    position: absolute; inset: 0;
    background: rgba(31,25,20,.72);
    backdrop-filter: blur(3px);
    cursor: zoom-out;
}
.promo-zoom-inner {
    position: relative;
    margin: 0;
    display: flex; flex-direction: column;
    max-width: min(1100px, 96vw);
    max-height: calc(100vh - 48px);
    animation: promoZoomIn .2s var(--ease-calm) both;
}
@keyframes promoZoomIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
.promo-zoom-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    background: #000;
}
.promo-zoom-close {
    position: absolute; top: -14px; right: -14px;
    background: var(--surface-card); border: 0;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 26px; line-height: 1; color: var(--text-strong);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--dur-fast) var(--ease-calm), transform var(--dur-fast) var(--ease-calm);
}
.promo-zoom-close:hover, .promo-zoom-close:focus-visible {
    background: var(--sand-100); transform: scale(1.05); outline: none;
}
.promo-zoom-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.92); border: 0;
    width: 46px; height: 46px; border-radius: 50%;
    font-size: 34px; line-height: 1; color: var(--text-strong);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--dur-fast) var(--ease-calm), transform var(--dur-fast) var(--ease-calm);
    padding-bottom: 4px;
}
.promo-zoom-nav[hidden] { display: none; }
.promo-zoom-nav:hover, .promo-zoom-nav:focus-visible {
    background: #fff; outline: none;
}
.promo-zoom-prev { left: -22px; }
.promo-zoom-next { right: -22px; }
.promo-zoom-prev:hover, .promo-zoom-prev:focus-visible { transform: translateY(-50%) translateX(-2px); }
.promo-zoom-next:hover, .promo-zoom-next:focus-visible { transform: translateY(-50%) translateX(2px); }
.promo-zoom-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin-top: 12px;
    color: #fff;
}
.promo-zoom-cap {
    font: 600 15px/1.35 var(--font-body);
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.promo-zoom-cap[hidden] { display: none; }
.promo-zoom-cta { margin-left: auto; }
body.has-promo-zoom-open { overflow: hidden; }
@media (max-width: 520px) {
    .promo-zoom { padding: 14px; }
    .promo-zoom-close { top: -10px; right: -10px; width: 34px; height: 34px; font-size: 22px; }
    .promo-zoom-nav { width: 38px; height: 38px; font-size: 28px; }
    .promo-zoom-prev { left: 4px; }
    .promo-zoom-next { right: 4px; }
    .promo-zoom-foot { justify-content: center; }
    .promo-zoom-cta { margin-left: 0; }
}

/* --- Akce (events) listing + detail --------------------------------- */
.akce-hero {
    padding: 48px 0 24px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.akce-hero h1 {
    margin: 8px 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--clay-900, #3A2718);
}
.akce-hero-lead {
    color: var(--text-muted, #6b6b6b);
    font-size: 17px;
    line-height: 1.55;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    margin: 32px 0 48px;
}
.event-card {
    background: var(--surface-card, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.event-card--past { opacity: .72; }
.event-card-link {
    display: flex; flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.event-card-cover {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3efe8;
}
.event-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.event-card:hover .event-card-cover img { transform: scale(1.04); }
.event-card-cover--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--sage-500, #5F9187);
}
.event-card-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column;
    gap: 8px;
    flex: 1;
}
.event-card-date {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sage-700, #3F6F66);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.event-card-badge {
    background: #e8e3d7;
    color: #6b6b6b;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}
.event-card-title {
    margin: 2px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.25;
    color: #2c2c2c;
}
.event-card-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--sage-700, #3F6F66);
    font-style: italic;
}
.event-card-summary {
    margin: 2px 0 0;
    color: var(--text-muted, #6b6b6b);
    font-size: 15px;
    line-height: 1.5;
}
.event-card-more {
    margin-top: auto;
    padding-top: 10px;
    color: var(--sage-500, #5F9187);
    font-weight: 600;
    font-size: 14px;
}

.event-detail {
    max-width: 860px;
    margin: 24px auto 60px;
}
.event-back {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--sage-700, #3F6F66);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
}
.event-back:hover { text-decoration: underline; }
.event-detail-cover {
    margin: 0 0 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3efe8;
    display: flex;
    justify-content: center;
}
.event-detail-cover img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.event-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 40px);
    margin: 10px 0 8px;
    color: #2c2c2c;
}
.event-detail-lead {
    color: var(--sage-700, #3F6F66);
    font-size: 18px;
    font-style: italic;
    margin: 0 0 20px;
}
.event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex; flex-wrap: wrap; gap: 10px 20px;
    color: var(--text-muted, #6b6b6b);
    font-size: 15px;
}
.event-meta li { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .icon { color: var(--sage-500, #5F9187); }
.event-detail-content {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
}
.event-detail-content h3 {
    margin-top: 28px;
    font-family: 'Playfair Display', serif;
    color: var(--sage-700, #3F6F66);
}
.event-detail-content ul { padding-left: 1.2em; }
.event-detail-content li { margin-bottom: 6px; }
.event-detail-cta {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}
.event-pager {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle, #e5ddce);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.event-pager-link {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle, #e5ddce);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    min-width: 0;
}
.event-pager-link:hover {
    border-color: var(--sage-500, #5F9187);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.event-pager-dir {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sage-700, #3F6F66);
    font-weight: 700;
}
.event-pager-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #2c2c2c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-pager-prev { text-align: left; }
.event-pager-next { text-align: right; align-items: flex-end; }
.event-pager-prev .icon { align-self: flex-start; }
.event-pager-next .icon { align-self: flex-end; }
@media (max-width: 560px) {
    .event-pager { grid-template-columns: 1fr; }
    .event-pager-next { text-align: left; align-items: flex-start; }
    .event-pager-next .icon { align-self: flex-start; }
}

/* =================================================================
   Landing page (index.php) — layout from "Namaste Landing export".
   Scoped under .landing-* so it coexists with the original styles.
   ================================================================= */
:root {
    --landing-ink:        #2b1f17;   /* deep espresso-brown — hero bg + headings */
    --landing-cream:      #f5ead5;   /* warm cream — on dark + lekce section bg */
    --landing-cream-soft: #e9d9b8;   /* body copy on dark */
    --landing-cream-dim:  #c6b291;   /* small labels on dark */
    --landing-sage:       #c67a5c;   /* terracotta — primary CTA & accent */
    --landing-sage-soft:  #e9b89b;   /* peach — italic emphasis in hero title */
    --landing-forest:     #8b4a2c;   /* deep clay — hover + strong accent */
    --landing-sand:       #f3dcbf;   /* soft peach — reasons section bg */
    --landing-border:     #4a3528;   /* divider on dark hero */
    --landing-rule:       #d9bf99;   /* hairline rules on cream */
    --landing-max:        1200px;
}

/* -- Shared pieces ------------------------------------------------- */
.landing-eyebrow {
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--landing-sage-soft);
    font-weight: 600;
}
.landing-eyebrow-sage   { color: var(--landing-sage); }
.landing-eyebrow-forest { color: var(--landing-forest); }

.landing-h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    color: var(--landing-ink);
    text-wrap: balance;
}
.landing-h2-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: #56625e;
    text-wrap: pretty;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    white-space: nowrap;
}
.landing-btn-primary {
    background: var(--landing-sage);
    color: #ffffff;
}
.landing-btn-primary:hover {
    background: #4f7f75;
    color: #ffffff;
}
.landing-btn-outline {
    background: transparent;
    border-color: #5d6e69;
    color: var(--landing-cream);
}
.landing-btn-outline:hover {
    border-color: var(--landing-cream);
    color: #ffffff;
}
.landing-btn-dark {
    background: var(--landing-ink);
    color: var(--landing-cream);
}
.landing-btn-dark:hover {
    background: #17211e;
    color: #ffffff;
}

/* -- Full-bleed helpers so sections span the viewport inside .container.page --- */
.landing-hero,
.landing-lekce,
.landing-pick,
.landing-reasons,
.landing-cta-band {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

/* Kill the container's top/bottom padding on the landing page so the dark
   hero and CTA band sit flush against the header and footer (no cream strips). */
.container.page:has(> .landing-hero) { padding-top: 0; }
.container.page:has(> .page-hero-media--bg) { padding-top: 0; }
.container.page:has(> .landing-cta-band:last-child) { padding-bottom: 0; }
body:has(.landing-cta-band) .site-footer { margin-top: 0; }

/* -- Hero ---------------------------------------------------------- */
.landing-hero {
    background:
        linear-gradient(rgba(43, 31, 23, .78), rgba(43, 31, 23, .78)),
        url('assets/namasteyoga.cz_joga2.jpg') center / cover no-repeat,
        var(--landing-ink);
    color: var(--landing-cream);
    padding: clamp(56px, 7vw, 96px) 24px clamp(72px, 8vw, 112px);
    overflow: hidden;
}
.landing-hero-inner {
    max-width: var(--landing-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
}
.landing-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.landing-hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.01em;
    color: var(--landing-cream);
    text-wrap: balance;
}
.landing-hero-title em {
    font-style: italic;
    color: var(--landing-sage-soft);
}
.landing-hero-lead {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.55;
    color: var(--landing-cream-soft);
    max-width: 32em;
    text-wrap: pretty;
}
.landing-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-hero-stats {
    display: flex;
    gap: clamp(24px, 3vw, 44px);
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--landing-border);
    margin-top: 4px;
}
.landing-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.landing-stat-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(32px, 3.4vw, 42px);
    line-height: 1;
    color: var(--landing-cream);
}
.landing-stat-lbl {
    font-size: 14px;
    color: var(--landing-cream-dim);
}
.landing-hero-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.landing-hero-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #1a2522;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.landing-hero-video iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
.landing-hero-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.landing-hero-caption strong {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 1.7vw, 24px);
    color: var(--landing-cream);
}
.landing-hero-caption span {
    font-size: 15px;
    color: var(--landing-cream-dim);
}

/* -- Lekce (classes grid) ------------------------------------------ */
.landing-lekce {
    background: var(--landing-cream);
    padding: clamp(72px, 8vw, 112px) 24px;
}
.landing-lekce-inner {
    max-width: var(--landing-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}
.landing-lekce-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.landing-lekce-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 620px;
}
.landing-lekce-all {
    font-weight: 600;
    font-size: 16px;
    color: var(--landing-ink);
    border-bottom: 1.5px solid var(--landing-sage);
    padding-bottom: 3px;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}
.landing-lekce-all:hover {
    color: var(--landing-sage);
    border-color: var(--landing-forest);
}
.landing-lekce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}
.landing-lekce-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--landing-ink);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.landing-lekce-card:hover {
    color: var(--landing-forest);
    transform: translateY(-2px);
}
.landing-lekce-card-img {
    border-radius: 14px;
    overflow: hidden;
}
.landing-lekce-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s var(--ease-calm, ease);
}
.landing-lekce-card:hover .landing-lekce-card-img img {
    transform: scale(1.03);
}
.landing-lekce-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.landing-lekce-card-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
}
.landing-lekce-card-cta {
    font-size: 15px;
    font-weight: 600;
    color: var(--landing-sage);
    white-space: nowrap;
}

/* -- Pick (massage / private lessons) ------------------------------ */
.landing-pick {
    position: relative;
    background-color: var(--landing-cream);
    background-image:
        linear-gradient(
            180deg,
            rgba(245, 234, 213, .55) 0%,
            rgba(245, 234, 213, .35) 45%,
            rgba(243, 220, 191, .78) 100%
        ),
        var(--pick-img);
    background-position: center top, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 100% auto;
    padding: clamp(72px, 8vw, 120px) 24px;
    overflow: hidden;
}
/* Soft wavy edges blending into the sections above and below. */
.landing-pick::before,
.landing-pick::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(28px, 4vw, 52px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.landing-pick::before {
    top: -1px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,0 L1200,0 L1200,32 C1000,62 800,2 600,32 C400,62 200,2 0,32 Z' fill='%23f5ead5'/></svg>");
}
.landing-pick::after {
    bottom: -1px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,28 C200,-2 400,58 600,28 C800,-2 1000,58 1200,28 L1200,60 L0,60 Z' fill='%23f3dcbf'/></svg>");
}
.landing-pick-inner {
    position: relative;
    max-width: var(--landing-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
    z-index: 2;
}
.landing-pick-head {
    text-align: center;
}
.landing-pick-head .landing-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: 0;
    text-transform: none;
    color: var(--landing-ink);
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(245, 234, 213, .6);
}
.landing-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(20px, 2.4vw, 28px);
}
.landing-pick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(32px, 3.4vw, 44px);
    border-radius: 20px;
    text-decoration: none;
    min-height: 280px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 24px -18px rgba(43, 31, 23, .45);
}
.landing-pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -24px rgba(43, 31, 23, .55);
}
.landing-pick-card--massage {
    background: var(--landing-sage);
    color: #fff;
}
.landing-pick-card--individ {
    background: #ffffff;
    color: var(--landing-ink);
}
.landing-pick-card--akce {
    background: var(--landing-forest);
    color: #fff;
}
.landing-pick-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.landing-pick-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.1;
    letter-spacing: -.005em;
}
.landing-pick-card-desc {
    margin: 0;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.6;
    opacity: .9;
}
.landing-pick-card-cta {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
    align-self: flex-start;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    width: 100%;
}
.landing-pick-card--individ .landing-pick-card-cta {
    border-top-color: rgba(43, 31, 23, .15);
    color: var(--landing-sage);
}

/* -- Reasons ------------------------------------------------------- */
.landing-reasons {
    background: var(--landing-sand);
    padding: clamp(72px, 8vw, 112px) 24px;
}
.landing-reasons-inner {
    max-width: var(--landing-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}
.landing-reasons-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 32em;
}
.landing-reasons-list {
    display: flex;
    flex-direction: column;
}
.landing-reason {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 24px 0;
    border-top: 1px solid var(--landing-rule);
}
.landing-reason:last-child {
    border-bottom: 1px solid var(--landing-rule);
}
.landing-reason-n {
    font-size: 14px;
    font-weight: 600;
    color: var(--landing-sage);
    letter-spacing: .06em;
}
.landing-reason-t {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    color: var(--landing-ink);
}

/* -- CTA band ------------------------------------------------------ */
.landing-cta-band {
    background: var(--landing-sage);
    color: #ffffff;
    padding: clamp(72px, 7vw, 96px) 24px;
}
.landing-cta-band-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.landing-cta-band-quote {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    text-wrap: balance;
}
.landing-cta-band-cite {
    font-size: 15px;
    color: #e3eeeb;
    letter-spacing: .04em;
}

/* -- Mobile tuning ------------------------------------------------- */
@media (max-width: 640px) {
    .landing-hero { padding: 52px 20px 64px; }
    .landing-hero-copy { gap: 20px; }
    .landing-hero-stats { gap: 24px; padding-top: 22px; }
    .landing-lekce,
    .landing-reasons { padding: 64px 20px; }
    .landing-pick { padding: 60px 20px; }
    .landing-cta-band { padding: 64px 20px; }
    .landing-pick-card { min-height: 240px; padding: 28px; }
    .landing-hero-ctas .landing-btn { flex: 1 1 auto; }
    .landing-lekce-head { align-items: flex-start; }
    .landing-reason { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; }

    /* Two-up class cards on phones so the photos aren't full-width huge. */
    .landing-lekce-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 420px;
        margin: 0 auto;
    }
    .landing-lekce-card { gap: 8px; }
    .landing-lekce-card-img { border-radius: 10px; }
    .landing-lekce-card-img img { max-height: 180px; object-fit: contain; }
    .landing-lekce-card-name { font-size: 15px; }
    .landing-lekce-card-cta { font-size: 12px; }
    .landing-lekce-card-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ==== Moved from inline <style> / style="" attributes ==== */

/* galerie.php – Fancybox lightbox. .site-header uses z-index 1100; Fancybox
   defaults to 1050, which left the toolbar (incl. close button) under the
   header. Extra specificity so it wins over fancybox.css loaded later. */
html body .fancybox__container { --fancybox-zIndex: 2000; z-index: 2000; }

/* voucher.php – printable gift voucher. --vo-bg is set inline (cache-busted URL). */
:root {
    --tc-terra: #c67a5c;
    --tc-cream: #f3e3cc;
    --tc-cream-soft: rgba(243, 227, 204, .78);
}
body.voucher-page {
    background: #efe6d4;
    margin: 0;
    padding: 24px 16px;
    font-family: 'Open Sans', sans-serif;
}
.voucher-toolbar {
    max-width: 820px;
    margin: 0 auto 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.voucher-sheet {
    position: relative;
    max-width: 820px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: var(--tc-terra) var(--vo-bg, url('assets/darkovy-poukaz.jpg')) center/cover no-repeat;
    box-shadow: 0 10px 36px rgba(99, 54, 36, .22);
    color: var(--tc-cream);
}
.vo-status {
    position: absolute;
    top: 18px;
    left: 20px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: var(--tc-cream);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.vo-status.redeemed { background: rgba(63, 111, 102, .55); }
.vo-status.cancelled { background: rgba(165, 58, 58, .55); }
.vo-price {
    position: absolute;
    top: 22px;
    right: 24px;
    padding: 10px 18px 11px;
    border-radius: 14px;
    background: rgba(243, 227, 204, .18);
    border: 1.4px solid rgba(243, 227, 204, .55);
    backdrop-filter: blur(4px);
    text-align: center;
    min-width: 110px;
    box-shadow: 0 6px 18px rgba(99, 54, 36, .18);
}
.vo-price small {
    display: block;
    font-size: 9px;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 2px;
}
.vo-price strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: .03em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(99, 54, 36, .25);
}
.vo-middle {
    position: absolute;
    top: 61%;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    max-width: 620px;
    text-align: center;
}
.vo-for {
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 1.9vw, 18px);
    font-style: italic;
    letter-spacing: .02em;
    line-height: 1.2;
}
.vo-for strong { font-weight: 700; font-style: normal; }
.vo-msg {
    margin: 6px auto 0;
    max-width: 86%;
    font-style: italic;
    font-size: clamp(11px, 1.3vw, 13px);
    line-height: 1.4;
    color: var(--tc-cream-soft);
    max-height: 2.8em;
    overflow: hidden;
}
.vo-code {
    margin-top: 10px;
    display: inline-block;
    padding: 7px 20px;
    border: 1.2px dashed rgba(243, 227, 204, .7);
    border-radius: 10px;
    min-width: 210px;
}
.vo-code small {
    display: block;
    font-size: 9px;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .78;
}
.vo-code strong {
    display: block;
    margin-top: 2px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 2.1vw, 22px);
    letter-spacing: .22em;
}
.vo-valid {
    margin-top: 6px;
    font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: .08em;
    color: var(--tc-cream-soft);
}
.voucher-caption {
    max-width: 820px;
    margin: 14px auto 0;
    text-align: center;
    color: #6b5a46;
    font-size: 13px;
    line-height: 1.5;
}
@media print {
    @page { size: A4; margin: 10mm; }
    body.voucher-page {
        background: #fff;
        padding: 0;
    }
    .voucher-toolbar, .voucher-caption { display: none !important; }
    .voucher-sheet {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        width: 190mm;
        height: 190mm;
        aspect-ratio: auto;
        margin: 0 auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .vo-status { display: none; }
}
@media (max-width: 640px) {
    body.voucher-page { padding: 14px 10px 20px; }
    .voucher-toolbar { margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
    .voucher-toolbar .btn { flex: 1 1 auto; min-width: 0; }

    /* Drop absolute positioning and let the content flow — the background
       image still covers the sheet, but the text sits in a readable column. */
    .voucher-sheet {
        aspect-ratio: auto;
        min-height: 520px;
        padding: 70px 20px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        background-position: center;
        background-size: cover;
    }
    .voucher-sheet::before {
        /* Soft overlay so text stays legible over the busy illustration. */
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(99,54,36,.28) 0%,
            rgba(99,54,36,.08) 40%,
            rgba(99,54,36,.55) 100%);
        pointer-events: none;
    }
    .vo-status,
    .vo-price,
    .vo-middle {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }
    .vo-status {
        align-self: flex-start;
        margin-bottom: 14px;
        font-size: 10px;
    }
    .vo-price {
        align-self: center;
        margin: 0 0 22px;
        padding: 12px 22px;
        min-width: 140px;
    }
    .vo-price small { font-size: 10px; }
    .vo-price strong { font-size: 28px; }
    .vo-middle {
        width: 100%;
        max-width: 100%;
        margin-top: auto;
    }
    .vo-for { font-size: 17px; line-height: 1.3; }
    .vo-msg {
        font-size: 13px;
        max-width: 100%;
        margin-top: 10px;
        max-height: none;
        line-height: 1.45;
    }
    .vo-code {
        margin-top: 18px;
        min-width: 0;
        width: 100%;
        max-width: 280px;
        padding: 10px 18px;
    }
    .vo-code small { font-size: 10px; }
    .vo-code strong { font-size: 20px; letter-spacing: .18em; margin-top: 4px; }
    .vo-valid { margin-top: 10px; font-size: 12px; }
    .voucher-caption { font-size: 12px; padding: 0 6px; }
}
@media (max-width: 380px) {
    .voucher-sheet { padding: 60px 14px 26px; min-height: 480px; }
    .vo-price strong { font-size: 24px; }
    .vo-for { font-size: 16px; }
    .vo-code strong { font-size: 18px; letter-spacing: .14em; }
}

/* Page hero banners */
.page-hero-media--cenik { background-image: url('assets/banners/lektori2_namasteyoga.cz.jpg'); }
.page-hero-media--individ { background-image: url('assets/banners/individu%C3%A1lni_lekce_namasteyoga.cz.jpg'); }
.page-hero-media--kontakt { background-image: url('assets/banners/kontakt_namasteyoga.cz.jpg'); }
.page-hero-media--lekce { background-image: url('assets/banners/lekceakurzy_namasteyoga.cz.jpg'); }
.page-hero-media--lektori { background-image: url('assets/banners/lektori_namasteyoga.cz.jpg'); }
.page-hero-media--masaze { background-image: url('assets/banners/masaze_fyzio_namasteyoga.cz.jpg'); }
.page-hero-media--styly { background-image: url('assets/banners/styly_namasteyoga.cz.jpg'); }

.landing-pick--masaz { --pick-img: url('assets/masaz.png'); }

.notfound-actions { margin-top: var(--space-5); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.input-upper { text-transform: uppercase; }

.delta-plus  { color: var(--success, #2a7a2a); }
.delta-minus { color: var(--danger, #a33); }
