:root {
    --bg: #FBF5EF;
    --sand: #EADCCE;
    --sand-light: #F6EDE4;
    --chocolate: #3B2A26;
    --salmon: #E8907A;
    --salmon-dark: #D97A63;
    --header-h: 63px;
    --fade: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: "Karla", "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--chocolate);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--chocolate);
    line-height: 1.2;
}

a {
    color: var(--chocolate);
    text-decoration: none;
}

a:hover {
    opacity: 0.65;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--fade), border-color var(--fade);
}

.site-header .wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background-color: var(--bg);
    border-bottom-color: var(--sand);
}

.site-header.is-scrolled .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--sand-light);
}

.logo:hover {
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 36px;
    width: auto;
}

.logo-img--dark {
    display: none;
}

.site-header.is-scrolled .logo-img--light,
.site-header.is-open .logo-img--light {
    display: none;
}

.site-header.is-scrolled .logo-img--dark,
.site-header.is-open .logo-img--dark {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 0 auto;
    background-color: var(--sand-light);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.is-open .nav-toggle span {
    background-color: var(--chocolate);
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav a {
    margin-left: 26px;
    padding: 6px 0;
    color: var(--sand-light);
    font-family: "Karla", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-nav a:hover {
    color: var(--salmon);
    opacity: 1;
}

.site-header.is-scrolled .site-nav a {
    color: var(--chocolate);
}

.site-header.is-scrolled .site-nav a:hover {
    color: var(--salmon-dark);
}

.site-nav a.nav-cta {
    margin-left: 34px;
    padding: 8px 20px;
    border-radius: 999px;
    background-color: var(--salmon);
    color: var(--chocolate);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-nav a.nav-cta:hover {
    background-color: var(--salmon-dark);
    color: var(--chocolate);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 132px 0 88px;
    background-color: var(--chocolate);
    color: var(--sand-light);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("assets/hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleX(-1);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(43, 28, 24, 0.55) 0%, rgba(43, 28, 24, 0) 28%),
        linear-gradient(90deg, rgba(43, 28, 24, 0.92) 0%, rgba(43, 28, 24, 0.78) 30%, rgba(43, 28, 24, 0.35) 62%, rgba(43, 28, 24, 0.18) 100%),
        linear-gradient(0deg, rgba(43, 28, 24, 0.5) 0%, rgba(43, 28, 24, 0) 45%);
}

.hero .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 620px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--sand-light);
    font-size: clamp(2.8rem, 5.8vw, 4.75rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.hero h1 em {
    color: var(--salmon);
    font-weight: 400;
}

.hero-lead {
    max-width: 480px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(246, 237, 228, 0.82);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 40px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 31px;
    border: 1px solid rgba(246, 237, 228, 0.55);
    border-radius: 999px;
    background-color: transparent;
    color: var(--sand-light);
    font-family: "Karla", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-link:hover {
    background-color: var(--sand);
    color: var(--chocolate);
    border-color: var(--sand);
    opacity: 1;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid rgba(246, 237, 228, 0.18);
    list-style: none;
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 237, 228, 0.6);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--salmon);
    color: var(--chocolate);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--salmon-dark);
    opacity: 1;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section--alt {
    background-color: var(--sand);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    color: var(--chocolate);
    opacity: 0.75;
    margin-bottom: 40px;
}

.section-subtitle--center {
    text-align: center;
}

.classes {
    display: flex;
    flex-direction: column;
}

.class-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}

.class-row + .class-row {
    border-top: 1px solid var(--sand);
}

.class-row:first-child {
    padding-top: 0;
}

.class-row:last-child {
    padding-bottom: 0;
}

.class-row:nth-child(even) .class-media {
    order: 2;
}

.class-media img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.class-body h4 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.class-body p {
    font-size: 1rem;
    opacity: 0.9;
}

.class-meta {
    list-style: none;
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.class-meta li {
    display: inline;
}

.class-meta li + li::before {
    content: "•";
    margin: 0 8px;
    color: var(--salmon);
}

/* Schedule */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-head,
.schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, 72px);
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.schedule-head {
    padding-top: 0;
    padding-bottom: 4px;
    color: rgba(59, 42, 38, 0.6);
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.schedule-head-name {
    text-align: left;
}

.schedule-row {
    background-color: var(--bg);
    border: 1px solid var(--sand);
    border-radius: 8px;
}

.schedule-name {
    max-width: 8em;
    color: var(--chocolate);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    overflow-wrap: break-word;
    hyphens: auto;
}

.slot {
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}

.slot--empty {
    color: rgba(59, 42, 38, 0.25);
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.about-body p {
    font-size: 1rem;
    opacity: 0.9;
}

.about-body p + p {
    margin-top: 16px;
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    text-align: center;
}

.price-card {
    padding-top: 8px;
}

.price-name {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.price-amount {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
}

.price-amount span {
    display: block;
    font-family: "Karla", sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* Dojazd */
.dojazd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.dojazd-info h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.dojazd-info h3:first-child {
    margin-top: 0;
}

.dojazd-info p {
    font-size: 1rem;
}

.dojazd-info p + p {
    margin-top: 16px;
}

.map-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--chocolate);
    border-radius: 4px;
}

/* CTA section */
.cta {
    background-color: var(--sand);
    color: var(--chocolate);
    text-align: center;
    padding: 72px 0;
}

.cta h2 {
    color: var(--chocolate);
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta p {
    max-width: 540px;
    margin: 0 auto 32px;
    color: var(--chocolate);
    opacity: 0.85;
}

.cta .phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--salmon-dark);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cta .phone-icon {
    width: 22px;
    height: 22px;
}

.cta .phone:hover {
    opacity: 0.7;
}

.cta .privacy {
    margin: 24px auto 0;
    font-size: 0.9rem;
}

.privacy-link {
    text-decoration: underline;
    cursor: default;
}

.privacy-link:hover {
    opacity: 1;
}

/* Footer */
.site-footer {
    background-color: var(--chocolate);
    color: var(--bg);
    padding: 40px 0;
    text-align: center;
}

.site-footer a {
    color: var(--salmon);
}

.site-footer small {
    display: block;
    margin-top: 12px;
    opacity: 0.7;
}

.footer-logo {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 auto 20px;
}

@media (max-width: 720px) {
    :root {
        --header-h: 65px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero {
        align-items: flex-end;
        padding: 64px 0 48px;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(43, 28, 24, 0.2) 0%, rgba(43, 28, 24, 0.55) 40%, rgba(43, 28, 24, 0.94) 100%);
    }

    .hero-media {
        background-position: center 18%;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        gap: 22px;
        margin-top: 32px;
    }

    .hero-meta {
        gap: 10px 22px;
        margin-top: 36px;
    }

    .class-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .class-row:nth-child(even) .class-media {
        order: 0;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-media img {
        height: auto;
        max-width: 360px;
        margin: 0 auto;
    }

    .dojazd {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .schedule-head,
    .schedule-row {
        grid-template-columns: minmax(0, 1fr) repeat(4, 40px);
        gap: 4px;
        padding: 14px;
    }

    .schedule-head {
        padding-top: 0;
    }

    .schedule-name {
        font-size: 1rem;
    }

    .slot {
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header .wrap {
        z-index: 100;
    }

    .site-header .logo,
    .nav-toggle {
        position: relative;
        z-index: 100;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        height: 100vh;
        height: 100svh;
        z-index: 90;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--bg);
        border-bottom: none;
        padding: calc(var(--header-h) + 32px) 24px 48px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--fade), visibility 0s linear var(--fade);
    }

    .site-header.is-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity var(--fade);
    }

    .site-nav a {
        width: 100%;
        max-width: 360px;
        margin-left: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--sand);
        color: var(--chocolate);
        text-align: center;
        font-size: 1.05rem;
    }

    .site-nav a.nav-cta {
        margin: 28px 0 0;
        padding: 10px 24px;
        border-bottom: none;
        text-align: center;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .site-header.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .site-header.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
