:root {
    --green: #196241;
    --teal: #136464;
    --sage: #8ead8a;
    --accent: #c9638e;
    --accent-soft: #f8eaf0;
    --pink: var(--green);
    --pink-dark: var(--teal);
    --blue: var(--sage);
    --ink: #18382d;
    --muted: #64736c;
    --paper: #fff;
    --soft: #f2f7f2;
    --line: #dce8de;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height:100vh; min-height:100dvh; margin:0; display:flex; flex-direction:column; color:var(--ink); background:var(--paper); line-height:1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.notice { background: var(--teal); color: #fff; font-size: 14px; padding: 7px 0; text-align: center; }
.notice button { border:0;background:transparent;color:#fff;text-decoration:underline;font:inherit;cursor:pointer; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.logo img { width: 170px; max-height: 58px; object-fit: contain; }
.menu { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.menu a { text-decoration: none; color: var(--ink); padding: 10px 13px; border-radius: 999px; }
.menu a:hover { background: var(--soft); color: var(--green); }
.menu a[aria-current="page"] { background: var(--soft); color: var(--green); font-weight:700; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: var(--soft); border-radius: 12px; padding: 10px 13px; font-size: 20px; }
.hero { padding: clamp(48px, 8vw, 100px) 0; background: linear-gradient(135deg,#fff 0%,#eef5ef 56%,#f9edf2 100%); }
.hero h1, .page-title { font-size: clamp(34px, 7vw, 68px); line-height: 1.05; margin: 0 0 20px; color: var(--pink); font-weight: 800; }
.hero p { max-width: 720px; font-size: clamp(18px, 3vw, 24px); }
.button { border: 0; border-radius: 999px; padding: 13px 20px; background: var(--green); color: #fff; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button:hover { background: var(--teal); }
.button.secondary { background: #e7f0e8; color: var(--green); }
.content { flex:1 0 auto; padding:42px 0 80px; }
.prose { max-width: 900px; font-size: 17px; }
.prose h2, .prose h3 { line-height: 1.2; margin-top: 1.7em; }
.prose img { border-radius: 18px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 10px 35px rgba(25,98,65,.07); }
.card h2,.card h3 { color:var(--green); }
.card:hover h2,.card:hover h3 { color:var(--accent); }
.home-schedule { margin-top:clamp(56px,8vw,96px); }
.home-schedule__days { display:grid; grid-template-columns:repeat(7,minmax(170px,1fr)); gap:12px; overflow-x:auto; padding:4px 2px 14px; scroll-snap-type:x proximity; }
.home-schedule__day { min-width:170px; scroll-snap-align:start; }
.home-schedule__day h3 { margin:0 0 12px; color:var(--green); font-size:16px; }
.home-schedule__day h3 span { display:block; color:var(--muted); font-size:13px; font-weight:500; }
.home-lesson { position:relative; display:grid; grid-template-columns:auto 1fr; gap:10px; margin-bottom:10px; padding:12px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 24px rgba(25,98,65,.07); }
.home-lesson::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:var(--lesson-color,var(--sage)); }
.home-lesson time { color:var(--teal); font-weight:800; }
.home-lesson strong,.home-lesson small { display:block; line-height:1.3; }
.home-lesson small { margin-top:4px; color:var(--muted); font-size:12px; }
.attendees-link { display:inline; margin:4px 0 0; padding:0; border:0; background:transparent; color:var(--teal); font:inherit; font-size:12px; line-height:1.3; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.attendees-link:hover { color:var(--accent); }
.attendees-link:focus-visible { outline:2px solid var(--sage); outline-offset:3px; border-radius:2px; }
.home-lesson.is-bookable { cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.home-lesson.is-bookable:hover { transform:translateY(-2px); border-color:var(--sage); box-shadow:0 12px 28px rgba(25,98,65,.13); }
.home-lesson.is-bookable:focus-visible { outline:3px solid var(--sage); outline-offset:2px; }
.home-gallery { margin-top: clamp(64px,9vw,110px); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.section-heading h2 { margin:0; font-size:clamp(28px,5vw,48px); line-height:1.08; }
.section-heading > p { max-width:430px; margin:0; color:var(--muted); }
.eyebrow { margin:0 0 4px; color:var(--accent); font-size:14px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:190px; gap:14px; }
.gallery-item { min-width:0; padding:0; border:0; border-radius:20px; overflow:hidden; background:var(--soft); cursor:zoom-in; box-shadow:0 10px 30px rgba(70,45,58,.08); }
.gallery-item--portrait { grid-row:span 2; }
.gallery-item--landscape { grid-column:span 2; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gallery-item:hover img { transform:scale(1.035); }
.gallery-item:focus-visible { outline:3px solid var(--sage); outline-offset:3px; }
.gallery-dialog { width:min(1100px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:0; overflow:hidden; background:#171317; color:#fff; }
.gallery-dialog figure { margin:0; display:grid; grid-template-rows:minmax(0,1fr) auto; max-height:calc(100dvh - 24px); }
.gallery-dialog img { width:100%; max-height:calc(100dvh - 76px); object-fit:contain; }
.gallery-dialog figcaption { padding:12px 56px 14px 18px; }
.gallery-close { position:absolute; z-index:2; top:10px; right:10px; width:42px; height:42px; border:0; border-radius:50%; background:rgba(255,255,255,.92); color:#221b20; font-size:27px; cursor:pointer; }
.schedule-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.schedule-head__actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.schedule { display:grid; grid-template-columns:repeat(7,minmax(0,calc((100% - 12px)/2))); gap:12px; overflow-x:auto; padding:2px 2px 16px; scroll-snap-type:x proximity; }
.day { min-width:0; scroll-snap-align:start; }
.day h2 { font-size: 16px; margin: 0 0 10px; }
.field { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #d9cdd4; border-radius: 11px; background:#fff; font: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.span-2 { grid-column: 1/-1; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; }.consent input { width: 20px; height: 20px; margin-top: 3px; }
dialog { width: min(560px,calc(100% - 24px)); border: 0; border-radius: 22px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(34,25,31,.58); }
.dialog-head { display: flex; justify-content: space-between; gap: 10px; }.dialog-close { border:0;background:#f2eaee;border-radius:50%;width:38px;height:38px;font-size:20px; }
.attendees-list { min-height:54px; margin-top:18px; }
.attendees-list ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.attendees-list li { padding:10px 12px; border-radius:11px; background:var(--soft); }
.flash { padding: 14px 17px; border-radius: 14px; margin-bottom: 20px; background: #e8f7ef; color: #236b49; }.flash.error { background:#fdebed;color:#a72f43; }
.site-footer { flex-shrink:0; margin-top:auto; background:#123f2d; color:#edf5ef; padding:38px 0; }
.footer-row { display:grid; grid-template-columns:1fr auto 1fr 1fr; align-items:center; gap:24px; }
.footer-logo { display:flex; align-items:center; justify-content:center; width:124px; padding:8px 10px; justify-self:center; border-radius:14px; background:#fff; }
.footer-logo img { display:block; width:100%; max-height:70px; object-fit:contain; }
@media (max-width: 1020px) {
    .menu-toggle { display: block; }
    .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height:calc(100vh - 100%); overflow-y:auto; background: #fff; padding: 12px 16px 20px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow:0 14px 30px rgba(55,35,46,.12); }
    .menu.open { display: flex; }.menu a { padding: 12px; }
    .cards { grid-template-columns: 1fr 1fr; }.schedule { grid-template-columns: repeat(7,82vw); }.home-schedule__days { grid-template-columns:repeat(7,78vw); }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column:auto; }
    .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:180px; }
    .footer-row { grid-template-columns:1fr 1fr; }
    .footer-logo { grid-column:1/-1; grid-row:1; }
}
@media (max-width: 520px) {
    .cards { grid-template-columns: 1fr; }.header-row { min-height:68px; }.logo img { width:145px; }
    .section-heading { display:block; }.section-heading > p { margin-top:8px; }
    .gallery-grid { grid-auto-rows:135px; gap:9px; }.gallery-item { border-radius:14px; }
    .schedule-head { align-items:flex-start; flex-wrap:wrap; }.schedule-head__actions { width:100%; justify-content:space-between; }.schedule-head__actions .button { flex:1; text-align:center; }
    .footer-row { grid-template-columns:1fr; text-align:center; }
    .footer-logo { grid-column:auto; }
}
