/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background: linear-gradient(135deg, #00F5A0 0%, #6A00FF 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px; /* Фиксированная высота шапки */
}

/* Плавная прокрутка и отступ для якорей */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ сверху при переходе по якорям */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 80px; /* Соответствует высоте .header */
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #6A00FF;
    text-decoration: none;
    background: linear-gradient(45deg, #00F5A0, #6A00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #2E2E2E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FF6B6B;
}

/* Main Content */
.main {
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* Отступ для якорей */
}

.section:nth-child(even) {
    background: rgba(245, 245, 245, 0.5);
}

.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #00F5A0, #FF6B6B, #6A00FF);
    margin: 0;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.1), rgba(106, 0, 255, 0.1));
    scroll-margin-top: 80px; /* Меньший отступ для hero секции */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00F5A0, #6A00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #CFFF04;
    color: #2E2E2E;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(207, 255, 4, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(207, 255, 4, 0.4);
    background: #b8e604;
}

.btn-secondary {
    background: #FF6B6B;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    background: #ff5252;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00F5A0, #FF6B6B);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #6A00FF;
    margin-bottom: 1rem;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Form Styles */
.form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Centered section headers */
.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

/* Contact info text colors */
.contact-info-black {
    color: #2E2E2E !important;
}

.contact-info-black a {
    color: #2E2E2E !important;
    text-decoration: none;
}

.contact-info-black a:hover {
    color: #FF6B6B !important;
}

/* Google Maps container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2E2E2E;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #00F5A0;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #00F5A0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #2E2E2E;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00F5A0;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00F5A0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 46, 46, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hide {
    opacity: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: #CFFF04;
    color: #2E2E2E;
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-input:focus,
.form-select:focus,
input[type="checkbox"]:focus {
    outline: 2px solid #00F5A0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main {
        background: white;
    }
}
