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

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #06d6a0;
    --text: #212529;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f9fbfd;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.04)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
    background-position: bottom right;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery {
    background-color: #f2f7ff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gallery-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
}

.gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    z-index: 1;
}

.gallery-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    z-index: 1;}

.gallery-bg-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    z-index: 1;}

.gallery-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

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

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-about p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -300px;
    left: 20px;
    right: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.cookie-settings {
    background: #e9ecef;
    color: var(--text);
}

.cookie-settings:hover {
    background: #dee2e6;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background-color: #f9fbfd;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    margin-right: 20px;
}

.author-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contact Section */
.contact-section {
    margin-top: 100px;
    padding: 80px 0;
    background-color: #f9fbfd;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--dark);
}

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

.contact-form {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: var(--shadow);
}

.contact-form button:hover {
    background-color: var(--primary-dark);
}

/* Legal Pages Section */
.legal-section {
    margin-top: 100px;
    padding: 80px 0;
    background-color: #f9fbfd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.legal-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
}

.legal-section h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.legal-content h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: inside;
    margin-bottom: 20px;
}

.legal-content ul li {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* For the Terms and Privacy sections, which might have multiple subsections */
.legal-content h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content .list-section {
    margin-left: 20px;
}

.legal-content .list-section ul {
    list-style: disc;
}

.legal-content .list-section li {
    margin-bottom: 8px;
}

.legal-content .subsection {
    margin-left: 40px;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 40px 20px;
    }

    .legal-content {
        padding: 15px;
    }

    .legal-section h2 {
        font-size: 2rem;
    }

    .legal-content h3 {
        font-size: 1.6rem;
    }

    .legal-content p {
        font-size: 1rem;
    }
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-content {
        font-size: 1.1rem;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
}   
    
/* Для малих екранів: */
@media (max-width: 576px) {
    .cookie-popup {
        bottom: 0; /* Для мобільних пристроїв попап не буде виходити за межі */
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column; /* Структура зміниться на вертикальну */
        gap: 15px;
    }

    .cookie-text h3 {
        font-size: 1.1rem; /* Менший шрифт для мобільних пристроїв */
    }

    .cookie-actions {
        flex-direction: column; /* Кнопки будуть розміщені вертикально */
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stats {
        gap: 25px;
    }
    
    .stat-num {
        font-size: 2.5rem;
    }
}