:root {
    --primary: #1a365d; 
    --primary-gradient: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
    --accent: #d1a13a;
    --accent-hover: #e0b34f;
    --accent-highlight: #f3d88f;
    --accent-button: #d1a13a;
    --bg-light: #fafaf9;
    --text-dark: #334155;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--primary);
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem max(1rem, calc((100% - 1200px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    white-space: nowrap;
}

.nav-links > .btn {
    color: var(--primary);
    padding: 0.65rem 1.1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.25em;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.25em;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:focus-within .dropdown-content {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    flex: 1;
    width: 100%;
}

.hero {
    position: relative;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: left;
    padding: 5rem 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hero-layout {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hero-layout.text-only {
    display: block;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.32;
}

.hero-portrait {
    aspect-ratio: 4 / 5;
    justify-self: end;
    max-height: 500px;
    object-fit: cover;
    object-position: center 42%;
    width: 100%;
}

.quote-tile {
    align-items: center;
    background: var(--primary-gradient);
    border-radius: 8px;
    color: var(--white);
    display: flex;
    flex: 1;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.7rem;
    justify-content: center;
    min-height: 260px;
    padding: 2rem;
    text-align: center;
}

.quote-tile footer {
    color: var(--accent-highlight);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.profile-image {
    flex: 1;
    max-height: 600px;
    object-fit: cover;
}

.training-intro {
    flex-wrap: nowrap;
    margin-bottom: 3rem;
}

.training-intro > div {
    flex: 1.2;
    min-width: 0;
}

.training-photo {
    aspect-ratio: 4 / 3;
    flex: 0.8;
    max-height: 420px;
    min-width: 0;
    object-fit: cover;
    width: auto;
}

.practice-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2rem;
}

.practice-gallery img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.contact-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.contact-profile img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.contact-details {
    margin-top: 1rem;
}

.story-image {
    margin-bottom: 1rem;
    max-height: 260px;
    object-fit: cover;
    width: 100%;
}

.video-dialog {
    border: 0;
    border-radius: 8px;
    margin: auto;
    max-height: 90vh;
    max-width: min(1000px, 94vw);
    padding: 1rem;
    width: 100%;
}

.video-dialog::backdrop {
    background: rgba(15, 23, 42, 0.85);
}

.video-dialog video {
    display: block;
    max-height: 80vh;
    width: 100%;
}

.video-close {
    background: var(--primary);
    border: 0;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-bottom: 0.75rem;
    padding: 0.6rem 1rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    max-width: 850px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background-color: var(--accent-button);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: inherit;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.menu-toggle {
    display: none;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.card-link h3 {
    transition: color 220ms ease;
}

.card-link:hover h3,
.card-link:focus-visible h3 {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.2em;
}

.story-card {
    position: relative;
}

.story-card > a:last-child::after {
    content: "";
    inset: 0;
    position: absolute;
}

.story-card details {
    position: relative;
    z-index: 1;
}

.story-card > a:last-child:focus-visible::after {
    border-radius: 8px;
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grid > .card,
.stats-grid > div,
.practice-gallery img {
    transition: opacity 650ms ease var(--reveal-delay, 0ms), box-shadow 220ms ease, border-color 220ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .grid > .card:hover,
    .grid > .card:focus-within {
        box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.45);
        transform: translateY(-5px);
    }

    .stats-grid > div:hover {
        transform: translateY(-3px);
    }

    .practice-gallery img:hover {
        box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.35);
        transform: scale(1.025);
    }
}

/* KLASA DLA CIEMNYCH SEKCJI Z GRADIENTEM */
.card-dark {
    background: var(--primary-gradient);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(26, 54, 93, 0.5);
}

.card-dark h2, .card-dark p {
    color: var(--white) !important;
}

.card-dark a:not(.btn) {
    color: var(--accent-highlight);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(209, 161, 58, 0.25);
}

fieldset.form-group {
    border: 0;
}

fieldset legend {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.footer {
    background: var(--primary-gradient);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
    color: var(--accent-highlight);
    text-decoration: none;
}

.footer-control {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.table-scroll {
    overflow-x: auto;
}

.privacy-policy table {
    border-collapse: collapse;
    margin: 1.5rem 0;
    min-width: 720px;
    width: 100%;
}

.privacy-policy th,
.privacy-policy td {
    border: 1px solid #cbd5e1;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.privacy-policy th {
    background: #f1f5f9;
}

.privacy-policy h2 {
    margin: 2rem 0 0.75rem;
}

.privacy-policy p {
    margin-bottom: 1rem;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.profile-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.profile-intro > div {
    min-width: 0;
}

.profile-intro .profile-image {
    aspect-ratio: 4 / 5;
    height: auto;
    width: 100%;
}

.split-layout.training-intro {
    flex-wrap: nowrap;
}

.split-layout > div {
    flex: 1;
    min-width: 300px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.img-placeholder {
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 100%;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    font-weight: 600;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--accent-highlight);
}

.section-block {
    margin-top: 4rem;
}

.page-intro {
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
}

.page-intro h1,
.page-intro h2 {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.stats h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stats-grid > div {
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.stats-grid strong {
    color: var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 3.2vw, 2.7rem);
    white-space: nowrap;
}

.training-grid .card {
    display: flex;
    flex-direction: column;
}

.training-grid .card a {
    font-weight: 700;
    margin-top: auto;
    padding-top: 1rem;
}

.training-grid .card-link > span {
    font-weight: 700;
    margin-top: auto;
    padding-top: 1rem;
}

.card ul,
.card ol,
article ul {
    margin-left: 1.5rem;
}

.card h2,
.card h3 {
    margin-bottom: 0.75rem;
}

.split-layout .btn {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-center .btn {
    margin-top: 1rem;
}

.cta {
    text-align: center;
}

.cta .btn {
    margin-top: 1rem;
}

.form-page {
    max-width: 850px;
}

.form-page > h1 {
    margin-bottom: 1rem;
}

.notice {
    border-radius: 6px;
    margin: 1rem 0;
    padding: 1rem;
}

.notice-success {
    background: #dcfce7;
    color: #14532d;
}

.notice-error {
    background: #fee2e2;
    color: #7f1d1d;
}

.small-text {
    color: #475569;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-block {
    text-align: center;
    width: 100%;
}

.visually-hidden {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.contact-details {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-secondary {
    background: var(--primary);
}

.story-card details {
    margin: 1rem 0;
}

.story-card summary,
.newsletter-issue summary {
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.story-card > a {
    display: inline-block;
    font-weight: 700;
    margin-top: 0.5rem;
}

.newsletter-issue {
    border-bottom: 1px solid #cbd5e1;
    margin: 1rem 0;
    padding-bottom: 1rem;
}

.consent-banner {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    bottom: 1rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    left: 1rem;
    max-width: 900px;
    padding: 1.25rem;
    position: fixed;
    right: 1rem;
    z-index: 500;
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner > div {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.consent-banner .btn {
    padding: 0.65rem 1rem;
}

.consent-settings {
    background: transparent;
    border: 0;
    color: var(--accent-highlight);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.newsletter-form {
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.newsletter-download {
    align-self: center;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.newsletter-portrait {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: 77%;
    width: 100%;
}

.sticky-contact {
    display: none;
}

@media (max-width: 1100px) {
    .navbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        align-items: center;
        background: transparent;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        cursor: pointer;
        display: none;
        flex-direction: column;
        gap: 5px;
        height: 42px;
        justify-content: center;
        width: 46px;
    }

    .menu-toggle span {
        background: var(--primary);
        display: block;
        height: 2px;
        width: 22px;
    }

    .nav-links {
        align-items: stretch;
        background: var(--white);
        display: flex;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
    }

    .js-enabled .menu-toggle {
        display: flex;
    }

    .js-enabled .nav-links {
        display: none;
    }

    .js-enabled .nav-links.is-open {
        display: flex;
    }

    .nav-links > a,
    .dropdown > a {
        display: block;
        padding: 0.75rem 0;
    }

    .dropdown {
        display: block;
    }

    .dropdown-content {
        box-shadow: none;
        display: block;
        min-width: 0;
        padding-left: 1rem;
        position: static;
    }

    .nav-links .btn {
        margin-top: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body {
        padding-bottom: 4.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-video {
        display: none;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-portrait {
        aspect-ratio: 4 / 3;
        justify-self: center;
        max-height: 300px;
        max-width: 420px;
        object-position: center 38%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

    .hero p {
        font-size: 1.15rem;
    }

    .btn {
        margin: 0.35rem 0;
        text-align: center;
        width: 100%;
    }

    .btn-outline {
        margin-left: 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .practice-gallery {
        gap: 0.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card {
        padding: 1.5rem;
    }

    .split-layout {
        gap: 1.5rem;
    }

    .profile-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .split-layout > div {
        flex-basis: 100%;
        min-width: 0;
        width: 100%;
    }

    .split-layout.training-intro {
        flex-wrap: wrap;
    }

    .training-intro > div,
    .training-intro .training-photo {
        flex-basis: 100%;
        max-width: none;
        width: 100%;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-profile {
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .section-block {
        margin-top: 2.5rem;
    }

    .navbar .logo {
        font-size: 1.3rem;
    }

    .sticky-contact {
        background: var(--accent-hover);
        bottom: 0;
        color: var(--primary);
        display: block;
        font-weight: 700;
        left: 0;
        padding: 0.9rem 1rem;
        position: fixed;
        right: 0;
        text-align: center;
        text-decoration: none;
        z-index: 200;
    }

    .footer {
        padding-bottom: 5rem;
    }
}

@media (max-width: 700px) {
    .consent-banner {
        align-items: stretch;
        bottom: 4rem;
        flex-direction: column;
        gap: 0.75rem;
        left: 0.5rem;
        padding: 1rem;
        right: 0.5rem;
    }

    .consent-banner > div {
        display: flex;
    }

    .consent-banner .btn {
        flex: 1;
        margin: 0;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hero-video {
        display: none;
    }

}