/* --- KOLOROWE RYTMY - STRONA GŁÓWNA --- */
:root {
    --kr-navy: #06305f;
    --kr-blue: #2697ff;
    --kr-cyan: #61d9ff;
    --kr-orange: #ff8b45;
    --kr-coral: #ff647b;
    --kr-pink: #ff5ca8;
    --kr-green: #4bd897;
    --kr-lilac: #8b7cff;
    --kr-ink: #12345f;
    --kr-muted: #5d6f86;
    --kr-border: rgba(255, 255, 255, 0.72);
    --kr-shadow: 0 28px 80px rgba(39, 74, 129, 0.16);
    --kr-shadow-small: 0 16px 42px rgba(39, 74, 129, 0.13);
    --kr-radius-xl: 34px;
    --kr-radius-pill: 999px;
    --bg-color: #e8fbff;
    --primary-color: var(--kr-orange);
    --secondary-color: var(--kr-navy);
    --accent-color: var(--kr-pink);
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: var(--kr-ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: var(--kr-ink);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(151, 137, 255, 0.34) 0, transparent 26%),
        radial-gradient(circle at 92% 8%, rgba(255, 211, 145, 0.62) 0, transparent 31%),
        radial-gradient(circle at 11% 69%, rgba(97, 217, 255, 0.58) 0, transparent 31%),
        radial-gradient(circle at 88% 78%, rgba(255, 92, 168, 0.34) 0, transparent 24%),
        linear-gradient(135deg, #f4f7ff 0%, #ffeaf4 38%, #e8fbff 66%, #fff5de 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        radial-gradient(circle at 6% 24%, rgba(255,255,255,.72) 0 8px, transparent 9px),
        radial-gradient(circle at 27% 4%, rgba(255, 167, 214, .42) 0 30px, transparent 32px),
        radial-gradient(circle at 72% 5%, rgba(255,255,255,.88) 0 8px, transparent 9px),
        radial-gradient(circle at 96% 28%, rgba(255,255,255,.44) 0 96px, transparent 98px),
        radial-gradient(circle at 98% 58%, rgba(77, 216, 151, .40) 0 34px, transparent 38px),
        radial-gradient(circle at 95% 76%, rgba(43, 151, 255, .36) 0 64px, transparent 68px),
        radial-gradient(circle at 6% 72%, rgba(255,255,255,.76) 0 14px, transparent 16px),
        radial-gradient(circle at 14% 87%, rgba(255, 92, 168, .28) 0 55px, transparent 60px);
}

body::after {
    background:
        linear-gradient(115deg, rgba(255,255,255,.28), transparent 38%),
        radial-gradient(circle at 18% 52%, rgba(255,255,255,.42), transparent 18%);
    opacity: .9;
}

.main-container {
    width: min(1210px, calc(100% - 42px));
    margin: 0 auto;
}

.wow-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s ease;
}

.wow-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO --- */
.hero-section {
    position: relative;
    width: min(1260px, calc(100% - 42px));
    min-height: 530px;
    margin: 0 auto;
    padding: 66px 34px 26px;
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(380px, 1fr);
    align-items: center;
    gap: 44px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 18px 0 auto 0;
    height: 455px;
    border-radius: 0 0 48px 48px;
    background:
        radial-gradient(circle at 18% 30%, rgba(139, 124, 255, .24), transparent 34%),
        radial-gradient(circle at 86% 25%, rgba(255, 177, 99, .28), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.22));
    z-index: -1;
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
    position: absolute;
    font-weight: 900;
    line-height: 1;
    filter: drop-shadow(0 10px 18px rgba(32, 73, 126, .14));
}

.hero-visual::before {
    content: "♫";
    left: 0;
    top: 128px;
    font-size: 38px;
    color: var(--kr-orange);
    transform: rotate(-13deg);
}

.hero-visual::after {
    content: "♪";
    right: 16px;
    top: 190px;
    font-size: 32px;
    color: var(--kr-cyan);
    transform: rotate(11deg);
}

.hero-pig-card {
    position: relative;
    width: min(360px, 88vw);
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-pig-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 78%;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(56, 88, 136, .17);
    filter: blur(13px);
}

.hero-pig-card img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 28px 36px rgba(49, 80, 129, .18));
    animation: kr-float 5.5s ease-in-out infinite;
}

.hero-music-note {
    position: absolute;
    z-index: 3;
    font-size: 30px;
    font-weight: 900;
    filter: drop-shadow(0 8px 12px rgba(32, 73, 126, .15));
}

.hero-music-note.note-a { right: 3%; top: 16%; color: var(--kr-orange); }
.hero-music-note.note-b { left: 2%; bottom: 28%; color: var(--kr-pink); }
.hero-music-note.note-c { right: -2%; bottom: 18%; color: var(--kr-blue); }

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 720px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -1.8px;
    color: var(--kr-navy);
    font-weight: 900;
}

.hero-content h1 .gradient-line {
    display: inline-block;
    background: linear-gradient(90deg, var(--kr-orange), var(--kr-pink), var(--kr-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    max-width: 555px;
    margin: 26px 0 34px;
    color: #4c617b;
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.46;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 560px;
    width: 100%;
}

.hero-cta-grid .hero-btn {
    width: 100%;
    min-height: 58px;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.hero-cta-grid .hero-btn i {
    font-size: 17px;
    opacity: 0.92;
    transition: transform .2s ease;
}

.hero-cta-grid .hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    filter: saturate(1.08);
}

.hero-cta-grid .hero-btn:hover i {
    transform: translateX(3px);
}

.hero-btn-village {
    background: linear-gradient(135deg, #ff9b45, #ff624f);
    color: #fff;
}

.hero-btn-songs {
    background: linear-gradient(135deg, #ff758c, #f03d93);
    color: #fff;
}

.hero-btn-characters {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    color: #fff;
}

.hero-btn-shop {
    background: linear-gradient(135deg, #7f00ff, #e100ff);
    color: #fff;
}

.btn-cta,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--kr-radius-pill);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 111, 75, .25);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.btn-cta:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
    box-shadow: 0 18px 40px rgba(255, 111, 75, .31);
}

.btn-cta.primary { background: linear-gradient(135deg, #ff9b45, #ff624f); }
.btn-cta.secondary { background: linear-gradient(135deg, #ff8a9d, #f03d93); }
.btn-cta.outline {
    color: var(--kr-navy);
    background: rgba(255,255,255,.82);
    border: 2px solid rgba(6, 48, 95, .15);
    box-shadow: 0 14px 30px rgba(42, 116, 196, .10);
}
.btn-cta.outline:hover {
    background: #ffffff;
    border-color: var(--kr-blue);
    color: var(--kr-blue);
}
.btn-cta.green { background: linear-gradient(135deg, #65dfaa, #2fcf91); }

/* --- HERO EYEBROW / BADGE --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 139, 69, 0.15), rgba(255, 92, 168, 0.15));
    border: 1px solid rgba(255, 139, 69, 0.25);
    color: #ff684e;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

/* --- SEKCJA WIOSKA SPOTLIGHT --- */
.village-spotlight-section {
    position: relative;
    margin: 45px 0 55px;
}

.section-head-world {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 38px;
}

.section-kicker {
    display: inline-block;
    color: var(--kr-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-head-world h2 {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 900;
    color: var(--kr-navy);
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.8px;
}

.section-head-world p {
    font-size: clamp(16px, 1.6vw, 19px);
    color: #51657d;
    line-height: 1.55;
    font-weight: 700;
    margin: 0;
}

.village-banner {
    background:
        radial-gradient(circle at 10% 20%, rgba(97, 217, 255, 0.22), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 211, 145, 0.28), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 36px;
    padding: 38px;
    box-shadow: 0 20px 60px rgba(39, 74, 129, .12);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
}

.village-banner-content h3 {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 900;
    color: var(--kr-navy);
    margin: 0 0 14px;
    line-height: 1.2;
}

.village-banner-content p {
    font-size: 16px;
    color: #4a5d75;
    line-height: 1.6;
    font-weight: 700;
    margin: 0 0 24px;
}

.village-locations-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.village-loc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(6, 48, 95, .08);
    border-radius: 18px;
    text-decoration: none;
    color: var(--kr-navy);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(39, 74, 129, .04);
    transition: all .22s ease;
}

.village-loc-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--kr-orange);
    color: var(--kr-orange);
    box-shadow: 0 8px 20px rgba(255, 139, 69, .15);
}

.village-loc-icon {
    font-size: 20px;
    line-height: 1;
}

.village-banner-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.village-map-preview-card {
    position: relative;
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(6, 48, 95, .16);
    border: 3px solid rgba(255,255,255,.9);
    transition: transform .3s ease;
}

.village-map-preview-card:hover {
    transform: scale(1.02);
}

.village-map-preview-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 290px;
}

.village-map-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(6, 48, 95, 0.92), rgba(38, 151, 255, 0.92));
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
}

/* --- SEKCJA BOHATEROWIE --- */
.characters-section {
    margin: 55px 0 65px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.char-home-card {
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 167, 214, .18), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.94);
    border-radius: 28px;
    padding: 24px 18px 20px;
    text-align: center;
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--kr-navy);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.char-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(39, 74, 129, .18);
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 139, 69, .22), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,1), rgba(255,255,255,.85));
}

.char-home-img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(97, 217, 255, .25), rgba(255, 139, 69, .2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 10px 24px rgba(39, 74, 129, .08);
    overflow: hidden;
    position: relative;
}

.char-home-img-wrap img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    transition: transform .25s ease;
}

.char-home-card:hover .char-home-img-wrap img {
    transform: scale(1.1) rotate(3deg);
}

.char-home-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--kr-navy);
    margin: 0 0 6px;
    line-height: 1.2;
}

.char-home-place {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: #ff684e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.char-home-desc {
    font-size: 13.5px;
    color: #5d6f86;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 14px;
    flex-grow: 1;
}

.char-home-btn {
    font-size: 13px;
    font-weight: 900;
    color: var(--kr-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}

.char-home-card:hover .char-home-btn {
    color: var(--kr-orange);
}

/* --- SEKCJA FORMATY ŚWIATA --- */
.formats-section {
    margin: 55px 0 65px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.format-card {
    position: relative;
    padding: 34px 22px 26px;
    border-radius: var(--kr-radius-xl);
    border: 1px solid var(--kr-border);
    background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.44));
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--kr-navy);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(39, 74, 129, .16);
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.68));
}

.format-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(39, 74, 129, .10);
    transition: transform .25s ease;
}

.format-card:hover .format-card-icon {
    transform: scale(1.1) rotate(-4deg);
}

.format-card.format-stories .format-card-icon {
    background: linear-gradient(135deg, #ff8b45, #ffb36b);
    color: #fff;
}

.format-card.format-math .format-card-icon {
    background: linear-gradient(135deg, #4bd897, #2fcf91);
    color: #fff;
}

.format-card.format-coloring .format-card-icon {
    background: linear-gradient(135deg, #ff5ca8, #ff8a9d);
    color: #fff;
}

.format-card.format-shop .format-card-icon {
    background: linear-gradient(135deg, #2697ff, #61d9ff);
    color: #fff;
}

.format-card h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--kr-navy);
    margin: 0 0 10px;
    line-height: 1.2;
}

.format-card p {
    font-size: 14px;
    color: #556b84;
    line-height: 1.5;
    font-weight: 700;
    margin: 0 0 16px;
    flex-grow: 1;
}

.format-card-link {
    font-size: 13px;
    font-weight: 900;
    color: var(--kr-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.format-card:hover .format-card-link {
    color: var(--kr-orange);
}

/* --- SEKCJA ZAUFANIE I BEZPIECZEŃSTWO --- */
.trust-section {
    margin: 55px 0 65px;
}

.trust-banner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 34px;
    padding: 42px 36px;
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(18px);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-item-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.trust-item h4 {
    font-size: 18px;
    font-weight: 900;
    color: var(--kr-navy);
    margin: 0;
}

.trust-item p {
    font-size: 14.5px;
    line-height: 1.55;
    color: #5d7089;
    font-weight: 700;
    margin: 0;
}

/* --- KARTY NAWIGACYJNE --- */
.tiles-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 36px auto 34px;
}

.nav-tile {
    position: relative;
    min-height: 298px;
    padding: 42px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--kr-navy);
    text-decoration: none;
    border-radius: var(--kr-radius-xl);
    border: 1px solid var(--kr-border);
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.nav-tile::before {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    filter: blur(4px);
}

.nav-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(39, 74, 129, .20);
    background: rgba(255,255,255,.78);
}

.nav-tile-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 12px rgba(255,255,255,.38), 0 18px 36px rgba(40,80,130,.10);
    color: var(--kr-orange);
    font-size: 35px;
}

.nav-tile h3 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 900;
}

.nav-tile p {
    margin: 0;
    max-width: 210px;
    color: #526983;
    font-size: 15px;
    line-height: 1.52;
    font-weight: 700;
}

.tile-arrow {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.76);
    color: var(--kr-blue);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(45, 92, 144, .10);
}

/* --- POPULARNE PIOSENKI --- */
.video-gallery-section {
    margin: 10px auto 32px;
    padding: 36px 42px 44px;
    border-radius: var(--kr-radius-xl);
    border: 1px solid var(--kr-border);
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
    box-shadow: var(--kr-shadow);
    backdrop-filter: blur(18px);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-intro h2 {
    margin: 0 0 12px;
    color: var(--kr-navy);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.section-intro p {
    margin: 0;
    color: #5e7188;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    background: #14203a;
    box-shadow: 0 16px 26px rgba(29, 60, 101, .18);
    transition: transform .22s ease, box-shadow .22s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 22px 44px rgba(29, 60, 101, .24);
}

.video-wrapper img.thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
}

.video-wrapper::after {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.34);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 26px rgba(0,0,0,.20);
    font-size: 16px;
    text-indent: 3px;
}

.video-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 15px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff;
    text-align: center;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.center-btn-wrap {
    margin-top: 34px;
    text-align: center;
}

/* --- DOLNE KARTY + KONTAKT --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 34px 0 0;
    align-items: stretch;
}

.info-card {
    position: relative;
    min-height: 310px;
    padding: 38px 32px;
    overflow: hidden;
    border-radius: var(--kr-radius-xl);
    border: 1px solid var(--kr-border);
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(18px);
}

.info-card::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 150px;
    height: 150px;
    border-radius: 42px;
    opacity: .55;
    background: radial-gradient(circle, rgba(255,255,255,.7), transparent 64%);
}

.info-card h2 {
    margin: 0 0 18px;
    color: var(--kr-navy);
    font-size: 29px;
    line-height: 1.12;
    font-weight: 900;
}

.info-card p {
    margin: 0 0 28px;
    color: #4f637c;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 700;
}

.info-icon {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 36px;
}

.info-card.coloring .info-icon { color: var(--kr-pink); }
.info-card.shop .info-icon { color: var(--kr-green); }
.info-card.about .info-icon { color: #74caff; }

.info-card.about {
    grid-column: 1;
    height: 565px;
    min-height: 565px;
    padding-bottom: 230px;
}

.info-card.about p {
    margin-bottom: 0;
}

.info-card.about::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 54px;
    width: 340px;
    height: 170px;
    z-index: 3;
    background: url('/images/logo.png') center / contain no-repeat;
    filter: drop-shadow(0 20px 28px rgba(39, 74, 129, .18)) brightness(1.05);
    animation: kr-logo-float-center 5.2s ease-in-out infinite, kr-logo-glow 3s ease-in-out infinite;
}

.info-card.about::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 66px;
    width: 420px;
    height: 245px;
    z-index: 2;
    border-radius: 999px;
    opacity: .85;
    background:
        radial-gradient(circle at 50% 68%, rgba(255,255,255,.95) 0 2px, transparent 4px),
        radial-gradient(circle at 50% 68%, rgba(255, 92, 168, .78) 0 3px, transparent 6px),
        radial-gradient(circle at 50% 68%, rgba(97, 217, 255, .82) 0 3px, transparent 6px),
        radial-gradient(circle at 50% 68%, rgba(255, 139, 69, .82) 0 2px, transparent 6px),
        radial-gradient(circle at 50% 68%, rgba(75, 216, 151, .78) 0 3px, transparent 6px),
        radial-gradient(circle at 50% 68%, rgba(139, 124, 255, .70) 0 2px, transparent 6px);
    transform: translateX(-50%) scale(.88);
    filter: drop-shadow(0 0 10px rgba(255,255,255,.7)) drop-shadow(0 0 16px rgba(255,139,69,.18));
    animation: kr-logo-slow-sparkles 6.8s ease-in-out infinite;
    pointer-events: none;
}

.info-card-decoration {
    position: absolute;
    right: 22px;
    bottom: 14px;
    opacity: .85;
    font-size: 62px;
    transform: rotate(-8deg);
}

.contact-section {
    width: 100%;
    max-width: 860px;
    height: auto;
    min-height: auto;
    margin: 40px auto 36px;
    padding: 38px 34px;
    border-radius: var(--kr-radius-xl);
    border: 1px solid var(--kr-border);
    background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(255,255,255,.60));
    box-shadow: var(--kr-shadow-small);
    backdrop-filter: blur(18px);
}

.contact-heading {
    margin: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: var(--kr-navy);
    font-size: 32px;
    line-height: 1.12;
    font-weight: 900;
}

.contact-heading span {
    color: var(--kr-pink);
    font-size: 27px;
}

.contact-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

#contactForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.form-group {
    margin: 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin: 0 0 9px;
    color: var(--kr-navy);
    font-size: 14px;
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 14px;
    outline: none;
    background: rgba(255,255,255,.70);
    color: var(--kr-ink);
    font-family: inherit;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 10px 24px rgba(48, 88, 139, .07);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.form-control:focus {
    border-color: rgba(38,151,255,.42);
    background: rgba(255,255,255,.86);
    box-shadow: 0 0 0 5px rgba(38,151,255,.10), 0 10px 24px rgba(48, 88, 139, .07);
}

.form-submit-wrap {
    text-align: left;
    margin-top: 2px;
}

.btn-submit {
    min-width: 230px;
    background: linear-gradient(135deg, #9d92ff, #22b8ff);
    box-shadow: 0 16px 32px rgba(34,184,255,.22);
}

#popup {
    grid-column: 1 / -1;
}

/* --- MODAL VIDEO --- */
.video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 21000;
    background: rgba(7, 18, 36, .92);
    backdrop-filter: blur(8px);
}

.video-modal iframe {
    width: min(1180px, 94vw);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 42px;
    color: #fff;
    font-size: 56px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease;
}

.video-modal-close:hover {
    transform: scale(1.12);
    color: var(--kr-orange);
}

#scrollToTopBtn {
    position: fixed !important;
    right: 28px !important;
    bottom: 32px !important;
    width: 54px !important;
    height: 54px !important;
    line-height: 54px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff9b45, #ff624f) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(255, 111, 75, .30) !important;
}

@keyframes kr-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes kr-logo-float-center {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
    50% { transform: translateX(-50%) translateY(-12px) rotate(2deg); }
}

@keyframes kr-logo-glow {
    0%, 100% { filter: drop-shadow(0 20px 28px rgba(39, 74, 129, .18)) brightness(1.05); }
    50% { filter: drop-shadow(0 24px 42px rgba(255, 139, 69, .42)) brightness(1.22); }
}

@keyframes kr-logo-slow-sparkles {
    0% {
        opacity: .18;
        transform: translateX(-50%) scale(.82) rotate(-2deg);
        background-position:
            50% 68%, 50% 68%, 50% 68%, 50% 68%, 50% 68%, 50% 68%;
    }
    35% {
        opacity: .9;
        transform: translateX(-50%) scale(1) rotate(1deg);
        background-position:
            48% 38%, 30% 52%, 70% 52%, 39% 26%, 62% 27%, 50% 79%;
    }
    70% {
        opacity: .68;
        transform: translateX(-50%) scale(1.04) rotate(2deg);
        background-position:
            47% 18%, 20% 34%, 80% 35%, 32% 11%, 70% 12%, 51% 88%;
    }
    100% {
        opacity: .12;
        transform: translateX(-50%) scale(1.08) rotate(3deg);
        background-position:
            45% 4%, 11% 19%, 89% 20%, 24% -4%, 78% -3%, 52% 96%;
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1050px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        padding-top: 38px;
    }

    .hero-visual {
        min-height: 330px;
        order: 1;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .tiles-section,
    .video-gallery,
    .info-grid,
    .characters-grid,
    .formats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .village-banner {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        width: 100%;
        height: auto;
        min-height: auto;
        margin: 24px 0 36px;
    }

    .info-card.about {
        grid-column: 1 / -1;
        height: auto;
        min-height: 500px;
    }

    #contactForm {
        grid-template-columns: 1fr 1fr;
    }

    #contactForm .form-group:nth-of-type(3),
    .form-submit-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .main-container,
    .hero-section {
        width: min(100% - 24px, 100%);
    }

    .hero-section {
        min-height: 0;
        padding: 28px 10px 16px;
    }

    .hero-visual {
        min-height: 260px;
    }

    .hero-pig-card {
        width: 250px;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-cta,
    .btn-submit {
        width: 100%;
    }

    .tiles-section,
    .video-gallery,
    .info-grid,
    .characters-grid,
    .formats-grid,
    .village-locations-list,
    #contactForm {
        grid-template-columns: 1fr;
    }

    .village-banner {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .video-gallery-section,
    .contact-section,
    .trust-banner {
        padding: 26px 16px 30px;
        border-radius: 24px;
    }

    .nav-tile,
    .info-card,
    .format-card {
        min-height: 220px;
    }

    .info-card.about {
        padding-bottom: 190px;
        min-height: 460px;
    }

    .info-card.about::before {
        bottom: 30px;
        width: 250px;
        height: 126px;
    }

    .info-card.about::after {
        width: 300px;
        height: 180px;
        bottom: 42px;
    }

    .contact-heading {
        justify-content: center;
        font-size: 30px;
    }

    .form-submit-wrap,
    #contactForm .form-group:nth-of-type(3) {
        grid-column: 1;
    }
}
