/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #C9D7E8;
    color: #222;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}


/* =========================
   HEADER
========================= */

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 60px;

    background: rgba(255, 255, 255, 0.95);

    position: sticky;
    top: 0;
    z-index: 1000;

    transition:
        padding 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease;
}

header.scroll {
    padding: 14px 60px;

    background: rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(15px);

    box-shadow:
        0 10px 35px rgba(40, 60, 90, 0.15);
}


/* Логотип */

.logo {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;

    transition: 0.3s;
}

.logo:hover {
    transform: translateY(-2px);
}


/* =========================
   НАВИГАЦИЯ
========================= */

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    position: relative;

    margin: 0 10px;

    text-decoration: none;
    color: #333;

    padding: 8px 4px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #8DA3C2;

    transition: width 0.35s ease;
}

nav a:hover {
    color: #7186A3;
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   КНОПКИ
========================= */

.btn,
button {
    position: relative;

    display: inline-block;

    padding: 13px 28px;

    background: #B0B7C6;
    color: #000;

    text-decoration: none;

    border: none;
    border-radius: 30px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn::before,
button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent
    );

    transition: left 0.6s ease;
}

.btn:hover::before,
button:hover::before {
    left: 100%;
}

.btn:hover,
button:hover {
    transform: translateY(-4px);

    background: #9CA9BD;

    box-shadow:
        0 12px 30px rgba(50,70,100,0.2);
}

.btn:active,
button:active {
    transform: translateY(-1px);
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 600px;

    display: flex;
    align-items: center;

    padding-left: 80px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to right,
            #C9D7E8 0%,
            transparent 18%,
            transparent 82%,
            #C9D7E8 100%
        ),

        linear-gradient(
            to bottom,
            #C9D7E8 0%,
            transparent 18%,
            transparent 82%,
            #C9D7E8 100%
        ),

        url("vs.jpg") center center / cover no-repeat;

    z-index: -2;

    transform: scale(1.05);

    transition: transform 8s ease;
}

.hero:hover::before {
    transform: scale(1.1);
}


/* затемнение */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(255,255,255,0.12),
            transparent 45%
        );

    z-index: -1;

    pointer-events: none;
}


/* =========================
   HERO TEXT
========================= */

.hero-text {
    max-width: 700px;

    opacity: 0;

    transform:
        translateX(-80px)
        translateY(20px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.16,1,.3,1);
}

.hero-text.show {
    opacity: 1;

    transform:
        translateX(0)
        translateY(0);
}

.hero h1 {
    font-size: 70px;

    margin-bottom: 20px;

    line-height: 1.05;

    letter-spacing: -2px;
}

.hero p {
    margin-bottom: 30px;

    font-size: 20px;

    line-height: 1.5;
}


/* =========================
   SECTION
========================= */

.section {
    padding: 90px 70px;
}

.section h2,
.section h1,
.popular h2,
.contact h2 {
    margin-bottom: 40px;

    font-size: 42px;

    line-height: 1.1;
}


/* =========================
   КАРТОЧКИ
========================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.card,
.tour {
    background: #fff;

    padding: 30px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(50,70,100,0.08);

    opacity: 0;

    transform:
        translateY(60px)
        scale(0.96);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.16,1,.3,1),
        box-shadow 0.4s ease;
}

.card.show,
.tour.show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.card:hover,
.tour:hover {
    transform:
        translateY(-12px)
        scale(1.02);

    box-shadow:
        0 25px 50px rgba(50,70,100,0.18);
}

.card h3,
.tour h3 {
    margin-bottom: 15px;

    font-size: 22px;
}


/* =========================
   ПОПУЛЯРНОЕ
========================= */

.popular {
    padding: 90px 70px;

    background: #C9D7E8;
}


/* =========================
   КОНТАКТЫ
========================= */

.contact {
    padding: 90px 70px;

    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.contact.show {
    opacity: 1;

    transform: translateY(0);
}

form {
    max-width: 650px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}

input,
textarea {
    width: 100%;

    padding: 16px;

    border: 1px solid #ccc;

    border-radius: 12px;

    font-size: 16px;

    background: rgba(255,255,255,0.9);

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;

    border-color: #8DA3C2;

    box-shadow:
        0 0 0 4px rgba(141,163,194,0.15);

    transform: translateY(-2px);
}

textarea {
    height: 150px;

    resize: vertical;
}


/* =========================
   АНИМАЦИЯ ЗАГОЛОВКОВ
========================= */

.section h2,
.popular h2,
.contact h2 {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.section h2.show,
.popular h2.show,
.contact h2.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   МОБИЛЬНОЕ МЕНЮ
========================= */

.menu-btn {
    display: none;

    width: 45px;
    height: 45px;

    padding: 0;

    border-radius: 12px;

    font-size: 25px;

    background: #B0B7C6;
}


/* =========================
   МОБИЛЬНАЯ АДАПТАЦИЯ
========================= */

@media (max-width: 900px) {

    header {
        padding: 16px 25px;
    }

    header.scroll {
        padding: 12px 25px;
    }

    nav a {
        margin: 0 5px;
    }

    .hero {
        min-height: 550px;

        padding:
            50px 30px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .section,
    .popular,
    .contact {
        padding: 70px 35px;
    }

}


/* =========================
   ТЕЛЕФОН
========================= */

@media (max-width: 650px) {

    header {
        padding: 14px 20px;
    }

    header.scroll {
        padding: 12px 20px;
    }

    .logo {
        font-size: 20px;
    }


    /* Бургер */

    .menu-btn {
        display: block;

        position: relative;

        z-index: 1002;
    }


    /* Навигация */

    nav {
        position: fixed;

        top: 0;
        right: 0;

        width: 80%;
        max-width: 320px;

        height: 100vh;

        padding:
            100px 30px 40px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

        background: rgba(255,255,255,0.96);

        backdrop-filter: blur(20px);

        box-shadow:
            -10px 0 40px rgba(0,0,0,0.15);

        transform: translateX(110%);

        transition:
            transform 0.5s cubic-bezier(.16,1,.3,1);

        z-index: 1001;
    }

    nav.open {
        transform: translateX(0);
    }

    nav a {
        font-size: 20px;

        margin: 0;

        padding: 12px 0;

        opacity: 0;

        transform: translateX(30px);

        transition:
            opacity 0.4s ease,
            transform 0.4s ease;
    }

    nav.open a {
        opacity: 1;

        transform: translateX(0);
    }


    /* Задержка ссылок */

    nav.open a:nth-child(1) {
        transition-delay: .05s;
    }

    nav.open a:nth-child(2) {
        transition-delay: .1s;
    }

    nav.open a:nth-child(3) {
        transition-delay: .15s;
    }

    nav.open a:nth-child(4) {
        transition-delay: .2s;
    }


    /* Кнопка контактов в header */

    header > .btn {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        padding:
            50px 25px;

        align-items: center;
    }

    .hero::before {
        background:
            linear-gradient(
                to bottom,
                rgba(201,215,232,0.95),
                rgba(201,215,232,0.25),
                rgba(201,215,232,0.9)
            ),

            url("vs.jpg") center / cover no-repeat;
    }

    .hero-text {
        width: 100%;

        transform:
            translateY(50px);
    }

    .hero-text.show {
        transform:
            translateY(0);
    }

    .hero h1 {
        font-size: 44px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;

        max-width: 400px;
    }


    /* СЕКЦИИ */

    .section,
    .popular,
    .contact {
        padding:
            60px 20px;
    }

    .section h2,
    .section h1,
    .popular h2,
    .contact h2 {
        font-size: 34px;

        margin-bottom: 30px;
    }


    /* КАРТОЧКИ */

    .cards {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .card,
    .tour {
        padding: 25px;

        border-radius: 16px;
    }

    .card:hover,
    .tour:hover {
        transform:
            translateY(-5px)
            scale(1.01);
    }


    /* КНОПКИ */

    .btn,
    button {
        padding:
            12px 23px;

        font-size: 15px;
    }


    /* ФОРМА */

    input,
    textarea {
        font-size: 16px;
    }

}


/* =========================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
========================= */

@media (max-width: 400px) {

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .section h2,
    .popular h2,
    .contact h2 {
        font-size: 30px;
    }

}


/* =========================
   ЕСЛИ ОТКЛЮЧЕНЫ АНИМАЦИИ
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}
/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   Добавить в САМЫЙ КОНЕЦ style.css
========================================= */


/* ---------- Общие настройки ---------- */

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   ПЛАНШЕТЫ
   до 900px
========================================= */

@media (max-width: 900px) {

    /* Шапка */

    header {
        padding: 18px 30px;
    }

    header.scroll {
        padding: 14px 30px;
    }


    /* Основные секции */

    .section {
        padding: 60px 30px;
    }

    .popular {
        padding: 60px 30px;
    }

    .contact {
        padding: 60px 30px;
    }


    /* Hero */

    .hero {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero h1 {
        font-size: 55px;
    }


    /* Карточки */

    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .card,
    .tour {
        min-width: 0;
    }


    /* Текст */

    p {
        max-width: 100%;
    }

}


/* =========================================
   ТЕЛЕФОНЫ
   до 650px
========================================= */

@media (max-width: 650px) {

    /* Общие настройки */

    body {
        width: 100%;
        overflow-x: hidden;
    }


    /* =====================================
       ШАПКА
    ===================================== */

    header {
        width: 100%;

        padding: 14px 18px;

        position: sticky;
        top: 0;

        z-index: 1000;
    }

    header.scroll {
        padding: 12px 18px;
    }


    /* Логотип */

    .logo {
        font-size: 19px;

        white-space: nowrap;
    }


    /* =====================================
       НАВИГАЦИЯ
    ===================================== */

    nav {
        position: fixed;

        top: 0;
        right: 0;

        width: 80%;
        max-width: 320px;

        height: 100vh;

        padding: 90px 30px 30px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

        background: rgba(255,255,255,0.97);

        backdrop-filter: blur(15px);

        box-shadow:
            -10px 0 40px rgba(0,0,0,0.15);

        transform: translateX(110%);

        transition:
            transform 0.4s ease;

        z-index: 1001;
    }


    nav.open {
        transform: translateX(0);
    }


    nav a {
        margin: 0;

        padding: 12px 0;

        font-size: 19px;
    }


    /* Кнопка-бургер */

    .menu-btn {
        display: block;

        position: relative;

        z-index: 1002;

        width: 44px;
        height: 44px;

        padding: 0;

        border: none;

        border-radius: 12px;

        background: #B0B7C6;

        font-size: 24px;

        cursor: pointer;
    }


    /* Кнопку "Контакты" из шапки прячем */

    header > .btn {
        display: none;
    }


    /* =====================================
       HERO
    ===================================== */

    .hero {

        width: 100%;

        min-height: 600px;

        padding:
            50px 20px;

        display: flex;

        align-items: center;

        overflow: hidden;
    }


    .hero::before {

        background:

            linear-gradient(
                to bottom,
                rgba(201,215,232,0.9),
                rgba(201,215,232,0.35),
                rgba(201,215,232,0.9)
            ),

            url("vs.jpg")
            center center /
            cover
            no-repeat;
    }


    .hero-text {

        width: 100%;

        max-width: 100%;
    }


    .hero h1 {

        font-size: 42px;

        line-height: 1.1;

        letter-spacing: -1px;

        margin-bottom: 18px;
    }


    .hero p {

        font-size: 16px;

        line-height: 1.5;

        margin-bottom: 25px;
    }


    /* =====================================
       СЕКЦИИ
    ===================================== */

    .section {

        width: 100%;

        padding:
            50px 18px;
    }


    .popular {

        width: 100%;

        padding:
            50px 18px;
    }


    .contact {

        width: 100%;

        padding:
            50px 18px;
    }


    /* Заголовки */

    .section h2,
    .section h1,
    .popular h2,
    .contact h2 {

        font-size: 31px;

        line-height: 1.2;

        margin-bottom: 28px;
    }


    /* =====================================
       КАРТОЧКИ
    ===================================== */

    .cards {

        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .card,
    .tour {

        width: 100%;

        min-width: 0;

        padding: 23px;

        border-radius: 16px;
    }


    .card h3,
    .tour h3 {

        font-size: 20px;

        line-height: 1.3;
    }


    /* =====================================
       КНОПКИ
    ===================================== */

    .btn,
    button {

        max-width: 100%;

        padding:
            12px 22px;

        font-size: 15px;
    }


    /* =====================================
       ФОРМА
    ===================================== */

    form {

        width: 100%;

        max-width: 100%;
    }


    input,
    textarea {

        width: 100%;

        max-width: 100%;

        font-size: 16px;
    }


    /* =====================================
       ИЗОБРАЖЕНИЯ
    ===================================== */

    img {

        display: block;

        width: 100%;

        max-width: 100%;

        height: auto;
    }


    /* =====================================
       ТЕКСТ
    ===================================== */

    p {

        max-width: 100%;

        font-size: 16px;

        line-height: 1.55;

        overflow-wrap: break-word;

        word-wrap: break-word;
    }


    /* =====================================
       PRE
       
       ВАЖНО ДЛЯ ТВОИХ СТРАНИЦ
       anty / pogar / video
    ===================================== */

    pre {

        width: 100% !important;

        max-width: 100% !important;

        white-space: pre-wrap !important;

        overflow-wrap: anywhere !important;

        word-break: normal !important;

        font-family: Arial, sans-serif !important;

        font-size: 15px !important;

        line-height: 1.5 !important;

        overflow-x: hidden !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /* =====================================
       ЗАЩИТА ОТ ШИРОКИХ ЭЛЕМЕНТОВ
    ===================================== */

    section,
    main,
    article,
    div {

        max-width: 100%;
    }


    /* Не позволяем длинным словам
       расширять страницу */

    h1,
    h2,
    h3,
    h4,
    p,
    li,
    span {

        overflow-wrap: anywhere;

        word-wrap: break-word;
    }

}


/* =========================================
   ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   до 400px
========================================= */

@media (max-width: 400px) {

    .logo {
        font-size: 17px;
    }


    .hero {
        min-height: 550px;

        padding:
            40px 15px;
    }


    .hero h1 {
        font-size: 36px;
    }


    .hero p {
        font-size: 15px;
    }


    .section,
    .popular,
    .contact {

        padding:
            40px 14px;
    }


    .section h2,
    .section h1,
    .popular h2,
    .contact h2 {

        font-size: 28px;
    }


    .card,
    .tour {

        padding: 20px;
    }


    pre {

        font-size: 14px !important;

        line-height: 1.45 !important;
    }

}
pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}