/* =============================================
   Centrum Wiedzy — Główny arkusz stylów (Redesign)
   ============================================= */

/* --- Zmienne CSS --- */
:root {
    --color-navy:    #1B2A4A;
    --color-blue:    #4A90D9;
    --color-yellow:  #F5A623;
    --color-white:   #FFFFFF;
    --color-bg:      #F8F9FC;
    --color-text:    #2D3748;
    --color-muted:   #64748B;

    /* Aliasy wstecznej kompatybilności */
    --color-gray-light: #F8F9FC;
    --color-gray:       #64748B;
    --color-gray-dark:  #2D3748;
    --color-border:     #E2E8F0;

    --radius-lg: 16px;
    --shadow-card:  0 4px 24px rgba(27,42,74,.08);
    --shadow-hover: 0 12px 40px rgba(27,42,74,.16);

    --font-family: 'Plus Jakarta Sans', sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold:   700;

    --spacing-xs:  0.5rem;
    --spacing-sm:  1rem;
    --spacing-md:  1.5rem;
    --spacing-lg:  2rem;
    --spacing-xl:  3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --border-radius:      8px;
    --border-radius-lg:   16px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    --transition: 0.25s ease;

    --container-max: 1200px;
    --header-height: 72px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-navy);
}

ul, ol {
    list-style: none;
}

/* =============================================
   Typografia
   ============================================= */
h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}

p {
    font-size: 1rem;
    line-height: 1.7;
}

/* =============================================
   Page hero — nagłówek podstron
   ============================================= */
.page-hero {
    padding: 4rem 0 3.5rem;
    background: var(--color-white);
    border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 820px;
}

.page-hero .lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-gray);
    line-height: 1.65;
    max-width: 680px;
}

@media (max-width: 767px) {
    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-hero h1 {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }
}

/* =============================================
   Kratka zeszytowa (subtle background)
   ============================================= */
.notebook-bg {
    background-color: var(--color-white);
    background-image:
        repeating-linear-gradient(
            transparent, transparent 24px,
            rgba(74,144,217,0.07) 24px,
            rgba(74,144,217,0.07) 25px
        ),
        repeating-linear-gradient(
            90deg,
            transparent, transparent 24px,
            rgba(74,144,217,0.03) 24px,
            rgba(74,144,217,0.03) 25px
        );
}

/* =============================================
   Kontener
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* =============================================
   Sekcje
   ============================================= */
.section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--gray {
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header--left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
}

/* =============================================
   Przyciski
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--border-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #F5A623, #E8920A);
    color: var(--color-navy);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245,166,35,.35);
}

.btn--primary:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(245,166,35,.5);
    color: var(--color-navy);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}

.btn--secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn--outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--outline-blue {
    background: transparent;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.btn--outline-blue:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn--lg {
    font-size: 1rem;
    padding: 0.9rem 2rem;
}

@media (max-width: 480px) {
    .btn--lg {
        white-space: normal;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 360px;
    }
}

.btn--loading {
    opacity: 0.7;
    cursor: wait;
}

/* =============================================
   Header — Glassmorphism
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(27,42,74,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(27,42,74,0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

/* Logotyp */
.site-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.site-logo__tagline {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-yellow);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav links */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-nav a {
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-yellow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--color-white);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

.primary-nav .nav-panel-link {
    color: var(--color-yellow);
}

.primary-nav .btn {
    margin-left: 0.5rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1150px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #1B2A4A;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    .primary-nav a {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        border-radius: var(--border-radius);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav .btn {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27,42,74,0.92) 0%,
        rgba(27,42,74,0.75) 50%,
        rgba(74,144,217,0.40) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.hero__layout {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-yellow);
    border: 1.5px solid rgba(245,166,35,0.5);
    border-radius: var(--border-radius-full);
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-yellow);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.hero__text h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero__text h1 .highlight {
    color: var(--color-yellow);
}

.hero__subheading {
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating card */
.hero__card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.hero__card-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.hero__card .form-group {
    margin-bottom: 0.75rem;
}

.hero__card .form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--color-text);
    transition: border-color 0.2s ease;
    background: var(--color-white);
}

.hero__card .form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

.hero__card .btn {
    width: 100%;
    justify-content: center;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: bounce-scroll 2s ease-in-out infinite;
    transition: color 0.2s, border-color 0.2s;
}

.hero__scroll:hover {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.7);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero responsive */
@media (max-width: 1023px) {
    .hero__layout {
        grid-template-columns: 1fr;
    }
    .hero__card {
        max-width: 480px;
        animation: none;
    }
}

@media (max-width: 767px) {
    .hero .container {
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        text-align: center;
        justify-content: center;
    }
}

/* =============================================
   Statystyki
   ============================================= */
.stats-section {
    background: var(--color-navy);
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* =============================================
   O NAS
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    order: -1;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 55%;
    height: 55%;
    background: var(--color-yellow);
    border-radius: var(--border-radius);
    opacity: 0.25;
    transform: rotate(-4deg);
    z-index: 0;
}

.about-image-wrap figure {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image-wrap figure img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.about-content .section-header--left {
    margin-bottom: 1.25rem;
}

.about-content .section-header--left h2 {
    color: var(--color-navy);
}

.about-text p {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.75rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74,144,217,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.about-feature__icon svg {
    width: 22px;
    height: 22px;
}

.about-feature__text strong {
    display: block;
    color: var(--color-navy);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.about-feature__text p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0;
}

@media (max-width: 1023px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image-wrap {
        order: 0;
        max-width: 540px;
    }
    .about-image-wrap figure img {
        height: 320px;
    }
}

/* =============================================
   OFERTA
   ============================================= */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.offer-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.75rem;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.offer-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Karty z obrazkiem — padding tylko w body, nie w samej karcie */
.offer-card:has(> figure),
.offer-card:has(> .offer-card__image) {
    padding: 0;
}

.offer-card__body {
    padding: 1.75rem;
}

.offer-card__icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.offer-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74,144,217,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    flex-shrink: 0;
}

.offer-card__icon svg {
    width: 22px;
    height: 22px;
}

.offer-card h3 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.offer-card p {
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.offer-card__benefits {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.offer-card__benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.offer-card__benefit::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90D9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Gradient border efekt */
.offer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(74,144,217,0.3), rgba(245,166,35,0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover::before {
    opacity: 1;
}

@media (max-width: 767px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PRZEDMIOTY
   ============================================= */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.subject-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: default;
    border: 1.5px solid transparent;
}

.subject-card:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.subject-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(74,144,217,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-blue);
    transition: all 0.3s ease;
}

.subject-card__icon svg {
    width: 24px;
    height: 24px;
}

.subject-card:hover .subject-card__icon {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.subject-card h3 {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.subject-card:hover h3 {
    color: var(--color-white);
}

.subject-card p {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.subject-card:hover p {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 1023px) {
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   KOREPETYTORZY
   ============================================= */
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.tutor-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.tutor-card__photo-wrap {
    position: relative;
    overflow: hidden;
}

.tutor-card__photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tutor-card:hover .tutor-card__photo {
    transform: scale(1.04);
}

.tutor-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,42,74,0.88) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.tutor-card:hover .tutor-card__overlay {
    opacity: 1;
}

.tutor-card__overlay-bio {
    color: rgba(255,255,255,0.9);
    font-size: 0.83rem;
    line-height: 1.5;
}

.tutor-card__photo-placeholder {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tutor-card__initials {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    line-height: 1;
}

.tutor-card__body {
    padding: 1.5rem;
}

.tutor-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.3rem;
}

.tutor-card__subjects {
    font-size: 0.83rem;
    color: var(--color-blue);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.tutor-card__bio {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.55;
}

@media (max-width: 1023px) {
    .tutors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tutors-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   OPINIE
   ============================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.review-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.review-card__quote {
    font-size: 4rem;
    line-height: 0.8;
    color: var(--color-blue);
    opacity: 0.15;
    font-family: Georgia, serif;
    margin-bottom: 0.75rem;
    display: block;
}

.review-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
    color: var(--color-yellow);
    font-size: 0.9rem;
}

.review-card__text {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-card__author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-navy);
}

.review-card__author-detail {
    font-size: 0.78rem;
    color: var(--color-muted);
}

@media (max-width: 1023px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CENNIK — karty (nie tabela)
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--color-border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-card--featured {
    border-color: var(--color-navy);
}

.pricing-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-full);
    white-space: nowrap;
}

.pricing-card--blue .pricing-card__badge {
    background: var(--color-blue);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(27,42,74,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-navy);
}

.pricing-card__icon svg {
    width: 28px;
    height: 28px;
}

.pricing-card--blue .pricing-card__icon {
    background: rgba(74,144,217,0.1);
    color: var(--color-blue);
}

.pricing-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.pricing-card__price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}

.pricing-card__price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
}

.pricing-card__rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.pricing-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-card__row-subject {
    color: var(--color-text);
    font-weight: 500;
}

.pricing-card__row-price {
    color: var(--color-navy);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.pricing-note a {
    color: var(--color-blue);
}

@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Stara tabela (wsteczna kompatybilność, ukryta) */
.pricing-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table thead tr {
    background: var(--color-navy);
    color: var(--color-white);
}

.pricing-table thead th {
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--color-bg);
}

.pricing-table tbody tr:hover {
    background: rgba(74,144,217,0.06);
}

/* =============================================
   AKTUALNOŚCI
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-card__thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__thumb {
    transform: scale(1.04);
}

.news-card__thumb-wrap {
    overflow: hidden;
}

.news-card__thumb-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--color-bg), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card__thumb-placeholder img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
}

.news-card__meta span {
    color: var(--color-blue);
    font-weight: 600;
}

.news-card__title {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.6rem;
    flex: 1;
}

.news-card__title a {
    color: inherit;
    transition: color 0.2s;
}

.news-card__title a:hover {
    color: var(--color-blue);
}

.news-card__excerpt {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.news-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
}

.news-card__link:hover {
    gap: 0.5rem;
}

@media (max-width: 1023px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Placeholder bez miniaturki */
.news-card__thumb-placeholder {
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* No-results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-gray);
}

.no-results svg { margin-bottom: 1rem; }
.no-results p { font-size: 1.1rem; }

/* Paginacja bloga */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    color: var(--color-navy);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination a:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: #EEF4FF;
}

.blog-pagination .current {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-category-badge {
    display: inline-block;
    background: #EEF4FF;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
}

.post-category-badge:hover {
    background: var(--color-blue);
    color: #fff;
}

.post-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-muted, #94a3b8);
}

.post-featured-image {
    padding-bottom: 2.5rem;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.post-tags__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}

.post-tag {
    font-size: 0.82rem;
    color: var(--color-blue);
    background: #EEF4FF;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
}

.post-tag:hover { background: var(--color-blue); color: #fff; }

/* Nawigacja między wpisami */
.post-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(27,42,74,0.06);
    transition: box-shadow 0.2s;
}

.post-nav__item:hover { box-shadow: 0 4px 24px rgba(27,42,74,0.12); }

.post-nav__item--next { text-align: right; }

.post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav__item--next .post-nav__label { justify-content: flex-end; }

.post-nav__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .post-nav__inner {
        grid-template-columns: 1fr;
    }
    .post-nav__item--next { text-align: left; }
    .post-nav__item--next .post-nav__label { justify-content: flex-start; }
}

/* =============================================
   CTA sekcja
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, #1B2A4A 0%, #4A90D9 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Formularz zapisu (shortcode)
   ============================================= */
.centrum-wiedzy-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}

.required-star {
    color: #e53e3e;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.83rem;
    color: var(--color-muted);
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--color-blue);
}

.form-message {
    display: none;
    padding: 0.9rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.form-message--success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.form-message--error {
    background: #fff5f5;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal__header h3 {
    color: var(--color-navy);
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal__close:hover {
    background: var(--color-bg);
    color: var(--color-navy);
}

.modal__body {
    padding: 1.5rem 2rem 2rem;
}

/* =============================================
   Stopka
   ============================================= */
.site-footer {
    background: #111827;
    color: rgba(255,255,255,0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 2rem;
}

.footer-brand .site-logo {
    margin-bottom: 1.25rem;
}

.footer-brand .site-logo__name {
    color: var(--color-white);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--color-blue);
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact-item a,
.footer-contact-item div {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-contact-item a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0 1.5rem;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   Scroll to top button
   ============================================= */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27,42,74,0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    z-index: 90;
    pointer-events: none;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--color-blue);
}

/* =============================================
   Animacje scroll (animate-on-scroll)
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Accessibility — focus styles
   ============================================= */
:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-yellow);
    color: var(--color-navy);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* =============================================
   Miscellaneous helpers
   ============================================= */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }

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

/* =============================================
   KARUZELE MOBILNE — korepetytorzy i opinie
   ============================================= */
@media (max-width: 767px) {

    /* Korepetytorzy — scroll-snap carousel */
    .tutors-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        /* Ukryj scrollbar ale zachowaj funkcjonalność */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tutors-grid::-webkit-scrollbar { display: none; }

    .tutor-card {
        flex: 0 0 78vw;
        max-width: 300px;
        scroll-snap-align: start;
    }

    /* Opinie — scroll-snap carousel */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .reviews-grid::-webkit-scrollbar { display: none; }

    .review-card {
        flex: 0 0 82vw;
        max-width: 320px;
        scroll-snap-align: start;
    }

    /* Wskaźnik "przeciągnij" */
    .carousel-hint {
        display: block;
        text-align: center;
        font-size: 0.78rem;
        color: var(--color-muted);
        margin-top: 0.5rem;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 768px) {
    .carousel-hint { display: none; }
}

/* =============================================
   COOKIEYES — poprawki mobile
   ============================================= */
@media (max-width: 600px) {
    .cky-modal {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        border-radius: 0 !important;
    }

    .cky-modal.cky-modal-open {
        transform: none !important;
        -webkit-transform: none !important;
        top: 0 !important;
        left: 0 !important;
    }

    .cky-preference-center {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .cky-consent-container {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .cky-prefrence-btn-wrapper {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .cky-prefrence-btn-wrapper .cky-btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* =============================================
   POLITYKA PRYWATNOŚCI / REGULAMIN
   ============================================= */
.policy-content h2 {
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.policy-content h3 {
    font-size: 1.05rem;
    color: var(--color-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.policy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content ul li {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.policy-content a {
    color: var(--color-blue);
    font-weight: 500;
}

/* =============================================
   STRONA KONTAKT
   ============================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Formularz */
.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(27,42,74,0.08);
}

.contact-form-title {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 1.75rem;
}

/* Info col */
.contact-info-title {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 16px rgba(27,42,74,0.07);
}

.contact-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #EEF4FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.contact-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.contact-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
}

.contact-card__value:hover {
    color: var(--color-blue);
}

.contact-card__sub {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 0.2rem;
}

/* Social */
.contact-social {
    margin-bottom: 2rem;
}

.contact-social__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.contact-social__links {
    display: flex;
    gap: 0.75rem;
}

.contact-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-social__link:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: #EEF4FF;
}

/* Mapa placeholder */
.contact-map-placeholder {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    color: var(--color-gray);
    border: 2px dashed #cbd5e1;
}

.contact-map-placeholder svg {
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.contact-map-placeholder p {
    margin: 0 0 0.35rem;
    color: var(--color-navy);
    font-size: 0.95rem;
}

.contact-map-placeholder small {
    font-size: 0.8rem;
    color: var(--color-muted, #94a3b8);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =============================================
   FOOTER MOBILE — poprawki
   ============================================= */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .site-footer .footer-col h4 {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-nav a {
        font-size: 0.92rem;
        padding: 0.3rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .footer-contact-list {
        gap: 0.9rem;
    }

    .footer-contact-item {
        font-size: 0.88rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 1.25rem;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }
}

/* =============================================
   Baner demo (portfolio)
   ============================================= */
.demo-banner {
    position: relative;
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.demo-banner__author {
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 0.75rem;
}
