/* ========================================
   🌐 ОБЩИЕ СТИЛИ
======================================== */

/* Фон всего сайта */
body {
    background-color: #ede6fa;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Общий белый контейнер */
.page-wrapper {
    background: white;
    max-width: 950px;
    margin: 40px auto 0 !important;
    padding: 40px;
    border-radius: 12px;
}


section {
    padding: 0 20px;
}


/* ========================================
   🔝 ШАПКА
======================================== */

header {
    background-color: #d10000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: relative;
}

.logo {
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

header nav a:hover {
    text-decoration: underline;
}


/* --- Мобильное меню (гамбургер) --- */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #d10000;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 0 0 12px 12px;
    z-index: 100;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 16px;
}

.mobile-menu a:hover {
    background: #b00000;
}

.mobile-menu.active {
    display: flex;
}


/* ========================================
   📄 КОНТЕНТ НА ГЛАВНОЙ
======================================== */

/* Описание под шапкой */
.description {
    text-align: center;
    padding: 15px;
    font-size: 18px;
    background-color: #ede6fa;
}

/* Заголовки (например, ХИТЫ ПРОДАЖ) */
.left-align {
    text-align: left;
    margin: 20px 0;
}


/* --- Хиты продаж --- */

.hits {
    padding: 30px;
    text-align: center;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #ede6fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #d10000;
    margin-bottom: 10px;
}

.card p {
    margin: 5px 0;
}

.price {
    font-weight: bold;
    color: #333;
}

.card-button {
    display: block;
    background-color: #d10000;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    text-align: center;
    width: 80%;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #b00000;
}

.card button:hover {
    background-color: #b00000;
}


/* --- Каталог --- */

.catalog {
    margin-top: 40px;
    text-align: center;
}

.catalog-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-card {
    display: block;
    width: 420px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.catalog-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.catalog-card:hover {
    transform: translateY(-5px);
}


/* --- Блок "Сервис" со слайдером --- */

.service-slider {
    background: white;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 40px;
}

.service-slider h1 {
    text-align: left;
    margin-bottom: 30px;
}

.slider-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
    grid-auto-columns: 150px;
    padding-bottom: 10px;
}

.slide-card {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* квадрат */
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.2s;
}

.slide-card img:hover {
    transform: scale(1.05);
}


/* --- Блок: Красивые номера + Распродажа --- */

.two-column-block {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
    flex-wrap: wrap;
}

.sale-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.card-left {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
}

.card-left img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card-left img:hover {
    transform: scale(1.02);
}

.card-right-sale {
    flex: 1;
    max-width: 300px;
    height: 330px;
    background: #ede6fa;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.card-right-sale {
    /* Фиксируем высоту явно */
    height: 330px !important;
    max-width: 300px;
    background: #ede6fa;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Используем flex, но контролируем поведение */
    display: flex;
    flex-direction: column;
    /* Критично для iOS */
    overflow: hidden;
    position: relative;
}

.sale-list-container {
    /* Занимает всё свободное пространство */
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 12px;
    /* Явно указываем прокрутку */
    overflow-y: auto;
    /* Для iOS — включаем touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Убедимся, что высота установлена */
    min-height: 240px;
    max-height: 240px;
}

.sale-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 15px;
    line-height: 1.6;
    /* Прокрутка внутри */
    overflow-y: auto;
    /* Полностью занимает родителя */
    height: 100%;
    /* Для iOS */
    -webkit-overflow-scrolling: touch;
}

.sale-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1px 0;
    margin: 0;
}

.sale-item span {
    flex: 1;
    text-align: left;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reserve-btn {
    background: #d10000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.reserve-btn:hover {
    background: #b00000;
}

.card-right-sale p {
    margin: 12px 0 0;
    font-size: 12px;
    color: #777;
    text-align: center;
}


/* --- Третья колонка: 3 карточки-кнопки --- */

.action-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ede6fa;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease;
    height: 80px;
}

.action-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.action-card img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.action-text h3 {
    margin: 0;
    font-size: 14px;
    color: #e30613;
    font-weight: bold;
}

.action-text p {
    margin: 0;
    font-size: 12px;
    color: #333;
}


/* --- Слайдер аксессуаров --- */

.products-slider h3 {
    color: #e30613;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: bold;
}

.product-slider-track {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 220px;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    background: white;
    padding: 10px;
    min-width: 180px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-card p {
    margin: 8px 0 6px;
    font-size: 14px;
    font-weight: bold;
}

.product-card a {
    background: #e30613;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.product-card a:hover {
    background: #b00000;
}


/* --- Блок с изображениями и тарифами --- */

.image-card-section {
    margin: 60px 0;
    padding: 0 20px;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-large img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cards-small {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-small {
    display: block;
    height: 100px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    padding: 15px;
    transition: transform 0.2s ease;
}

.card-small:hover {
    transform: scale(1.02);
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.card-content h3 {
    color: #e30613;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    flex: 1;
    text-align: left;
}

.btn-connect {
    background: #e30613;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 15px;
}

.btn-connect:hover {
    background: #b00000;
}


/* ========================================
   🧩 БЛОКИ СТРАНИЦЫ ТАРИФОВ
======================================== */

/* === ОТСТУП МЕЖДУ БЛОКАМИ — 40px === */
.tariff-block,
.operators-block,
.service-slider,
.two-column-block,
.shop-apple-section,
.image-card-section {
    margin: 80px 0;
}

/* --- Карточки без фона --- */

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.image-row a {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.image-row a:hover {
    transform: scale(1.02);
}

.image-row img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: transparent;
}

@media (max-width: 768px) {
    .image-row {
        padding: 15px;
    }

    .image-row a {
        /* Занимает всю ширину контейнера */
        flex: 0 0 100%;
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .image-row img {
        height: 280px;
        /* Увеличили высоту — картинка крупнее */
        object-fit: contain;
        /* ВАЖНО: не обрезает, вписывает всё изображение */
        object-position: center;
        /* Центрируем */
    }
}

/* --- Слайдеры "Волна" и "Вин" --- */

.slider-container {
    position: relative;
    margin: 20px 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #e30613;
    z-index: 10;
    cursor: pointer;
    font-weight: bold;
}

.slider-btn.prev {
    left: -10px;
}

.slider-btn.next {
    right: -10px;
}

.wave-slider,
.win-slider {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    padding: 10px;
    scroll-behavior: smooth;
    height: auto;
}

.wave-card,
.win-card {
    flex: 0 0 240px;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wave-card img,
.win-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #f8f8f8;
    padding: 10px;
    box-sizing: border-box;
}

.wave-info,
.win-info {
    padding: 10px;
    text-align: left;
}

.wave-info p,
.win-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.wave-price,
.win-price {
    padding: 10px;
    font-weight: bold;
    color: #e30613;
    text-align: left;
}


/* --- Операторы связи в Крыму --- */

.operators-block {
    margin: 60px 0;
    text-align: left;
}

.operators-block h2 {
    color: #e30613;
    font-size: 22px;
    margin-bottom: 24px;
}

.operator-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.operator-card {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    height: 120px;
    background: #ede6fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: #e74c3c;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.operator-card:hover,
.operator-card:active {
    transform: scale(1.02);
}


/* ========================================
   🛎 СЕРВИС
======================================== */
.service-container {
    background-color: #ede6fa;
    padding: 20px;
    font-family: Arial, sans-serif;

}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card h3 {
    margin-top: 0;
    color: #e30613;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card p {
    margin-bottom: 15px;
}

.btn-more {
    background-color: #e30613;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.btn-more:hover {
    background-color: #b00000;
}

/* === СТРАНИЦА "КРАСИВЫЕ НОМЕРА" === */
.numbers-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    margin-bottom: 60px;
    font-family: Arial, sans-serif;
}

.number-card {
    flex: 1;
    min-width: 250px;
    background: #ede6fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card-icon {
    margin-bottom: 10px;
}

.number-card h3 {
    color: #e30613;
    margin: 10px 0;
}

.number-card p {
    margin-bottom: 15px;
}

.btn-primary {
    background: #e10600;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

/* === СТРАНИЦА "АКСЕССУАРЫ" === */
.accessories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: auto;
}

.product-card {
    background: white;
    padding: 15px;
    width: 220px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-title {
    margin: 12px 0 10px;
    font-size: 16px;
    font-weight: bold;
}

.btn-buy {
    background: #e30613;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

/* === СТРАНИЦА "ОТЗЫВЫ" === */
.reviews-section {
    background-color: #ede6fa;
    padding: 40px 16px;
    font-family: Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.reviews-section h2 {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.review-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    margin: 0 auto 30px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.review-form-container h3 {
    margin: 0 0 16px;
    color: #333;
}

.review-input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.review-textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.btn-submit {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.review-hint {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: calc(50% - 10px);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
}

.review-callout {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

/* Адаптив */
@media (max-width: 600px) {
    .review-card {
        max-width: 100%;
    }
}

/* === СТРАНИЦА "НОВОСТИ И СТАТЬИ" === */
.news-section {
    padding: 40px 0;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.news-card {
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    text-align: center;
    border-radius: 8px;
    background-color: #f9f9f9;
    flex: 0 0 auto;
}

.news-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
}

.btn-read {
    background: #111211;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

/* === СТРАНИЦА APPLE === */
.apple-section {
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.apple-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Отступ только снизу, кроме последнего блока */
.apple-container:not(:last-child) {
    margin-bottom: 70px;
}

.apple-image {
    flex: 1;
    min-width: 300px;
}

.apple-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apple-options {
    flex: 1;
    min-width: 250px;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 10px 15px;
    background: #ede6fa;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e30613;
    color: white;
}

.price-list {
    margin: 20px 0;
    font-size: 16px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.btn-request {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e30613;
    color: white;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-request:hover {
    background: #b00000;
}

/* ПОПАП */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

/* === МОДАЛЬНОЕ ОКНО — ГОРИЗОНТАЛЬНОЕ (для Apple) === */
.tariff-page .modal .modal-left {
    flex: 1;
    min-width: 300px;
    height: 100%;
}

.tariff-page .modal .modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Картинка заполняет блок без пустых мест */
    border-radius: 12px 0 0 12px;
}
.modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.specs {
    text-align: left;
    margin: 15px 0;
    line-height: 1.6;
}

.request-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 20px;
}

.btn-request {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e30613;
    color: white;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
}

.btn-request:hover {
    background: #b00000;
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    /* 🔴 Открывается ВВЕРХ */
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-bottom: 8px;
    /* 🔴 Отступ от кнопки */
    z-index: 10;
}

.request-dropdown:hover .dropdown-content {
    display: block;
}

.messenger-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.messenger-link:hover {
    background: #f5f5f5;
}

/* ========================================
   🛎 ПОДВАЛ
======================================== */

.site-footer {
    margin: 80px 0 0;
    padding: 40px 20px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col:first-child {
    align-items: center;
    text-align: left;
}

/* --- Колонка 1: Логотип и "Поделиться" --- */

.share-container {
    text-align: center;
    margin: 15px 0;
}

.share-btn {
    background-color: #ede6fa;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: background 0.2s;
}

.share-btn:hover {
    background-color: #ddd6f3;
}

.share-icon {
    width: 20px;
    height: 20px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* --- Колонка 2: Текст о паспорте --- */

.footer-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.footer-link {
    color: #d10000;
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

/* --- Колонка 3: Контакты --- */

.footer-title {
    color: #d10000;
    font-size: 18px;
    margin: 10 0 15px;
    font-weight: bold;
}

.contact-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.contact-link:hover {
    color: #d10000;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-number {
    font-size: 15px;
    color: #333;
    margin: 0 0;
    line-height: 1.4;
}

.footer-warning {
    font-size: 13px;
    color: #d10000;
    line-height: 1.4;
    font-weight: bold;
}


/* ========================================
   ⬆️ ВСПОМОГАТЕЛЬНЫЕ ЭЛЕМЕНТЫ
======================================== */

/* --- Кнопка прокрутки наверх --- */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 50px;
    width: 40px;
    height: 40px;
    background: #6f52ed;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Плавающая кнопка "Связь" --- */

.contact-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

.contact-wrapper {
    position: relative;
}

.contact-toggle {
    background: #e30613;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-toggle:hover {
    background: #b00000;
}

.contact-menu {
    position: absolute;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 50px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 14px;
}

.contact-link:hover {
    background: #f5f5f5;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Показываем меню при наведении (ПК) или клике (мобильные) */
.contact-wrapper:hover .contact-menu {
    display: flex;
}

/* ========================================
   📱 АДАПТИВ
======================================== */

@media (max-width: 768px) {

    /* Шапка */
    .menu-toggle {
        display: flex;
    }

    header nav {
        display: none;
    }

    /* Хиты продаж */
    .card {
        width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
        margin-bottom: 15px;
    }

    /* Сервис */
    .slider-track {
        grid-auto-columns: 260px;
        gap: 16px;
    }

    /* Три карточки-кнопки */
    .action-column {
        flex-direction: row;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .action-card {
        flex-direction: column;
        width: 60px;
        height: 60px;
        padding: 10px;
        justify-content: center;
        text-align: center;
        position: relative;
    }

    .action-card img {
        width: 36px;
        height: 36px;
    }

    .action-text {
        display: none;
    }

    /* Красивые номера */
    .two-column-block {
        flex-direction: column;
    }

    /* Подвал */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .contact-links {
        justify-content: center;
    }

    /* Кнопка "Наверх" */
    .scroll-to-top {
        left: 20px;
        bottom: 20px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Убрали display: none у контактной кнопки! */
    /* .contact-float { display: none; } — БЫЛО, ТЕПЕРЬ УДАЛЕНО */

    /* Адаптивная контактная кнопка */
    .contact-float {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    .contact-toggle {
        min-width: 50px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .contact-menu {
        left: -80px;
        min-width: 50px;
    }

    /* Слайдеры */
    .wave-card,
    .win-card {
        flex: 0 0 85%;
        min-width: 85%;
    }
}

@media (max-width: 480px) {
    .slider-track {
        grid-auto-columns: 240px;
        gap: 12px;
    }

    .slide-card {
        border-radius: 10px;
    }
}

/* === МОДАЛЬНОЕ ОКНО — ГОРИЗОНТАЛЬНОЕ (ТОЛЬКО ДЛЯ СТРАНИЦЫ ТАРИФОВ) === */
.tariff-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tariff-page .modal.show {
    opacity: 1;
    visibility: visible;
}

.tariff-page .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: row;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.tariff-page .modal.show .modal-content {
    transform: scale(1);
}

.tariff-page .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #f1f1f1;
    z-index: 10;
    transition: all 0.3s;
}

.tariff-page .close-btn:hover {
    color: #000;
    background: #e0e0e0;
}

/* Левая часть — изображение */
.tariff-page .modal-left {
    flex: 1;
    min-width: 300px;
}

.tariff-page .modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Правая часть — текст и кнопки */
.tariff-page .modal-right {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tariff-page .modal-right h3 {
    margin: 0 0 15px;
    color: #e30613;
    font-size: 24px;
}

.tariff-page .specs {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.tariff-page .specs p {
    margin: 6px 0;
}

.tariff-page .btn-request {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e30613;
    color: white;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
}

.tariff-page .btn-request:hover {
    background: #b00000;
}

.tariff-page .dropdown-content {
    display: none;
    margin-top: 8px;
}

.tariff-page .request-dropdown:hover .dropdown-content {
    display: block;
}

.tariff-page .messenger-link {
    display: block;
    padding: 10px 15px;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    transition: background 0.3s;
}

.tariff-page .messenger-link:hover {
    background: #e0e0e0;
}

/* === АДАПТИВ ДЛЯ МОДАЛЬНОГО ОКНА НА МОБИЛЬНЫХ Страница Тарифы === */
@media (max-width: 768px) {
    .tariff-page .modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        padding: 20px;
    }

    .tariff-page .modal-left {
        width: 100%;
        min-width: auto;
        height: 200px;
        margin-bottom: 15px;
    }

    .tariff-page .modal-left img {
        height: 200px;
        object-fit: contain;
        border-radius: 8px;
    }

    .tariff-page .modal-right {
        width: 100%;
        padding: 0;
    }

    .tariff-page .modal-right h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .tariff-page .specs {
        font-size: 14px;
        line-height: 1.5;
    }

    .tariff-page .btn-request {
        font-size: 14px;
        padding: 12px;
        margin-top: 15px;
    }

    .tariff-page .close-btn {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 28px;
        height: 28px;
        line-height: 28px;
    }

    /* Адаптив для выпадающего меню */
    .tariff-page .dropdown-content {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        margin-bottom: 8px;
    }

    .tariff-page .request-dropdown:hover .dropdown-content {
        display: block;
    }

    .tariff-page .messenger-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .tariff-page .modal-content {
        width: 80%;
        padding: 15px;
    }

    .tariff-page .modal-left img {
        height: 180px;
    }

    .tariff-page .modal-right h3 {
        font-size: 18px;
    }

    .tariff-page .specs {
        font-size: 13px;
    }

    .tariff-page .btn-request {
        font-size: 13px;
        padding: 10px;
    }

    .tariff-page .close-btn {
        font-size: 20px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }

    .tariff-page .dropdown-content {
        min-width: 200px;
    }

    .tariff-page .messenger-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========================================
   📱 МОБИЛЬНОЕ ПРИЛОЖЕНИЕ: НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ
======================================== */
@media (max-width: 768px) {
    /* Скрываем оригинальный футер */
    .site-footer {
        display: none !important;
    }

    /* Скрываем плавающую кнопку "Мы на связи" */
    .contact-float {
        display: none !important;
    }

    /* --- Нижняя панель навигации --- */
    .mobile-nav-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9998;
        height: 60px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #555;
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        gap: 4px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item.active {
        color: #e30613;
    }
}

/* Используем иконки через CSS (Font Awesome free CDN уже подключен?) */
/* Если нет — можно заменить на img или использовать unicode символы */

/* Пример с Unicode (если не хочешь подключать FA): */
/*
.nav-item i.home::before { content: "🏠"; }
.nav-item i.tariffs::before { content: "📱"; }
.nav-item i.service::before { content: "🔧"; }
.nav-item i.numbers::before { content: "🔢"; }
.nav-item i.support::before { content: "💬"; }
*/

/* ========================================
   🛠️ МОБИЛЬНЫЕ ОПТИМИЗАЦИИ (только для <768px)
======================================== */
@media (max-width: 768px) {

    /* === 1. Убираем описание под шапкой === */
    .description {
        display: none;
    }

    /* === 2. Слайдер сервисов — мельче и сразу после шапки === */
    .service-slider {
        margin-top: 10px;
        padding: 16px 10px;
        border-radius: 16px;
    }

    .slider-track {
        grid-auto-columns: 120px !important;
        gap: 12px;
    }

    .slide-card {
        width: 100%;
        padding-top: 100%;
        border-radius: 10px;
    }

    .slide-card img {
        border-radius: 10px;
    }

    /* === 3. Хиты продаж → 4 квадратные кнопки без "Подробнее" === */
    .hits-wrapper {
        margin: 20px 0;
        padding: 0;
    }

    .hits {
        padding: 0;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 0;
        padding: 0 10px;
    }

    .card {
        width: auto;
        min-width: 0;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        margin: 0;
    }

    .card h3 {
        font-size: 14px;
        margin-bottom: 4px;
        color: #d10000;
    }

    .card p {
        font-size: 12px;
        margin: 2px 0;
    }

    .price {
        font-weight: normal;
        color: #333;
    }

    .card-button {
        display: none; /* Убираем кнопку "Подробнее" */
    }

    /* === 4. Каталог — остаётся как есть (уже адаптивный) === */
    /* Без изменений */

    /* === 5. Красивые номера: упрощаем до 3 кнопок в ряд === */
    .two-column-block {
        flex-direction: column;
        padding: 0 10px;
        margin: 20px 0;
    }

    .card-left {
        display: none; /* Убираем картинку */
    }

    .card-right-sale {
        display: none; /* Убираем распродажу с прокруткой */
    }

    .action-column {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding: 0 10px;
        margin-top: 0;
    }

    .action-card {
        flex: 1;
        min-width: 0;
        height: auto;
        padding: 12px 8px;
        font-size: 12px;
        justify-content: center;
        background: #ede6fa;
        border-radius: 8px;
    }

    .action-card img {
        width: 24px;
        height: 24px;
    }

    .action-text h3 {
        font-size: 12px;
        margin: 4px 0 0;
    }

    .action-text p {
        display: none; /* Убираем подпись */
    }

    /* Обновляем тексты */
    .action-card:nth-child(1) .action-text h3::after { content: "Скачать списки"; display: block; font-size: 10px; color: #555; margin-top: 2px; }
    .action-card:nth-child(2) .action-text h3::after { content: "Подобрать номер"; display: block; font-size: 10px; color: #555; margin-top: 2px; }
    .action-card:nth-child(3) .action-text h3::after { content: "Распродажа"; display: block; font-size: 10px; color: #555; margin-top: 2px; }

    /* === 6. Аксессуары + Apple → 2 большие кнопки в ряд === */
    .shop-apple-section {
        padding: 20px 10px;
        margin: 20px 0;
    }

    .shop-apple-container {
        flex-direction: row;
        gap: 10px;
        padding: 0;
    }

    .products-slider,
    .apple-card {
        flex: 1;
        min-width: 0;
        height: 120px;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .products-slider {
        background: #ede6fa;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .products-slider h3 {
        font-size: 16px;
        color: #e30613;
        margin: 0;
        text-align: center;
    }

    .apple-card {
        background: #ede6fa;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .apple-card img {
        display: none;
    }

    .apple-card a {
        color: #e30613;
        font-weight: bold;
        font-size: 16px;
        text-align: center;
        padding: 10px;
        display: block;
    }

    /* === 7. Последний блок (тарифы) — остаётся как есть === */
    /* Без изменений */
}

/* ========================================
   📱 МОБИЛЬНЫЕ ДОРАБОТКИ (для <768px)
======================================== */
@media (max-width: 768px) {

    /* === 1. Уменьшаем заголовки — как в приложении === */
    h1, .left-align {
        font-size: 18px !important;
        margin: 20px 10px 15px;
        font-weight: 600;
    }

    h3 {
        font-size: 16px !important;
    }

    /* === 2. Хиты продаж → 4 квадратные кнопки, 2x2 === */
    .hits-wrapper {
        padding: 0 10px;
        margin: 15px 0;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .card {
        width: auto;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        margin: 0;
    }

    .card h3 {
        font-size: 15px;
        margin-bottom: 4px;
        color: #d10000;
    }

    .card p {
        font-size: 12px;
        margin: 2px 0;
        line-height: 1.3;
    }

    .price {
        font-weight: normal;
        color: #333;
        font-size: 13px;
    }

    .card-button {
        display: none; /* Убираем "Подробнее" */
    }

    /* === 3. Блок сервис — сразу после шапки === */
    /* Уже сделано через порядок в HTML, но если нужно принудительно — раскомментируй JS ниже */

    /* === 4. Красивые номера — добавляем заголовок и делаем крупные кнопки с подписями === */
    .two-column-block {
        flex-direction: column;
        padding: 0 10px;
        margin: 20px 0;
    }

    .two-column-block::before {
        content: "Красивые номера";
        font-size: 18px;
        font-weight: 600;
        color: #e30613;
        margin: 10px 0 15px;
        text-align: left;
        width: 100%;
    }

    .card-left, .card-right-sale {
        display: none; /* Убираем картинку и прокрутку */
    }

    .action-column {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        margin-top: 10px;
    }

    .action-card {
        flex: 1;
        min-width: 0;
        height: auto;
        padding: 10px;
        background: #ede6fa;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        justify-content: center;
        text-align: center;
    }

    .action-card img {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .action-text h3 {
        display: none; /* Убираем старый текст */
    }

    /* Добавляем новые подписи под иконками */
    .action-card:nth-child(1)::after {
        content: "Скачать списки";
        display: block;
        font-size: 11px;
        color: #555;
        margin-top: 4px;
        font-weight: 500;
    }

    .action-card:nth-child(2)::after {
        content: "Подобрать номер";
        display: block;
        font-size: 11px;
        color: #555;
        margin-top: 4px;
        font-weight: 500;
    }

    .action-card:nth-child(3)::after {
        content: "Распродажа";
        display: block;
        font-size: 11px;
        color: #555;
        margin-top: 4px;
        font-weight: 500;
    }

    /* === 5. Аксессуары + Apple → 2 одинаковые кнопки без слайдера === */
    .shop-apple-section {
        padding: 0 10px;
        margin: 20px 0;
    }

    .products-slider,
    .apple-card {
        display: none !important;
    }

    /* Новый блок — только две кнопки */
    .mobile-products-grid {
        display: flex;
        gap: 12px;
        margin: 15px 0;
    }

    .mobile-product-btn {
        flex: 1;
        height: 90px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        padding: 10px;
        transition: transform 0.2s ease;
    }

    .mobile-product-btn:hover {
        transform: scale(1.02);
    }

    .mobile-product-btn i {
        font-size: 20px;
        color: #e30613;
        margin-bottom: 4px;
    }

    .mobile-product-btn span {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Для больших экранов — не показываем новый блок */
.mobile-products-grid {
    display: none;
}

@media (max-width: 768px) {
    .mobile-products-grid {
        display: flex;
    }
}
/* Выпадающее меню "Поддержка" в нижней панели */
@media (max-width: 768px) {
    .support-dropdown {
        position: relative;
        cursor: pointer;
    }

    .mobile-contact-menu {
        display: none;
        position: absolute;
        top: -180px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        padding: 10px;
        flex-direction: row;
        gap: 10px;
        z-index: 1000;
        width: max-content;
        min-width: 300px;
        justify-content: center;
    }

    .mobile-contact-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-bottom-color: white;
    }

    .support-dropdown:hover .mobile-contact-menu,
    .support-dropdown:focus .mobile-contact-menu {
        display: flex;
    }

    /* Иконки в меню */
    .mobile-contact-menu .contact-link {
        padding: 6px;
    }

    .mobile-contact-menu .contact-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   📱 МОБИЛЬНЫЕ ПРАВКИ (только <768px)
======================================== */
@media (max-width: 768px) {

    /* === 1. Заголовок "Красивые номера" — делаем чёрным === */
    .two-column-block::before {
        color: #000 !important;
    }

    /* === 2. Уменьшаем и выравниваем отступы между блоками === */
    .page-wrapper > section,
    .hits-wrapper,
    .catalog,
    .service-slider,
    .two-column-block,
    .shop-apple-section,
    .image-card-section,
    .tariff-block,
    .operators-block {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Убираем лишние отступы у заголовков */
    h1.left-align, .two-column-block::before {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

    /* === 3. Выпадающее меню "Поддержка" — вертикально вниз === */
    .support-dropdown .mobile-contact-menu {
        top: -40px !important; /* теперь выпадает вниз */
        bottom: auto !important;
        transform: translateX(-50%) translateY(100%);
        flex-direction: column;
        width: 200px;
        min-width: 200px;
        left: 50%;
        right: auto;
        justify-content: flex-start;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }

    .support-dropdown .mobile-contact-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-bottom-color: white;
    }

    .support-dropdown .contact-link {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 6px;
        background: #f9f9f9;
        font-size: 14px;
    }

    .support-dropdown .contact-link:hover {
        background: #eee;
    }

    .support-dropdown .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    /* === 4. Убрать расстояние между шапкой и белым контейнером === */
    header {
        margin-bottom: 0 !important;
    }

    .page-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-radius: 0 !important;
    }

    /* === 5. Последние кнопки (в карточках) — меньше по высоте === */
    .card-small {
        height: 60px !important; /* было 100px */
    }

    .card-content {
        height: 100% !important;
        align-items: center;
    }

    .btn-connect {
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 500;
    }

    .card-content h3 {
        font-size: 13px;
        margin: 0;
        line-height: 1.3;
    }
}

/* === НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (ТОЛЬКО ДЛЯ МОБИЛЬНЫХ) === */
.mobile-nav-bar {
    display: none; /* Скрыта по умолчанию */
}

@media (max-width: 768px) {
    .mobile-nav-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ddd;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9998;
        height: 60px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #555;
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        gap: 4px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item.active {
        color: #e30613;
    }
}

@media (max-width: 768px) {
  .image-card-section {
    margin-bottom: 70px !important; /* место под нижнюю панель */
  }
}

/* Мобильные улучшения */
@media (max-width: 768px) {
  /* Отступ перед нижним меню */
  .image-card-section {
    margin-bottom: 70px !important;
  }

  /* Убираем обводку у изображения */
  .full-width-image-link img {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .image-card-section {
    margin-bottom: 80px !important; /* Отступ под нижнюю панель */
  }

  /* Гарантируем высоту контейнера, чтобы не было наложения */
  body {
    padding-bottom: 80px !important;
  }
}

/* === НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (ТОЛЬКО МОБИЛЬНАЯ) === */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    height: 60px;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
  }

  .nav-item i {
    font-size: 20px;
  }

  .nav-item.active {
    color: #e30613;
  }

  /* === ВЫПАДАЮЩЕЕ МЕНЮ НА КНОПКЕ "ПОДДЕРЖКА" === */
  .support-dropdown {
    position: relative;
    cursor: pointer;
  }

  .mobile-contact-menu {
    display: none;
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 300px;
    min-width: 280px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    z-index: 1000;
  }

  .mobile-contact-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
  }

  .support-dropdown:hover .mobile-contact-menu,
  .support-dropdown:focus .mobile-contact-menu {
    display: flex;
  }

  .mobile-contact-menu .contact-link {
    padding: 6px;
  }

  .mobile-contact-menu .contact-icon {
    width: 24px;
    height: 24px;
  }
}

/* ========================================
   📱 МОБИЛЬНЫЕ ПРАВКИ: ХИТЫ ПРОДАЖ — ВСЯ КАРТОЧКА КЛИКАБЕЛЬНАЯ
======================================== */
@media (max-width: 768px) {
  /* Обёртываем карточки для позиционирования */
  .cards {
    position: relative;
  }

  /* Делаем карточку контейнером с относительным позиционированием */
  .card {
    position: relative;
    cursor: pointer;
  }

  /* Скрываем оригинальную кнопку "Подробнее" */
  .card .card-button {
    display: none;
  }

  /* Создаём невидимую ссылку поверх всей карточки */
  .hits-wrapper .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1; /* над всем содержимым */
    cursor: pointer;
  }

  /* Добавляем ссылку вручную через JS */
}

/* === ХИТЫ ПРОДАЖ — ЦЕНА ЖИРНЫМ ШРИФТОМ === */
.card .price {
    font-weight: bold !important;
    color: #333;
}

.action-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

/* Мобильная версия: карточки в ряд по центру */
@media (max-width: 768px) {
    .action-column {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: none;
        
        gap: 12px; /* можно чуть уменьшить для мобильных */
    }

    .action-card {
        width: auto;
        min-width: 90px; /* или задай по желанию */
        height: auto; /* убираем фиксированную высоту, если нужно */
        flex: 1 1 auto; /* чтобы равномерно растягивались, если нужно */
        max-width: 160px; /* ограничение, чтобы не растягивались слишком */
    }
}
/* Кнопка премиум-доступа в шапке */
/* Кнопка премиум-доступа в шапке */
.premium-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #d4af37, #b8860b, #ffd700, #d4af37);
  background-size: 300% 300%;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  margin: 0 15px;
  animation: goldShine 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Анимация золотого перелива - постоянно работает */
@keyframes goldShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Эффект блеска - тоже постоянно работает */
.premium-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);
  animation: shine 3s ease-in-out infinite;
}

/* Анимация движения блеска */
@keyframes shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Дополнительные эффекты при наведении */
.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
  color: white !important;
  text-decoration: none;
}

/* Усиление блеска при наведении */
.premium-btn:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation-duration: 1.5s; /* Ускоряем при наведении */
}

/* Мобильная версия */
@media (max-width: 768px) {
  .premium-btn {
    padding: 6px 12px; /* Уменьшаем отступы */
    font-size: 13px; /* Уменьшаем размер текста */
    margin: 0 10px; /* Уменьшаем отступы по бокам */
    animation: goldShine 3s ease-in-out infinite; /* Сохраняем анимацию */
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3); /* Легкая тень */
  }
  
  /* Сохраняем все анимации для мобильных */
  .premium-btn::before {
    animation: shine 3s ease-in-out infinite;
  }
}

/* Версия для очень маленьких экранов */
@media (max-width: 480px) {
  .premium-btn {
    padding: 5px 10px; /* Еще меньше */
    font-size: 12px; /* Еще меньше текст */
    margin: 0 8px; /* Еще меньше отступы */
    border-radius: 6px; /* Немного меньше скругление */
  }
}

/* Для ультра-маленьких экранов (например, iPhone SE) */
@media (max-width: 375px) {
  .premium-btn {
    padding: 4px 8px;
    font-size: 11px;
    margin: 0 5px;
    white-space: nowrap; /* Сохраняем текст в одну строку */
  }
}

/* Кнопка премиум-опций — адаптивная */
.premium-btn {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  
  font-size: 14px;
  box-shadow: 0 1px 6px rgba(184, 134, 11, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
  margin: 0 10px;
  letter-spacing: -0.15px;
}

.premium-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
  background: linear-gradient(135deg, #e0b84d, #c9a02a);
}

/* Ещё мельче на очень узких экранах */
@media (max-width: 480px) {
  .premium-btn {
    padding: 5px 10px;
    font-size: 13px;
    margin: 0 8px;
  }
}

/* На мобильных — оставить видимой, но компактной */
@media (max-width: 768px) {
  /* Ничего не скрываем — кнопка остаётся на месте */
  /* Убедись, что header использует flex или grid для корректного расположения */
}

