* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-display: swap;
    background-color: #2c2c2c;
    background: #2c2c2c url(../images/rolski-strona-startowa-tlo_1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 10%;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

body.popup-active {
    overflow: hidden;
    background: #000;
}

body.popup-active .c-container {
    visibility: hidden;
    opacity: 0;
}

body.popup-active .c-footer {
    visibility: hidden;
    opacity: 0;
}


.c-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.c-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    height: 197px;
}

.c-header img {
    width: 100%;
    max-width: 700px;
    max-height: 197px;
    height: auto;
    object-fit: cover;
}

.c-services-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.c-service-card {
    border-radius: 0;
    width: 430px;
    height: 480px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(60px);
}


.c-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 420px;
    flex-shrink: 0;
}

.c-card-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.c-card-button {
    text-align: center;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex: 1;
}

.c-card-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #264269;
    color: #dcdcdc;
    padding: 12px 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    height: 100%;
    width: 100%;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.c-card-button a:hover {
    background-color: #1a4e97;
}

.c-card-button a:active {
    background-color: #1a4e97;
}

@media (max-width: 900px) {
    .c-services-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .c-container {
        padding: 40px 15px;
    }

    .c-header {
        margin-bottom: 30px;
    }

    .c-header img {
        max-width: 500px;
    }

    .c-service-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .c-header {
        margin-bottom: 20px;
    }

    .c-header img {
        max-width: 350px;
    }

    .c-card-button a {
        font-size: 14px;
        padding: 12px 24px;
    }
}

.c-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.c-privacy-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.c-privacy-link:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* Welcome Popup Styles */
.c-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/rolski-strona-startowa-tlo_1-kopia.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    overflow: hidden;
}

.c-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.005) 0%, transparent 50%),
                linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.003) 50%, transparent 70%);
    animation: backgroundShift 20s ease-in-out infinite;
    opacity: 0.5;
}

.c-popup.visible {
    opacity: 1;
}

.c-popup.hidden {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-15px) translateY(15px); }
    75% { transform: translateX(10px) translateY(-20px); }
}

.c-popup-content {
    text-align: center;
    position: relative;
    width: 100%;
    padding: 80px 60px;
    background: transparent;
    z-index: 2;
}

.c-popup-content h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(80px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.c-popup-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    line-height: 1.8;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.c-popup-arrow {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-popup-arrow svg {
    width: 100px;
    height: 100px;
    stroke: #158f4c;
    transition: all 0.3s ease;
}

.c-popup-arrow:hover svg {
    stroke: #158f4c;
    transform: scale(1.1);
}

.c-popup-arrow svg path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: chevronFlow 2s ease-in-out infinite;
}

@keyframes chevronFlow {
    0% {
        stroke-dashoffset: 50;
        stroke: rgba(21, 143, 76, 0.4);
    }
    50% {
        stroke-dashoffset: 0;
        stroke: #158f4c;
    }
    100% {
        stroke-dashoffset: -50;
        stroke: rgba(21, 143, 76, 0.4);
    }
}

@keyframes chevronGlow {
    0% {
        stroke: rgba(255, 255, 255, 0.4);
        filter: drop-shadow(0 0 0px rgba(0, 255, 0, 0));
    }
    50% {
        stroke: rgba(0, 255, 100, 1);
        filter: drop-shadow(0 0 15px rgba(0, 255, 100, 0.8));
    }
    100% {
        stroke: rgba(255, 255, 255, 0.4);
        filter: drop-shadow(0 0 0px rgba(0, 255, 0, 0));
    }
}

@keyframes elegantFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

@keyframes elegantShimmer {
    0% {
        opacity: 0.3;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: rotate(180deg);
    }
    100% {
        opacity: 0.3;
        transform: rotate(360deg);
    }
}

@keyframes elegantShimmerFast {
    0% {
        opacity: 0.5;
        transform: rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg);
    }
    100% {
        opacity: 0.5;
        transform: rotate(360deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.letter {
    display: inline-block;
    transition: all 0.3s ease;
}

.letter:hover {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .c-popup-content {
        padding: 40px 30px;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .c-popup-content h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    .c-popup-content p {
        font-size: 18px;
        margin-bottom: 60px;
        line-height: 1.6;
    }
    
    .c-popup-arrow {
        width: 70px;
        height: 70px;
        bottom: 60px;
    }
    
    .c-popup-arrow svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .c-popup-content {
        padding: 30px 20px;
    }
    
    .c-popup-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .c-popup-content p {
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .c-popup-arrow {
        width: 60px;
        height: 60px;
        bottom: 40px;
    }
}