* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

a {
    text-decoration: none;
}

body {
    background-color: #f1f5f9;
    color: var(--darker);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #059669;
}

section {
    padding: 5rem 0;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
    font-size: 1.1rem;
}

/* ==== HEADER STYLES ==== */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==== HERO SECTION ==== */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-circles {
    width: 450px;
    height: 450px;
    position: relative;
}

.circle {
    border-radius: 50%;
    position: absolute;
    opacity: 0.2;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 50px;
    left: 50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 50px;
    right: 0;
}

.code-snippet {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-family: monospace;
    position: relative;
    z-index: 2;
    width: 100%;
}

.code-line {
    margin-bottom: 0.5rem;
    display: block;
}

/* ==== ABOUT SECTION ==== */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ==== GALLERY SECTION ==== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
}

/* ==== FOOTER STYLES ==== */
footer {
    background-color: var(--darker);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==== COOKIE POPUP ==== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
    padding-right: 2rem;
}

.cookie-text p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cookie-accept {
    background-color: var(--primary);
    color: white;
}

.cookie-decline {
    background-color: #e2e8f0;
    color: var(--darker);
}

/* Contact Section Styles */
.contact {
    background-color: white;
    padding: 4rem 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap; /* Додаємо flex-wrap, щоб елементи "не виходили" за межі екрану */
}

.contact-info {
    flex: 1;
    min-width: 250px; /* Встановлюємо мінімальну ширину */
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--gray);
}

.contact-form {
    flex: 1;
    min-width: 250px; /* Встановлюємо мінімальну ширину */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Додаємо відступ між елементами форми */
}

.contact-form label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%; /* Забезпечуємо, щоб елементи не виходили за межі */
    box-sizing: border-box; /* Враховуємо padding в загальній ширині */
}

.contact-form button {
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

/* About Section Styles */
.about {
    background-color: white;
    padding: 4rem 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap; /* Додаємо flex-wrap, щоб елементи не виходили за межі екрану */
}

.about-text {
    flex: 1;
    min-width: 250px; /* Встановлюємо мінімальну ширину для текстової колонки */
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.about-stats {
    flex: 1;
    min-width: 250px; /* Встановлюємо мінімальну ширину для статистичних карток */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Відступи між картками */
}

.stat-card {
    background-color: #f1f5f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

/* General Styles for Legal Pages */
.terms, .privacy-policy, .cookie-policy {
    background-color: white;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    color: var(--primary);
}

p {
    font-size: 1.1rem;

    margin-bottom: 1.5rem;
    line-height: 1.6;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

ul li strong {
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}


/* Add responsiveness for smaller screens */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text, .about-stats {
        flex: unset;
        width: 100%; /* Колонки будуть займати всю ширину */
    }

    .about-text p {
        font-size: 1rem; /* Зменшуємо розмір шрифта для мобільних */
    }
}



/* ==== RESPONSIVE STYLES ==== */
@media (max-width: 992px) {
    .hero-content, .about-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image, .about-text, .about-stats {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-text {
        padding-right: 0;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    nav ul.active {
        height: auto;
        padding: 1rem 0;
    }
    
    nav ul li {
        padding: 1rem 2rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        flex: unset;
        width: 100%; /* Колонки будуть займати всю ширину */
    }

    .contact-form form {
        gap: 1.2rem; /* Зменшуємо відступи для мобільних пристроїв */
    }
}