/* ============ БАЗА ============ */
:root {
    --navy: #0a1628;
    --navy-light: #12233d;
    --gold: #c9a35f;
    --gold-light: #e0c088;
    --white: #ffffff;
    --grey: #8a94a6;
    --light-bg: #f4f6f9;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

/* ============ ЗАГОЛОВКИ СЕКЦИЙ ============ */
.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 24px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 20px;
    border-radius: 2px;
}

.center .section-title::after { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ============ ШАПКА ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span { color: var(--gold); }

.nav { display: flex; gap: 40px; }

.nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.burger span {
    width: 28px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ ГЕРОЙ ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.55) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 720px; }

.hero-subtitle {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(34px, 5.5vw, 62px);
    line-height: 1.2;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 560px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-btns { opacity: 0; animation: fadeUp 1s ease 1.2s forwards; }

/* Компактный герой для внутренних страниц */
.hero.hero-small { min-height: 60vh; }

/* Стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ КНОПКИ ============ */
.btn {
    display: inline-block;
    padding: 16px 42px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,163,95,0.4);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
    margin-left: 16px;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ============ О КОМПАНИИ ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

.about-img:hover img { transform: scale(1.06); }

.about-img::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(201,163,95,0.5);
    border-radius: 4px;
    pointer-events: none;
}

.about-text p { color: #4a5568; margin-bottom: 18px; }

/* ============ ЦИФРЫ ============ */
.stats {
    background: var(--navy);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: var(--gold);
    font-weight: 700;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============ МИССИЯ ============ */
.mission {
    background: var(--light-bg);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 46px 34px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(10,22,40,0.06);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10,22,40,0.12);
    border-top-color: var(--gold);
}

.card-icon { font-size: 42px; margin-bottom: 22px; }

.card h3 { font-size: 21px; margin-bottom: 14px; }

.card p { color: #4a5568; font-size: 15px; }

/* ============ ИСТОРИЯ (таймлайн) ============ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(var(--gold), rgba(201,163,95,0.15));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 60px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 14px; height: 14px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(201,163,95,0.2);
}

.timeline-item:nth-child(odd)::before { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--gold);
    font-weight: 700;
}

.timeline-item h4 { font-size: 18px; margin: 6px 0 8px; }
.timeline-item p { color: #4a5568; font-size: 15px; }

/* ============ КОМАНДА ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10,22,40,0.07);
    transition: var(--transition);
}

.team-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(10,22,40,0.14); }

.team-photo { overflow: hidden; }

.team-photo img {
    width: 100%;
    aspect-ratio: 1/1.1;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    filter: grayscale(30%);
}

.team-card:hover .team-photo img { transform: scale(1.08); filter: grayscale(0%); }

.team-info { padding: 24px 18px; }

.team-info h4 { font-size: 18px; }

.team-info span { color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ============ УСЛУГИ ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* ============ СХЕМА РАБОТЫ ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 60px;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.step-num {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold);
    background: var(--navy);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step:hover .step-num {
    background: var(--gold);
    color: var(--navy);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(201,163,95,0.5);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(50% + 46px);
    width: calc(100% - 92px);
    height: 1px;
    background: rgba(201,163,95,0.4);
}

.step h4 { color: var(--white); font-size: 17px; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.65); font-size: 14px; }

.dark-section { background: var(--navy); }
.dark-section .section-title { color: var(--white); }

/* ============ ГАЛЕРЕЯ ПРОЕКТОВ ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0.85;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 { color: var(--white); font-size: 20px; }

.gallery-overlay span { color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ============ ПАРТНЁРЫ ============ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.partner {
    background: var(--white);
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 36px 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    color: var(--grey);
    letter-spacing: 2px;
    transition: var(--transition);
}

.partner:hover {
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(10,22,40,0.1);
}

/* ============ CTA ============ */
.cta {
    background: linear-gradient(135deg, rgba(10,22,40,0.93), rgba(10,22,40,0.8)),
                url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=1600&q=80') center/cover fixed;
    text-align: center;
    padding: 110px 0;
}

.cta h2 { color: var(--white); font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 36px; }

/* ============ КОНТАКТЫ ============ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 34px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px; height: 56px;
    min-width: 56px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--gold);
    transform: rotate(12deg) scale(1.08);
}

.contact-item h4 { font-size: 17px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: #4a5568; font-size: 15px; text-decoration: none; }
.contact-item a:hover { color: var(--gold); }

/* Форма */
.form {
    background: var(--white);
    padding: 46px;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(10,22,40,0.1);
}

.form h3 { font-size: 24px; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }

.form input, .form textarea, .form select {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #dfe4ec;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: #fbfcfe;
}

.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,163,95,0.14);
}

.form textarea { min-height: 130px; resize: vertical; }

.map-wrap {
    margin-top: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10,22,40,0.12);
}

.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ============ ПОДВАЛ ============ */
.footer {
    background: #060e1b;
    padding: 70px 0 0;
    color: rgba(255,255,255,0.65);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer h4 { color: var(--white); font-size: 17px; margin-bottom: 20px; }

.footer p, .footer a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; }

.footer a:hover { color: var(--gold); }

.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
    .team-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .mission-cards, .gallery { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
    .step:nth-child(3)::after { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .hero { background-attachment: scroll; }
    .cta { background-attachment: scroll; }

    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 34px;
        transition: right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 50px rgba(0,0,0,0.4);
    }

    .nav.open { right: 0; }
    .burger { display: flex; }

    .about-grid, .contacts-grid { grid-template-columns: 1fr; gap: 44px; }

    .timeline::before { left: 8px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 50px 44px; }
    .timeline-item::before { left: 1px !important; right: auto !important; }

    .steps { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }

    .btn-outline { margin-left: 0; margin-top: 14px; }
    .form { padding: 30px 22px; }
}

@media (max-width: 520px) {
    .services-grid, .mission-cards, .gallery, .team-grid,
    .stats-grid, .partners-grid, .footer-grid { grid-template-columns: 1fr; }
    .stat-num { font-size: 42px; }
}