/* ============================================
   Fix: горизонтальная прокрутка на мобильных
   ============================================
   Причина: .entity-wide:before и другие full-bleed элементы используют
   width: 100vw для фона на всю ширину экрана (приём "вылета" из контейнера
   через left:50% + transform:translateX(-50%)). На мобильных 100vw может
   быть на несколько пикселей шире реального видимого окна (учитывает
   scrollbar/особенности рендеринга), из-за чего появляется лишняя
   горизонтальная прокрутка на ВСЕХ страницах, где используется этот блок
   (entity-hero, entity-text, entity-booking, entity-steps и т.д.).
   Это и заметил Яндекс.Вебмастер в разделе «Проблемы на мобильных».

   Простое и безопасное решение — обрезать переполнение на уровне
   html/body, не трогая сам визуальный эффект full-bleed фона. */
html,
body {
    overflow-x: hidden;
}

.ui-text table {
    width: 100%;
    border-collapse: collapse;
}
.ui-text table th,
.ui-text table td {
    border: 3px solid white;
    padding: 5px 5px;
    font-weight: 300;
    font-size: 12px;
    line-height: 139%;
    color: #434343;
}
@media (min-width: 992px) {
    .ui-text table th,
    .ui-text table td {
        padding: 5px 20px;
        font-size: 14px;
    }
}
.ui-text table th {
    padding: 5px 5px;
    font-weight: 400;
    font-size: 13px;
    line-height: 175%;
    text-transform: uppercase;
    color: #fff;
    background: #65B5F5;
}
@media (min-width: 992px) {
    .ui-text table th {
        font-size: 16px;
        padding: 15px 20px;
    }
}
.ui-text table tr:nth-child(even) {
    background-color: #f8f8f8;
}
.ui-text table tr:nth-child(odd) {
    background-color: white;
}
.ui-text table tr.hidden {
    display: none;
}
.ui-text table td.hilight {
    font-weight: bold;
    color: #65B5F5;
}

/* ============================================
   Blog Section Styles - Mobile First
   ============================================ */

/* Blog List Section */
.ux-news {
    padding: 40px 0;
}

.ux-news__header {
    margin-bottom: 30px;
    text-align: center;
}

.ux-news__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #333333);
    margin: 0;
}

.ux-news__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.ux-news__empty {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 20px;
}

/* Blog Card */
.ux-news__card {
    background: #fff;
    border-radius: var(--border-radius, 20px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ux-news__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ux-news__card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ux-news__card-link-wrapper:hover {
    text-decoration: none;
}

.ux-news__card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.ux-news__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ux-news__card:hover .ux-news__card-image img {
    transform: scale(1.05);
}

.ux-news__card-content {
    padding: 20px;
}

.ux-news__card-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.ux-news__card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color, #333333);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ux-news__card-link {
    font-size: 14px;
    color: var(--primary-color, #b28642);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.ux-news__card:hover .ux-news__card-link {
    color: #8a6632;
}

/* Load More Button */
.ux-news__load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.ux-news__load-more {
    background: var(--primary-color, #b28642);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(178, 134, 66, 0.3);
}

.ux-news__load-more:hover {
    background: #8a6632;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 134, 66, 0.4);
}

.ux-news__load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ux-news__load-more.loading {
    opacity: 0.7;
}

/* Blog Detail Page */
.ux-news-detail {
}

.ux-news-detail__image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius, 20px);
    margin-bottom: 30px;
}

.ux-news-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ux-news-detail__header {
    margin-bottom: 30px;
}

.ux-news-detail__title {
    font-size: 28rem;
    font-weight: 700;
    color: var(--text-color, #333333);
    margin: 0 0 15rem 0;
    line-height: 1.3;
}

.ux-news-detail__date {
    font-size: 14rem;
    color: #999;
}

.ux-news-detail__content {
    font-size: 16rem;
    line-height: 1.7;
    color: var(--text-color, #333333);
    margin-bottom: 40rem;
}

.ux-news-detail__content p {
    margin-bottom: 15rem;
}

.ux-news-detail__content h2 {
    font-size: 32rem;
    margin: 15rem 0 10rem;
}
.ux-news-detail__content h3 {
    font-size: 24rem;
    margin: 15rem 0 10rem;
}
.ux-news-detail__content h4 {
    font-size: 18rem;
    margin: 10rem 0 5rem;
}

.ux-news-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10rem;
    margin: 20rem 0;
}

.ux-news-detail__back-wrapper {
    margin-top: 40rem;
}

.ux-news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color, #b28642);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.ux-news-detail__back:hover {
    color: #8a6632;
}

.ux-news-detail__back svg {
    width: 18px;
    height: 16px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .ux-news {
        padding: 60rem 0;
    }

    .ux-news__header {
        margin-bottom: 40rem;
    }

    .ux-news__title {
        font-size: 36rem;
    }

    .ux-news__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .ux-news__card-image {
        height: 200px;
    }

    .ux-news__card-content {
        padding: 25rem;
    }

    .ux-news__card-title {
        font-size: 20rem;
    }

    .ux-news-detail {
    }

    .ux-news-detail__image {
        max-height: 400px;
        margin-bottom: 40px;
    }

    .ux-news-detail__title {
        font-size: 36rem;
    }

    .ux-news-detail__date {
        font-size: 16rem;
    }

    .ux-news-detail__content {
        font-size: 18rem;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .ux-news {
        padding: 80px 0;
    }

    .ux-news__header {
        margin-bottom: 50px;
    }

    .ux-news__title {
        font-size: 42rem;
    }

    .ux-news__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .ux-news__card-image {
        height: 220px;
    }

    .ux-news__card-content {
        padding: 30px;
    }

    .ux-news__card-title {
        font-size: 22rem;
    }

    .ux-news-detail {
    }

    .ux-news-detail__image {
        max-height: 450px;
        margin-bottom: 50px;
    }

    .ux-news-detail__title {
        font-size: 42rem;
    }
}
