:root {
    --ink: var(--studio-ink);
    --muted: var(--studio-muted);
    --deep: var(--studio-deep);
    --green: var(--studio-accent);
    --paper: var(--studio-background);
    --white: var(--studio-surface);
    --sage: var(--studio-sage);
    --line: var(--studio-line);
    --serif: var(--studio-serif);
    --sans: var(--studio-sans);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.033em; }
h2 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 64px, 1160px); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; translate: 0 -160%; background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { translate: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 79px; gap: 1.5rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font: 600 1.55rem/1 var(--serif); }
.brand img { border-radius: 50%; background: var(--sage); }
.brand small { display: block; margin-top: .38rem; font: 700 .72rem/1 var(--sans); color: var(--muted); }
.main-nav { display: flex; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 800; }
.main-nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .68rem 1.3rem; border: 1px solid transparent; border-radius: 8px; background: var(--deep); color: var(--white); font-size: .92rem; line-height: 1.35; font-weight: 800; text-align: center; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { background: var(--green); }
.button-small { min-height: 44px; }
.button-outline { background: transparent; border-color: var(--studio-control); color: var(--deep); }
.button-outline:hover { background: var(--sage); border-color: var(--green); }

.hero {
    color: var(--white);
    background: var(--studio-forest);
    border-bottom: 1px solid var(--deep);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(1.5rem, 5vw, 4.25rem); align-items: center; padding-block: clamp(2.6rem, 5.1vw, 5rem); }
.eyebrow { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.35rem; color: var(--studio-on-dark); font-size: .85rem; font-weight: 800; }
.eyebrow::before { content: ''; flex: 0 0 1.7rem; height: 1px; background: currentColor; }
.hero h1 { max-width: 12ch; font-size: clamp(2.5rem, 5.15vw, 4.6rem); line-height: 1.07; text-wrap: balance; }
.hero-description { max-width: 27rem; margin-top: 1.4rem; font-size: clamp(1rem, 1.55vw, 1.15rem); color: var(--studio-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-actions .button { background: var(--white); color: var(--deep); }
.hero-actions .button:hover { background: var(--studio-sage-strong); }
.hero-actions .button-outline { background: transparent; border-color: var(--studio-on-dark); color: var(--white); }
.hero-actions .button-outline:hover { background: var(--sage); border-color: var(--sage); color: var(--deep); }
.hero-address { display: inline-block; margin-top: 1.35rem; color: var(--studio-on-dark); font-size: .9rem; font-weight: 700; }
.hero-image { margin: 0; min-width: 0; padding: .55rem; border: 1px solid color-mix(in srgb, var(--studio-on-dark) 55%, transparent); border-radius: 1.55rem; background: color-mix(in srgb, var(--studio-on-dark) 15%, transparent); }
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.17; object-fit: cover; object-position: center; border-radius: 1.05rem; background: var(--sage); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .58fr); align-items: end; gap: .8rem 2.5rem; margin-bottom: 2rem; }
.section-heading p { max-width: 27rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.65rem; }
.filter { min-height: 44px; padding: .42rem 1rem; border: 1px solid var(--studio-control); border-radius: 100px; color: var(--deep); background: transparent; font-size: .9rem; font-weight: 800; }
.filter:hover { border-color: var(--green); }
.filter[aria-pressed='true'] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.catalog-card { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.catalog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .9rem; padding: clamp(1rem, 2vw, 1.5rem); }
.card-body h3 { font-size: clamp(1.12rem, 1.7vw, 1.38rem); letter-spacing: -.024em; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-description { color: var(--muted); font-size: .91rem; }
.card-pricing { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .65rem; }
.card-pricing strong { color: var(--deep); font-size: 1.08rem; font-weight: 800; }
.card-pricing del { color: var(--muted); font-size: .86rem; }
.price-indicator { color: var(--muted); font-size: .875rem; }
.card-button { align-self: flex-start; min-height: 44px; }
.training { background: var(--sage); border-block: 1px solid var(--line); }

.booking { display: grid; grid-template-columns: 1fr 1.55fr; align-items: start; gap: clamp(2rem, 7vw, 6rem); }
.booking-intro > p { margin-block: 1.25rem; color: var(--muted); max-width: 25rem; }
.booking-intro > a { font-weight: 800; }
.booking-form { display: grid; gap: 1.1rem; padding: clamp(1.15rem, 4vw, 2.5rem); border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 24px var(--studio-shadow); min-width: 0; }
.booking-form label, .booking-form legend { display: grid; gap: .37rem; font-weight: 800; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-form input:not([type=checkbox]), .booking-form select, .booking-form textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--studio-control); border-radius: 7px; color: var(--ink); background: var(--white); padding: .58rem .7rem; font-size: 1rem; font-weight: 600; }
.booking-form ::placeholder { color: var(--muted); opacity: 1; }
.booking-form select { appearance: none; padding-inline-end: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
.schedule { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .75rem; }
.schedule legend { display: block; padding-inline: .35rem; }
.date-field { max-width: 15rem; }
.booking-hint { font-size: .87rem; color: var(--muted); }
.schedule .booking-hint { margin-top: .55rem; }
.time-slots { display: flex; flex-wrap: wrap; gap: .45rem; }
.time-slots:not(:empty) { margin-top: .55rem; }
.time-slot { border: 1px solid var(--studio-control); border-radius: 7px; background: var(--white); color: var(--ink); min-height: 44px; padding: .3rem .6rem; font-weight: 800; }
.time-slot:hover { border-color: var(--deep); }
.time-slot[aria-pressed='true'] { background: var(--deep); color: var(--white); }
.time-slot:disabled { cursor: default; background: var(--paper); border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.optional-fields summary { cursor: pointer; font-size: .9rem; font-weight: 800; }
.optional-fields label { margin-top: .8rem; }
.booking-form .consent { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; }
.consent input { inline-size: 1.1rem; block-size: 1.1rem; flex-shrink: 0; accent-color: var(--green); margin-top: .15rem; }
.submit-button { justify-self: start; }
.submit-button:disabled { opacity: .67; cursor: progress; }
.form-message { padding: .7rem .85rem; border-radius: 7px; font-weight: 700; background: var(--sage); }
.form-message[data-type='error'] { background: var(--studio-danger-soft); color: var(--studio-danger); }

.contacts { background: var(--studio-sage-strong); border-top: 1px solid var(--line); }
.contacts-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.contacts address { font-style: normal; }
.contacts p { margin-top: 1rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.social-link { border: 1px solid var(--studio-control); border-radius: 8px; padding: .55rem .75rem; font-weight: 800; text-decoration: none; }
.social-link:hover { text-decoration: underline; }
.social-link span { color: var(--muted); font-weight: 600; }
.map-card { display: grid; justify-items: center; align-content: center; align-self: stretch; gap: .8rem; padding: 1rem; min-height: 12rem; border-radius: 13px; background: var(--white); font-weight: 800; }
.map-canvas { width: 100%; min-height: 15rem; border-radius: 8px; overflow: hidden; }
.site-footer { background: var(--deep); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; padding-block: 1.35rem; font-size: .875rem; }

@media (max-width: 920px) {
    .shell { width: calc(100% - 48px); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 124px; }
    .shell { width: calc(100% - 32px); }
    .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; min-height: auto; padding-top: .7rem; }
    .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: clamp(1.2rem, 7vw, 2.6rem); font-size: .9rem; }
    .hero-inner, .section-heading, .booking, .contacts-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { padding-block: 2.2rem 1.5rem; }
    .hero h1 { font-size: clamp(2.1rem, 9vw + .4rem, 3.8rem); }
    .hero-description { margin-top: .9rem; }
    .hero-actions { margin-top: 1.4rem; }
    .hero-address { margin-top: 1.1rem; }
    .hero-image img { aspect-ratio: 1.5; }
    .section-heading { margin-bottom: 1.4rem; }
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--studio-control) transparent; padding: .3rem; margin-inline: -.3rem; }
    .filters .filter { flex: 0 0 auto; white-space: nowrap; }
    .booking-form { gap: .9rem; }
    .booking-form .date-field { max-width: none; }
    .time-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .time-slot { min-height: 46px; }
    .submit-button { justify-self: stretch; }
}

@media (max-width: 480px) {
    .catalog-grid, .form-row { grid-template-columns: 1fr; }
    .catalog-grid { gap: 1.1rem; }
}

@media (max-width: 360px) {
    .header-inner { gap: .25rem .45rem; }
    .brand { gap: .38rem; font-size: 1.23rem; }
    .brand img { width: 34px; height: 34px; }
    .brand small { font-size: .65rem; }
    .header-inner .button { padding-inline: .75rem; }
    .main-nav { gap: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
