:root {
    --bg: #070b16;
    --surface: #10182d;
    --surface-soft: #16213d;
    --text: #e8eefc;
    --muted: #a8b2cc;
    --line: #233253;
    --accent: #14f1d9;
    --accent-2: #6e7bff;
    --danger: #ff4d6d;
    --radius: 14px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -5%, rgba(20, 241, 217, 0.14), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(110, 123, 255, 0.2), transparent 48%),
        var(--bg);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.65em;
}

p,
li {
    color: var(--muted);
}

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

a:hover,
a:focus {
    color: #6fffe9;
}

.container {
    width: min(1140px, 100% - 2rem);
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(7, 11, 22, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.menu-open {
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: #d9e4ff;
}

.site-logo img {
    display: block;
    width: clamp(127.4px, 16.38vw, 200.2px);
    height: auto;
}

header nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

header nav a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: #d9e4ff;
    font-size: 0.93rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header nav a:hover {
    background: rgba(20, 241, 217, 0.14);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    z-index: 33;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
    margin-top: 4px;
}

header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(4, 8, 16, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

main {
    padding: calc(2rem + 68px) 0 4rem;
}

section {
    margin-bottom: 1.5rem;
    background: linear-gradient(160deg, rgba(17, 24, 43, 0.94), rgba(11, 16, 31, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 2vw, 2rem);
    box-shadow: var(--shadow);
}

section h1,
section h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(7, 11, 22, 0.92) 30%, rgba(7, 11, 22, 0.42) 100%),
        url('../../assets/img/hero-bg-01.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -110px -130px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 241, 217, 0.35) 0%, rgba(20, 241, 217, 0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    align-items: center;
    width: min(1140px, 100% - 2rem);
    margin: 0 auto;
}
.hero .text-block {
    max-width: 64ch;
}

.hero .lead {
    font-size: clamp(1.06rem, 1.7vw, 1.3rem);
    color: #ecf4ff;
    font-weight: 500;
}

.hero-cta {
    display: inline-flex;
    margin-top: 0.95rem;
}

#zakres .columns {
    column-count: 2;
    column-gap: clamp(1.2rem, 3vw, 2.4rem);
}

#zakres ol,
#zakres ul,
#co-zawiera-cena ul,
#bur ul,
#prowadzacy ul {
    padding-left: 1.15rem;
}

#zakres li {
    break-inside: avoid;
    margin-bottom: 0.45rem;
}

.courses-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-card {
    border-radius: var(--radius);
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.course-card.weekend {
    background: linear-gradient(155deg, rgba(20, 241, 217, 0.18), rgba(22, 33, 61, 0.95));
}

.course-card.weekday {
    background: linear-gradient(155deg, rgba(110, 123, 255, 0.26), rgba(22, 33, 61, 0.94));
}

.course-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.18rem 0.58rem;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.course-dates,
.course-price {
    color: #f5f8ff;
    padding-bottom: 0.9rem;
    padding-top: 0.6rem;
}

.course-dates p {
    color: #f5f8ff;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.course-terms {
    padding-left: 1rem;
    margin: 0 0 0.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
}

.course-terms li {
    color: #f5f8ff;
    line-height: 1.5;
}

.course-no-dates {
    color: #f5f8ff;
    font-weight: 600;
}

.course-card h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.course-card .btn-signup {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-signup,
.btn-submit,
form button {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #d99524 0%, #c9851a 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 1.05rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-signup:hover,
.btn-submit:hover,
form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-signup:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    filter: none;
}

.form-status {
    margin: 0.4rem 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.form-status.is-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.form-status.success {
    color: #d7fff3;
    background: rgba(20, 241, 217, 0.16);
    border-color: rgba(20, 241, 217, 0.34);
}

.form-status.error {
    color: #ffd7df;
    background: rgba(255, 77, 109, 0.2);
    border-color: rgba(255, 77, 109, 0.42);
}

form {
    max-width: 720px;
    display: grid;
    gap: 0.48rem;
}

form label {
    margin-top: 0.65rem;
    color: #dbe8ff;
    font-weight: 500;
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

form input,
form select,
form textarea,
.modal-content form input,
.modal-content form select,
.modal-content form textarea {
    background: rgba(6, 10, 21, 0.86);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
}

form input:focus,
form select:focus,
form textarea:focus,
.modal-content form input:focus,
.modal-content form select:focus,
.modal-content form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 241, 217, 0.17);
    outline: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    background: rgba(2, 5, 14, 0.72);
    backdrop-filter: blur(7px);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(560px, 92vw);
    background: linear-gradient(145deg, #121d34, #0c1324);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 1.4rem;
    position: relative;
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    right: 14px;
    top: 10px;
    color: #d9e4ff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #97a5c8;
    background: rgba(6, 10, 20, 0.88);
}

.contact-details {
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem 2rem;
}

.contact-column {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.contact-details p {
    margin-bottom: 0.25rem;
}

.contact-details a {
    font-weight: 600;
}

.bur-links {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
}

#galeria {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: 0.6rem;
}

#galeria > h2 {
    margin-bottom: 0.8rem;
}

.gallery-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 120px;
}

.gallery-item {
    grid-column: span 4;
    grid-row: span 2;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f172c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.gallery-item-lg {
    grid-column: span 8;
    grid-row: span 3;
}

.gallery-item-tall {
    grid-row: span 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.08);
}

#prowadzacy {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: 0.4rem;
}

#prowadzacy > h2 {
    text-align: right;
    margin-bottom: 0.4rem;
}

.testimonial-card {
    position: relative;
    width: 100vw;
    margin-top: 4.6rem;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 0;
    background: linear-gradient(145deg, #d99524 0%, #c9851a 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.33);
    color: #fff;
}

.testimonial-card::after {
    content: "\201D";
    position: absolute;
    top: 0.6rem;
    right: 1.4rem;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 8vw, 5.2rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-avatar-wrap {
    position: absolute;
    top: -52px;
    left: 1rem;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    background: #17213b;
}

.testimonial-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding-left: 188px;
}

.testimonial-inner {
    width: min(1140px, 100% - 2rem);
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.testimonial-card h3,
.testimonial-card p,
.testimonial-card li {
    color: #fff;
}

.testimonial-card h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.testimonial-quote {
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.testimonial-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.7rem 0 0.9rem;
    padding-left: 0;
    list-style: none;
}

.testimonial-points li {
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.34rem 0.78rem;
    font-size: 0.92rem;
}

#lokalizacja-kursu {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: 0.4rem;
}

#lokalizacja-kursu > h2,
#lokalizacja-kursu > p {
    text-align: center;
}

#lokalizacja-kursu .location-map {
    margin-top: 0.85rem;
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.map-consent-placeholder {
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.1rem 1rem;
    background:
        linear-gradient(160deg, rgba(17, 24, 43, 0.94), rgba(11, 16, 31, 0.94));
    border: 1px solid var(--line);
}

.map-consent-placeholder .btn-signup {
    width: min(320px, calc(100% - 2rem));
}

.map-consent-placeholder.is-hidden {
    display: none !important;
}

#lokalizacja-kursu iframe {
    width: 100% !important;
    min-height: 420px;
    border: 0;
    display: block;
}

#lokalizacja-kursu iframe[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(8, 12, 24, 0.95);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    gap: 0.8rem 1rem;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    color: #dbe8ff;
    flex: 1 1 420px;
}

.cookie-banner a {
    color: var(--accent);
    font-weight: 600;
}

.cookie-banner button {
    flex-shrink: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    #zakres .columns {
        column-count: 1;
    }

    .testimonial-avatar-wrap {
        width: 122px;
        height: 122px;
        top: -42px;
        left: 0;
    }

    .testimonial-content {
        padding-left: 0;
        padding-top: 5rem;
    }

    .testimonial-card {
        margin-top: 3.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
    }

    .gallery-item,
    .gallery-item-lg,
    .gallery-item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    #lokalizacja-kursu iframe {
        min-height: 320px;
    }

    .map-consent-placeholder {
        min-height: 0;
        padding: 0.9rem 0.75rem;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
        padding: 0.7rem 0;
    }

    .site-logo img {
        width: clamp(109.2px, 36.4vw, 154.7px);
    }

    .menu-toggle {
        display: inline-flex;
    }

    header nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 84vw);
        z-index: 60;
        display: flex;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 5.1rem 1rem 1rem;
        background: rgba(10, 14, 26, 0.98);
        border-right: 1px solid var(--line);
        transform: translateX(-108%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        min-height: 100vh;
    }

    header nav a {
        display: block;
        width: 100%;
        border-radius: 10px;
        white-space: normal;
    }

    header.menu-open nav {
        transform: translateX(0);
    }

    body.menu-open {
        overflow: hidden;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-terms {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-banner button {
        width: 100%;
    }
}
