
/* ===================================================================
CSS VARIABLES
=================================================================== */

:root {
    /* Colors */
    --color-primary: #034087;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #e8ecef;
    --color-gray: #6b7280;
    --color-text: #1a1a1a;

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --container-width: 1280px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-base: 0.3s ease;
}


/* ===================================================================
RESET & BASE
=================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}


/* ===================================================================
UTILITIES
=================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
}


/* ===================================================================
HEADER
=================================================================== */
/* ===================================================================
HEADER - Навигация и телефон справа
=================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-base);
}

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

.header__container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - слева */
.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo-img {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
}

.header__logo-text {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
}

/* Правая группа: навигация + телефон */
.header__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    transition: opacity var(--transition-base);
    white-space: nowrap;
}

.nav__link:hover {
    opacity: 0.8;
}

.nav__divider {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Phone */
.header__phone {
    display: flex;
    align-items: center;
}

.header__phone-divider {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.4);
    margin-right: 2rem;
}

.header__phone-link {
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    transition: opacity var(--transition-base);
    white-space: nowrap;
}

.header__phone-link:hover {
    opacity: 0.8;
}

/* Burger Menu */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    width: 2rem;
    height: 2rem;
    justify-content: center;
    align-items: flex-end;
}

.header__burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.header__burger--active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__burger--active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Line */
.header__line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: opacity var(--transition-base);
}

.header--scrolled .header__line {
    opacity: 0.2;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu--active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
}

.mobile-menu__phone {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-top: 2rem;
}

/* Адаптив */
@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .header__right {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header__right {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
}

/* ===================================================================
HERO - Слайдер с кликом по сторонам
=================================================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.hero__bg-image--active {
    opacity: 1;
    z-index: 2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 3;
}

/* ========== ЗОНЫ ДЛЯ КЛИКА ========== */
.hero__click-zone {
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.hero__click-zone--left {
    left: 0;
}

.hero__click-zone--right {
    right: 0;
}

.hero__click-zone:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* ========== ПОДСКАЗКИ (TOOLTIPS) ========== */
.hero__tooltip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    /*background: rgba(0, 0, 0, 0.8);*/
    /*backdrop-filter: blur(10px);*/
    /*border-radius: 2rem;*/
    color: white;
    font-size: 1.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 11;
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
}

.hero__click-zone--left .hero__tooltip {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero__click-zone--right .hero__tooltip {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero__click-zone:hover .hero__tooltip {
    opacity: 1;
    visibility: visible;
}

.hero__tooltip-arrow {
    font-size: 5.25rem;
    font-weight: 200;
    margin-bottom: 12px;
}

.hero__tooltip-text {
    font-size: 0.875rem;
}

/* Адаптив для подсказок */
@media (max-width: 768px) {
    .hero__tooltip {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero__tooltip-arrow {
        font-size: 4rem;

    }

    .hero__click-zone {
        width: 15%;
    }
}

@media (max-width: 480px) {
    .hero__tooltip-text {
        display: none; /* Скрываем текст на мобилках, оставляем только стрелку */
    }

    .hero__tooltip {
        padding: 0.5rem;
    }

    .hero__click-zone {
        width: 25%;
    }
}

/* ========== КОНТЕЙНЕР С КОНТЕНТОМ ========== */
.hero__container {
    position: relative;
    z-index: 4;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* Чтобы контент не перехватывал клики */
}

.hero__content {
    margin-bottom: 4rem;
    pointer-events: none;
}

.hero__subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.hero__title-wrapper {
    display: flex;
    gap: 1.5rem;
}

.hero__line {
    width: 4px;
    min-height: 100%;
    background-color: #FFFFFF;
    flex-shrink: 0;
}

.hero__title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: #FFFFFF;
    max-width: 50rem;
    margin: 0;
}

/* ========== ИНДИКАТОРЫ ========== */
.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 11;
    pointer-events: auto; /* Индикаторы кликабельны */
}

.hero__indicator {
    width: 2rem;
    height: 3px;
    background-color: #FFFFFF;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero__indicator--active {
    opacity: 1;
    width: 2.5rem;
}

.hero__indicator:hover {
    opacity: 0.8;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero__subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .hero__title {
        font-size: 1.25rem;
    }

    .hero__indicator {
        width: 1.5rem;
    }

    .hero__indicator--active {
        width: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero__title {
        font-size: 1rem;
    }

    .hero__indicator {
        width: 1.2rem;
    }

    .hero__indicator--active {
        width: 1.5rem;
    }
}
/* ===================================================================
ABOUT
=================================================================== */

.about {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.about__title {
    margin-bottom: 4rem;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.about__image {
    position: relative;
    height: 500px;
}

.about__image picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about__img,
.about__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===================================================================
GEOGRAPHY - АДАПТИВНАЯ СЕКЦИЯ
=================================================================== */

.geography {
    padding: 6rem 0;
    background-color: var(--color-gray-light);
    position: relative;
    overflow-x: hidden;
}

.geography__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.geography__title {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Stats - в одну строку */
.stats {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.stats__item {
    text-align: center;
    flex-shrink: 0;
}

.stats__number {
    font-size: 2.8125rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.stats__label {
    font-size: 0.65625rem;
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    white-space: nowrap;
}

/* Map Container */
.geography__map-container {
    width: 100%;
    position: relative;
}

.geography__map-wrapper {
    padding: 0;
}

.geography__map {
    position: relative;
    height: 600px;
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===================================================================
АДАПТИВ ДЛЯ GEOGRAPHY - СОХРАНЯЕМ В ОДНУ СТРОКУ
=================================================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .geography {
        padding: 5rem 0;
    }

    .geography__header {
        margin-bottom: 3rem;
        gap: 1.5rem;
    }

    .stats {
        gap: 2rem;
    }

    .stats__number {
        font-size: 2rem;
    }


}

/* Планшеты (768px) - все еще в одну строку */
@media (max-width: 768px) {
    .geography {
        padding: 4rem 0;
    }

    .geography__header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }

    .geography__title {
        text-align: left;
        font-size: 1.5rem;
    }

    .stats {
        gap: 1.5rem;
        justify-content: flex-end;
    }

    .stats__number {
        font-size: 1.5rem;
    }

    .stats__label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }


}

/* Мобильные (до 640px) - уменьшаем отступы, но сохраняем строку */
@media (max-width: 640px) {
    .geography {
        padding: 3rem 0;
    }

    .geography__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .geography__title {
        text-align: center;
    }

    .stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stats__number {
        font-size: 1.35rem;
    }

    .stats__label {
        font-size: 0.5rem;
    }
}

/* Мобильные (480px) - все еще пытаемся сохранить строку */
@media (max-width: 480px) {
    .geography {
        padding: 2.5rem 0;
    }

    .geography__header {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats__item {
        min-width: auto;
    }

    .stats__number {
        font-size: 1.25rem;
    }

    .stats__label {
        font-size: 0.45rem;
        white-space: nowrap;
    }


}

/* Очень маленькие экраны (380px) - здесь уже переносим в колонку */
@media (max-width: 450px) {
    .stats {

        align-items: center;
        gap: 1rem;
    }

    .stats__item {
        width: 100%;
        max-width: 120px;
    }

    .stats__number {
        font-size: 1.2rem;
    }

    .stats__label {
        font-size: 0.5rem;
        white-space: normal;
    }
}

/* Альбомная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .geography {
        padding: 3rem 0;
    }

    .geography__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .geography__title {
        text-align: left;
        font-size: 1.25rem;
    }

    .stats {
        justify-content: flex-end;
    }

    .stats__number {
        font-size: 1.2rem;
    }


}

/* ===================================================================
CONTACTS
=================================================================== */

.contacts {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.contacts__title {
    margin-bottom: 4rem;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Contact Info */
.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacts__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contacts__icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}

.contacts__details {
    flex: 1;
}

.contacts__label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contacts__text {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Map Placeholder */
.contacts__map {
    background-color: var(--color-gray-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts__map-placeholder {
    text-align: center;
    color: var(--color-primary);
}

.contacts__map-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin-top: 1rem;
}


/* ===================================================================
FOOTER
=================================================================== */

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

.footer__line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Logo */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 2.5rem;
    height: 2.5rem;
    filter: brightness(0) invert(1);
}

.footer__logo-text {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer__description {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Navigation */
.footer__heading {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer__link:hover {
    opacity: 1;
}

.footer__legal {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Bottom */
.footer__divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.6;
}


/* ===================================================================
RESPONSIVE
=================================================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Header */
    .nav,
    .header__phone {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Hero */
    .hero__subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .hero__title {
        font-size: 1.25rem;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about__image {
        height: 300px;
    }

    /* Geography */
    .geography__header {
        flex-direction: column;
        gap: 2rem;
    }

    .stats {
        gap: 2rem;
    }

    .stats__number {
        font-size: 2rem;
    }



    /* Contacts */
    .contacts__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Mobile (320px) */
@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .hero__title {
        font-size: 1rem;
    }

    .stats {

        gap: 1.5rem;
    }



    .about__paragraph {
        font-size: 1rem;
    }
}


/* ========== ПОДСКАЗКА ДЛЯ ИНДИКАТОРОВ ========== */
.hero__hint {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: hintBounce 0.5s ease;
    white-space: nowrap;
}

.hero__hint-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 0.875rem;
}

.hero__hint-arrow {
    font-size: 1.25rem;
    animation: arrowPulse 1s infinite;
}

.hero__hint-arrow--left {
    animation-delay: 0s;
}

.hero__hint-arrow--right {
    animation-delay: 0.5s;
}

.hero__hint-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero__hint-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero__hint-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Анимации */
@keyframes hintBounce {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

.hero__hint-arrow--left {
    animation-name: arrowPulseLeft;
}

@keyframes arrowPulseLeft {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .hero__hint {
        bottom: 4rem;
        padding: 0.5rem 1rem;
    }

    .hero__hint-text {
        font-size: 0.75rem;
    }

    .hero__hint-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__hint {
        bottom: 3.5rem;
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }

    .hero__hint-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero__hint-text {
        font-size: 0.7rem;
    }
}


