:root {
    --color-deep: #2C3E50;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-dark-bg: #1a252f;
    --color-gray: #f5f7fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-deep);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section {
    padding: 6rem 0;
}

/* Typography elements */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-deep);
}

.section-lead {
    font-size: 1.125rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: #c09d30;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    z-index: 100;
}

.btn-nav {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(26, 37, 47, 0.7) 100%);
    z-index: -1;
}

.hero .container {
    max-width: 900px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-align: center;
}

.hero-super-title {
    display: block;
    font-size: 4rem;
    color: var(--color-gold);
    font-weight: 700;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.85rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #e0e6ed;
    font-style: italic;
}

.hero-support {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--color-gold);
    padding-left: 1rem;
    max-width: 700px;
}

/* Graniczne (Grid Cards) */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 568px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--color-gold);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-deep);
}

.card p {
    color: #666;
    font-size: 1rem;
}

.quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: normal;
    color: var(--color-gold);
    position: relative;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.quote-author {
    display: block;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 1rem;
    color: var(--color-deep);
    font-style: italic;
}

/* .quote::before, .quote::after {
    content: '"';
    color: var(--color-gold);
    font-size: 4rem;
    line-height: 0;
    position: absolute;
    opacity: 0.3;
} */

.quote::before {
    top: 1rem;
    left: -1rem;
}

.quote::after {
    bottom: -1rem;
    right: -1rem;
}

/* Dark Section */
.section-dark {
    background-color: var(--color-deep);
    color: var(--color-white);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, 0.8);
}

.contrast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contrast-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contrast-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
}

.contrast-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.contrast-item p {
    color: rgba(255, 255, 255, 0.7);
}

.atmosphere-box {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.atmosphere-box h3 {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Oikos */
.oikos {
    background-color: var(--color-gray);
}

.oikos-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .oikos-wrap {
        grid-template-columns: 3fr 2fr;
    }
}

.oikos-content h2 {
    font-size: 2.5rem;
    color: var(--color-deep);
    margin-bottom: 1.5rem;
}

.oikos-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.oikos-highlight {
    padding: 1.5rem;
    background-color: var(--color-white);
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.oikos-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-deep) 0%, #1a252f 100%);
    color: var(--color-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    text-align: center;
    line-height: 1;
}

.visual-circle span {
    font-size: 1rem;
    color: var(--color-white);
    font-weight: 400;
    font-family: var(--font-body);
    margin-top: 0.5rem;
}

.visual-circle::after {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Final CTA Section */
.cta-section {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    text-align: center;
    padding: 8rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3rem;
}

/* Footer Main */
.main-footer {
    background-color: #151d25;
    color: rgba(255, 255, 255, 0.4);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-logo {
    display: block;
    margin: 2rem auto 0;
    max-width: 140px;
    height: auto;
    border-radius: 12px;
    opacity: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.4);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    /* initially hidden logically, but managed by intersection observer inline styles or simple fallback */
}

/* Testimonies Carousel 3D */
.testimonies-section {
    background-color: var(--color-white);
    padding: 6rem 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px; /* 3D perspective */
    display: grid;
    grid-template-areas: "card";
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
}

.carousel-card {
    grid-area: card; /* Wszystkie karty leżą w jednej komórce grida nałożone na siebie */
    width: 100%;
    max-width: 420px; /* Nieco szersze, by tekst lepiej się łamał */
    background: var(--color-gray);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    border-top: 4px solid var(--color-gold);
    transform-origin: center center;
}

.carousel-card p {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-deep);
}

.carousel-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D States */
.carousel-card.active {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.carousel-card.prev {
    opacity: 0.7;
    transform: translateX(-60%) translateZ(-150px) rotateY(45deg);
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
}

.carousel-card.next {
    opacity: 0.7;
    transform: translateX(60%) translateZ(-150px) rotateY(-45deg);
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--color-deep);
    color: var(--color-gold);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.85rem;
        font-style: italic;
    }
    .section {
        padding: 4rem 0;
    }
    .visual-circle {
        width: 250px;
        height: 250px;
    }
}
