/* Nowoczesny styl Fructus */

/* Import nowoczesnej czcionki */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/Logo/puzzle.png') center center / cover no-repeat, linear-gradient(120deg, #f4f6fb 0%, #e3e9f7 100%);
    background-attachment: fixed;
    color: #222;
    font-family: 'Inter', Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

header {
    background-image: url('/Logo/puzzle.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 18px 0 14px 0;
    width: 100%;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(56,9,228,0.12);
}

.logo {
    font-size: 2em;
    font-weight: bold;
    margin-right: 20px;
    color: #43b649;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(56,9,228,0.12);
    padding: 1px 2px;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(56,9,228,0.10);
}

.logo-placeholder {
    margin-left: 32px;
}

.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(56,9,228,0.18);
    background: rgba(255,255,255,0.85);
    padding: 2px;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    font-size: 2.8em;
    font-weight: 900;
    margin: 0.5rem 0;
    letter-spacing: 2px;
    color: #fff;
    text-shadow:
        0 4px 16px rgba(56,9,228,0.35),
        0 2px 8px #3a4fff,
        0 0 24px #000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease-out forwards;
}

nav {
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(56,9,228,0.10);
    position: static;
    top: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
    padding: 8px 0;
}

/* MENU GŁÓWNE */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    gap: 24px;
    font-size: 1.1em;
}

.menu li {
    position: relative;
    margin: 0;
}

.menu a,
.submenu a {
    color: #222;
    background: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 16px;
    display: block;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(56,9,228,0.06);
    white-space: nowrap;
    margin: 0;
}

.menu a:hover,
.menu a:focus,
.submenu a:hover,
.submenu a:focus {
    background: #3a4fff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(56,9,228,0.12);
}

.has-submenu > a::after {
    content: " ▼";
    font-size: 0.8em;
}

/* PODMENU */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(56,9,228,0.07);
    min-width: 180px;
    z-index: 9999;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    margin: 0;
}

.menu li.has-submenu:hover > .submenu,
.menu li.has-submenu:focus-within > .submenu {
    display: flex;
}

.submenu li {
    margin: 0;
}

.submenu a {
    color: #222;
    background: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 1em;
    display: block;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
}

.submenu a:hover,
.submenu a:focus {
    background: #3a4fff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(56,9,228,0.12);
}

/* KARTA TREŚCI */
.content-rectangle {
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
        url('/Logo/puzzle.png') center center / cover no-repeat;
    border: none;
    border-radius: 24px;
    padding: 40px 32px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(56,9,228,0.10);
    font-size: 1.25em;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-rectangle > img,
.content-rectangle > video {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.content-rectangle > div {
    flex: 1;
    min-width: 0;
}

/* PRZYCISKI */
button {
    padding: 12px 24px;
    background-color: #43b649;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover {
    background: #388e3c;
    box-shadow: 0 4px 16px rgba(76,175,80,0.15);
}

/* DYMKI CZATU */
#chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0084ff;
    color: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(0,132,255,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 16px;
    cursor: pointer;
    z-index: 2000;
    transition: box-shadow 0.2s, background 0.2s;
    min-width: 64px;
    height: 48px;
}
#chat-bubble img {
    width: 28px;
    height: 28px;
    margin: 0;
}
.chat-bubble-text {
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
    margin: 0 6px 0 0;
}
.chat-bubble-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #ff2d2d;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 4px #ff2d2d80;
    display: block;
}

/* Panel kontaktowy */
#chat-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(56,9,228,0.15);
    z-index: 2100;
    width: 340px;
    border: none;
    animation: slideIn 0.3s ease-out;
}
#chat-popup.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}
.chat-box {
    padding: 24px;
}
.chat-box h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #3a4fff;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nowoczesny dymek czatu */
#contact-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #43b649;
    color: #fff;
    border-radius: 24px 24px 8px 24px;
    box-shadow: 0 8px 32px rgba(56,9,228,0.15), 0 2px 8px #0002;
    z-index: 9999;
    font-family: 'Inter', Arial, sans-serif;
    min-width: 280px;
    max-width: 340px;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(.4,2,.6,1) 1;
}

#contact-bubble-header {
    padding: 18px 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #43b649 70%, #3a4fff 100%);
    border-radius: 24px 24px 0 0;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-bubble-header h3 {
    margin: 0;
    font-size: 1.1em;
    flex: 1;
    text-align: left;
}

#contact-bubble-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    position: absolute;
    right: 12px;
    top: 12px;
    transition: transform 0.2s;
}

#contact-bubble-close:hover {
    transform: scale(1.2);
}

#contact-bubble-content {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contact-bubble-content a {
    color: #43b649;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#contact-bubble-content a:hover {
    color: #3a4fff;
}

#contact-bubble-footer {
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 0 0 24px 24px;
    text-align: center;
    font-size: 0.9em;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contact-bubble-footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

#contact-bubble-footer a:hover {
    color: #3a4fff;
}

/* Animacje dla dymka czatu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    .content-rectangle {
        max-width: 98vw;
        padding: 24px 8px;
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .content-rectangle {
        flex-direction: column;
        align-items: center;
        padding: 24px 8px;
        font-size: 1em;
        gap: 20px;
    }
    .content-rectangle img, .content-rectangle video {
        margin-bottom: 16px;
        max-width: 100%;
    }
    .menu {
        flex-direction: column;
        gap: 0;
    }
    .menu a {
        display: block;
        margin: 0 auto;
    }
    #chat-popup {
        width: 95vw;
        right: 2.5vw;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
    }
    .logo-placeholder {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    .header-title {
        font-size: 1.3em;
    }
    nav {
        padding: 0 2px;
    }
    .menu {
        flex-wrap: wrap;
        font-size: 0.95rem;
    }
    .menu li {
        margin: 0 5px;
    }
    main {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .content-rectangle {
        padding: 16px 4px;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 95vw;
        height: auto;
    }
}
@media (max-width: 480px) {
    .header-title {
        font-size: 1em;
    }
    .logo {
        font-size: 1.1em;
    }
    .menu a {
        font-size: 0.85em;
        padding: 8px 0 5px 0;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 90vw;
    }
    main {
        padding: 0.5rem;
    }
}
@media (max-width: 600px) {
    body, main {
        margin: 0;
        padding: 0;
    }
    .content-rectangle {
        margin: 16px auto;
        max-width: 98vw;
        border-radius: 16px;
        padding: 16px 4px;
    }
    #chat-popup {
        width: 98vw;
        right: 1vw;
    }
    .gallery-box {
        max-width: 98vw;
        width: 100vw;
        padding: 8px 0;
    }
    .gallery-media {
        width: 98vw;
        max-width: 98vw;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .gallery-media img,
    .gallery-media video {
        max-width: 90vw;
        max-height: 55vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        background: #f6f8ff;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    }
    .event-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .event-circle {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38vw;
        height: 38vw;
        min-width: 90px;
        min-height: 90px;
        max-width: 140px;
        max-height: 140px;
        padding: 4vw;
    }
}
@media (max-width: 700px) {
    .event-circle {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 140px;
        max-height: 140px;
        min-width: 90px;
        min-height: 90px;
        padding: 0 !important;
        margin: 0 auto 18px auto !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f6ff;
        border: 3px solid #43b649;
        box-shadow: 0 2px 12px #3a4fff22;
    }
    .event-circle img {
        width: 80vw !important;
        height: 80vw !important;
        max-width: 120px;
        max-height: 120px;
        min-width: 70px;
        min-height: 70px;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px #3a4fff22;
        background: #fff;
    }
}

.events-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.event-box {
    flex: 1 1 340px;
    max-width: 420px;
    min-width: 280px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0001, 0 1.5px 8px #3a4fff22;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 24px 0 8px 0;
}

.event-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f6ff;
    box-shadow: 0 2px 12px #3a4fff22;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 3px solid #43b649;
}

.event-circle img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s;
}
.event-circle img:hover {
    transform: scale(1.7) rotate(-7deg);
    z-index: 3;
    box-shadow: 0 8px 32px #43b64955, 0 2px 16px #3a4fff55;
    filter: brightness(1.08) contrast(1.15);
    transition: 
        transform 0.35s cubic-bezier(.4,2,.6,1),
        box-shadow 0.35s,
        filter 0.35s;
}

.event-content {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.event-title {
    font-size: 1.25em;
    color: #3a4fff;
    margin-bottom: 8px;
    margin-top: 0;
}

.event-desc {
    font-size: 1.08em;
    color: #222;
    margin-bottom: 16px;
}

.event-gallery-link {
    display: inline-block;
    color: #3a4fff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 18px;
    margin-top: 8px;
}

.gallery-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px #0001, 0 1.5px 8px #3a4fff22;
    padding: 18px 8px 12px 8px;
    margin: 18px auto 0 auto;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #f3f6ff;
    border-radius: 20px;
    padding: 6px 18px;
    margin-bottom: 14px;
    color: #3a4fff;
    font-size: 1.08em;
    font-weight: 500;
    box-shadow: 0 1px 6px #3a4fff11;
}

.gallery-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Powiększanie wszystkich grafik na hover */
img:hover, video:hover {
    transition: transform 0.3s;
    transform: scale(1.15);
    z-index: 2;
}

/* Powiększanie wszystkich przycisków na hover */
button:hover, .event-gallery-link:hover {
    transition: transform 0.2s;
    transform: scale(1.08);
}

/* Powiększanie pozycji menu na hover */
.menu a:hover, .submenu a:hover {
    transition: transform 0.2s;
    transform: scale(1.08);
}

.footer {
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
        url('/Logo/puzzle.png') center center / cover no-repeat;
    border: none;
    border-radius: 16px;
    padding: 20px 12px;
    margin: 20px auto 12px auto;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(56,9,228,0.10);
    font-size: 0.95em;
    color: #222;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-video {
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    display: block;
    flex-shrink: 0;
    margin-right: 0;
}

/* GALERIA - zdjęcia i filmy proporcjonalnie */
.gallery-media img,
.gallery-media video {
    max-width: 90vw;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #f6f8ff;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(56,9,228,0.08);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    .content-rectangle {
        max-width: 98vw;
        padding: 24px 8px;
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .content-rectangle {
        flex-direction: column;
        align-items: center;
        padding: 24px 8px;
        font-size: 1em;
        gap: 20px;
    }
    .content-rectangle img, .content-rectangle video {
        margin-bottom: 16px;
        max-width: 100%;
    }
    .menu {
        flex-direction: column;
        gap: 0;
    }
    .menu a {
        display: block;
        margin: 0 auto;
    }
    #chat-popup {
        width: 95vw;
        right: 2.5vw;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
    }
    .logo-placeholder {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    .header-title {
        font-size: 1.3em;
    }
    nav {
        padding: 0 2px;
    }
    .menu {
        flex-wrap: wrap;
        font-size: 0.95rem;
    }
    .menu li {
        margin: 0 5px;
    }
    main {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .content-rectangle {
        padding: 16px 4px;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 95vw;
        height: auto;
    }
}
@media (max-width: 480px) {
    .header-title {
        font-size: 1em;
    }
    .logo {
        font-size: 1.1em;
    }
    .menu a {
        font-size: 0.85em;
        padding: 8px 0 5px 0;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 90vw;
    }
    main {
        padding: 0.5rem;
    }
}
@media (max-width: 600px) {
    body, main {
        margin: 0;
        padding: 0;
    }
    .content-rectangle {
        margin: 16px auto;
        max-width: 98vw;
        border-radius: 16px;
        padding: 16px 4px;
    }
    #chat-popup {
        width: 98vw;
        right: 1vw;
    }
    .gallery-box {
        max-width: 98vw;
        width: 100vw;
        padding: 8px 0;
    }
    .gallery-media {
        width: 98vw;
        max-width: 98vw;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .gallery-media img,
    .gallery-media video {
        max-width: 90vw;
        max-height: 55vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        background: #f6f8ff;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    }
    .event-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .event-circle {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38vw;
        height: 38vw;
        min-width: 90px;
        min-height: 90px;
        max-width: 140px;
        max-height: 140px;
        padding: 4vw;
    }
}
@media (max-width: 700px) {
    .event-circle {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 140px;
        max-height: 140px;
        min-width: 90px;
        min-height: 90px;
        padding: 0 !important;
        margin: 0 auto 18px auto !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f6ff;
        border: 3px solid #43b649;
        box-shadow: 0 2px 12px #3a4fff22;
    }
    .event-circle img {
        width: 80vw !important;
        height: 80vw !important;
        max-width: 120px;
        max-height: 120px;
        min-width: 70px;
        min-height: 70px;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px #3a4fff22;
        background: #fff;
    }
}

.events-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.event-box {
    flex: 1 1 340px;
    max-width: 420px;
    min-width: 280px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0001, 0 1.5px 8px #3a4fff22;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 24px 0 8px 0;
}

.event-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f6ff;
    box-shadow: 0 2px 12px #3a4fff22;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 3px solid #43b649;
}

.event-circle img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s;
}
.event-circle img:hover {
    transform: scale(1.7) rotate(-7deg);
    z-index: 3;
    box-shadow: 0 8px 32px #43b64955, 0 2px 16px #3a4fff55;
    filter: brightness(1.08) contrast(1.15);
    transition: 
        transform 0.35s cubic-bezier(.4,2,.6,1),
        box-shadow 0.35s,
        filter 0.35s;
}

.event-content {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.event-title {
    font-size: 1.25em;
    color: #3a4fff;
    margin-bottom: 8px;
    margin-top: 0;
}

.event-desc {
    font-size: 1.08em;
    color: #222;
    margin-bottom: 16px;
}

.event-gallery-link {
    display: inline-block;
    color: #3a4fff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 18px;
    margin-top: 8px;
}

.gallery-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px #0001, 0 1.5px 8px #3a4fff22;
    padding: 18px 8px 12px 8px;
    margin: 18px auto 0 auto;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #f3f6ff;
    border-radius: 20px;
    padding: 6px 18px;
    margin-bottom: 14px;
    color: #3a4fff;
    font-size: 1.08em;
    font-weight: 500;
    box-shadow: 0 1px 6px #3a4fff11;
}

.gallery-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Powiększanie wszystkich grafik na hover */
img:hover, video:hover {
    transition: transform 0.3s;
    transform: scale(1.15);
    z-index: 2;
}

/* Powiększanie wszystkich przycisków na hover */
button:hover, .event-gallery-link:hover {
    transition: transform 0.2s;
    transform: scale(1.08);
}

/* Powiększanie pozycji menu na hover */
.menu a:hover, .submenu a:hover {
    transition: transform 0.2s;
    transform: scale(1.08);
}

.footer {
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
        url('/Logo/puzzle.png') center center / cover no-repeat;
    border: none;
    border-radius: 16px;
    padding: 20px 12px;
    margin: 20px auto 12px auto;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(56,9,228,0.10);
    font-size: 0.95em;
    color: #222;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-video {
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    display: block;
    flex-shrink: 0;
    margin-right: 0;
}

/* GALERIA - zdjęcia i filmy proporcjonalnie */
.gallery-media img,
.gallery-media video {
    max-width: 90vw;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #f6f8ff;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(56,9,228,0.08);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    .content-rectangle {
        max-width: 98vw;
        padding: 24px 8px;
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .content-rectangle {
        flex-direction: column;
        align-items: center;
        padding: 24px 8px;
        font-size: 1em;
        gap: 20px;
    }
    .content-rectangle img, .content-rectangle video {
        margin-bottom: 16px;
        max-width: 100%;
    }
    .menu {
        flex-direction: column;
        gap: 0;
    }
    .menu a {
        display: block;
        margin: 0 auto;
    }
    #chat-popup {
        width: 95vw;
        right: 2.5vw;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
    }
    .logo-placeholder {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    .header-title {
        font-size: 1.3em;
    }
    nav {
        padding: 0 2px;
    }
    .menu {
        flex-wrap: wrap;
        font-size: 0.95rem;
    }
    .menu li {
        margin: 0 5px;
    }
    main {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .content-rectangle {
        padding: 16px 4px;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 95vw;
        height: auto;
    }
}
@media (max-width: 480px) {
    .header-title {
        font-size: 1em;
    }
    .logo {
        font-size: 1.1em;
    }
    .menu a {
        font-size: 0.85em;
        padding: 8px 0 5px 0;
    }
    .content-rectangle img, .content-rectangle video {
        max-width: 90vw;
    }
    main {
        padding: 0.5rem;
    }
}
@media (max-width: 600px) {
    body, main {
        margin: 0;
        padding: 0;
    }
    .content-rectangle {
        margin: 16px auto;
        max-width: 98vw;
        border-radius: 16px;
        padding: 16px 4px;
    }
    #chat-popup {
        width: 98vw;
        right: 1vw;
    }
    .gallery-box {
        max-width: 98vw;
        width: 100vw;
        padding: 8px 0;
    }
    .gallery-media {
        width: 98vw;
        max-width: 98vw;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .gallery-media img,
    .gallery-media video {
        max-width: 90vw;
        max-height: 55vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        background: #f6f8ff;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px rgba(56,9,228,0.08);
    }
    .event-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .event-circle {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38vw;
        height: 38vw;
        min-width: 90px;
        min-height: 90px;
        max-width: 140px;
        max-height: 140px;
        padding: 4vw;
    }
}
@media (max-width: 700px) {
    .event-circle {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 140px;
        max-height: 140px;
        min-width: 90px;
        min-height: 90px;
        padding: 0 !important;
        margin: 0 auto 18px auto !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f6ff;
        border: 3px solid #43b649;
        box-shadow: 0 2px 12px #3a4fff22;
    }
    .event-circle img {
        width: 80vw !important;
        height: 80vw !important;
        max-width: 120px;
        max-height: 120px;
        min-width: 70px;
        min-height: 70px;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 12px #3a4fff22;
        background: #fff;
    }
}

.gallery-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 18px;
    width: 100%;
}

.gallery-arrow {
    font-size: 2.2em;
    color: #43b649;           /* Zielony z logo */
    background: #e3e9f7;      /* Jasny niebiesko-szary z tła strony */
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #3a4fff22;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.gallery-arrow:hover {
    background: #43b649;
    color: #fff;
    transform: scale(1.15);
}
