:root {
    --bg-color: #ffffff;
    --text-color: #2b332e;
    --text-muted: #64756b;
    --accent-color: #6a8a70;
    --accent-glow: rgba(106, 138, 112, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: #f2f3f0;
    /* Jasne, kremowe tło dla layoutu pudełkowego */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;

    /* Layout pudełkowy */
    max-width: 1600px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 65ch;
    margin: 0 auto;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* LAYOUT */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

/* NAVBAR (Floating) */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: #57735d;
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d8d3;
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: #f4f6f5;
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* HERO SECTION (Split) */
.hero-split {
    max-width: 1200px;
    margin: 8rem auto 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-split-text {
    padding-right: 2rem;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-split-text p {
    font-size: 1.15rem;
    margin: 1.5rem 0 2.5rem 0;
    color: var(--text-muted);
}

.hero-split-image {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    aspect-ratio: 4 / 5;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.hero-split-image:hover img {
    transform: scale(1.05);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* GLASS PANEL UTILITY */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--glass-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* GALLERY GRID */
.dark-section {
    background: #f7f9f7;
    /* Jasne organiczne tło zamiast czarnego */
    border-radius: 40px;
    margin: 0 2%;
    padding: 6rem 0;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* BOOKING FORM */
.booking-container {
    max-width: 700px;
    margin: 0 auto;
}

.booking-card {
    background: #ffffff;
    border: 1px solid #ebf0ec;
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    position: relative;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(106, 138, 112, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.booking-form {
    margin-top: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #f9faf9;
    border: 1px solid #d1d8d3;
    border-radius: 16px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(106, 138, 112, 0.1);
}

::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(106, 138, 112, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(106, 138, 112, 0.2);
}

/* FOOTER */
.footer {
    border-top: 1px solid #ebf0ec;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* CRM SPECIFIC FIXES FOR LIGHT MODE */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #ebf0ec !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f4f6f5 !important;
    border: 1px solid #ebf0ec !important;
    color: var(--accent-color) !important;
}

#loginWrapper {
    background: radial-gradient(circle at center, rgba(106, 138, 112, 0.05) 0%, var(--bg-color) 70%) !important;
}

th {
    background: #f4f6f5 !important;
    color: var(--text-color) !important;
}

.action-select {
    background: #f9faf9 !important;
    border: 1px solid #d1d8d3 !important;
    color: var(--text-color) !important;
}

.tr-glass:hover td {
    background: #f9faf9 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }

    .booking-card {
        padding: 2rem 1.5rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-split-text {
        padding-right: 0;
    }

    .hero-split-image {
        aspect-ratio: 4/3;
        border-radius: 24px;
    }

    .dark-section {
        border-radius: 24px;
    }
}