body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* font-family: PT Sans Caption; */
}

html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

/* Для всех страниц КРОМЕ главной */
body.other-page main {
    padding-top: 100px;
    min-height: calc(100vh - 100px);

}

/* Для главной страницы */
body.home-page main {
    padding-top: 0;
    min-height: auto;
}


/* ЭТО ЧТОБЫ МОДАЛЬНОЕ ОКНО ПОЛИТИКИ НЕ СКРОЛИЛО */

body:has(.privacy-policy-modal.active),
body:has(.modal-overlay.active) {
    overflow: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

html:has(.privacy-policy-modal.active),
html:has(.modal-overlay.active) {
    overflow: hidden !important;
}


/* ++++++++++++++++++ ПАЛИТРА ++++++++++++++++++ */
.palitra {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rectangle1 {
    width: 80px;
    height: 60px;
    background-color: #164652

}
.rectangle2 {
    width: 80px;
    height: 60px;
    background-color: #87B9B0
 
}.rectangle3 {
    width: 80px;
    height: 60px;
    background-color: #1E3A47

}.rectangle4 {
    width: 80px;
    height: 60px;
    background-color: #6A8F8C
}
.rectangle5 {
    width: 80px;
    height: 60px;
    background-color: #E7F2EF
}
/* -------------------------------- */

h2.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
    font-size: 35px;
    font-weight: 900;
    width: 100%;
}

/* ОБЩИЙ КОНТЕЙНЕР (кроме hero) */
.content-container {
    padding: 0 100px; 
    /* Отступы слева и справа по 100px */
    max-width: 1200px; 
    /* Ограничиваем максимальную ширину */
    margin: 0 auto; 
    /* Центрируем контейнер */
}
@media (max-width: 1200px) {
    .content-container {
        padding: 0 30px;
    } 
}
@media (max-width: 1024px) {
    
    h2.section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }   
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    .content-container {
        padding: 0 10px;
    }
    h2.section-title {
        font-size: 30px;
        margin-bottom: 22px;
        padding: 0 10px;
    }

}

@media (max-width: 576px) {
    h2.section-title {
        font-size: 25px;
    }
    
}

@media (max-width: 480px) {
    /* h2.section-title {
        font-size: 20px;
    } */
     .content-container {
        padding: 0 20px;
    }
}

/* ============================================
   ШАПКА
   ============================================ */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 100px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.logo {
    height: 80px;
}

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    position: relative;
}

nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #5d5d5d;
}

nav > ul > li {
    position: relative;
}

nav > ul > li > a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

nav > ul > .dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

nav > ul > .dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 204, 0, 0.1);
    background-color: #E7F2EF;
    color: #333;
    border-left: 3px solid #f8c314;
    border-left: 3px solid #1E3A47;
    padding-left: 25px;
}

header.scrolled nav > ul > li > a {
    color: #333333;
}

header.scrolled .dropdown-menu {
    background-color: #ffffff;
    background-color: #ebe7f2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone p {
    margin: 0;
    color: #333333;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    text-align: right;
}

.pick-tour {
    position: relative;        /* ← добавляем! нужно для ::before */
    overflow: hidden;          /* ← добавляем! обрезает волну по границам */
    padding: 12px 24px;
    background-color: #ffb700;
    color: #333333;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pick-tour::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s ease;
}

.pick-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.pick-tour:hover::before {
    left: 100%;
}

/* ============================================
   СКРЫТЫЕ МОБИЛЬНЫЕ ЭЛЕМЕНТЫ (на десктопе)
   ============================================ */
.menu-toggle,
.mobile-controls,
.mobile-nav,
.second-row-header {
    display: none;
}

/* ============================================
  БУРГЕРНОЕ МЕНЮ
   ============================================ */
@media (max-width: 1024px) {
    /* Скрываем десктопные элементы */
    nav,
    .contacts {
        display: none !important;
    }
    
    /* Показываем мобильные элементы */
    .menu-toggle,
    .mobile-controls {
        display: flex;
    }
    .ipad-pick-tour {
        display: block;
    }

    /* Шапка для планшетов и мобильных */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: 70px;
        box-sizing: border-box;

        display: flex;
        flex-direction: row;
        height: 70px;
        padding: 15px 20px;
    }
    .first-row-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    header.scrolled {
        padding: 12px 20px;
    }
    
    /* Бургер-меню */
    .menu-toggle {
        background: none;
        border: none;
        width: 35px;
        height: 35px;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
        order: 1;
        z-index: 1000;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle:hover {
        cursor: pointer;
    }

    .logo {
        height: 40px;
        flex: 1;
        text-align: center;
        margin: 0 20px;
        order: 2;
    }
    
    .logo img {
        height: 100%;
        max-width: 150px;
    }
    
    /* Мобильные контролы (кнопка + телефон) */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        order: 3;

        flex-shrink: 0; /* Не сжимаем */
        max-width: calc(100vw - 150px); /* Ограничиваем ширину */
    }

    /* Кнопка "Подобрать тур" */
    .mobile-pick-tour {
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    /* Иконка телефона */
    .phone-icon {
        background: none;
        border: 1px solid #164652;
        width: 44px;
        height: 44px;
        padding: 10px;
        cursor: pointer;
        border-radius: 50%;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        
    }
    
    .phone-icon:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .phone-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Выпадающее окно телефона */
    .phone-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        padding: 20px;
        min-width: 220px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 1002; 
        margin-top: 10px;
    }
    
    .phone-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .phone-dropdown::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 15px;
        width: 16px;
        height: 16px;
        background: white;
        transform: rotate(45deg);
    }
    
    .phone-numbers {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-number {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        background: #f8f8f8;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .phone-number:hover {
        background: #E7F2EF;
        color: #333;
        border-color: #164652;
        transform: translateY(-1px);
    }
    
    /* Мобильное меню */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        display: none;
    }
    
    
    .mobile-nav.active {
        display: block !important;
    }
    
    .mobile-nav-content {
        padding-top: 60px;
    }
    
    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-menu-item {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #333;
        text-decoration: none;
        font-size: 18px;
        font-weight: 600;
        transition: color 0.2s;
    }
    .mobile-menu-link:hover {
        cursor: default;
        color:#333;
    }
    
    .mobile-menu-item.active .mobile-submenu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu-item:has(.mobile-submenu) .mobile-menu-link::after {
        display: none;
    }
    
    .mobile-submenu {
        list-style: none;
        padding: 10px 0 0 20px;
        margin: 0;
        display: block !important;
    }
    
    .mobile-submenu a {
        display: block;
        padding: 7px 0;
        color: #666;
        text-decoration: none;
        font-size: 16px;
        font-weight: 400;
        border-left: 2px solid transparent;
        padding-left: 15px;
        transition: all 0.2s;
    }
    
    .mobile-submenu a:hover {
        color: #333;
        border-left: 2px solid #164652;
        padding-left: 20px;
        background-color: #E7F2EF;
    }
    
    .mobile-close {
        position: absolute;
        top: 15px;
        left: 15px;
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-close span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        position: absolute;
    }
    
    .mobile-close span:first-child {
        transform: rotate(45deg);
    }
    
    .mobile-close span:last-child {
        transform: rotate(-45deg);
    }
    
    /* Отступ для контента */
    body.other-page main {
        padding-top: 85px;
    }
}

@media (max-width: 767px) {
    header {
        padding: 12px 15px;
        height: 65px;
        flex-direction: column;
    }
    
    .logo {
        height: 35px;
        margin: 0 15px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    .menu-toggle {
        width: 32px;
        height: 32px;
    }
    
    .mobile-controls {
        gap: 8px;
    }

    .mobile-pick-tour {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .phone-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .phone-icon svg {
        width: 20px;
        height: 20px;
    }
    
    body.other-page main {
        padding-top: 80px;
    }
}


@media (max-width: 480px) {
    .ipad-pick-tour {
        display: none;
    }
    header {
        display: block; /* Меняем flex на block */
        padding: 0; /* Убираем padding у header */
        height: auto; /* Убираем фиксированную высоту */
        min-height: 70px; /* Минимальная высота */
    }

    .first-row-header {
        display: flex;
        justify-content: space-between; /* Равномерное распределение */
        align-items: center;
        width: 100%;
        padding: 5px 10px;
        box-sizing: border-box;
        position: relative;
    }

    .second-row-header {
        width: 100%;
        padding: 0 20px 10px 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .wrapper-pick-tour {
        width: 100%;
        max-width: 200px; /* Фиксируем максимальную ширину */
    }
    
    .mobile-pick-tour {
        width: 100%;
        padding: 7px 12px;
        font-size: 15px;
        font-weight: bold;
    }

    .logo {
        height: 50px;
        margin: 0 10px;
    }
    
    .logo img {
        max-width: 120px;
    }
    

    .phone-icon {
        width: 36px;
        height: 36px;
        padding: 7px;
    }
    
    body.other-page main {
        padding-top: 75px;
    }

    
}


/* ======================================
            ОСНОВНОЙ БЛОК
====================================== */

/* Скрытый h1 для seo */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
    padding: 10px 0;
    background: linear-gradient(to bottom, #B3DBF4 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #ABD9EC 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #B3DBF4 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #9BD2E3 0%, #ffffff 100%);

    background: linear-gradient(to bottom, #90c6d6 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.image-wrapper {
    width: 80%;
    animation: fadeInLeft 0.8s ease-out;
}

.text-block {
    width: 50%;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title.left-aligned {
    text-align: left;
    padding-left: 0;
}

.hero-title.left-aligned::after {
    left: 0; /* Полоска также от левого края */
    transform: none; /* Убираем центрирование */
}

.hero-subtitle {
    font-size: 30px;
    font-weight: 400;
    color: #1b1f25;
    /* color: #164652; */
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: left;
}

.hero-title {
    font-size: 68px;
    font-weight: 800;
    color: #2d3748;
    color: #164652;
    margin: 0;
    line-height: 1;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    text-align: left; /* Добавляем выравнивание по левому краю */
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; 
    width: 200px;
    height: 4px;
    /* background: linear-gradient(90deg, #ffb700, #ff6b00);
    background: linear-gradient(90deg, #90b7b0, #3b756b); */
    border-radius: 2px;
}

.hero-description {
    font-size: 25px;
    font-weight: 400;
    color: #2b313a;
    margin-top: 10px;
    text-align: left;
}

/* Выделение цифр */
.hero-subtitle span,
.hero-description span {
    font-weight: 900;
    /* color: linear-gradient(90deg, #ffb700, #ff6b00); */
    position: relative;
    color: #282828;
}

.hero-title span{
    font-weight: 900;
    /* color: linear-gradient(90deg, #ffb700, #ff6b00); */
    position: relative;
}

.rest-button {
    padding: 12px 24px;
    background-color: #ffb700;
    color: #333333;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    position: relative;    
    overflow: hidden;        
}
.rest-button:hover {
    /* transform: translateY(-1px); */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.rest-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s ease;
}

.rest-button:hover::before {
    left: 100%;
}


.hero-subtext {
    margin-top: 20px;
    color: #464545;
    font-size: 16px;
    line-height: 1.6;
    max-width: 450px;
    opacity: 0.9;
    text-align: left;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

.hero-image {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease;
    box-shadow: none !important;
}

/* Убираем все декоративные элементы для изображения */
.image-overlay,
.image-decoration,
.hero::before {
    display: none !important;
}

/* Скрываем/показываем элементы в зависимости от устройства */
.desktop-button, .desktop-subtext {
    display: block;
}

.mobile-button, .mobile-subtext {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 500px;
        padding: 30px 0 40px 0;
    }
    
    .container {
        flex-direction: row;
        gap: 10px;
    }
    
    
    .hero-subtitle {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-title span::after {
        width: 150px;
    }
    
    .hero-description {
        font-size: 24px;
    }
    
    /* Для планшетов показываем десктопные элементы */
    .desktop-button, .desktop-subtext {
        display: block !important;
    }
    
    /* И скрываем мобильные */
    .mobile-button, .mobile-subtext {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 70px 0 40px 0;
    }
    
    .container {
        flex-direction: column;
        text-align: center;
        gap: 2px;
    }
    
    .text-block, .image-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Скрываем десктопные элементы */
    .desktop-button, .desktop-subtext {
        display: none;
    }
    
    /* Показываем мобильные элементы */
    .mobile-button, .mobile-subtext {
        display: block;
    }
    
    .hero-title span::after {
        width: 120px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-description {
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    
    .text-block {
        order: 1;
    }
    
    .image-wrapper {
        order: 2;
        margin: 0;
    }
    
    .mobile-button {
        order: 3;
        margin: 10px auto;
        display: block;
    }
    
    .mobile-subtext {
        order: 4;
        text-align: center;
        margin: 0 auto;
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 45px;
    }
    
    .hero-description {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 100px 0 30px 0;
        width: 100%;
    }
    .container {
        width: 100%;
    }
    .text-block {
        width: 90%;
    }

    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .rest-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .mobile-subtext {
        font-size: 14px;
        max-width: 320px;
    }
}


/* ======================================================
                        ГОРЯЩИЕ ТУРЫ
========================================================= */

.hot-section {
    margin-top: 50px;
}


/* ======================================================
                        АКЦИЯ
========================================================= */
.promotion-main-section {
    background-color: #E7F2EF;
    margin-top: 50px;
    border-radius: 20px;
  
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    padding: 0;
    gap: 25px;
}

.promotion-image {
    flex-shrink: 0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.promotion-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.promotion-content {
    flex: 1;
    padding-left: 0;
}

.promotion-main-title {
    font-size: 40px;
    color: #333;
    font-weight: 800;
    line-height: 1.2;
}

.accent-word {
    display: inline-block;
    font-size: 40px;
    font-weight: 900;
    color: #E33B3B;
    border: 3px solid #E33B3B;
    padding: 8px 24px;
    border-radius: 20px;
    letter-spacing: 2px;
    transform: rotate(-10deg);
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

/* .accent-word:hover {
    transform: rotate(-8deg) scale(1.02);
} */

.promotion-main-title .promo-name {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-top: 10px;
}

.promotion-main-title .accent-decor.gift {
    display: inline-block;
    font-size: 50px;
    margin-left: 8px;
    vertical-align: middle;
    animation: giftFloat 3s ease-in-out infinite;
}

/* Легкая анимация подарка */
@keyframes giftFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.promo-more {
    padding-bottom: 0;
}

.more-link-main {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
}

.more-link-main::after {
    content: '❯';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1.3em;
    /* font-weight: 400; */
    transition: transform 0.3s ease;
    vertical-align: middle;
    line-height: 1;
    height: 1em;
}

.more-link-main:hover::after {
    transform: translateX(5px);
}



/* Планшеты и ноутбуки (1024px и меньше) */
@media (max-width: 1024px) {
    .promotion-main-section {
        margin-top: 40px;
        border-radius: 18px;
    }
    
    .promo-container {
        padding: 25px;
        gap: 25px;
    }
    
    .promotion-img {
        height: 200px;
    }
    
    .promotion-main-title {
        font-size: 32px;
    }
    
    .accent-word {
        font-size: 40px;
        padding: 6px 20px;
        margin-bottom: 15px;
    }
    
    .promotion-main-title .promo-name {
        font-size: 26px;
        margin-top: 8px;
    }
    
    .promotion-main-title .accent-decor.gift {
        font-size: 42px;
    }
    
  
}

/* Планшеты вертикальные (768px и меньше) */
@media (max-width: 768px) {
    .promotion-main-section {
        margin-top: 30px;
        border-radius: 16px;
    }
    
    .promo-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    .promotion-image {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .promotion-img {
        height: auto;
        width: 100%;
        max-height: 220px;
        border-radius: 12px;
    }
    
    .promotion-content {
        text-align: center;
        padding-left: 0;
    }
    
    .promotion-main-title {
        font-size: 28px;
    }
    
    .accent-word {
        font-size: 36px;
        padding: 6px 18px;
        transform: rotate(0deg);
        margin-bottom: 15px;
    }
    
    .promotion-main-title .promo-name {
        font-size: 24px;
        margin-top: 5px;
    }
    
    .promotion-main-title .accent-decor.gift {
        display: none;
    }
    
    .promo-more {
        margin-top: 15px;
    }
    
    .more-link-main {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .promotion-main-section {
        margin-top: 20px;
        border-radius: 14px;
    }
    
    .promo-container {
        padding: 15px;
        gap: 15px;
    }
    
    .promotion-image {
        max-width: 800px;
        width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    .promotion-img {
        height: auto;
        width: 100%;
        max-height: 220px;
        border-radius: 12px;
    }
    
    .promotion-main-title {
        font-size: 24px;
    }
    
    .accent-word {
        font-size: 30px;
        padding: 2px 10px;
        border: #E33B3B solid 2px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .promotion-main-title .promo-name {
        font-size: 20px;
        margin-top: 5px;
    }
    
    .promotion-main-title .accent-decor.gift {
        font-size: 32px;
        margin-left: 4px;
    }
    
    .promo-more {
        margin-top: 12px;
    }
    
    .more-link-main {
        font-size: 13px;
    }
    
    .more-link-main::after {
        font-size: 1.2em;
        margin-left: 6px;
    }
}

/* Очень маленькие экраны (360px и меньше) */
/* @media (max-width: 360px) {
    .promo-container {
        padding: 12px;
    }
    
    .promotion-image {
        max-width: 240px;
    }
    
    .promotion-img {
        max-height: 150px;
    }
    
    .promotion-main-title {
        font-size: 20px;
    }
    
    .accent-word {
        font-size: 24px;
        padding: 3px 12px;
    }
    
    .promotion-main-title .promo-name {
        font-size: 18px;
    }
    
    .promotion-main-title .accent-decor.gift {
        font-size: 28px;
    } 
} */

/* ======================================================
                        НАПРАВЛЕНИЯ
========================================================= */

.directions {
    padding: 60px 0;
    background-color: #fff;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.direction-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.direction-card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); */
}

/* Первая строка: 3 карточки */
.direction-card:nth-child(1),
.direction-card:nth-child(2),
.direction-card:nth-child(3) {
    grid-column: span 2;
}

/* Вторая строка: 2 карточки */
.direction-card:nth-child(4),
.direction-card:nth-child(5) {
    grid-column: span 3;
}

/* Контейнер изображения */
.direction-card .image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.direction-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.direction-card:hover img {
    transform: scale(1.05);
}

/* Заголовок карточки */
.direction-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        transparent 100%);
    color: white;
    font-size: 35px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 2;
}


.direction-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .directions-grid {
        padding: 0;
    }
    .direction-card h3 {
    font-size: 30px;
  
}
}

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
    .directions {
        padding: 40px 0;
    }
    
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    
    .direction-card {
        height: 200px;
    }
    
    /* Все карточки занимают по 2 колонки (50%) */
    .direction-card {
        grid-column: span 1 !important; /* !important чтобы переопределить другие правила */
    }
    
    /* Четвертая карточка (Египет) делаем шире */
    .direction-card:nth-child(4) {
        grid-column: span 2 !important;
        height: 180px;
    }
    
    /* Переносим карточки по порядку */
    .direction-card:nth-child(1) { grid-row: 1; }
    .direction-card:nth-child(2) { grid-row: 1; }
    .direction-card:nth-child(3) { grid-row: 2; }
    .direction-card:nth-child(4) { grid-row: 3; }
    .direction-card:nth-child(5) { grid-row: 2; }
    
    .direction-card h3 {
        font-size: 28px;
        padding: 12px;
    }
}

/* Мобильные (576px и меньше) */
@media (max-width: 576px) {
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }
    
    .direction-card {
        height: 180px;
        grid-column: span 1 !important;

    }
    
    /* На мобильных все карточки в один столбец */
    .direction-card:nth-child(4) {
        grid-column: span 1 !important;
        height: 180px;
    }
    
    /* Порядок карточек по одной в ряд */
    .direction-card:nth-child(1) { grid-row: 1; }
    .direction-card:nth-child(2) { grid-row: 2; }
    .direction-card:nth-child(3) { grid-row: 3; }
    .direction-card:nth-child(4) { grid-row: 4; }
    .direction-card:nth-child(5) { grid-row: 5; }
    
    .direction-card h3 {
        font-size: 28px;
        padding: 10px;
    }
}

/* Очень маленькие экраны (400px и меньше) */
@media (max-width: 400px) {
    .direction-card {
        height: 160px;
    }
    
    .direction-card h3 {
        font-size: 28px;
    }
}

/* Дополнительно: для широких карточек (если хотите выделить Египет) */
.direction-card.wide-card {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .direction-card.wide-card {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .direction-card.wide-card {
        grid-column: span 1;
    }
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.direction-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.direction-card:nth-child(1) { animation-delay: 0.1s; }
.direction-card:nth-child(2) { animation-delay: 0.2s; }
.direction-card:nth-child(3) { animation-delay: 0.3s; }
.direction-card:nth-child(4) { animation-delay: 0.4s; }
.direction-card:nth-child(5) { animation-delay: 0.5s; }


/* ======================================================
                        КАК КУПИТЬ
========================================================= */

.how-to-buy {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.steps-row {
    display: flex;
    gap: 20px;
}

.first-row {
    justify-content: space-between;
}

.first-row .step-item {
    flex: 1; /* Все 3 элемента равной ширины */
    max-width: calc(33.333% - 20px); 
}

.second-row {
    justify-content: space-between;
}

.second-row .step-item {
    flex: 1; /* Шаги 4 и 5 равной ширины */
    max-width: calc(33.333% - 20px); /* Каждый занимает 1/3 */
}

.tour-form {
    flex: 1;
    max-width: calc(33.333% * 2 - 20px); /* 2/3 ширины минус gap */
    background: linear-gradient(to bottom, #87B9B0, #c5e4dc);
    color: #030303;
    padding: 20px;
    border-radius: 20px;
}

.step-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.step-item h3 {
    color: #337ab7;
    color: #043a1f;
    margin-bottom: 15px;
    font-size: 24px;
}

.step-item p:first-of-type {
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 15px;
    font-size: 26px;
}

.step-item p:last-of-type {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.tour-form h3 {
    margin-bottom: 5px;
    font-size: 22px;
    color: #000000;
    margin-top: 10px;
    text-align: center;
}

.tour-form p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #282828;
    opacity: 0.9;
    line-height: 1.2;
}


/* Планшеты (992px и меньше) */
@media (max-width: 992px) {
    
    
    
}

/* Мобильные (768px и меньше) */
@media (max-width: 768px) {
    .how-to-buy {
        padding: 30px 10px;
    }
    
    .steps-container {
        gap: 5px;
    }
    
    /* Все элементы в один столбец */
    .steps-row {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Первая строка: все 3 шага один под другим */
    .first-row .step-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    /* Убираем margin-top у третьего элемента */
    .first-row .step-item:nth-child(3) {
        margin-top: 0;
    }
    
    /* Вторая строка: шаги 4-5 + форма */
    .second-row .step-item {
        flex: 0 0 100%;
        max-width: 100%;
        /* margin-bottom: 1px; */
    }
    
    .tour-form {
        order: 3; /* Форма точно после шагов */
        margin-top: 10px;
        padding: 25px 20px;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    .step-item h3 {
        font-size: 22px;
    }
    
    .step-item p:first-of-type {
        font-size: 17px;
    }
    
    .step-item p:last-of-type {
        font-size: 15px;
    }
    
    .tour-form h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .how-to-buy {
        padding: 20px 10px;
    }
    
    .step-item {
        padding: 2px 15px;
    }
    .step-item h3 {
        margin: 0;
    }
    .step-item p {
        margin: 5px 0 0 0;
        margin-bottom: 40px;
    }
    .step-item p:first-of-type {
        font-size: 25px;
        
    }
    .tour-form {
        padding: 20px 15px;
    }
    
    .tour-form input {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .tour-form button {
        padding: 12px;
        font-size: 15px;
    }
    

}


/* ======================================================
                        ПАРТНЕРЫ
========================================================= */
.partners {
    padding: 0 0 10px 0;
    margin: 50px 0 100px 0;
}
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Отступы между логотипами */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-logos img {
    height: 60px; /* Фиксированная высота для единообразия */
    width: auto; /* Сохраняем пропорции */
    max-width: 180px; /* Максимальная ширина */
    object-fit: contain; /* Сохраняем пропорции изображения */
}

/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .partners-logos {
        gap: 30px;
    }
    
    .partners-logos img {
        height: 50px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {

    .partners-logos {
        gap: 25px;
        padding: 0 15px;
    }
    
    .partners-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        justify-items: center; /* Центрируем в каждой ячейке */
        align-items: center;
    }
    
    .partners-logos img {
        height: 45px;
        max-width: 130px;
        width: 100%; /* Занимает всю ширину ячейки */
    }
}

@media (max-width: 576px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 20px;
        padding: 0 10px;
    }
    
    .partners-logos img {
        height: 40px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .partners {
        margin: 40px 0;
    }
    .partners-logos {
        margin: 30px 0 0 0;
        padding: 0;
    }
    
    .partners-logos img {
        height: 50px;
        max-width: 120px;
    }
}


/* ======================================================
                        ПРЕИМУЩЕСТВА
========================================================= */

.advantages-section {
    background-color: #87B9B0;
    padding: 4px 0;
    margin: 4px 0;
    border-radius: 20px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.advantage-item {
    text-align: center;
    padding: 3px 20px;
    border-radius: 15px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.advantage-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 12px;
}

.advantage-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
}

.advantage-label.big-label {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    padding: 10px 0;
}

.advantage-label.big-label span {
    display: block;
    font-size: 1.8rem;
    color: #000000;
    margin-top: 5px;
    font-weight: 800;
}


@media (max-width: 994px) {
    .advantages-section {
        padding: 5px 0;
        margin: 3px 0;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        padding: 0 3px;
        max-width: 800px;
    }
    
    .advantage-item {
        padding: 2px 5px;
        min-height: 15px;
    }
    
    .advantage-number {
        font-size: 2.8rem;
    }
    
    .advantage-label {
        font-size: 1.2rem;
    }
    
    .advantage-label.big-label {
        font-size: 1.4rem;
    }
    
    .advantage-label.big-label span {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .advantages-section {
        padding: 20px 0;
        margin: 20px 0 0 0;
        border-radius: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 8px; /* уменьшил gap между карточками */
        padding: 0 20px;
        max-width: 400px;
    }
    
    .advantage-item {
        text-align: center;
        padding: 12px 16px; /* уменьшил вертикальные отступы */
        border-radius: 12px;
        min-height: auto; /* убрал фиксированную высоту */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease;
        background-color: rgba(255, 255, 255, 0.5); /* легкий фон для читаемости */
    }
    
    /* Разделительная линия между элементами (кроме последнего) */
    /* .advantage-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -4px; 
        left: 20%;
        right: 20%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.1);
    } */
    
    .advantage-number {
        font-size: 28px; /* чуть уменьшил */
        font-weight: 800;
        /* color: #164652;  */
        line-height: 1.2;
        margin-bottom: 6px; /* уменьшил отступ */
    }
    
    .advantage-label {
        font-size: 14px; /* уменьшил */
        font-weight: 500;
        color: #1E3A47;
        line-height: 1.3;
    }
    
    .advantage-label.big-label {
        font-size: 14px;
        font-weight: 600;
        padding: 0;
    }
    
    .advantage-label.big-label span {
        display: block;
        font-size: 16px;
     
        margin-top: 4px;
        font-weight: 700;
    }
}

/* ======================================================
                        КОМАНДА
========================================================= */
.team-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 50px;
}

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

.team-member {
    display: flex;
    align-items: flex-start;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    background-color: white;
    width: 100%;
    max-width: 400px;
    min-height: 160px;
    box-sizing: border-box;
}

.team-image {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
    background-color: #f8f9fa;
    padding: 5px;
    flex-shrink: 0;
}

.member-info {
    flex: 1; /* Занимает все оставшееся пространство */
    min-width: 0; /* Для правильного переноса текста */
}

.member-name h3 {
    color: #2c3e50;
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Делаем имя и фамилию на разных строках */
.member-name h3 span {
    display: block;
}

.member-info p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9em;
}

/* Адаптивность для планшетов */
@media (max-width: 900px) {
    .team-grid {
        gap: 20px;
    }
    
    .team-member {
        max-width: 350px;
        padding: 15px;
    }
    
    .team-image {
        width: 100px;
        height: 150px;
        margin-right: 15px;
    }
}


@media (max-width: 768px) {
    .team-section {
        padding: 30px 15px;
    }
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .team-member {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 0px 10px;
        margin: 0;
    }
    .team-grid {
        gap: 10px; 
    }
    .team-member {
        padding: 15px 5px;
        min-height: auto;
    }
    
    .team-image {
        width: 90px;
        height: auto;
        margin-right: 15px;
    }
    
    .member-name h3 {
 
        font-size: 18px !important;
    }
    
}


/* ============================================
                  ОТЗЫВЫ
   ============================================ */

.main-reviews-section {
    overflow: hidden;
    padding: 40px 0;
    /* background-color: #f8f9fa; */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    background-color: #E7F2EF;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили карточек отзывов */
.main-reviews-card {
    background-color: #ffffff;
    width: 550px;
    height: 550px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.main-reviews-card-title {
    font-size: 20px;
    font-weight: 600;
}

.main-reviews-card2 {
    width: 550px;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative; /* ← ДОБАВИТЬ ЭТУ СТРОЧКУ */
}

.main-user-review {
    /* background: #FFF7E5;
    background: #d8eae6; */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.main-review-author {
    margin-left: 12px;
    align-items: start;
}

.main-review-author h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.main-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.main-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2a5db0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.main-profile-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.main-profile-link:hover {
    color: #2a5db0;
}

.main-review-text p {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.main-reviews-cta-wrapper p {
    text-align: center;
    font-size: 15px;
    color: #282828;
    opacity: 0.9;
    line-height: 1.2;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.main-reviews-cta {
    text-align: center;
    margin: 20px 0 0 0;
}

.main-write-review-btn {
    padding: 12px 24px;
    background-color: #87B9B0;
    color: #333333;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.main-reviews-cta:hover {
    transform: translateY(-1px);
}

.reviews-bottom-link {
        text-align: right;
        margin-top: 0px; /* Отступ от карточек */
        padding-bottom: 30px; /* Отступ от нижнего края секции */
    }

.more-link-reviews-articles {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 200;
    font-size: 1em;
    /* padding: 5px 0; */
    /* transition: all 0.3s ease; */
    transition: color 0.3s ease, font-weight 0.3s ease;
    float: right; 
}
.more-link-reviews-articles::after {
    content: '❯';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1.3em; /* Чуть больше для баланса */
    font-weight: 400;
    transition: transform 0.3s ease;
    vertical-align: middle;
    line-height: 1;
    height: 1em; /* Фиксированная высота */
    transition: transform 0.3s ease, margin-left 0.3s ease;
}

.more-link-reviews-articles:hover::after {
    transform: translateX(5px);
    /* margin-left: 12px; */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #87B9B0;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-button.prev {
    left: 25px;
}

.carousel-button.next {
    right: 25px;
}

.carousel-button:hover {
    background: #6A8F8C;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-button:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
}


@media (min-width: 1024px) {
    .main-reviews-card {
        width: 400px;
    }
    .main-reviews-card2 {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    .carousel {
        flex-wrap: wrap;
        transform: none !important;
        justify-content: center;
        gap: 0;
    }
    
    .carousel-item {
        flex: 0 0 50%;
        padding: 25px;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }
    
    .carousel-item[style*="order: 0"],
    .carousel-item[style*="order: 1"] {
        opacity: 1;
        pointer-events: auto;
    }
    
    .carousel-item[style*="order: 2"] {
        opacity: 0;
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-button.prev {
        left: 10px;
    }
    
    .carousel-button.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
        border-radius: 0;
        overflow: visible;
    }
    
    .carousel {
        flex-wrap: nowrap;
        width: calc(100% * var(--total-slides));
    }
    
    .carousel-item {
        flex: 0 0 100%;
        opacity: 1 !important;
        order: 0 !important;
        pointer-events: auto !important;
        padding: 10px;
    }
    
    .carousel-button {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 10px;
        z-index: 20;
    }
    
    .carousel-button.prev {
        left: 5px;
    }
    
    .carousel-button.next {
        right: 5px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

}

@media (max-width: 480px) {
    .main-reviews-section {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .carousel-container {
        background-color: transparent !important;
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    /* Отключаем карусель - делаем столбиком */
    .carousel {
        display: flex;
        flex-direction: column;
        gap: 20px;
        transform: none !important;
        transition: none;
        width: 100%;
    }
    
    .carousel-item {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        height: auto !important;
    }
    .carousel-item:last-child {
        display: none;
    }
    /* Скрываем кнопки карусели */
    .carousel-button {
        display: none;
    }
    
    /* Виджеты на всю ширину (влево-вправо) */
    .main-reviews-card2 {
        width: 100%;
        max-width: 100%;
        height: 450px;
        border-radius: 0; /* Убираем скругление, чтобы было строго от края до края */
    }

    .reviews-bottom-link {
        margin: 30px 10px 0 0;
    }

    .more-link-reviews-articles {
        font-size: 13px;
    }
}



/* =========================================== */
/* Анимации и состояния */
/* =========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-item {
    animation: fadeIn 0.5s ease;
}

.carousel.loading .carousel-item {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

/* =========================================== */
/* Темная тема */
/* =========================================== */
/* @media (prefers-color-scheme: dark) {
    .main-reviews-section {
        background-color: #1a1a1a;
    }
    
    .section-title {
        color: #fff;
    }
    
    .carousel-container {
        background-color: #2d2d2d;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-button {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .carousel-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }
} */


.carousel-item[style*="opacity: 0"] {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.carousel-item[style*="opacity: 1"] {
    visibility: visible;
    height: auto;
    overflow: visible;
}

/* ============================================
                  СТАТЬИ
   ============================================ */


.articles-section {
    padding: 20px 2px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.articles-grid a {
    text-decoration: none;
}

.article-card {
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px 20px 0 20px;  
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: #d8eae6;
}

.article-image {

    flex: 0 0 40%;
    position: relative;
    height: 200px;
    overflow: hidden;          
    border-radius: 10px; 
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.article-card:hover .article-image img {
    /* transform: scale(1.05); */
}

.article-content {
    /* padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column; */
    padding: 0 0 25px 10px;
}

.article-content h2 {
    /* margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    flex-grow: 1; */

    font-size: 16px;
    color: #222;
    margin: 10px 0;
    font-weight: 600;

}

/* .article-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #666;
} */

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-date::before {
    font-size: 0.9em;
}

.article-read-more {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.article-read-more:hover {
    color: #3a5a8a;
    text-decoration: underline;
}

.articles-bottom-link {
    text-align: right;
    margin-top: 60px;
    padding-bottom: 30px; 
}




/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 20px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .articles-section {
        padding: 40px 15px;
    }
    
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .articles-header h2 {
        font-size: 1.8em;
    }
    
    .articles-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 20px;
    }
    
    .article-image {
        height: 200px; /* Немного увеличим высоту на мобильных */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {

    .articles-section {
        padding: 20px 2px;
        /* max-width: 1200px;
        margin: 0 auto; */
    }
    
    .article-content {
        padding: 5px;
    }

    .article-card {
        padding: 10px 10px 0 10px;  
    }
    
    .article-content h3 {
        font-size: 13px;
    }
    .article-content h2 {
        font-size: 14px;
        color: #222;
        margin: 10px 0;
        font-weight: 600;
    }
    
    .article-image {
        height: 130px;
    }

    .articles-bottom-link {
        margin-top: 30px;
    }
}


/* ======================
   МОДАЛЬНОЕ ОКНО
   ====================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Более темный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px; /* Отступ от краев экрана */
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 20px; /* Больше скругление */
    width: 100%;
    max-width: 500px; /* Оптимальная ширина для десктопа */
    padding: 40px 35px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-height: 90vh; /* Не больше 90% высоты экрана */
    overflow-y: auto; /* Скролл если контент не помещается */
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия - более заметная */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: #f5f5f5; /* Серый фон при наведении */
    color: #333;
}

/* Заголовок модального окна */
.modal-header {
    margin-bottom: 30px;
    text-align: center;
    padding-right: 30px; /* Чтобы не перекрывалось кнопкой закрытия */
}

.modal-header h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

.modal-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Форма в модальном окне */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.form-group label[for]:after {
    content: ' *';
    color: #ff4444;
    font-weight: bold;
    margin-left: 3px;
}

.form-group label[for="comment"]:after {
    content: ''; /* Убираем звездочку у необязательного поля */
}

.form-group input,
.form-group textarea {
    padding: 10px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fcfcfc;

    margin-bottom: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb700;
    border-color: #164652;
    background: white;
    box-shadow: 0 0 0 4px rgba(116, 228, 163, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

/* Чекбокс согласия */
.consent-checkbox {
    margin: 10px 0 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* cursor: pointer; */
    font-size: 12px;
    color: #2e2e2e;
    line-height: 1.2;
}

.checkbox-label input[type="checkbox"] {
    /* margin-top: 3px; */
    width: 15px;
    height: 15px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #ffb700;
    accent-color: #164652;
    border-radius: 4px;
}

.checkbox-label span {
    flex: 1;
    user-select: none;
}

.checkbox-label a {
    color: #1e40af;
    text-decoration: underline;
    transition: color 0.2s;
}

.checkbox-label a:hover {
    color: #2953de;
}

/* Кнопка отправки */
.submit-btn {
    background: linear-gradient(135deg, #ffb700 0%, #ffcc00 100%);
    background: #6A8F8C;
    color: #202020;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #6A8F8C;
}

.submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

/* Неактивная кнопка */
.submit-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Сообщения формы */
.form-message {
    margin: 15px 0;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: #fff2f2;
    border: 1px solid #ffcccc;
    color: #d8000c;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.success-message {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}


/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 450px;
        padding: 35px 30px;
    }
    
    .modal-header h2 {
        font-size: 26px;
    }
}

/* Планшеты и большие телефоны (до 768px) */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
        align-items: flex-start; /* Начинаем сверху на мобильных */
        padding-top: 60px; /* Отступ для шапки */
    }
    
    .modal-content {
        max-width: 100%;
        max-height: calc(100vh - 80px); /* Учитываем отступы */
        padding: 30px 25px;
        border-radius: 16px;
        transform: translateY(20px) scale(0.98);
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 26px;
        background: white; /* Белый фон всегда на мобильных */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .modal-close:hover {
        background-color: #f5f5f5;
    }
    
    .modal-header {
        margin-bottom: 25px;
    }
    
    .modal-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .modal-header p {
        font-size: 15px;
    }
    
    .modal-form {
        gap: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 17px;
    }
}

/* Телефоны (до 480px) */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
        padding-top: 50px;
    }
    
    .modal-content {
        padding: 25px 20px;
        border-radius: 14px;
        max-height: calc(100vh - 60px);
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .modal-header {
        margin-bottom: 20px;
        padding-right: 25px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .modal-header p {
        font-size: 14px;
    }
    
    .modal-form {
        gap: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .checkbox-label {
        font-size: 13px;
        gap: 10px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .consent-checkbox {
        margin: 12px 0 20px 0;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .form-message {
        font-size: 13px;
        padding: 12px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .modal-content {
        padding: 20px 16px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Портретная ориентация на мобильных */
@media (max-height: 700px) and (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        max-height: calc(100vh - 20px);
        padding: 20px;
    }
    
    .modal-header {
        margin-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .modal-header p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .modal-form {
        gap: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* ============================================
                    ПОДВАЛ
   ============================================ */
footer {
  background-color: #4D607E; /* Тёмно-синий фон */
  background-color: #164652;
  color: #fff;
  padding: 0 0 10px 0;
  font-family: Arial, sans-serif;
}

.subscribe-block {
  background-color: #ffb700;
  background-color: #87B9B0;
  text-align: center;
  padding: 20px 0;
  margin-bottom: 30px;
}
.subscribe-block h2 {
    color: #000000;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 15px;
}

.social-links a {
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column; /* Вертикальное расположение */
  align-items: center; /* Центрирование по горизонтали */
  gap: 8px; /* Расстояние между иконкой и текстом */
  transition: transform 0.3s;
}
.social-links img {
    width: 50px;  /* Настройте нужный размер */
    height: 50px; /* Настройте нужный размер */
    object-fit: contain;
}

.social-item:hover {
    transform: translateY(-3px);
}
.social-item span {
    font-size: 14px;
    font-weight: 500;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
}

.col {
    width: 23%;
    padding: 0 15px;
}

.col1 {
    width: 40%;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяет блоки по вертикали */
}
.col1-avtor {
    margin-top: auto; /* Это прижмет к низу */
    padding-top: 5px;
    border-top: 1px solid #eee;
    max-width: 400px;
}
.col4 {
    width: 30%;
    padding: 0 20px;
    text-align: left; /* Все содержимое по левому краю */
}
.col ul {
  list-style: none;
  padding: 0;
}
.col4 ul {
  list-style: none;
  padding: 0;
}
.col ul li {
  margin-bottom: 5px;
}

.col ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.col ul li a:hover {
  color: #f8e8a5;
  color: #87B9B0;
}
.col1 img {
    width: 180px;
}
.col1-politika a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    transition: color 0.3s;
}

.col1-politika a:hover {
    color: #f8e8a5;
    color: #87B9B0;
}

.col4 .social-links {
    display: flex;
    justify-content: flex-start; /* Вместо center - к левому краю */
    gap: 20px;
    margin-top: 10px;
}
.col4 .social-links img {
    width: 30px;
}

.registry-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.registry-logo {
    flex-shrink: 0;
}

.registry-logo img {
    border-radius: 4px;
    width: 40px;
}

.registry-text {
    display: flex;
    flex-direction: column;
}

.registry-line {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 4px;
}

.registry-number {
    text-decoration: underline;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.registry-number:hover {
    color: #f8e8a5;
    color: #87B9B0;
}

.image-credits {
    margin: 10px 0;
    padding-top: 15px;
    font-size: 16px;
    color: #ffffff;
}

.image-credits a {
    /* color: #2f72de; */
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
}

.image-credits a:hover {
    text-decoration: underline;
    color:#fcd77f;
    color: #87B9B0;

}

.footer-columns {
    display: flex;
    justify-content: space-between;
}

/* Планшеты (992px и меньше) */
@media (max-width: 992px) {
    .footer-columns {
        gap: 10px;
    }
}

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .col1 {
        order: 4;
        width: 100%;
        padding: 0 20px;
    }
    
    .col {
        order: 2;
        width: 100%;
        padding: 0 20px;
    }
    
    /* Второе меню идет после первого */
    .col:nth-child(3) {
        order: 3;
    }
    
    .col4 {
        order: 1;
        width: 100%;
        padding: 0 20px;
        margin-top: 0;
    }
    
    /* Логотип по центру */
    /* .col1-logo {
        text-align: center;
    } */
    
    .col1-logo img {
        /* width: 140px; */
        display: none;
    }
    
    /* Реестр по центру */
    .registry-info {
        /* justify-content: center; */
        /* text-align: center; */
        /* margin: 15px 0; */
    }
    
    /* Политика по центру */
    .col1-politika {
        /* text-align: center; */
        /* margin: 15px 0; */
    }
    
    /* Копирайт по центру */
    .col1-avtor {
        /* text-align: center; */
        /* margin-top: 15px; */
    }
    
    /* Меню по центру */
    /* .col ul {
        text-align: center;
    } */
    
    .col ul li {
        margin: 8px 0;
    }
    
    /* Контакты по центру */
    /* .col4 {
        text-align: center;
    } */
    
    /* .col4 .social-links {
        justify-content: center;
    } */
    
    /* Подписной блок */
    .subscribe-block {
        padding: 25px 20px;
    }
    
    .subscribe-block h2 {
        font-size: 22px;
    }
    
    .subscribe-block .social-links {
        gap: 30px;
    }
}

/* Мобильные (576px и меньше) */
@media (max-width: 576px) {
    .subscribe-block {
        padding: 20px 15px;
    }
    
    .subscribe-block h2 {
        font-size: 18px;
    }
    
    /* Соцсети в подписке - компактнее но все еще в строке */
    .subscribe-block .social-links {
        gap: 20px;
    }
    
    .social-links img {
        width: 40px;
        height: 40px;
    }
    
    .social-links a span {
        font-size: 13px;
    }
    
    /* Логотип */
    .col1-logo img {
        width: 120px;
    }
    
    /* Меню */
    .col ul li {
        margin: 6px 0;
    }
    
    .col ul li a {
        font-size: 15px;
    }
    
    /* Контакты */
    .col4 p {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .col4 ul {
        margin: 10px 0;
    }
    
    .col4 ul li {
        margin: 5px 0;
        font-size: 15px;
    }
    
    .col4 .social-links {
        gap: 15px;
        margin-top: 10px;
    }
    
    .col4 .social-links img {
        width: 35px;
    }
    
    /* Реестр */
    /* .registry-info {
        margin: 15px 0;
    } */
    
    .registry-line {
        font-size: 13px;
    }
    
    .registry-number {
        font-size: 14px;
    }
    
    /* Политика */
    .col1-politika a {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Копирайт */
    .col1-avtor p {
        font-size: 14px;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {

    .footer-columns {
        margin: 0px;
        gap:0px;
    }
    .subscribe-block h2 {
        font-size: 16px;
    }
    
    .subscribe-block .social-links {
        gap: 15px;
    }
    
    .social-links img {
        width: 35px;
        height: 35px;
    }
    
    .social-links a span {
        font-size: 12px;
    }
    
    /* Логотип */
    .col1-logo img {
        width: 110px;
    }
    
    /* Меню */
    .col ul li a {
        font-size: 14px;
    }
    
    /* Контакты */
    .col4 p {
        font-size: 13px;
    }
    
    .col4 ul li {
        font-size: 14px;
    }
    
    .col4 .social-links img {
        width: 30px;
    }
    
    /* Политика */
    .col1-politika a {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    /* .subscribe-block {
        padding: 15px 10px;
    } */
    
    .subscribe-block .social-links {
        gap: 10px;
    }
    
    .social-links img {
        width: 32px;
        height: 32px;
    }
    
    .social-links a span {
        font-size: 11px;
    }
    
    .col1-logo img {
        width: 100px;
    }
    
    .col4 .social-links img {
        width: 28px;
    }
  
}










/* ============================================
            ХЛЕБНЫЕ КРОШКИ
   ============================================ */

.breadcrumbs {
    margin: 20px 0px 20px 50px;
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    display: block !important;
}

.breadcrumb-link {
    color: #898989;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #3a5a8a;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

/* На мобильных */
@media (max-width: 768px) {
    .breadcrumbs {
        margin: 10px 10px 20px 10px;
        padding: 10px 0;
        font-size: 15px;
    }
    .breadcrumb-link {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        margin: 30px 15px 15px 15px;
        padding: 8px 0;
        font-size: 13px;
        line-height: 1.4;
    }
    .breadcrumb-link {
        font-size: 13px;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
        font-size: 13px;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        max-width: 120px;
    }
}


/* ============================================
            ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ
   ============================================ */

/* Стили для модального окна политики конфиденциальности */
.privacy-policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.privacy-policy-modal.active {
    opacity: 1;
    visibility: visible;
}

.privacy-policy-modal__content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.privacy-policy-modal.active .privacy-policy-modal__content {
    transform: translateY(0);
}

.privacy-policy-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 31px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 10;
    transition: all 0.2s ease;

}


.privacy-policy-modal__close:hover {
    background: #e0e0e0;
    color: #333;
}

.privacy-policy-modal__body {
    padding: 40px;
    overflow-y: auto;
    max-height: 80vh;
}

.privacy-policy-modal__body h2 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.privacy-policy-modal__body h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.privacy-policy-modal__body h3:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.privacy-policy-modal__body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.privacy-policy-modal__body ul {
    margin: 10px 0 20px 20px;
    padding: 0;
}

.privacy-policy-modal__body li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.privacy-policy-modal__body strong {
    color: #333;
}

/* Скроллбар */
.privacy-policy-modal__body::-webkit-scrollbar {
    width: 5px; /* Основное изменение - делаем узким */
}

.privacy-policy-modal__body::-webkit-scrollbar-track {
    background: #f1f1f1; /* Светлый фон трека */
}

.privacy-policy-modal__body::-webkit-scrollbar-thumb {
    background: #888; /* Серый цвет как у стандартного */
    border-radius: 2px; /* Чуть закругленные углы */
}

.privacy-policy-modal__body::-webkit-scrollbar-thumb:hover {
    background: #555; /* Темнее при наведении */
}

/* Для Firefox */
.privacy-policy-modal__body {
    scrollbar-width: thin; /* Тонкий скроллбар в Firefox */
    scrollbar-color: #888 #f1f1f1; /* Цвета как в Chrome */
}


/* Адаптивность */
@media (max-width: 768px) {
    .privacy-policy-modal {
        padding: 15px;
    }
    
    .privacy-policy-modal__content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .privacy-policy-modal__body {
        padding: 30px 25px;
        max-height: 85vh;
    }
    
    .privacy-policy-modal__body h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .privacy-policy-modal__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    .privacy-policy-modal__body {
        padding: 25px 20px;
    }
    
    .privacy-policy-modal__body h2 {
        font-size: 20px;
    }
    
    .privacy-policy-modal__body h3 {
        font-size: 15px;
    }
    
    .privacy-policy-modal__body p,
    .privacy-policy-modal__body li {
        font-size: 13px;
    }
}


/* ============================================
                    COOKIES
   ============================================ */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(52, 52, 52, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    /* border-top: 1px solid #e0e0e0; */
    padding: 10px 0 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookies-banner.show {
    transform: translateY(0);
}

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

.cookies-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* .cookies-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 600;
} */

.cookies-text {
    font-size: 14px;
    line-height: 1.5;
    color: #d3d3d3;
    margin-bottom: 15px;
}

.cookies-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cookies-link {
    font-size: 13px;
    color: #c9c9c9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cookies-link:hover {
    color: #2a5db0;
    border-bottom-color: #2a5db0;
}

.cookies-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookies-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.cookies-btn-accept {
    background: #2a5db0;
    color: white;
}

.cookies-btn-accept:hover {
    background: #1d4a8a;
    /* transform: translateY(-2px); */
}

.cookies-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 1px solid #292929;
}

.cookies-btn-reject:hover {
    border-color: #999;
    color: #ffffff;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .cookies-banner {
        padding: 15px 0;
    }
    
    .cookies-content {
        text-align: left;
    }
    
    .cookies-title {
        font-size: 16px;
    }
    
    .cookies-text {
        font-size: 13px;
    }
    
    .cookies-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .cookies-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookies-btn {
        width: 100%;
        min-width: auto;
    }
}

