/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --gold: #d4ac0d;
    --gold-light: #f1c40f;
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --bg: #fafafa;
    --bg-alt: #f0f4f8;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Raleway', 'Nunito', sans-serif;
    line-height: 1.3;
}

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

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* ===== Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 47, 68, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 16px 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    min-width: 250px;
}

.cookie-content a {
    color: var(--gold-light);
    text-decoration: underline;
}

.cookie-accept {
    padding: 10px 28px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
}

.cookie-accept:hover {
    background: var(--accent-dark);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.header.scrolled .logo {
    color: var(--primary-dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.header.scrolled .nav-link {
    color: var(--text);
}

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

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

.nav-link:hover {
    color: var(--gold);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color var(--transition);
}

.header.scrolled .header-phone {
    color: var(--primary);
}

.header-phone:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--text);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e2f44;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-elbrus.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 47, 68, 0.6) 0%, rgba(14, 47, 68, 0.4) 50%, rgba(14, 47, 68, 0.7) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120"><path fill="%23fafafa" d="M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L0,120Z"/></svg>') no-repeat bottom / 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 80px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 16px 44px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.about-text p:first-child {
    font-size: 1.1rem;
    color: var(--text);
}

.about-legal {
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
}

.about .about-legal {
    background: var(--white);
}

.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fact-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.fact-number {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.fact-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Destinations ===== */
.destinations {
    background: var(--bg-alt);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dest-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a5276;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.dest-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-card:hover .dest-img {
    transform: scale(1.08);
}

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

.dest-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.6) 100%);
    color: var(--white);
}

.dest-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.dest-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

.dest-link {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.dest-link:hover {
    color: var(--white);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Advantages ===== */
.section.advantages {
    background: var(--primary-dark);
    color: var(--white);
}

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

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.advantage-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition), transform var(--transition);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--gold);
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gold-light);
}

.advantage-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== Contacts ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 18px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    flex: 1;
}

.form-checkbox a {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.form-success {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
}

.form-success.show {
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-light);
}

.contact-map {
    margin-top: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    min-height: 250px;
}

/* ===== Footer ===== */
.footer {
    background: #0a1e2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: var(--white);
}

.footer-tagline {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal h4,
.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.footer-legal p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
        z-index: 950;
    }

    .nav.open {
        right: 0;
    }

    .nav.open .nav-link {
        color: var(--text);
    }

    .hamburger {
        position: relative;
        z-index: 960;
    }

    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 940;
    }

    .nav-backdrop.active {
        display: block;
    }

    .header-phone {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .dest-card {
        height: 220px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .about-facts {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .fact-card {
        padding: 20px 12px;
    }

    .fact-number {
        font-size: 1.8rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
