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

/* ============================================
   1. БЛОК: ЛЕВЫЙ - ФИОЛЕТОВЫЙ ГРАДИЕНТ
   ============================================ */

.rtk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}

.rtk-hero {
    display: flex;
    height: 100%;
}

.rtk-hero__gradient-block {
    background: linear-gradient(135deg, #4500a6, #6417ab, #9b48fb);
    border-radius: 28px;
    padding: 40px 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtk-hero__content {
    text-align: left;
    color: white;
}

.rtk-hero__title {
    font-size: 2rem;
    font-family: rtb, sans-serif;
    margin: 0 0 24px 0;
    line-height: 1.35;
    color: #fff;
}

.rtk-hero__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.rtk-hero__list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 14px;
    line-height: 1.45;
    font-size: 1rem;
}

.rtk-hero__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF4F12;
    font-weight: bold;
    font-size: 1.1rem;
}

.rtk-hero__city-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.rtk-hero__city-badge {
    background: rgb(141, 0, 255);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    display: inline-block;
}

/* ============================================
   2. БЛОК: ПРАВЫЙ - БЫСТРОЕ РЕШЕНИЕ
   ============================================ */

.rtk-visit {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

.rtk-visit__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 8px 0;
}

.rtk-visit__subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 28px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f2f5;
}

.rtk-visit__buttons--two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Уменьшен гэп для предотвращения вылетов текста */
}

/* Стилизация кнопок-ссылок */
.rtk-visit__btn {
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.rtk-visit__btn a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.rtk-visit__btn--primary {
    background: linear-gradient(105deg, #FF4F12, #e6440a);
    color: white;
    box-shadow: 0 6px 14px rgba(255,79,18,0.25);
}
.rtk-visit__btn--primary:hover {
    background: linear-gradient(105deg, #e6440a, #cc3a08);
    transform: translateY(-2px);
}

.rtk-visit__btn--secondary {
    background: #eef2ff;
    color: #1e40af;
    border: 1px solid #cbd5e1;
}
.rtk-visit__btn--secondary:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

.rtk-visit__btn--support {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.rtk-visit__btn--support:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.rtk-visit__btn--lk {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.rtk-visit__btn--lk:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    color: #FF4F12;
}

/* Панели выбора (второй шаг) */
.rtk-visit__btn--type,
.rtk-visit__btn--service {
    background: white;
    border: 2px solid #FF4F12;
    color: #FF4F12;
}
.rtk-visit__btn--type:hover,
.rtk-visit__btn--service:hover {
    background: #FF4F12;
    color: white;
    transform: translateY(-2px);
}

.rtk-visit__btn--back {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    grid-column: span 2;
}
.rtk-visit__btn--back:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.rtk-visit__phone {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}
.rtk-visit__phone a {
    color: #FF4F12;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   3. БЛОК ТАБОВ С ТАРИФАМИ
   ============================================ */

.rtk-tariffs {
    margin: 60px 0;
}

.rtk-tariffs__header {
    text-align: center;
    margin-bottom: 40px;
}

.rtk-tariffs__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 12px 0;
}

.rtk-tariffs__subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.rtk-tariffs__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 15px;
    justify-content: center;
}

.rtk-tariffs__tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rtk-tariffs__tab:hover {
    border-color: #FF4F12;
    transform: translateY(-2px);
}

.rtk-tariffs__tab--active {
    background: linear-gradient(135deg, #FF4F12, #e6440a);
    border-color: #FF4F12;
}

.rtk-tariffs__tab--active .rtk-tariffs__tab-icon {
    filter: brightness(0) invert(1);
}

.rtk-tariffs__tab--active .rtk-tariffs__tab-title,
.rtk-tariffs__tab--active .rtk-tariffs__tab-desc {
    color: white;
}

.rtk-tariffs__tab-icon {
    width: 32px;
    height: auto;
}

.rtk-tariffs__tab-text {
    text-align: left;
}

.rtk-tariffs__tab-title {
    display: block;
    font-weight: 600;
    color: #1e2a3a;
    font-size: 1rem;
}

.rtk-tariffs__tab-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.rtk-tariffs__panel {
    display: none;
    padding: 25px 15px;
    background: #f8fafc;
    border-radius: 24px;
}

.rtk-tariffs__panel--active {
    display: block;
}

/* Кнопки "Все тарифы" */
.all-tarif {
    display: inline-block;
    border-radius: 10px;
    background: #8d00ff;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.all-tarif:hover {
    background: #7400d2;
    color: #fff;
}

.center {
    text-align: center;
}

/* ============================================
   4. ТЕКСТОВЫЕ БЛОКИ И ЗАГОЛОВКИ
   ============================================ */

.rtk-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e2a3a;
    margin: 40px 0 16px 0;
    line-height: 1.2;
}

.rtk-short-desc {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 48px;
    line-height: 1.5;
}

.gl-title {
    margin: 35px 0;
    font-size: 35px;
    line-height: 1.2;
}

.rtk-seo-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 48px;
}

.rtk-seo-text p {
    margin-bottom: 16px;
}

.rtk-seo-text h3 {
    font-size: 1.4rem;
    margin: 28px 0 12px;
    color: #1e2a3a;
}

/* ============================================
   5. БЛОК: КАК ПОДКЛЮЧИТЬ (4 СТЕНДА)
   ============================================ */

.rtk-howto {
    background: #f8fafc;
    border-radius: 32px;
    padding: 48px 40px;
    margin: 48px 0;
}

.rtk-howto__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 40px 0;
    text-align: center;
}

.rtk-howto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
  max-width: 1200px;
  margin: auto;
}

.rtk-howto-item {
    display: grid;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    grid-template-columns: auto 1fr;
}

.rtk-howto-item__icon {
    width: 80px; /* Уменьшено со 150px для адаптивности */
    display: flex;
    justify-content: center;
}

.rtk-howto-item__icon img {
    max-width: 100%;
    height: auto;
}

.rtk-howto-item__content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.rtk-howto-item__content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

/* ============================================
   6. БЛОК: ДОПОЛНИТЕЛЬНЫЕ СЕРВИСЫ И ПОДВАЛ 
   ============================================ */

.rtk-services {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.06), rgba(138, 43, 226, 0.06));
    border-radius: 32px;
    padding: 48px 40px;
    margin: 48px 0;
}

.rtk-services__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 40px 0;
    text-align: center;
}



/* Нижний CTA Блок */
.niz {
    background: #1e2a3a;
    color: white;
    padding: 40px;
    border-radius: 28px;
    text-align: center;
}

.niz_zag {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.niz_txt {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.niz_tel {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.tarbut {
    display: inline-block;
    background: #FF4F12;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.tarbut:hover {
    background: #e6440a;
}

/* Общие изображения */
img {
    max-width: 100%;
    height: auto;
}

.rtk-banner img {
    border-radius: 20px;
    width: 100%;
}


.rtk-visit__btn-phone-number {
  color: #333;
  font-family: rtb;
  font-size: 1.2rem;
}

.rtk-visit__btn-phone-icon {
  margin: 0 10px;
  max-width: 27px;
}

/* Контакты поддержки */
.rtk-visit__contacts {
    margin-top: 0;
}
.rtk-visit__contacts-inner {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
}
.rtk-visit__contacts-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e2a3a;
    margin: 0 0 20px 0;
    text-align: center;
}
.rtk-visit__contacts-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.rtk-visit__contacts-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rtk-visit__contacts-section h4 {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 4px 0;
}
.rtk-visit__contacts-section p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 0 8px 0;
}
.rtk-visit__contacts-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e2a3a;
    text-decoration: none;
    display: inline-block;
}
.rtk-visit__contacts-note {
  font-size: 0.9rem;
  color: #3c4552;
  margin-left: 12px;
}

.rtk-visit__contacts-back {
  background: none;
  border: none;
  color: #FF4F12;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0px;
  width: 100%;
  text-align: right;
  padding: 10px;
}

/* ============================================
   7. ГЛОБАЛЬНАЯ АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================ */

/* Планшеты и ноутбуки (до 1024px) */
@media (max-width: 1024px) {
    .rtk-grid {
        grid-template-columns: 1fr; /* Колонки главного экрана в 1 ряд */
        gap: 30px;
    }
    
    .grid_r1f3 {
        grid-template-columns: 1fr; /* Сервисы перестраиваются */
        gap: 20px;
    }

    /* Делаем так, чтобы картинка шла перед текстом на мобильных */
    .grid_r1f3 > div:nth-child(odd) {
        order: unset; 
    }
    
    .grid_r1f3 .r2 {
        padding: 20px;
        margin-bottom: 20px;
    }
}


/* ============================================
   ОПТИМИЗИРОВАННЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ (ДО 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Главный экран и карточки */
    .rtk-hero__gradient-block {
        padding: 32px 20px;
    }

    .rtk-hero__title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .rtk-visit {
        padding: 28px 20px;
    }
    
    .rtk-page-title {
        font-size: 1.8rem;
    }

    .gl-title {
        font-size: 1.6rem;
    }
    
    .rtk-howto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rtk-howto,
    .rtk-services {
        padding: 32px 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rtk-hero__list {
  display: none;
}

.rtk-hero__city-note {
  margin-top: 0px;
}






    /* ИСПРАВЛЕННЫЙ БЛОК С ТАБАМИ */
    .rtk-tariffs__tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        
        width: 100%;
        max-width: 95vw;
        overflow-x: auto;
        overflow-y: hidden;
        
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        
        padding: 8px 0;
        gap: 12px;
        box-sizing: border-box;
    }
    
    /* Добавляем отступы первому и последнему элементу для "воздуха" */
    .rtk-tariffs__tab:first-child {
        margin-left: 3px;
    }
    
    .rtk-tariffs__tab:last-child {
        margin-right: 3px;
    }

    /* Скрываем скроллбар */
    .rtk-tariffs__tabs::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    .rtk-tariffs__tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Кнопки табов */
    .rtk-tariffs__tab {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 15px;
        border-radius: 40px;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .rtk-tariffs__tab-title {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .rtk-tariffs__tab-desc {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .rtk-tariffs__tab-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    /* ОБЯЗАТЕЛЬНО: родительские контейнеры тоже не должны расширяться */
    .rtk-tariffs {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .rtk-tariffs__header {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

/* Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {
    .rtk-visit__buttons--two-columns {
        grid-template-columns: 1fr; /* Кнопки встают друг под друга */
        gap: 12px;
    }

    .rtk-visit__title {
        font-size: 1.4rem;
    }

    .rtk-visit__subtitle {
        margin-bottom: 20px;
    }

    .rtk-howto-item {
        grid-template-columns: 1fr; /* Иконка шага встает над текстом */
        text-align: center;
        justify-items: center;
    }

    .rtk-howto-item__icon {
        width: 60px;
    }

    .niz_zag {
        font-size: 1.4rem;
    }

    .niz_tel {
        font-size: 1.5rem;
    }
    
    .niz {
        padding: 30px 16px;
    }
}