/*--------------------------------------------------------------
# Oyama Karate – Responsive Stylesheet
# Breakpoints:
#   0    – 576   (mobile base, full-screen mobile nav)
#   577  – 768   (small tablet, side panel mobile nav)
#   769  – 991   (tablet, side panel mobile nav)
#   992  – 1200  (small desktop, full nav)
#   1201 – 1380  (mid desktop)
#   1381 – 1680  (large desktop)
#   1681+        (extra large desktop)
--------------------------------------------------------------*/


/* ==========================================================================
   MOBILE NAVIGATION – wspólne style + warianty per-breakpoint
   ========================================================================== */

/* Pokazuje hamburger, mobile-nav od 0 do 991px (nadpisanie w 992+). */
.nav-open {
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--ok-bg, #0e0e0e);
    z-index: 9999;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform .45s cubic-bezier(.4, 0, .2, 1),
        visibility 0s linear .45s;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 60px rgba(0, 0, 0, .55);
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.mobile-nav__inner {
    width: 100%;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1.5rem;
}

/* Logo w lewym górnym rogu wysuwanego panelu */
.mobile-nav__top {
    display: flex;
    align-items: center;
    padding-right: 3rem;
}

.mobile-nav__logo {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

.mobile-nav__logo img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}

.mobile-nav__logo .logo-secondary img {
    max-height: 36px !important;
    height: 36px !important;
}

/* Przycisk zamykania (X) */
.nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: background .25s ease, border-color .25s ease;
}

.nav-close:hover {
    background: var(--ok-accent);
    border-color: var(--ok-accent);
}

.nav-close::before,
.nav-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
}

.nav-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Menu mobile */
.mobile-nav__menu {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.mobile-nav__menu .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.mobile-nav__menu .main-menu>li {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav__menu .main-menu>li:last-child {
    border-bottom: none;
}

.mobile-nav__menu .main-menu li a {
    display: block;
    padding: .9rem .25rem;
    font-family: var(--nf-font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: #fff;
    text-decoration: none;
    transition: color .25s ease, padding-left .25s ease;
}

.mobile-nav__menu .main-menu li a:hover,
.mobile-nav__menu .main-menu li a:focus {
    color: var(--ok-accent);
    padding-left: .75rem;
}

.mobile-nav__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 .5rem .85rem;
    border-left: 2px solid var(--ok-accent);
}

.mobile-nav__menu .sub-menu li a {
    font-size: .9rem;
    font-weight: 400;
    padding: .55rem .25rem;
    color: rgba(255, 255, 255, .75);
}

/* Sekcja dolna: telefon + przyciski CTA */
.mobile-nav__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-nav__phone {
    display: inline-flex !important;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: .02em;
}

.mobile-nav__phone i {
    color: var(--ok-accent);
    font-size: .95rem;
}

.mobile-nav__cta {
    display: flex;
    gap: .65rem;
}

.mobile-nav__cta .btn {
    flex: 1;
    padding: .8rem 1rem;
    font-size: .75rem;
    letter-spacing: .08em;
    text-align: center;
    justify-content: center;
}

/* Blokada scrolla pod otwartym menu */
body.nav-locked {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}


/* ==========================================================================
   BREAKPOINT 1 — 0–576 px (mobile, baza)
   Pełnoekranowy mobile-nav, najmocniej skompresowana typografia i odstępy.
   ========================================================================== */

@media (max-width: 576px) {

    html {
        scroll-padding-top: 70px;
    }

    body {
        font-size: 14px;
    }

    p {
        font-size: .9rem;
        line-height: 1.65;
    }

    .container-big,
    .container-mid {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* HEADER */
    .site-header {
        background: rgba(0, 0, 0, .55);
    }

    .header-inner {
        padding: .85rem 0;
        padding-left: 0;
        gap: .5rem;
        justify-content: space-between;
    }

    .header-logo {
        position: static;
        top: auto;
        left: auto;
        gap: .5rem;
        max-width: 60%;
    }

    .header-logo img {
        height: 120px;
        min-height: unset;
    }

    .site-header.is-scrolled .header-logo img {
        height: 40px;
    }

    .logo-secondary img {
        max-height: 32px;
    }

    .header-nav,
    .header-cta,
    .header-phone {
        display: none;
    }

    .nav-open {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 38px;
        height: 38px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-open span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        margin: 0 auto;
    }

    /* Mobile-nav: pełnoekranowy 0–576 */
    .mobile-nav {
        width: 100vw;
        max-width: 100vw;
    }

    .mobile-nav__inner {
        padding: 1.25rem 1.25rem 1.75rem;
    }

    .mobile-nav__logo img {
        height: 48px !important;
    }

    .mobile-nav__menu .main-menu li a {
        font-size: 1rem;
        padding: .5rem .25rem;
    }

    .mobile-nav__cta {
        flex-direction: column;
        gap: .5rem;
    }

    .mobile-nav__cta .btn {
        width: 100%;
    }

    /* HERO */
    .hero {
        height: 100svh;
        min-height: 560px;
    }

    .hero-box {
        padding: 6rem 0 2rem;
    }

    .hero-pretitle {
        font-size: .55rem;
        margin-bottom: .75rem;
        padding: .3rem .85rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: .85rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        gap: .65rem;
        align-items: stretch;
    }

    .btn-hero-solid,
    .btn-hero-outline {
        padding: .75rem 1.25rem;
        font-size: .7rem;
        justify-content: center;
        text-align: center;
    }

    .hero .swiper-pagination {
        bottom: 1.5rem !important;
        padding-left: 1rem;
    }

    .hero .swiper-pagination-bullet {
        width: 18px;
    }

    .hero .swiper-pagination-bullet-active {
        width: 28px;
    }

    /* SECTION HEAD */
    .section-pretitle {
        font-size: .55rem;
        padding: .3rem .85rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .offer .section-title {
        max-width: 100%;
    }

    /* SERVICES */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        padding: 1.5rem 1.25rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-desc {
        font-size: .85rem;
    }

    /* ABOUT */
    .about {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-collage {
        order: -1;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 130px 130px 130px;
        gap: 6px;
    }

    .about-collage-item--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .about-collage-item--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .about-collage-item--3 {
        grid-column: 1;
        grid-row: 2;
    }

    .about-collage-item--4 {
        grid-column: 2;
        grid-row: 2;
    }

    .about-collage-item--5 {
        grid-column: 1;
        grid-row: 3;
    }

    .about-collage-item--6 {
        grid-column: 2;
        grid-row: 3;
    }

    .about-collage-item {
        border-radius: .75rem;
    }

    .about-info .about-title {
        font-size: 1.55rem;
    }

    .about-info .about-content,
    .about-info .about-content p {
        font-size: .88rem;
        line-height: 1.7;
    }

    .about-counters {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.75rem;
        padding-top: 1.5rem;
    }

    .counter-item {
        padding: .85rem 0;
        border-right: none;
        border-bottom: 1px solid var(--ok-border);
    }

    .counter-item:last-child {
        border-bottom: none;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: .55rem;
    }

    /* OFFER */
    .offer {
        padding: 3rem 0;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 1px;
        margin-bottom: 2.5rem;
    }

    .offer-card {
        padding: 1.75rem 1.5rem;
    }

    .offer-title {
        font-size: 1.05rem;
    }

    .offer-desc {
        font-size: .82rem;
    }

    .offer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }

    .stat-item {
        padding: 1rem .5rem;
        border-right: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--ok-border);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: .55rem;
    }

    /* INSTRUCTORS */
    .instructors {
        padding: 3rem 0;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .instructors-nav {
        margin-top: 1.75rem;
        gap: .75rem;
    }

    .swiper-button-prev.instructors-prev,
    .swiper-button-next.instructors-next {
        width: 38px;
        height: 38px;
    }

    /* PROJECTS / REALIZATIONS */
    .realizations {
        padding: 3rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .project-item img {
        min-height: 220px;
    }

    .project-title {
        font-size: 1rem;
        padding: .9rem 1rem;
    }

    .realizations-more {
        margin-top: 2rem;
    }

    /* BRANCHES */
    .branches,
    .branches-entries {
        padding: 3rem 0;
    }

    .branches-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .branches-grid,
    .branches-grid--4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .branch-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .branch-body {
        padding: 1.25rem;
        gap: .65rem;
    }

    .branch-name {
        font-size: 1.15rem;
    }

    .branch-row {
        font-size: .8rem;
    }

    /* GALLERY / EVENTS */
    .gallery-section,
    .news-archive-section {
        padding: 3rem 0;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .event-card-title {
        font-size: 1rem;
    }

    .event-card-excerpt {
        font-size: .8rem;
    }

    /* PAGE TEMPLATES */
    .page-hero {
        padding: 6rem 0 2.5rem;
    }

    .page-hero__title {
        font-size: 1.75rem;
    }

    .page-hero__meta {
        font-size: .65rem;
    }

    .page-title {
        padding: 6rem 0 3rem;
    }

    .page-title .container-mid {
        flex-direction: column;
        gap: 1rem;
    }

    .page-entry {
        padding: 2.5rem 0 4rem;
    }

    .entry-content p {
        font-size: .9rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .entry-content h3 {
        font-size: 1.2rem;
        margin: 1.75rem 0 .75rem;
    }

    .entry-content .wp-block-gallery.has-nested-images {
        columns: 1;
    }

    #about_cols {
        gap: 1.5rem !important;
        margin-top: 2rem;
    }

    #ec_btns {
        margin: 2.5rem 0 1.5rem;
        gap: .65rem;
    }

    #ec_btns .wp-block-button__link {
        padding: .65rem 1.25rem;
        font-size: .75rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* CONTACT */
    .contact-section {
        padding: 3rem 0;
    }

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

    .contact-intro {
        font-size: .88rem;
        margin-bottom: 1.5rem;
    }

    .contact-form-wrap {
        padding: 1.75rem 1.25rem;
        border-radius: 1rem;
    }

    .wpcf7 form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wpcf7 label {
        font-size: .58rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        font-size: 16px;
        /* iOS – brak auto-zoomu na focus */
    }

    .wpcf7 input[type="submit"],
    .contact-form-wrap .wpcf7 input[type="submit"] {
        width: 100%;
        padding: .85rem 1.25rem;
        font-size: .65rem;
    }

    /* PARTNERS */
    .partners-section {
        padding: 3rem 0;
    }

    .partners-section .section-head {
        margin-bottom: 2rem;
    }

    .partners-slide {
        height: 56px;
    }

    .partner-logo {
        max-height: 40px;
    }

    /* FILIA INFO */
    .filia-info-section {
        padding: 3rem 0;
    }

    .filia-info-grid {
        grid-template-columns: 1fr;
    }

    .filia-info-card {
        padding: 1.75rem 1.5rem;
    }

    /* RECENT POSTS */
    .recent-posts-section {
        padding: 3rem 0;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .recent-posts-section .section-title {
        font-size: 1.4rem;
    }

    /* NEWS PAGINATION */
    .news-pagination {
        margin-top: 2.5rem;
        gap: .35rem;
    }

    .news-pagination a,
    .news-pagination span {
        width: 34px;
        height: 34px;
        font-size: .78rem;
        border-width: 1px;
    }

    /* FOOTER */
    .footer-widgets {
        padding: 2.5rem 0 2rem;
    }

    .footer-widget-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fw-col--logo img {
        max-width: 160px;
    }

    .fw-site-tagline {
        font-size: 1.15rem;
    }

    .footer-bottom-bar {
        padding: 1rem 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .85rem;
    }

    .footer-copy,
    .footer-dev {
        font-size: .68rem;
    }

    .fw-col--social .fw-social {
        justify-content: flex-start;
        align-items: flex-start;
    }
}


/* ==========================================================================
   BREAKPOINT 2 — 577–768 px (mały tablet, panel mobile-nav 340px)
   ========================================================================== */

@media (min-width: 577px) and (max-width: 768px) {

    html {
        scroll-padding-top: 80px;
    }

    body {
        font-size: 14.5px;
    }

    p {
        font-size: .92rem;
    }

    .container-big,
    .container-mid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* HEADER */
    .header-inner {
        padding: 1rem 0;
        padding-left: 0;
        gap: 1rem;
    }

    .header-logo {
        position: static;
        gap: .85rem;
    }

    .header-logo img {
        height: 120px;
        min-height: unset;
    }

    .site-header.is-scrolled .header-logo img {
        height: 44px;
    }

    .header-nav,
    .header-cta,
    .header-phone {
        display: none;
    }

    .nav-open {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-open span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        margin: 0 auto;
    }

    /* Mobile-nav: panel 340px od lewej */
    .mobile-nav {
        width: 340px;
        max-width: 340px;
    }

    .mobile-nav__menu .main-menu li a {
        font-size: 1rem;
        padding: .5rem .25rem;
    }

    .mobile-nav__inner {
        padding: 1.5rem 1.5rem 2rem;
    }

    /* HERO */
    .hero {
        height: 100svh;
        min-height: 600px;
    }

    .hero-box {
        padding: 7rem 0 3rem;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
        max-width: 90%;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: .92rem;
        max-width: 90%;
        margin-bottom: 1.75rem;
    }

    .hero-cta {
        gap: .75rem;
    }

    .btn-hero-solid,
    .btn-hero-outline {
        padding: .8rem 1.5rem;
        font-size: .72rem;
    }

    /* SECTION */
    .section-title {
        font-size: 1.85rem;
    }

    /* SERVICES */
    .services {
        padding: 3.5rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .service-item {
        padding: 1.75rem 1.5rem;
    }

    /* ABOUT */
    .about {
        padding: 3.5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .about-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 170px 170px 170px;
        gap: 8px;
    }

    .about-collage-item--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .about-collage-item--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .about-collage-item--3 {
        grid-column: 1;
        grid-row: 2;
    }

    .about-collage-item--4 {
        grid-column: 2;
        grid-row: 2;
    }

    .about-collage-item--5 {
        grid-column: 1;
        grid-row: 3;
    }

    .about-collage-item--6 {
        grid-column: 2;
        grid-row: 3;
    }

    .about-info .about-title {
        font-size: 1.85rem;
    }

    .about-counters {
        margin-top: 2rem;
    }

    .counter-number {
        font-size: 2.1rem;
    }

    /* OFFER */
    .offer {
        padding: 3.5rem 0;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-card {
        padding: 2rem 1.5rem;
    }

    .offer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    /* INSTRUCTORS */
    .instructors {
        padding: 3.5rem 0;
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* PROJECTS */
    .realizations {
        padding: 3.5rem 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-item img {
        min-height: 240px;
    }

    /* BRANCHES */
    .branches,
    .branches-entries {
        padding: 3.5rem 0;
    }

    .branches-grid,
    .branches-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* GALLERY */
    .gallery-section,
    .news-archive-section {
        padding: 3.5rem 0;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* PAGE */
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .page-hero__title {
        font-size: 2.1rem;
    }

    .page-title .container-mid {
        flex-direction: column;
        align-items: center;
        gap: .85rem;
    }

    .page-entry {
        padding: 3rem 0 5rem;
    }

    .entry-content h2 {
        font-size: 1.8rem;
    }

    .entry-content h3 {
        font-size: 1.35rem;
    }

    .entry-content .wp-block-gallery.has-nested-images {
        columns: 2;
    }

    /* CONTACT */
    .contact-section {
        padding: 3.5rem 0;
    }

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

    .contact-form-wrap {
        padding: 2.25rem 2rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        font-size: 16px;
    }

    /* PARTNERS */
    .partners-section {
        padding: 3.5rem 0;
    }

    /* FILIA INFO */
    .filia-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* RECENT POSTS */
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* FOOTER */
    .footer-widget-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    /* Logo – cała szerokość; reszta kolumn po 50% (2 w rzędzie) */
    .footer-widget-grid .fw-col--logo {
        grid-column: 1 / -1;
    }

    .fw-col--logo img {
        max-width: 180px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* ==========================================================================
   BREAKPOINT 3 — 769–991 px (tablet, panel mobile-nav 340px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 991px) {

    html {
        scroll-padding-top: 85px;
    }

    body {
        font-size: 15px;
    }

    p {
        font-size: .95rem;
    }

    .container-big,
    .container-mid {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* HEADER */
    .header-inner {
        padding: 1.1rem 0;
        padding-left: 0;
        gap: 1.25rem;
    }

    .header-logo {
        position: static;
        gap: 1rem;
    }

    .header-logo img {
        height: 120px;
        min-height: unset;
    }

    .site-header.is-scrolled .header-logo img {
        height: 48px;
    }

    .logo-secondary img {
        max-height: 40px;
    }

    .header-nav,
    .header-cta,
    .header-phone {
        display: none;
    }

    .nav-open {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-open span {
        display: block;
        width: 26px;
        height: 2px;
        background: #fff;
        margin: 0 auto;
    }

    /* Mobile-nav: panel 340px od lewej */
    .mobile-nav {
        width: 340px;
        max-width: 340px;
    }

    .mobile-nav__inner {
        padding: 1.75rem 1.75rem 2rem;
    }

    .mobile-nav__menu .main-menu li a {
        font-size: 1rem;
        padding: .5rem .25rem;
    }

    /* HERO */
    .hero {
        height: 92vh;
        min-height: 640px;
    }

    .hero-box {
        padding: 7rem 0 4rem;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        max-width: 75%;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 70%;
        margin-bottom: 2rem;
    }

    /* SECTION */
    .section-title {
        font-size: 2.15rem;
    }

    /* SERVICES */
    .services {
        padding: 4.5rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* ABOUT */
    .about {
        padding: 4.5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem;
    }

    .about-collage {
        grid-template-rows: 180px 150px 180px;
        gap: 10px;
    }

    .about-info .about-title {
        font-size: 1.4rem;
    }

    /* OFFER */
    .offer {
        padding: 4.5rem 0;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 0 1.25rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    /* INSTRUCTORS */
    .instructors {
        padding: 4.5rem 0;
    }

    .instructors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* PROJECTS */
    .realizations {
        padding: 4.5rem 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* BRANCHES */
    .branches,
    .branches-entries {
        padding: 4.5rem 0;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .branches-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* GALLERY */
    .gallery-section,
    .news-archive-section {
        padding: 4.5rem 0;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(2, 1fr);
    }

    /* PAGE */
    .page-hero {
        padding: 8rem 0 3.5rem;
    }

    .page-hero__title {
        font-size: 2.4rem;
    }

    .page-title .container-mid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .page-entry {
        padding: 3.5rem 0 5.5rem;
    }

    .entry-content .wp-block-gallery.has-nested-images {
        columns: 2;
    }

    /* CONTACT */
    .contact-section {
        padding: 4.5rem 0;
    }

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

    .contact-form-wrap {
        padding: 2.5rem 2.25rem;
    }

    /* PARTNERS */
    .partners-section {
        padding: 4rem 0;
    }

    /* FILIA INFO */
    .filia-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* RECENT POSTS */
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* FOOTER */
    .footer-widget-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-widget-grid .fw-col--logo {
        grid-column: 1 / -1;
    }

    .footer-inner {
        gap: 1rem;
    }
}


/* ==========================================================================
   BREAKPOINT 4 — 992–1200 px (mały desktop, pełna nawigacja)
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1200px) {

    body {
        font-size: 15px;
    }

    p {
        font-size: .95rem;
    }

    .container-big {
        max-width: 1180px;
    }

    .container-mid {
        max-width: 1080px;
    }

    /* Hamburger/mobile-nav ukryte – pełna nawigacja */
    .nav-open,
    .mobile-nav {
        display: none !important;
    }

    /* HEADER */
    .header-inner {
        padding: 1.25rem 0;
        padding-left: 140px;
        gap: 1.25rem;
    }

    .header-logo {
        top: .85rem;
        left: 1rem;
        gap: 1rem;
    }

    .header-logo img {
        height: 110px;
    }

    .site-header.is-scrolled .header-logo img {
        height: 48px;
    }

    .logo-secondary img {
        max-height: 40px;
    }

    .header-nav .main-menu {
        gap: .35rem;
    }

    .header-nav .main-menu li a {
        font-size: .65rem;
        padding: .35rem;
    }

    .header-phone {
        display: none
    }

    .header-cta {
        gap: .35rem;
    }

    .btn {
        padding: .65rem .9rem;
        font-size: .65rem;
    }

    /* HERO */
    .hero {
        height: 88vh;
        min-height: 680px;
    }

    .hero-title {
        font-size: 3.4rem;
        max-width: 55%;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 480px;
    }

    /* SECTION */
    .section-title {
        font-size: 2.35rem;
    }

    /* SERVICES */
    .services {
        padding: 5rem 0;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-item {
        padding: 2.25rem 1.75rem;
    }

    /* ABOUT */
    .about {
        padding: 5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .about-collage {
        grid-template-rows: 190px 160px 190px;
    }

    .about-info .about-title {
        font-size: 2.3rem;
    }

    /* OFFER */
    .offer {
        padding: 5rem 0;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* INSTRUCTORS */
    .instructors {
        padding: 5rem 0;
    }

    .instructors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* PROJECTS */
    .realizations {
        padding: 5rem 0;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* BRANCHES */
    .branches,
    .branches-entries {
        padding: 5rem 0;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .branches-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* GALLERY */
    .gallery-section,
    .news-archive-section {
        padding: 5rem 0;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* PAGE */
    .page-hero {
        padding: 8.5rem 0 4rem;
    }

    .page-entry {
        padding: 4rem 0 6rem;
    }

    /* CONTACT */
    .contact-section {
        padding: 5rem 0;
    }

    .contact-grid {
        gap: 3rem;
    }

    /* PARTNERS */
    .partners-section {
        padding: 4.5rem 0;
    }

    /* FOOTER – rząd 1: logo 50% + kontakt 50%; rząd 2: 3 kolumny po 33% */
    .footer-widget-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem 2rem;
    }

    .footer-widget-grid .fw-col--logo {
        grid-column: span 3;
    }

    .footer-widget-grid .fw-col--contact {
        grid-column: span 3;
    }

    .footer-widget-grid .fw-col--menu,
    .footer-widget-grid .fw-col--social {
        grid-column: span 2;
    }
}


/* ==========================================================================
   BREAKPOINT 5 — 1201–1380 px (mid desktop)
   ========================================================================== */

@media (min-width: 1201px) and (max-width: 1380px) {

    body {
        font-size: 15.5px;
    }

    .container-big {
        max-width: 1280px;
    }

    .container-mid {
        max-width: 1200px;
    }

    .nav-open,
    .mobile-nav {
        display: none !important;
    }

    /* HEADER */
    .header-inner {
        padding: 1.25rem 0;
        padding-left: 150px;
        gap: 1.5rem;
    }

    .header-logo {
        left: 1rem;
    }

    .header-logo img {
        height: 130px;
    }

    .site-header.is-scrolled .header-logo img {
        height: 50px;
    }

    .header-nav .main-menu {
        gap: .5rem;
    }

    .header-nav .main-menu li a {
        font-size: .7rem;
    }

    /* HERO */
    .hero {
        height: 90vh;
        min-height: 720px;
    }

    .hero-title {
        font-size: 4rem;
        max-width: 50%;
    }

    .header-phone {
        display: none;
    }

    .btn {
        padding: .65rem .9rem;
        font-size: .95rem;
    }


    /* SECTIONS */
    .services,
    .about,
    .offer,
    .instructors,
    .realizations,
    .branches,
    .branches-entries,
    .gallery-section,
    .news-archive-section,
    .contact-section {
        padding: 5.5rem 0;
    }

    .partners-section {
        padding: 4.5rem 0;
    }

    /* About collage */
    .about-collage {
        grid-template-rows: 200px 165px 200px;
    }

    /* Offer 4 kolumny */
    .offer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Instructors 4 kolumny */
    .instructors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Branches */
    .branches-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .branches-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Events */
    .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-widget-grid {
        grid-template-columns: 200px 1.2fr 1fr 1fr .5fr;
        gap: 2.25rem 1.5rem;
    }
}


/* ==========================================================================
   BREAKPOINT 6 — 1381–1680 px (large desktop, "projektowa" baza)
   Tu strona "siedzi" najlepiej – wartości z main.css są przeznaczone głównie
   na ten zakres.
   ========================================================================== */

@media (min-width: 1381px) and (max-width: 1680px) {

    body {
        font-size: 16px;
    }

    .container-big {
        max-width: 1480px;
    }

    .container-mid {
        max-width: 1340px;
    }

    .nav-open,
    .mobile-nav {
        display: none !important;
    }

    .header-inner {
        padding-left: 160px;
    }

    .header-logo {
        left: 2rem;
    }

    .header-logo img {
        height: 150px;
    }

    .header-nav .main-menu li a {
        font-size: 0.75rem;
        letter-spacing: .1px;
        padding: .35rem .5rem;
    }

    /* HERO */
    .hero-title {
        font-size: 4.6rem;
        max-width: 42%;
    }

    /* SECTIONS */
    .services,
    .about,
    .offer,
    .instructors,
    .realizations,
    .branches,
    .branches-entries,
    .gallery-section,
    .news-archive-section,
    .contact-section {
        padding: 6rem 0;
    }

    /* Offer 4 col */
    .offer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .instructors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ==========================================================================
   BREAKPOINT 7 — 1681-1920px 
   ========================================================================== */
@media (min-width: 1681px) and (max-width:1920px){
    .header-logo {
        left: 2rem;
    }
}

/* ==========================================================================
   BREAKPOINT 7 — 1681+ px (extra large desktop)
   ========================================================================== */


@media (min-width: 1681px) {

    body {
        font-size: 16.5px;
    }

    .container-big {
        max-width: 1656px;
    }

    .container-mid {
        max-width: 1380px;
    }

    .nav-open,
    .mobile-nav {
        display: none !important;
    }

    .header-inner {
        padding-left: 180px;
    }

    .header-nav .main-menu li a {
        font-size: 1rem;
    }

    /* HERO */
    .hero-title {
        font-size: 5.4rem;
        max-width: 38%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 520px;
    }

    /* SECTIONS – więcej oddechu */
    .services,
    .about,
    .offer,
    .instructors,
    .realizations,
    .branches,
    .branches-entries,
    .gallery-section,
    .news-archive-section,
    .contact-section {
        padding: 7.5rem 0;
    }

    /* Offer 4 col */
    .offer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .instructors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}