/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные цветов */
:root {
    --primary-color: #123C69;
    --accent-color: #A4FF00;
    --background-color: #1F1F1F;
    --text-color: #F1F1F1;
    --gradient: linear-gradient(135deg, #123C69, #A4FF00);
}

/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(31, 31, 31, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Главный контент */
main {
    margin-top: 80px;
}

/* Исправление для якорей - компенсация фиксированной шапки */
section[id] {
    scroll-margin-top: 100px;
}

section[id]::before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
}

/* Секции */
section {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Hero секция */
.hero {
    background: var(--gradient);
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(164, 255, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Grid системы */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Карточки */
.card {
    background: rgba(18, 60, 105, 0.1);
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(164, 255, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(164, 255, 0, 0.1);
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Формы */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(18, 60, 105, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(164, 255, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(31, 31, 31, 0.8);
    border: 1px solid rgba(164, 255, 0, 0.3);
    border-radius: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(164, 255, 0, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(164, 255, 0, 0.2);
    color: rgba(241, 241, 241, 0.7);
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 1rem;
    z-index: 10000;
    display: none;
    border-top: 3px solid var(--accent-color);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    nav ul {
        flex-direction: row;
        gap: 1rem;
        margin: 0;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    header {
        padding: 0.7rem 0;
    }
    
    main {
        margin-top: 75px;
    }
    
    section[id] {
        scroll-margin-top: 85px;
    }
    
    section[id]::before {
        height: 85px;
        margin-top: -85px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Адаптивная навигация для очень маленьких экранов */
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    /* Адаптивная карта */
    iframe[title*="Ubicación"] {
        height: 250px !important;
    }
}

/* Дополнительная адаптивность для мобильной навигации */
@media (max-width: 360px) {
    nav ul {
        gap: 0.3rem;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 0.2rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    main {
        margin-top: 65px;
    }
    
    section[id] {
        scroll-margin-top: 75px;
    }
    
    section[id]::before {
        height: 75px;
        margin-top: -75px;
    }
}

/* Плавные переходы */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Анимации при загрузке */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрытие элементов для JS */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
} 