/* Скрываем кнопки навигации карусели */
#rec1025507641 .t958__control {
    display: none !important;
}

/* Делаем все элементы видимыми сразу */
#rec1025507641 .t958__slidecontainer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* ... */
#rec1025507641 .t958__item {
    position: relative !important;
    flex: 0 0 calc(50% - 20px) !important; /* Изменяем это значение */
    max-width: calc(50% - 20px) !important; /* И это */
    margin: 10px !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    left: 0 !important;
}

/* Адаптивность */
@media screen and (max-width: 960px) {
    #rec1025507641 .t958__item {
        flex: 0 0 calc(100% - 20px) !important; /* И это */
        max-width: calc(100% - 20px) !important; /* И это */
    }
}

@media screen and (max-width: 640px) {
    #rec1025507641 .t958__item {
        flex: 0 0 100% !important; /* И это */
        max-width: 100% !important; /* И это */
    }
}
/* ... */

/* Скрываем кнопки навигации карусели */
#rec1025507641 .t958__control {
    display: none !important;
}

/* Делаем все элементы видимыми сразу */
#rec1025507641 .t958__slidecontainer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

#rec1025507641 .t958__item {
    position: relative !important;
    flex: 0 0 calc(33.333% - 20px) !important;
    max-width: calc(33.333% - 20px) !important;
    margin: 10px !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    left: 0 !important;
}

/* Адаптивность */
@media screen and (max-width: 960px) {
    #rec1025507641 .t958__item {
        flex: 0 0 calc(50% - 20px) !important;
        max-width: calc(50% - 20px) !important;
    }
}

@media screen and (max-width: 640px) {
    #rec1025507641 .t958__item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Стили для таблицы сравнения роутеров */
.comparison-table-container {
    padding: 40px 20px !important;
    text-align: center !important;
    font-family: 'Comfortaa', Arial, sans-serif !important;
    background-color: #ffffff !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    max-width: 960px !important; /* Ограничиваем ширину контейнера таблицы */
    margin-left: auto !important; /* Центрируем контейнер по горизонтали */
    margin-right: auto !important; /* Центрируем контейнер по горизонтали */
}

.comparison-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    font-size: 16px !important;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
}

.comparison-table th {
    background-color: #333333 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 17px !important;
}

.comparison-table th:first-child {
    border-top-left-radius: 8px !important;
    width: 35% !important;
}
.comparison-table th:last-child {
    border-top-right-radius: 8px !important;
}

.comparison-table .vivarius-col {
    background-color: #28a745 !important; /* Яркий зеленый для VIVARIUS */
}

.comparison-table .other-col {
    background-color: #6c757d !important; /* Спокойный серый для "Другие роутеры" */
}

.comparison-table tbody tr:last-child td {
    border-bottom: none !important;
}
.comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px !important;
}
.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px !important;
}

.comparison-table .positive-cell {
    background-color: #e6ffed !important;
    color: #1d723a !important;
    font-weight: 500 !important;
}

.comparison-table .negative-cell {
    background-color: #f8f9fa !important; /* Очень светло-серый */
    color: #5a6268 !important;
}

/* Адаптивность для таблицы */
@media screen and (max-width: 768px) {
    .reviews-carousel-container {
        max-width: 90%; /* Slightly less than full width for some padding */
    }
    .review-slide {
        flex: 0 0 75%; 
        margin: 0 2%; /* Peeking: (100 - (75 + 2*2))/2 = 10.5% for initial offset */
        transform: scale(0.9); /* Slightly less aggressive scaling for peeking slides */
    }
    .review-slide.is-active {
        transform: scale(1);
    }
    .review-slide img {
        width: 100%;  /* Image takes full width of its slide */
        height: auto; /* Height adjusts to maintain aspect ratio */
        max-height: 200px; /* MOBILE: Prevent images from becoming too tall */
    }
    .comparison-table thead {
        display: none !important; /* Скрываем заголовки таблицы */
    }

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block !important;
        width: 100% !important;
        border-radius: 0 !important; /* Убираем скругления для мобильного вида, т.к. каждая строка - блок */
    }

    .comparison-table tr {
        margin-bottom: 15px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important; /* Скругляем каждую "карточку" строки */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
     .comparison-table tr:last-child {
        margin-bottom: 0 !important;
    }

    .comparison-table td {
        text-align: right !important;
        padding-left: 45% !important; /* Место для метки data-label */
        position: relative !important;
        border-bottom: 1px solid #eee !important;
    }
    .comparison-table tr td:last-of-type { /* Убираем границу у последней ячейки в строке-карточке */
         border-bottom: none !important;
    }

    .comparison-table td::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 15px !important;
        width: calc(45% - 25px) !important; /* Ширина метки */
        padding-right: 10px !important;
        font-weight: bold !important;
        text-align: left !important;
        white-space: normal !important; /* Разрешаем перенос текста метки */
        font-size: 0.9em !important;
        color: #333 !important;
    }
    
    .comparison-table-container h2.t-section__title {
        font-size: 24px !important; /* Адаптивный размер заголовка */
        margin-bottom: 25px !important;
    }
    .comparison-table td.positive-cell,
    .comparison-table td.negative-cell {
         font-size: 0.95em !important;
    }
}

@media screen and (max-width: 480px) {
    .comparison-table-container {
        padding: 20px 10px !important;
    }
    .comparison-table-container h2.t-section__title {
        font-size: 20px !important;
    }
    .comparison-table td {
        padding: 12px 15px !important;
        padding-left: 40% !important; /* Уменьшаем отступ для метки на очень маленьких экранах */
    }
    .comparison-table td::before {
        left: 10px !important;
        width: calc(40% - 20px) !important;
        font-size: 0.85em !important;
    }
}

/* Стили для иконок в ячейках (если будете использовать) */
.comparison-table td .fa-check-circle {
    color: green !important;
    margin-right: 5px !important;
}
.comparison-table td .fa-times-circle {
    color: red !important;
    margin-right: 5px !important;
}
.comparison-table td .fa-exclamation-triangle {
    color: orange !important;
    margin-right: 5px !important;
}

/* ... */
/* Стили для блока маркетплейсов */
.marketplace-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.market-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Comfortaa', Arial, sans-serif; 
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    gap: 8px;
    color: #fff !important;
}

.market-button .market-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.market-button span {
    font-size: 14px;
}

.market-button.yandex {
    background-color: #ffcc00;
    color: #000 !important;
}

.market-button.ozon {
    background-color: #005bff;
}

.market-button.wb {
    background-color: #cb11ab;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .marketplace-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .market-button {
        width: 100%;
        max-width: 250px;
    }
}

/* ... */
.t-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.advantages-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.advantages-list li:last-child {
    border-bottom: none;
}

.advantages-list strong {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ... */
/* Уменьшаем высоту слайдера на телефонах */
@media (max-width: 768px) {
    #rec1025222631 .t-cover {
        height: 55vh !important; /* Измените это значение по своему вкусу */
    }

    #rec1025222631 .t-cover__carrier {
        height: 55vh !important; /* Измените это значение по своему вкусу */
    }

    #rec1025222631 .t-cover__wrapper {
        height: 55vh !important; /* Измените это значение по своему вкусу */
    }
}
/* ... */
.router-control-app p {
    font-family: 'Comfortaa', Arial, sans-serif;
    font-size: 16px;
    color: #333;
}
/* ... */
.app-screenshots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.app-screenshots img {
    height: auto;
    border-radius: 5px;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .app-screenshots .desktop-only {
        display: none;
    }
}

/* Hide on mobile */
@media (max-width: 768px) {
    .app-screenshots .mobile-hide {
        display: none;
    }
}



/* Reviews Carousel Styles */
.reviews-carousel-container {
    position: relative;
    max-width: 660px;   /* DESKTOP: Reduced from 780px (approx 15% less) */
    margin: 0 auto;
}

.reviews-carousel-wrapper {
    position: relative;
    overflow: hidden; 
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 10px 0; 
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: center; /* Vertically align slides if they have different heights due to content */
}

.review-slide {
    flex: 0 0 70%; 
    margin: 0 2.5%; 
    box-sizing: border-box;
    opacity: 0.5;
    transform: scale(0.85);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: flex; /* Allow image to define height */
    align-items: center; /* Center image vertically if slide is taller */
    justify-content: center; /* Center image horizontally */
}

.review-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.review-slide img {
    width: 460px;  /* DESKTOP: Reduced from 543px */
    height: 187px; /* DESKTOP: Reduced from 220px */
    object-fit: contain; 
    display: block;
    /* margin: 0 auto; /* Removed as parent slide is now flex centering */
    border-radius: 4px;
    user-select: none; 
    max-width: 100%; /* Ensure image does not overflow its slide container */
}

/* Стрелки навигации (предполагается, что стили из предыдущего шага здесь) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px; 
    height: 40px; 
    padding: 0;   
    font-size: 20px; 
    border-radius: 50%; 
    cursor: pointer;
    z-index: 10; 
    transition: background-color 0.3s ease;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-arrow {
    left: -15px; 
}

.next-arrow {
    right: -15px; 
}

/* Контейнер для точек-индикаторов (предполагается, что стили из предыдущего шага здесь) */
.carousel-dots-container {
    text-align: center;
    margin-top: 15px;
}

.carousel-dot {
    display: inline-block;
    width: 20px; 
    height: 4px;  
    background-color: #cccccc; 
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2px; 
}

.carousel-dot.is-active {
    background-color: #000000; 
}

/* --- Smaller mobile --- */
@media screen and (max-width: 600px) {
    .reviews-carousel-container {
        max-width: 95%;
    }
    .review-slide {
        flex: 0 0 80%; 
        margin: 0 2.5%; /* Peeking: (100 - (80 + 2.5*2))/2 = 7.5% for initial offset */
        transform: scale(0.9);
    }
    .review-slide img {
        max-height: 180px; /* MOBILE: Further adjust max height */
    }
    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .prev-arrow {
        left: 5px;
    }
    .next-arrow {
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .review-slide {
        flex: 0 0 85%; /* Even more focus on the active slide */
        margin: 0 2%;  /* Peeking: (100 - (85 + 2*2))/2 = 5.5% for initial offset */
        transform: scale(0.95); /* Very subtle scaling for peeking */
    }
     .review-slide img {
        max-height: 160px; /* MOBILE: Adjust max height */
    }
}

#allrecords {
    padding-bottom: 0 !important;
}

/* Дополнительные исправления для футера */
#t-footer, 
#rec805290392 { /* ID вашего блока футера */
    margin-bottom: 0 !important;
}

/* Styles for Services List */
.services-info-container {
    font-family: 'Comfortaa', Arial, sans-serif;
    padding-top: 0px; 
    /* padding-bottom: 30px; /* Add some space before the next section */
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px; /* Adjust as needed */
    text-align: left;
    max-height: 105px; /* Approximate height for 3 items (e.g., 3 * (20px line-height + 10px margin-bottom) + some padding ) */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

.services-list li {
    padding: 5px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list-fade {
    display: block; /* Initially visible */
    position: relative;
    height: 40px; /* Height of the fade effect */
    margin-top: -40px; /* Pull it up to overlap the bottom of the list */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* Assuming white background */
    pointer-events: none; /* Allows clicks to pass through if needed */
    transition: opacity 0.3s ease-in-out;
}

.services-list.services-list-expanded {
    max-height: 2500px;/* A large enough value to show all items */
}

.services-list.services-list-expanded + .services-list-fade {
    opacity: 0;
    display: none; /* Hide fade when expanded */
}

.services-show-all-btn {
    /* Using Tilda's t-btn for base styling, can add more specific styles if needed */
    /* Example: */
    /* padding: 10px 20px; */
    /* border: none; */
    /* border-radius: 5px; */
    /* cursor: pointer; */
    /* font-weight: 500; */
}
/* End Styles for Services List */