body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    color: #e2e8f0; /* text-slate-200 */
}

.header-height {
    height: 80px;
}

@media (max-width: 640px) {
    .header-height {
        height: 60px;
    }
}

.slideshow-height {
    height: calc(100vh);
}

@media (max-width: 768px) {
    .slideshow-height {
        height: auto;
        padding: 2rem 0;
    }
}

.slide {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide.inactive-slide-left {
    transform: translateX(-20%);
    opacity: 0;
}

.slide.inactive-slide-right {
    transform: translateX(20%);
    opacity: 0;
}

.slide.active-slide {
    transform: translateX(0%);
    opacity: 1;
}

.slide-content-animation {
    animation: fadeInSlideContent 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInSlideContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-active {
    display: block !important;
    animation: slideDownMobileMenu 0.4s ease-out forwards;
}

@keyframes slideDownMobileMenu {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

section[id] {
    scroll-margin-top: 90px;
}

@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}

.service-block {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    will-change: opacity, transform;
}

.service-block:hover {
    transform: translateY(40px) scale(1);
}

.service-block.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-bg-pattern {
    background-image: radial-gradient(circle at top left, rgba(14, 165, 233, 0.08) 0%, transparent 35%), 
                      radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08) 0%, transparent 35%);
}

.contact-bg-pattern {
    background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12) 0%, transparent 45%), 
                      radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12) 0%, transparent 45%);
}

.checkbox-box {
    display: inline-block;
    position: relative;
    width: clamp(1.5rem, 2vw, 1.5rem);
    height: clamp(1.5rem, 2vw, 1.5rem);
    aspect-ratio: 1/1 !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-left: 5px;
}

@media (max-width: 640px) {
    .checkbox-box {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.checkbox-box::after {
    content: '';
    position: absolute;
    width: clamp(0.35rem, 0.6vmax, 0.4rem);
    height: clamp(0.7rem, 1.4vmax, 0.75rem);
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0) translateX(clamp(-0.5rem, -1vmax, -0.55rem));
    top: clamp(0.2rem, 0.4vmax, 0.2rem);
    left: clamp(0.45rem, 0.1vmax, 0.5rem);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

@media (max-width: 640px) {
    .checkbox-box::after {
        width: 0.35rem;
        height: 0.7rem;
        top: 0.2rem;
        left: 0.45rem;
    }
}

.checkbox-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(14, 165, 233, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

input[type="checkbox"]:checked + label .checkbox-box {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    border-color: transparent;
    transform: scale(1.05);
}

input[type="checkbox"]:checked + label .checkbox-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1) translateX(0);
    animation: checkSlide 0.4s ease;
}

input[type="checkbox"]:checked + label .checkbox-box::before {
    animation: rippleFlash 0.5s ease-out;
}

@keyframes checkSlide {
    0% {
        transform: rotate(45deg) scale(0) translateX(clamp(-0.625rem, -1.2vmax, -0.75rem));
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.1) translateX(0);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) scale(1) translateX(0);
        opacity: 1;
    }
}

@keyframes rippleFlash {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: clamp(1.875rem, 3.5vmax, 2.5rem);
        height: clamp(1.875rem, 3.5vmax, 2.5rem);
        opacity: 0.8;
    }
    100% {
        width: clamp(3.125rem, 5vmax, 3.75rem);
        height: clamp(3.125rem, 5vmax, 3.75rem);
        opacity: 0;
    }
}

@keyframes vibrate {
    0% { transform: scale(1); }
    20% { transform: scale(1.05) rotate(2deg); }
    40% { transform: scale(1.05) rotate(-2deg); }
    60% { transform: scale(1.05) rotate(1deg); }
    80% { transform: scale(1.05) rotate(-1deg); }
    100% { transform: scale(1.05); }
}

@keyframes pulsatingGlow {
    0% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 15px rgba(14, 165, 233, 0.6); }
    100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.3); }
}

#privacyModal {
    display: none;
    transition: opacity 0.3s ease;
}

#privacyModal.show {
    display: flex;
    opacity: 1;
}

#privacyModal.hide {
    opacity: 0;
}

@media (max-width: 640px) {
    #privacyModal .bg-gray-800 {
        width: 95%;
        max-width: none;
    }
}

#privacyModal .bg-gray-800 {
    animation: slideDown 0.4s ease-out forwards;
}

#privacyModal.hide .bg-gray-800 {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    70% { transform: translateY(10%); opacity: 0.9; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

.form-message {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: white;
    border: 2px solid;
}

@media (max-width: 640px) {
    .form-message {
        padding: 1rem;
    }
}

@media (max-width: 1280px) {
    .grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}
/* --- Stylizacja i Animacja Menu Mobilnego --- */

/* 1. Przycisk "Burger" */
#mobileMenuToggle {
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	position: relative; /* Ważne dla pozycjonowania linii */
}

/* Linie wewnątrz burgera */
#mobileMenuToggle span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #cbd5e1; /* Kolor linii (slate-300) */
	border-radius: 2px;
	transition:
		transform 0.3s ease-in-out,
		opacity 0.3s ease-in-out;
}

/* 2. Animacja Burgera do "X" (stan aktywny) */
#mobileMenuToggle.active span:nth-child(1) {
	/* Górna linia: przesuń i obróć */
	transform: translateY(8px) rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
	/* Środkowa linia: zniknij */
	opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
	/* Dolna linia: przesuń i obróć */
	transform: translateY(-8px) rotate(-45deg);
}

/* 3. Panel Menu i Animacja Wysuwania */
#mobileMenu {
	/* Stan początkowy (ukryty) */
	opacity: 0;
	transform: translateY(-20px);
	visibility: hidden;
	pointer-events: none;
	transition:
		transform 0.3s ease-out,
		opacity 0.3s ease-out,
		visibility 0.3s;
}

/* Stan aktywny (widoczny) - dodawany przez JS */
#mobileMenu.active {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
}