body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo__img {
    height: 40px;
    /* Регулируйте высоту логотипа здесь */
    width: auto;
}

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

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent-color);
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity var(--transition-speed);
}

.lang-btn.active,
.lang-btn:hover {
    opacity: 1;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    /* Поверх мобильного меню */
}

.burger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Стили активного бургера (крестик) */
.burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Секция инструкции для скролла */
.scroll-instruction {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    padding: 0 20px;
    z-index: 10;
    animation: bounce 2s infinite;
    will-change: opacity;
}

.scroll-instruction .arrow {
    font-size: 2rem;
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* Секция анимации при скролле */
.intro-animation {
    height: 250vh;
    /* Увеличено до 300vh для более плавной анимации */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    /* Современный способ задания высоты на мобильных */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Затемнение для читаемости текста */
    z-index: -1;
}

.animated-logo {
    max-width: 300px;
    opacity: 0;
    transform: translateY(100px);
    will-change: opacity, transform;
}

.animated-slogan {
    font-size: 4.5rem;
    font-weight: 800;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(100px);
    text-align: center;
    line-height: 1.1;
    max-width: 1000px;
    letter-spacing: -1px;
    will-change: opacity, transform;

    /* Премиальный трехцветный градиент */
    background: linear-gradient(135deg, #ffffff 0%, #fbffcf 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Легкое свечение для объема (бело-золотистое) */
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
}

.content-placeholder {
    padding: 100px 0;
    min-height: 100vh;
}

.content-placeholder h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Стили для внутренних страниц */
.page-header {
    padding: 80px 0 40px;
    /* Увеличили нижний отступ */
    background: rgba(0, 0, 0, 0.02);
    text-align: center;
}

.page-header .accent-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.page-header h1 {
    font-size: 3rem;
}

.content-section {
    padding: 30px 0;
    min-height: 50vh;
}

.content-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.1rem;
}

.content-section li {
    margin-bottom: 10px;
}

.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fdfdfd;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer__link:hover .footer__icon {
    opacity: 1;
}

.footer__link:hover {
    color: var(--accent-color);
}

.footer__copy {
    color: #999;
    font-size: 0.9rem;
}

.container--narrow {
    max-width: 900px;
    margin: 0 auto;
}

.placeholder-text {
    text-align: center;
    color: #666;
}

/* Улучшения для страницы "О компании" */
.about-hero {
    padding: 80px 0 10px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* Мягкое отделение от контента */
}

.about-lead {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    /* Убрали огромный нижний margin */
    padding: 0 20px;
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--accent-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.1);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.02);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.feature-icon img {
    width: 1em;
    height: 1.5em;
    /* Чуть выше для лучшей видимости */
    object-fit: contain;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.accent-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.accent-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        /* Скрыто за экраном */
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 99;
        /* Под шапкой, но над контентом */
    }

    .nav.active {
        left: 0;
        /* Выезжает меню */
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .animated-logo {
        max-width: 180px;
        /* Уменьшаем логотип для мобильных экранов */
    }

    .animated-slogan {
        font-size: 1.8rem;
        /* Немного уменьшаем шрифт для лучшей читаемости */
        padding: 0 15px;
        line-height: 1.2;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* --- Services Cards Styles --- */
.sp-grid {
    --color-background-primary: #ffffff;
    --color-border-tertiary: rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --color-text-primary: var(--text-color);
    --color-text-secondary: #555555;
    --color-text-tertiary: #888888;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 1rem 0;
}

.sp-card {
    background: var(--color-background-primary);
    border: 1px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.sp-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sp-card:hover .sp-icon {
    transform: scale(1.1);
}

.sp-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 12px;
}

.sp-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sp-section-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    margin: 3rem 0 1rem;
    display: flex;
    align-items: center;
}

.sp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-tertiary);
    margin-left: 20px;
}

/* --- Contacts Page Styles --- */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

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

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-card p,
.contact-card a {
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.contact-map-section {
    margin-top: 80px;
}

.contact-map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.contact-map-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.contact-map-container:hover .contact-map-img {
    transform: scale(1.02);
}

.map-overlay {
    padding: 30px;
    text-align: center;
    background: #fff;
}

.btn-2gis {
    display: inline-block;
    background: #2D2A26;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-2gis:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .footer__info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
