html  {
    height: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

*, *::before, *::after  {
    box-sizing: inherit;
}

body  {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip !important;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    font-size-adjust: 0.5;
}

/* Если .site-wrapper используется в HTML */
.site-wrapper {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

@supports not (overflow: clip) {
    .site-wrapper {
        overflow-x: hidden;
    }
}

.textcols  {
     display: flex;
     gap: 60px;
     width: 100%;
}

 .textcols-row  {
     display: flex;
     width: 100%;
     gap: 60px;
}

 .textcols-item  {
     flex: 1;
     min-width: 0;
     background: #fff2e1;
}

.bold  {
    font-weight: bold;
}

/* ==========================================
   СЧЁТЧИК СИМВОЛОВ ПОД ПОЛЕМ ПОИСКА
   ========================================== */

.char-counter {
    /* Выравниваем по правому краю той же оси, что и поле поиска */
    max-width: 820px;          /* как у #search_form */
    margin: 6px auto 0;        /* 6px отступ сверху, автоцентрирование */
    padding-right: 4px;        /* лёгкий сдвиг влево от правого края поля */

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    color: #999;               /* мягкий серый, как у placeholder */
    text-align: right;

    user-select: none;
    pointer-events: none;      /* чтобы не мешал кликам */
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Предупреждение: осталось ≤ 30 символов */
.char-counter.warning {
    color: #e67e22;            /* оранжевый */
    font-weight: 600;
}

/* Лимит достигнут */
.char-counter.limit {
    color: #e74c3c;            /* красный */
    font-weight: 700;
}

/* На мобильных — чуть меньше отступ и размер */
@media screen and (max-width: 768px) {
    .char-counter {
        margin-top: 5px;
        padding-right: 2px;
        font-size: 11px;
    }
}

/* Контейнер-обертка */
.acWrap {
    display: block;
    position: relative;
    width: 100%;
}

/* КОНТЕЙНЕР ВЫПАДАЮЩЕГО СПИСКА */
.acWrap .acSuggest {
    position: absolute;
    top: calc(100% + 4px); /* Легкий отступ 4px от строки поиска для эффекта "левитации" */
    left: 0;
    z-index: 999; /* Повышаем z-index, чтобы точно перекрыть любые другие элементы */

    width: 100%;
    max-height: 360px; /* Ограничиваем высоту, чтобы список не улетал за экран */
    overflow-y: auto;  /* Включаем прокрутку, если элементов станет больше */
    
    background: #ffffff;
    border: 1px solid #e9ecef; /* Более мягкая серая рамка вместо резкой #d4d4d4 */
    border-radius: 12px;       /* Округление под стать вашей строке поиска */
    
    /* Красивая, объемная и мягкая современная тень */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
    
    list-style: none;
    padding: 6px 0; /* Небольшие отступы сверху и снизу внутри самого списка */
    margin: 0;
    
    /* Скрываем уродливый дефолтный скроллбар, сохраняя прокрутку */
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

/* Скрытие полосы прокрутки для WebKit (Chrome, Safari, Edge) */
.acWrap .acSuggest::-webkit-scrollbar {
    width: 6px;
}
.acWrap .acSuggest::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 4px;
}

/* ЭЛЕМЕНТЫ СПИСКА (ПОДСКАЗКИ) */
.acWrap .acSuggest li {
    /* На компьютерах 10px 16px — это золотой стандарт читаемости */
    padding: 10px 16px; 
    font-size: 15px;
    color: #1a1a1a; /* Наш фирменный мягкий черный цвет */
    cursor: pointer;
    background-color: #ffffff;
    
    /* Удалена разделительная линия border-bottom, чтобы интерфейс "дышал" */
    border: none; 
    
    transition: background-color .15s ease, color .15s ease;
}

/* Выделение синим цветом текста, который совпал (из логики JS <strong>) */
.acWrap .acSuggest li strong {
    color: #000000;
    font-weight: 700;
}

/* СОСТОЯНИЕ НАВЕДЕНИЯ И АКТИВНОГО ЭЛЕМЕНТА (СТРЕЛКИ КЛАВИАТУРЫ) */
/* Объединяем hover и ваш класс .hl в единый приятный стиль */
.acWrap .acSuggest li:hover,
.acWrap .acSuggest li.hl {
    background-color: #f1f3f5 !important; /* Мягкий пастельный серый цвет */
    color: #0069f9; /* Подсвечиваем текст активным синим цветом */
}

/* Мягкое выделение для строки "Ничего не найдено", так как она стала кликабельной */
.acWrap .acSuggest li.ac-no-results:hover {
    background-color: #f8f9fa !important;
}

/* АДАПТИВНОСТЬ: ДЛЯ ТЕЛЕФОНОВ (ЭКРАНЫ ДО 768px) */
@media screen and (max-width: 768px) {
    .acWrap .acSuggest li {
        /* Увеличиваем вертикальный отступ на мобильных, чтобы по кнопкам было легче попадать пальцем */
        padding: 12px 14px; 
        font-size: 16px; /* 16px предотвращает автоматический зум экрана на iOS */
    }
}

/* АДАПТИВНОСТЬ: ДЛЯ УЛЬТРА-МАЛЕНЬКИХ ЭКРАНОВ */
@media screen and (max-width: 240px) {
    .acWrap .acSuggest .acSuggest li {
        padding: 6px 10px;
        font-size: 13px;
    }
}

a:hover  {
    text-decoration:none;
}

 img, video, iframe  {
     max-width: 100%;
     height: auto;
}

.dot  {
    text-decoration: none;
    border-bottom: 1px dashed #000080;
}

.dot:hover  {
    color: #f00000;
}

#dl_btn {
    color:#fff;
    background:#33adff;
    padding:10px 16px;
    border-radius:3px;
}

.slider {
	min-height: 120px;   /* 👈 высота поисковой панели */
    background:#fff;
    background-size:cover;
    padding:0 0 10px 0;
    transition:1s;
}

@media (max-width: 768px) {
    .slider {
        min-height: 100px;
    }
}

.slider h1 {
    color:#0b6623;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
	transition: color 0.2s ease;
	white-space: normal !important;
     /* Разрешаем перенос строк */
	word-wrap: break-word;
     /* Защита от вылета длинных слов */
	line-height: 1.4;
     /* Комфортный интервал между строками */
}

/* ==========================================
   Основной контейнер страницы
   ========================================== */
.page-wrapper {
    display: grid;
    /* Сайдбары — фиксированные по минимуму, центр — растягивается */
    grid-template-columns: minmax(0, 300px) minmax(0, 820px) minmax(0, 300px);
    gap: 20px;
    max-width: 1500px;   /* Ограничиваем общую ширину разумным максимумом */
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    min-height: 500px;
    justify-content: center;  /* Центрируем всю сетку */
}

/* Сайдбары — не растягиваются */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 10px;
    min-height: 400px;
    width: 100%;
    max-width: 300px;   /* Жёсткий предел ширины сайдбара */
}

/* Центральный контент — теперь без ограничения 820px внутри сетки */
.res_search {
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
    color: #000;
    padding-bottom: 20px;
    max-width: 100%;    /* ← убираем прежний max-width: 820px */
    width: 100%;
}

/* Отменяем прежнее выравнивание по центру, оно больше не нужно */
.page-wrapper > .res_search {
    justify-self: stretch;
    width: 100%;
}

 .res_search h2 {
    color: #2c3e50;
    margin-block-start: 0;
    margin-block-end: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Компенсация фиксированной шапки при переходе по якорю */
h2[id] {
    scroll-margin-top: 60px;
}

/* Убираем линию у первого h2 (Перевод:) */
#h2-0 {
    border-top: none;
    padding-top: 0;
    margin-top: 20px;
}

.res_search h3 span  {
    color: #58b40b;
    font-weight: 400;
    font-size: 0.9em;
}

.res_search p  {
    color: #565656;
}

img[src*="icons8-volume-"]  {
    width: 22px;
    height: 22px;
}

img[src*="footer-icon-"]  {
    width: 18px;
    height: 18px;
}

.container  {
    padding-left: 20px;
    padding-right: 20px;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================
   Стили для страницы с результатами поиска по словарю (Блоки фраз и спойлеров)
   ========================================== */

	  
/* ==========================================
   Блок со списком вариантов перевода
   ========================================== */
.word-card {
    margin-top: -10px;
}

/* ==========================================
   Вариант перевода: перевод слева, thumbnail справа
   ========================================== */

.translation-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

/* Левая часть — растягивается на всю доступную ширину */
.translation-main {
    flex: 1 1 auto;
    min-width: 0;   /* важно, чтобы текст корректно сжимался */
}

.translation-thumbnail-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100px;
    max-width: 100px;
}

/* Обёртка thumbnail — кликабельная */
.translation-thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: zoom-in;
}

.translation-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.translation-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .translation-thumbnail:hover img {
        transform: scale(1.05);
    }
}

/* Атрибуция под картинкой */
.translation-thumbnail-credit {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.3;
    color: #94a3b8;              /* светло-серый, ненавязчивый */
    text-align: left;
	width: max-content;      /* ← ширина по содержимому */
    max-width: 100px;        /* ← ограничение, чтобы не улетала */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    cursor: help;                /* подсказка — полный текст в title */
}

/* ==========================================
   Lightbox (модальное окно)
   ========================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.25s ease;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox.is-open .lightbox-image {
    transform: scale(1);
}

/* Кнопка закрытия */
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lightbox-close:active {
    transform: scale(0.95);
}

/* На мобильном — кнопка побольше и отступы поменьше */
@media (max-width: 640px) {
    .lightbox {
        padding: 10px;
    }
    .lightbox-image {
        max-width: 96vw;
        max-height: 88vh;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Блокировка скролла, пока открыт lightbox */
body.lightbox-open {
    overflow: hidden;
}

/* ==========================================
   Мобильный: thumbnail меньше, отступ меньше
   ========================================== */

@media (max-width: 640px) {
    .translation-row {
        gap: 10px;          /* ← уменьшаем отступ */
    }

    .translation-thumbnail-wrapper {
        width: 72px;
        max-width: 72px;
    }

    .translation-thumbnail {
        height: 72px;
        border-radius: 6px;
    }

    .translation-thumbnail-credit {
        font-size: 9px;
        margin-top: 3px;
    }
}

/* ==========================================
   Очень узкий экран: ещё меньше
   ========================================== */

@media (max-width: 380px) {
    .translation-thumbnail-wrapper {
        width: 60px;
        max-width: 60px;
    }

    .translation-thumbnail {
        height: 60px;
    }

    .translation-thumbnail-credit {
        font-size: 8px;
    }
}

/* ==========================================
   Коллаж под H1 — полноценное изображение
   ========================================== */

.word-card-collage {
    margin: 20px 0 24px 0;
    max-width: 880px;      /* ← шире, чем thumbnail */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: zoom-in;
}

.word-card-collage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.collage-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.word-card-collage img {
    display: block;
    width: 100%;
    height: 100%;        /* ← заполняет контейнер */
    object-fit: cover;   /* обрезает, сохраняя пропорции */
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .word-card-collage:hover img {
        transform: scale(1.01);
    }
}

/* Мобильный — коллаж на всю ширину */
@media (max-width: 640px) {
    .word-card-collage {
        max-width: 100%;
        margin: 16px 0 20px 0;
        border-radius: 8px;
    }
}

/* ==========================================
   USAGE EXAMPLES внутри списка коллокаций
   ========================================== */

/* Диалог — русский текст */
.usage-ru {
    color: #222; /*#2c3e50*/
	font-style: italic;
    font-weight: 500;
    margin-bottom: 3px;
    line-height: 1.5;
}

/* Диалог — английский текст */
.usage-en {
    color: #555; /*#1b85e5*/
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Отступ между элементами списка (если нужно) */
.phrases-list .phrase-item {
    margin-bottom: 8px;
}

.phrases-list .phrase-item:last-child {
    margin-bottom: 0;
}

/* 1. Word Card Collocations Layout Settings */
	.collocations-section {
    margin: 12px 0 0 0;
}

/* Список коллокаций — без колонок, компактный */
.collocations-section .phrases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Скрытые элементы */
.collocations-section .phrase-item.is-hidden {
    display: none;
}

.collocations-section .phrase-item {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 14px;
}

.collocations-section .phrase-word  { color: #2c3e50; font-style: italic; }
.collocations-section .phrase-sep   { color: #888; margin: 0 6px; }
.collocations-section .phrase-trans { color: #555; font-style: italic; }

/* Кнопка «Показать больше/меньше» */
.collocations-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: background-color .15s ease;  /* ✅ только background */
}

.collocations-toggle:hover {
    background: #f0f0f0;
    border-color: #b8b8b8;
}

.collocations-toggle:active {
    transform: translateY(1px);
}

.collocations-toggle-count {
    color: #999;
}

/* Стрелка — меняет направление при раскрытии */
.collocations-toggle::after {
    content: "▾";
    font-size: 10px;
    color: #999;
    transition: transform .2s;
    display: inline-block;
}

.collocations-toggle[data-expanded="true"]::after {
    transform: rotate(180deg);
}

    /* 2. Structured Line Layout and Baseline Indexes */
    .translations-section ol.custom-ordered-list {
        padding: 0; 
        margin: 0; 
        list-style-type: none; 
        counter-reset: translation-counter; 
    }
    .translation-item-wrapper {
        position: relative;
        counter-increment: translation-counter; 
        margin-bottom: 12px; 
        border-bottom: 1px solid #f5f5f5; 
        padding-bottom: 10px; 
        display: block; 
    }
    .translation-header {
        display: inline-flex;
        align-items: center; 
        gap: 8px;
        vertical-align: middle;
        line-height: 1.2; 
    }
    .translation-header::before {
        content: counter(translation-counter) "."; 
        font-size: 1.1em;
        font-weight: bold;
        color: #555;
        margin-right: 2px;
        display: inline-block;
        vertical-align: middle;
    }
    .translation-title {
        font-size: 1.15em; 
        font-weight: bold; 
        color: #000; 
        margin: 0;
        display: inline-block;
        vertical-align: middle;
    }
    .word-transcription {
        color: #28a745; 
        font-family: 'Lucida Sans Unicode', sans-serif; 
        font-size: 0.95em;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Harmonized Audio Button Styles */
    .audio-speak-btn {
        background: none; 
        border: none; 
        cursor: pointer; 
        padding: 4px 4px; 
        font-size: 1em; 
        border-radius: 4px; 
        display: inline-flex; 
        align-items: center; 
        justify-content: center;
        line-height: 1; 
        transition: background 0.2s, transform 0.1s; 
        margin: 0;
    }
    .audio-speak-btn:mousedown {
        transform: scale(0.92);
    }

    /* Responsive hidden styling for smartphones */
    @media (max-width: 767px) {
        .btn-uk {
            display: none !important;
        }
    }

    /* 3. Comment Box Styles */
    .comment-box {
        color: #4FA408; /*gray;*/
        font-size: 0.9em;
        margin-top: 2px;
    }
	
/* ==========================================
   Комментарий: базовые стили
   ========================================== */

.comment-box {
    line-height: 1.1;
}

/* ==========================================
   Комментарий: отступ между фразами (по `;`)
   ========================================== */

/* Каждая фраза — блочный элемент */
.comment-box .comment-part {
    display: block;
}

/* Отступ между фразами — НО НЕ после первой и НЕ после последней */
.comment-box .comment-part + .comment-part {
    margin-top: 2px;
}

/* Чуть больше отступ для длинных комментариев со спойлером */
.comment-fade-wrapper .comment-part + .comment-part,
.comment-full .comment-part + .comment-part {
    margin-top: 10px;
}
    
    /* Added custom helper styles for our rich hover text triggers */
    .comment-label {
        color: #b94a48; 
        font-weight: bold; 
        margin-right: 5px;
        cursor: help; /* Changes cursor to a question-mark hint icon on hover */
        border-bottom: 1px dotted #b94a48; /* Visually indicates to the user that it has a tooltip */
    }
    
    /* Truncated container setup */
    .comment-fade-wrapper {
        position: relative;
        max-height: 2.8em; 
        line-height: 1.4em;
        overflow: hidden;
        display: block;
    }
    .comment-fade-wrapper::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 60%; 
        height: 1.4em; 
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
        pointer-events: none; 
    }

	.comment-fade-wrapper.not-truncated::after {
    display: none;
	}
	
    /* Spoiler Styling */
    .comment-spoiler {
        display: inline-block;
        margin-top: 4px;
        width: 100%; 
    }
    .comment-summary {
        font-size: 0.85em;
        color: #0066cc;
        cursor: pointer;
        list-style: none; 
    }
    .comment-summary::-webkit-details-marker {
        display: none; 
    }
    
    details[open] .comment-summary {
        margin-bottom: 4px;
        color: #999;
    }
    details .comment-summary::before {
        content: "Читать полностью";
    }
    details[open] .comment-summary::before {
        content: "Свернуть";
    }

    .comment-full {
        padding: 6px 10px;
        background-color: #fcfcfc;
        border-left: 2px solid #ccc;
        margin-top: 4px;
        line-height: 1.4em;
        color: #4FA408; /*#555*/
    }
	
	/* ==========================================
   Английский текст в комментарии — тёмно-серый
   ========================================== */

.comment-box .comment-en {
    color: #4a5568;
    font-weight: 500;
}
	
	/* ==========================================
   Иконки флагов для помет
   ========================================== */

.comment-flags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin-right: 5px;
}

.flag-icon {
    display: inline-block;
    width: 18px;
    height: 13px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    cursor: help;
    transition: transform 0.15s;
}

.flag-icon:hover {
    transform: scale(1.1);
}

/* 🇬🇧 Великобритания */
.flag-gb {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><path d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/></clipPath><path d='M0,0 v30 h60 v-30 z' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></svg>");
}

/* 🇺🇸 США */
.flag-us {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23fff'/><g fill='%23B22234'><rect width='60' height='3.08' y='0'/><rect width='60' height='3.08' y='6.15'/><rect width='60' height='3.08' y='12.31'/><rect width='60' height='3.08' y='18.46'/><rect width='60' height='3.08' y='24.62'/><rect width='60' height='3.08' y='30.77'/><rect width='60' height='3.08' y='36.92'/></g><rect width='24' height='21.54' fill='%233C3B6E'/></svg>");
}

/* 🇦🇺 Австралия (на будущее) */
.flag-au {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><rect width='60' height='30' fill='%23000'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='2'/><path d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='2'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='1'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='1'/></svg>");
}

	/* ==========================================
   БЛОК: Правовые системы (дисклеймер)
   ========================================== */

.legal-disclaimer-wrapper {
    margin: 35px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fafcfe 0%, #f2f6fa 100%);
    border: 1px solid #d5e3ee;
    border-left: 4px solid #4a90c2;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(74, 144, 194, 0.06);
}

.legal-disclaimer-wrapper .disclaimer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px 0;
}

.legal-disclaimer-wrapper .disclaimer-word {
    font-weight: 700;
    color: #0056b3;
}

/* ТАБЛИЦА */
.legal-systems-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    color: #444;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ЗАГОЛОВКИ */
.legal-systems-table thead th {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    color: #fff;
}

/* Цветные заголовки: критерий — серый, континентальная — синяя, англосаксонская — бордовая */
.legal-systems-table thead th:nth-child(1) {
    background: #34495e;
    width: 22%;
}
.legal-systems-table thead th:nth-child(2) {
    background: #2c5282;
    width: 39%;
}
.legal-systems-table thead th:nth-child(3) {
    background: #742a2a;
    width: 39%;
}

/* ЯЧЕЙКИ */
.legal-systems-table tbody td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

/* Первая колонка (критерий) — акцентная */
.legal-systems-table tbody td:first-child {
    font-weight: 600;
    color: #2c3e50;
    background: #f8fafc;
}

/* Вторая колонка — лёгкий синий оттенок */
.legal-systems-table tbody td:nth-child(2) {
    background: #f7fafd;
}

/* Третья колонка — лёгкий красный оттенок */
.legal-systems-table tbody td:nth-child(3) {
    background: #fdf7f7;
}

/* Убираем нижнюю границу у последней строки */
.legal-systems-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover на строке — только на устройствах с мышью */
@media (hover: hover) and (pointer: fine) {
    .legal-systems-table tbody tr:hover td {
        background: #edf2f7 !important;
    }
}

/* АДАПТИВНОСТЬ: на мобильном превращаем в карточки */
@media (max-width: 640px) {
    .legal-disclaimer-wrapper {
        padding: 16px 14px;
        margin: 25px 0;
    }

    .legal-disclaimer-wrapper .disclaimer-text {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Убираем таблицу — оставляем блочную структуру */
    .legal-systems-table {
        display: block;
        width: 100%;
    }
    .legal-systems-table thead {
        display: none;
    }
    .legal-systems-table tbody {
        display: block;
        width: 100%;
    }

    /* Каждая строка — карточка */
    .legal-systems-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    /* Критерий — тёмная шапка карточки */
    .legal-systems-table tbody td:first-child {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, #34495e, #2c3e50);
        color: #fff;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 10px 14px;
        text-align: center;
    }

    /* Системы — друг под другом */
    .legal-systems-table tbody td:nth-child(2),
    .legal-systems-table tbody td:nth-child(3) {
        display: block;
        width: 100%;
        padding: 12px 14px 12px 14px;
        font-size: 0.85rem;
        line-height: 1.5;
        border: none;
        position: relative;
    }

    /* Континентальная — голубой фон */
    .legal-systems-table tbody td:nth-child(2) {
        background: #f7fafd;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Англосаксонская — розовый фон */
    .legal-systems-table tbody td:nth-child(3) {
        background: #fdf7f7;
    }

    /* Подписи — жирная цветная метка над текстом */
    .legal-systems-table tbody td:nth-child(2)::before {
        content: "Континентальная система";
        display: block;
        font-weight: 700;
        color: #2c5282;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
    }

    .legal-systems-table tbody td:nth-child(3)::before {
        content: "Англосаксонская система";
        display: block;
        font-weight: 700;
        color: #742a2a;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
    }
}

/* ==========================================
   БЛОК: Примеры употребления (аккордеон) (ru-en)
   ========================================== */

/* Сам блок аккордеона */
.example-accordion {
    margin-bottom: 24px;
}

.example-accordion:last-child {
    margin-bottom: 0;
}

/* Заголовок варианта перевода */
.example-accordion-title {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2c3e50;
    background-color: #f9f9f9;
    border-left: 3px solid #007bff;
    margin-bottom: 10px;
}

.example-accordion-count {
    color: #888;
    font-weight: 400;
    font-size: 0.9em;
}

/* Список примеров */
.example-list {
    margin: 0;
    padding-left: 20px;
}

.example-list li {
    margin-bottom: 3px;        /* ← было 8px или больше */
    line-height: 1.5;
}

.example-list li:last-child {
    margin-bottom: 0;          /* ← последний пример прижат к кнопке */
}

/* Скрытые примеры */
.example-item.is-hidden {
    display: none;
}

/* Кнопка «Показать больше / меньше» */
.example-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 20px;     
    padding: 7px 14px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: background .15s, border-color .15s;
}

.example-toggle:hover {
    background: #f0f0f0;
    border-color: #b8b8b8;
}

.example-toggle:active {
    transform: translateY(1px);
}

.example-toggle-count {
    color: #999;
}

/* Стрелка */
.example-toggle::after {
    content: "▾";
    font-size: 10px;
    color: #999;
    transition: transform .2s;
    display: inline-block;
}

.example-toggle[data-expanded="true"]::after {
    transform: rotate(180deg);
}
/* ==========================================
   ОТДЕЛЬНЫЙ БЛОК: Примеры употребления, сгруппированные по переводам -->
        <!-- Стили для аккордеона
   ========================================== */

.examples-section {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.reverse-examples-section {
    margin-top: 20px;
}

.example-spoiler {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.example-summary {
    padding: 10px 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #2c3e50;
    outline: none;
    user-select: none;
    transition: background-color 0.2s;
}

.example-summary:hover {
    background-color: #eef1f5;
}

.example-content {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.example-list {
    margin: 0;
    padding-left: 20px;
}

/*.example-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}*/

.example-list li:last-child {
    margin-bottom: 0;
}

/* Стилизация тега b внутри примеров */
.example-list b {
    color: #d9534f;
    background-color: #fcf8e3;
    padding: 0 4px;
    border-radius: 3px;
}
/* ==========================================
   ОТДЕЛЬНЫЙ БЛОК: Phrases Block
   ========================================== */

.phrases-section {
    font-family: Arial, sans-serif;
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fdfcf8 0%, #f7f3e8 100%);
    border-top: 1px solid #eee;          /* ← линия теперь у блока */
    border-left: 4px solid #c9a961;      /* ← акцентная полоса */
    border-radius: 0 8px 8px 8px;        /* сверху не скругляем, чтобы линия была прямой */
}

.phrases-section h2 {
    margin-top: 0;          /* ← убираем отступ сверху */
    padding-top: 0;         /* ← убираем отступ между линией и текстом */
    border-top: none;       /* ← убираем линию у h2 */
    margin-bottom: 12px;
}

.phrases-list {
    list-style: none;
    padding: 0;
    margin: 0;

    /* Десктоп: 2 колонки */
    columns: 2;
    column-gap: 32px;
}

@media (max-width: 768px) {
    /* Мобильный: 1 колонка */
    .phrases-list {
        columns: 1;
    }
}

.phrase-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

/* Скрытые фразы — только на мобильном! На десктопе видны все */
@media (max-width: 768px) {
    .phrase-item.is-hidden {
        display: none;
    }
}

.phrases-toggle {
    display: none; /* по умолчанию не показываем */
    margin-top: 8px;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .phrases-toggle {
        display: block;
    }
}

.phrases-toggle:hover {
    background: #f0f0f0;
}

.phrase-word  { color: #2c3e50; }
.phrase-sep   { color: #888; margin: 0 6px; }
.phrase-trans { color: #555; }

/* ==========================================
   ОТДЕЛЬНЫЙ БЛОК: Кнопки взаимодействия
   ========================================== */

.lawtran-actions-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    margin: 10px 0 15px 0;
    font-family: inherit;
}
.lawtran-actions-block .actions-title {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}
.lawtran-actions-block .actions-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lawtran-actions-block .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    /* ✅ Только безопасные свойства — без layout shift */
    transition: background-color 0.15s ease-in-out,
                color 0.15s ease-in-out,
                border-color 0.15s ease-in-out;
}
.lawtran-actions-block .btn-action:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #1a202c;
}
.lawtran-actions-block .btn-action svg {
    color: #718096;
}
.lawtran-actions-block .actions-divider {
    color: #e2e8f0;
    user-select: none;
}
/* Активные состояния кнопок при клике */
.lawtran-actions-block .btn-like.active {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.lawtran-actions-block .btn-like.active svg { color: #16a34a; fill: #16a34a; }

.lawtran-actions-block .btn-dislike.active {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.lawtran-actions-block .btn-dislike.active svg { color: #dc2626; fill: #dc2626; }

.lawtran-actions-block .btn-bookmark.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}
.lawtran-actions-block .btn-bookmark.active svg { color: #2563eb; fill: #2563eb; }

.lawtran-favorites-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
}
.lawtran-favorites-link:hover {
    color: #1e40af;
    background-color: #f1f5f9;
}
.lawtran-favorites-link svg {
    color: currentColor;
}
/* Стиль круглого индикатора количества */
.lawtran-favorites-link .badge {
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 1;
    min-width: 10px;
    text-align: center;
}
/* Когда в избранном что-то есть, делаем иконку и ссылку чуть ярче */
.lawtran-favorites-link.has-items {
    color: #1e40af;
}

/* ==========================================
   Кнопка «Поделиться» и выпадающее меню
   (вне @media print!)
   ========================================== */

.share-wrapper {
    position: relative;
    display: inline-block;
}

/* Кнопка «Поделиться» */
.btn-share {
    /* стили совпадают с .btn-action */
}

/* Раскрытое состояние кнопки */
.btn-share[aria-expanded="true"] {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Выпадающее меню (десктоп — по умолчанию) */
.share-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    min-width: 200px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
    /* ✅ Убрали visibility из transition */
    pointer-events: none;  /* ✅ Меню не кликабельно, пока скрыто */
}

.share-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;  /* ✅ Кликабельно, когда открыто */
}

/* Пункты меню */
.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #2d3748;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .12s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Иконки в цвете бренда */
.share-item svg {
    flex-shrink: 0;
}

.share-vk svg { color: #0077FF; }
.share-tg svg { color: #26A5E4; }
.share-ok svg { color: #EE8208; }

/* Hover — только на устройствах с мышью */
@media (hover: hover) and (pointer: fine) {
    .share-item:hover {
        background: #f1f5f9;
    }
    .share-vk:hover svg { color: #005FCC; }
    .share-tg:hover svg { color: #1A8FC4; }
    .share-ok:hover svg { color: #CC6F06; }
}

/* ==========================================
   Оверлей (затемнение фона под меню на мобильном)
   ========================================== */

.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;              /* ниже меню (9999) */
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    pointer-events: none;
}

.share-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* На десктопе оверлей не нужен */
@media (min-width: 641px) {
    .share-overlay {
        display: none;
    }
}

/* ==========================================
   Мобильный: меню по центру экрана
   ========================================== */

@media (max-width: 640px) {
    .share-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);
        min-width: 0;
        width: calc(100vw - 40px);
        max-width: 320px;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        padding: 8px;
        border-radius: 12px;
    }

    .share-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Пункты меню — крупнее для тапа */
    .share-item {
        padding: 12px 14px;
        font-size: 15px;
    }

    .share-item svg {
        width: 20px;
        height: 20px;
    }
}

.region-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 16px;
    padding: 8px 10px;
    background: #f7f8fa;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
}

.region-filter-label {
    font-size: 0.85em;
    color: #666;
    margin-right: 4px;
}

.region-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9em;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.region-filter-btn:hover {
    background: #eef2f7;
    border-color: #b6bec9;
}

.region-filter-btn:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.region-filter-btn.is-active {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 86, 179, 0.35);
}

.region-filter-btn.is-active .flag-icon {
    filter: brightness(1.15);
}

.region-filter-empty {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 0.9em;
    color: #666;
    background: #f7f8fa;
    border-left: 3px solid #cfd4dc;
    border-radius: 4px;
}

.translation-item-wrapper[hidden] {
    display: none !important;
}

.corpus-report-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.corpus-report-modal[hidden] { display: none; }
.corpus-report-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.corpus-report-dialog {
    position: relative; background: #fff; border-radius: 12px;
    max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
    padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.corpus-report-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; font-size: 24px; line-height: 1;
    color: #999; cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.corpus-report-close:hover { background: #f0f0f0; color: #333; }
.corpus-report-title {
    margin: 0 0 16px 0; font-size: 1.2em; color: #222;
}
.corpus-report-preview {
    background: #f5f5f5; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
    font-size: 0.95em; line-height: 1.5;
}
.corpus-report-preview-ru { font-style: italic; color: #333; }
.corpus-report-preview-en { color: #444; margin-top: 4px; }
.corpus-report-question {
    margin: 0 0 12px 0; font-size: 0.95em; color: #333;
}
.corpus-report-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; cursor: pointer; font-size: 0.95em;
}
.corpus-report-option input { width: 18px; height: 18px; cursor: pointer; }
.corpus-report-comment {
    width: 100%; margin-top: 12px; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
    font-size: 0.95em; resize: vertical; box-sizing: border-box;
}
.corpus-report-comment:focus { outline: none; border-color: #007bff; }
.corpus-report-actions { margin-top: 16px; text-align: right; }
.corpus-report-submit {
    background: #007bff; color: #fff; border: none;
    padding: 10px 28px; border-radius: 6px; cursor: pointer;
    font-size: 1em; font-weight: 600;
}
.corpus-report-submit:hover { background: #0056b3; }
.corpus-report-submit:disabled { background: #a0c8f0; cursor: not-allowed; }
.corpus-report-success {
    text-align: center; padding: 20px; color: #22a06b; font-weight: 600;
}
.corpus-report-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.1em; padding: 2px 6px; border-radius: 4px;
    opacity: 0.5; transition: opacity 0.2s, background 0.2s;
}
.corpus-report-btn:hover { opacity: 1; background: #fff3cd; }


/* Правило для принтера */
@media print {
    /* 1. Hide all noisy user interface components, ads, and navigation blocks */
    header.header,
    .mob-table-of-contents,
    #search_panel,
    .sidebar-left,
    .sidebar-right,
    .lawtran-actions-block,
    .grey_bg,
    .dark_grey_bg,
    [id^="yandex_rtb_"],
    #loadMoreCorpus {
        display: none !important;
    }

    /* 2. Reset the layout grid to use the full page width */
    .page-wrapper {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Объединенное и правильное свойство для главного контейнера */
    main.res_search {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 50px 0 !important; /* Обнулили боковые отступы, но оставили 50px снизу под копирайт */
        position: relative !important;   /* Необходимо, чтобы надпись привязалась к низу */
    }

    /* Сам печатный копирайт */
    main.res_search::after {
        content: "Материал распечатан с юридического словаря Lawtran.ru. Все права защищены © 2015–" attr(data-current-year) ".";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 9pt !important;
        color: #718096 !important;
        border-top: 1px solid #cbd5e1 !important;
        padding-top: 8px !important;
        font-family: Arial, sans-serif !important;
        font-style: italic !important;
    }

    /* 3. Keep interactive accordions/spoilers open on physical paper */
    .collocations-content,
    .example-content,
    .phrases-content {
        display: block !important;
    }
    
    details summary {
        display: none !important; /* Hide the dropdown arrows */
    }

    /* 4. Formatting optimization for text readability */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt !important;
    }

    .word-card h1 {
        font-size: 24pt !important;
        margin-top: 0 !important;
        color: #000000 !important;
    }

    a {
        text-decoration: none !important;
        color: #000000 !important; /* Don't waste colored printer ink on links */
    }
}

.row {
    display:flex;
    flex-wrap:wrap;
}

.col-md-6  {
    width: 50%;
    padding: 0 15px;
}

.footer {
    padding:48px 15px 20px 15px;
}

.footer_mod_header {
    font-size:15px;
    color: #000;
}

.footer_text {
    color:#888;
    line-height:20px;
    margin-top:28px;
}

.footer_mod_content {
    margin-top:28px;
}

.footer_news {
    padding: 0;
    margin: 0;
}

.footer_news div {
    color:#777;
	padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}

.footer_news div::before {
    content: '';
    display: none; /* Убираем стандартный буллет */
}

.footer_news a {
    position: relative;
    padding-left: 14px;
    color: #3b5998;
    text-decoration: none;
    transition: color 0.15s;
    will-change: color;
}

.footer_news a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6366f1;
    transform: scale(1);                                  /* ← базовое состояние */
    transition: background-color 0.15s, transform 0.15s;  /* ← только безопасные */
    transform-origin: center center;
}

.footer_news a:hover {
    color: #2d4373;
	/* padding-left: 17px; */
}

.footer_news a:hover::before {
    transform: scale(1.4);           /* 5px → 7px (масштаб 1.4) */
    background-color: #4f46e5;
    /* top: 6px → убрать, transform-origin справится */
}

.footer_news span {
    color:#888;
}

.footer_info {
    color:#777;
}

.footer_mod {
    float: left;
    width: 50%;
    padding: 0 15px 28px 15px;
}

.grey_bg {
    width: 100%;
    display: inline-block;
    background:#f2f2f2;
}

.dark_grey_bg {
    background:#e7e7e7;
}

.grey_bg,
.dark_grey_bg {
    flex-shrink: 0;
}

.slider_dl  {
    background-color: #f2f2f2;
    position: relative;
    overflow: hidden;
    height: 550px;
}

.slider_dl h1 {
    color: #fff;
    font-size:37px;
    line-height:48px;
    text-align:left;
    text-transform:none;
}

.slider_dl input {
    width:30%;
    min-width:240px;
    height:54px;
    float:left;
    font-size:16px;
    color:#333;
    padding:0 0 0 15px;
    margin:24px 2% 0 0;
    border:none;
    border-radius:3px;
    outline:none;
    -webkit-appearance:none;
}

.slider_dl button {
    width:34%;
    min-width:260px;
    height:54px;
    font-size:16px;
    color:#fff;
    line-height:52px;
    padding:0 20px;
    margin-top:24px;
    background:#33adff;
    border:none;
    border-bottom:2px solid #298bcc;
    border-radius:3px;
    display:inline-block;
    cursor:pointer;
}

.slider_dl input.button {
    width:34%;
    min-width:260px;
    height:54px;
    font-size:16px;
    color:#fff;
    line-height:52px;
    padding:0 20px;
    margin-top:24px;
    background:#33adff;
    border:none;
    border-bottom:2px solid #298bcc;
    border-radius:3px;
    display:inline-block;
    cursor:pointer;
}

.slider_dl img  {
    height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    margin: -320px 0 0 -320px;
    padding: 0;
    line-height: 0;
    outline: none;
}

.down_cont  {
    position: absolute;
    top: 0;
    left: 320px;
    padding: 20px 40px 0 0;
}

.down_form  {
    width: 100%;
}

.down_form_input, .down_form_button  {
    float: left;
    width: 33.333%;
    min-width: 200px;
    padding: 30px 10px 0 0;
}

.down_form_button  {
    min-width: 200px;
}

.down_form_button input  {
    width: 100%;
    min-width: 100px;
    height: 54px;
    font-size: 16px;
    color: #fff;
    line-height: 54px;
    padding: 0 20px;
    background: #33adff;
    border: none;
    border-bottom: 2px solid #298bcc;
    border-radius: 3px;
    cursor: pointer;
    margin: 0;
}

.down_form_input input  {
    width: 100%;
    min-width: 100px;
    height: 54px;
    line-height: 1;
    float: left;
    font-size: 16px;
    color: #333;
    padding: 0 0 0 15px;
    border: none;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin: 0;
}

.dl_adv {
    font-size:18px;
    color:#fff;
    line-height:32px;
    background:url(../img/dl-bullet.png) no-repeat;
    padding:0 0 0 42px;
    margin:18px 0;
}

.dl_adv_content {
    float:left;
    margin:24px 0 0 0;
}

@media screen and (min-width: 992px)  {
    .ct  {
        float: left;
        width: 50%;
    }
}

@media screen and (min-width: 1500px)  {
    .slider_dl  {
        position: relative;
        overflow: hidden;
        height: 600px;
    }

    .slider_dl h1  {
        text-align: left;
        font-size: 40px;
    }

    .slider_dl img  {
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -300px 0 0 -960px;
    }

    .down_cont  {
        position: absolute;
        top: 0;
        left: 750px;
        padding: 80px 40px 0 0;
        max-width: 800px;
    }

    .down_form_input input  {
        line-height: 1;
    }
}

 @media screen and (max-width: 992px)  {
    .container  {
        width: 100%;
    }

    .col-md-6  {
        width: 100%;
    }

    .slider_dl img  {
        margin-left: -350px;
    }

    .down_cont  {
        left: 270px;
        padding-top: 20px;
    }

    .slider_dl h1  {
        font-size: 35px;
        line-height: 1;
    }

    .down_form_input  {
        width: 50%;
        padding-top: 30px;
    }

    .down_form_button  {
        width: 100%;
        padding-top: 10px;
    }

    .down_form_input input  {
        height: 43px;
        line-height: 1;
    }

    .down_form_button input {
        height: 43px;
        line-height: 0;
    }

    .dl_adv  {
        min-height: 30px;
        font-size: 16px;
        color: #fff;
        background: url(../img/dl-bullet.png) no-repeat;
        background-size: 25px;
        padding: 2px 0 0 42px;
        margin: 15px 0;
        line-height: 1.2;
    }
}

@media screen and (max-width: 768px)  {
    .slider_dl img  {
        margin-left: -350px;
    }

    .down_cont  {
        left: 270px;
        padding-top: 20px;
        padding-right: 20px;
    }

    .slider_dl h1  {
        font-size: 22px;
        line-height: 1.2;
        padding-bottom: 20px;
    }

    .down_form_input  {
        width: 100%;
        padding-top: 10px;
    }

    .down_form_input input  {
        height: 40px;
        line-height: 1;
    }

    .down_form_button input  {
        height: 40px;
        line-height: 0;
    }

    .dl_adv  {
        min-height: 30px;
        font-size: 14px;
        color: #fff;
        background: url(../img/dl-bullet.png) no-repeat;
        background-size: 20px;
        padding: 0 0 0 38px;
        margin: 10px 0;
        line-height: 1.2;
    }
	
}

@media screen and (max-width: 580px)  {
    .col-xs-6  {
        width: 100%;
    }

    .footer_mod  {
        width: 100%;
    }

    .slider_dl  {
        position: relative;
        overflow: hidden;
        height: 450px;
    }

    .slider_dl h1  {
        font-size: 16px;
        line-height: 1;
        padding-bottom: 5px;
    }

    .slider_dl img  {
        height: 100%;
        position: absolute;
        top: 50%;
        left: 0;
        margin: -240px 0 0 -295px;
    }

    .down_cont  {
        left: 200px;
        padding-top: 40px;
        padding-right: 5px;
    }

    .down_form_input  {
        width: 100%;
        min-width: 80px;
        padding-top: 5px;
    }

    .down_form_button  {
        width: 100%;
        min-width: 80px;
        padding-top: 5px;
    }

    .down_form_input input  {
        font-size: 13px;
        height: 35px;
        line-height: 1;
        padding: 0 10px;
    }

    .down_form_button input {
        font-size: 14px;
        height: 35px;
        line-height: 0;
        padding: 0 10px;
    }

    .dl_adv  {
        min-height: 16px;
        font-size: 11px;
        color: #fff;
        background: url(../img/dl-bullet.png) no-repeat;
        background-size: 16px;
        padding: 0 0 0 38px;
        margin: 5px 0;
        line-height: 1;
    }

    .dl_adv_content  {
        margin-top: 10px;
    }
}

@media screen and (max-width: 428px)  {
    .slider h1 {
        font-size:25px;
    }

    .footer_text  {
        font-size: 14px;
        line-height: normal;
    }

    .footer_news div {
        font-size: 14px;
    }

    .footer_info {
        font-size: 14px;
    }

    .dark_grey_bg div {
        font-size: 14px;
    }
}

@media screen and (max-width: 320px)  {
    .slider h1 {
        font-size:22px;
    }
}

@media screen and (max-width: 240px)  {
    .slider h1 {
        font-size:16px;
    }

    .footer_text  {
        font-size: 13px;
        line-height: normal;
    }

    .footer_news div {
        font-size: 13px;
    }

    .footer_info {
        font-size: 12.8px;
    }

    .dark_grey_bg div {
        font-size: 13px;
    }
}

.float-bottom  {
    position: absolute;
    bottom: 0;
}

.clearfix::after  {
    content: "";
    display: block;
    clear: both;
}

.adblcr {
    position:fixed;
    z-index:99999;
    top:0;
    bottom:0;
    left:0;
    right:0;
    padding:20px;
    background:#f3f5fe;
    display:flex;
    justify-content:center;
    align-items:center
}

.adblcr.hidden {
    display:none
}

.adblcr .textsshow {
    position:relative;
    background:#fff;
    max-width:400px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    padding:30px;
    border-radius:30px
}

.adblcr .textsshow svg {
    display:block;
    width:50px;
    height:50px;
    fill:none !important;
    stroke:#08102b;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:1.5
}

.adblcr .textsshow h2 {
    margin:10px 0 15px 0;
    font-size:1.2rem;
    font-weight:800;
    color:#08102b
}

.adblcr .textsshow p {
    margin:0;
    line-height:1.7em;
    font-size:0.9rem;
    color:#08102b
}

@media screen and (max-width: 992px) {
     .sidebar-left, .sidebar-right  {
         display: none;
    }

     .page-wrapper  {
         grid-template-columns: 1fr;
    }
}

.res_search table {
    width: 100%;
    overflow-x: auto;
    table-layout: fixed;
    /* Essential for widths and breaks to work */
}

td, th  {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    /* Optional (instead of word-break: break-all;
    ): Force hyphens instead of harsh character breaks */
}

tr:hover  {
    background-color: #D6EEEE;
}

th, td  {
    padding: 5px;
}

.toc-block {
    position: sticky;
    top: 10px;
}

.toc-block h3 {
    font-size: 16px;
}

.toc-nav ul {
    margin: 0;
}

.toc-item {
    padding-left: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.toc-link  {
     color: #ADB5BD;
     text-decoration: none;
     transition: 0.2s;
}

 .toc-link.active, .toc-link:hover  {
     color: red;
     font-weight: 700;
}

/* SEARCH PANEL */

/* Родоначальный контейнер панели */
#search_panel  {
    
    width: 100%;
    
    padding: 10px 15px 14px;
    
    box-sizing: border-box;
}

/* Форма поиска */
#search_form  {
    
    width: 100%;
    
    max-width: 820px;
    
    margin: 0 auto;
}

/* Обертка поля для абсолютного позиционирования кнопок */
.search-input-wrap  {
    
    position: relative;
    
    width: 100%;
}

/* ПОЛЕ ПОИСКА (TEXTAREA) */
.search_textarea  {
    
    width: 100%;
    
    height: 48px;
     
    min-height: 48px;
    
    max-height: 140px;
    
    box-sizing: border-box;
     

    /* Временно отключаем ручной ресайз мышкой, чтобы не ломать верстку кнопок */
    resize: none;
     

    /* Внутренние отступы: справа резервируем 95px под две кнопки */
    padding: 12px 95px 12px 16px;
     

    font-size: 16px;
    
    line-height: 1.5;
     /* 1.5 дает идеальную центровку текста по высоте */
    font-family: Arial, Helvetica, sans-serif;
    

    color: #1a1a1a;
     /* Наш мягкий черный цвет */
    background: #f5f5f5;
    

    border: 2px solid #cccccc;
     /* Мягкая серая рамка вместо резкой темной */
    border-radius: 14px;
    
    outline: none;
    

    /* Скрываем дефолтный скроллбар, сохраняя возможность прокрутки текста */
    overflow-y: auto;
    
    scrollbar-width: none;
     /* Firefox */

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

/* Скрытие полосы прокрутки для Chrome, Safari, Opera и Edge */
.search_textarea::-webkit-scrollbar  {
    
    display: none;
}

/* Состояние поля, когда в нем есть текст */
.search_textarea:not(:placeholder-shown)  {
    
    background: #ffffff;
    
    border-color: #999999;
}

/* Состояние фокуса */
.search_textarea:focus  {
    
    border-color: #0069f9;
    
    box-shadow: 0 0 0 4px rgba(0, 105, 249, .12);
    
    background: #ffffff;
}

/* ОБЩИЙ СТИЛЬ ДЛЯ КНОПОК ВНУТРИ ПОЛЯ */
.search-submit,
.clear-input-button  {
    
    position: absolute;
    
    top: 24px;
     /* Жестко привязываем к центру первой строки (половина от 48px) */
    transform: translateY(-50%);
    
    border: none;
    
    border-radius: 50%;
    
    cursor: pointer;
    
    display: flex;
    
    align-items: center;
    
    justify-content: center;
    
    padding: 0;
}

/* КНОПКА ПОИСКА (ОТПРАВКА) */
.search-submit  {
    
    right: 12px;
    
    width: 36px;
     /* Оптимизировано с 42px для лучших зазоров */
    height: 36px;
    
    background: #007aff;
    
    color: #ffffff;
    
    font-size: 16px;
    
    transition:
        background .2s ease,
        transform .15s ease;
}

.search-submit:hover  {
    
    background: #0062cc;
}

.search-submit:active  {
    
    transform: translateY(-50%) scale(.94);
}

/* КНОПКА ОЧИСТКИ ПОЛЯ */
.clear-input-button  {
    
    right: 56px;
     /* Скорректировано под новую ширину кнопки отправки */
    width: 24px;
    
    height: 24px;
    
    background: #9aa0a6;
    
    color: #ffffff;
    
    font-size: 16px;
    
    display: none;
     /* Управляется через JS */
    transition: background .2s ease;
}

.clear-input-button:hover  {
    
    background: #7d848b;
}

/* АДАПТИВ СТИЛЕЙ ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ */
@media screen and (max-width: 768px)  {
    
    #search_panel  {
        
        padding: 8px 10px 12px;
    }

    

    .search_textarea  {
        
        border-radius: 12px;
        
        /* На мобильных чуть сужаем отступы */
        padding: 12px 86px 12px 14px;
    }

    

    .search-submit  {
        
        right: 10px;
        
        width: 34px;
        
        height: 34px;
        
        font-size: 15px;
    }

    

    .clear-input-button  {
        
        right: 52px;
        
        width: 22px;
        
        height: 22px;
        
        font-size: 14px;
    }
}

/* HEADER */

.header {
    
    display:flex;
    
    align-items:center;
    
    justify-content:space-between;
    
    gap:20px;
    

    position:relative;
    

    width:100%;
    
    max-width:1800px;
    

    margin:0 auto;
    
    padding:12px 20px;
    

    min-height:70px;
    

    box-sizing:border-box;
}

/* logo */

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    text-decoration: none;
}

.main-logo {
    height: 44px;
    width: 156px;
    display: block;
}


/* DESKTOP NAV */

#navv {
    
    margin-left:auto;
}

.navigation {
    
    display:flex;
    
    align-items:center;
    
    gap:24px;
    

    margin:0;
    
    padding:0;
    

    list-style:none;
}

.navigation li {
    
    padding:0;
}

.navigation li a {
    
    color:#333;
    
    font-size:14px;
    
    font-weight:600;
    
    text-transform:uppercase;
    
    text-decoration:none;
}

.navigation li a:hover {
    
    text-decoration:underline;
}

/* BURGER */

.mobile-menu-btn {
    
    display:none;
    

    width:44px;
    
    height:44px;
    

    margin-left:auto;
    

    border:none;
    
    border-radius:10px;
    

    background:#808080;
    

    cursor:pointer;
    

    padding:10px;
    

    position:relative;
    

    z-index:1002;
}

/* lines */

.mobile-menu-btn span {
    
    display:block;
    

    width:100%;
    
    height:3px;
    

    background:#fff;
    

    border-radius:999px;
    

    transition:.25s ease;
    

    margin:5px 0;
}

/* ACTIVE */

.mobile-menu-btn.active span:nth-child(1) {
    
    transform:
        translateY(8px)
        rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    
    opacity:0;
}

.mobile-menu-btn.active span:nth-child(3) {
    
    transform:
        translateY(-8px)
        rotate(-45deg);
}

/* MOBILE */

@media screen and (max-width: 768px) {
    

    .header {
        
        flex-direction:row;
        
        align-items:center;
        

        padding:12px 14px;
        

        min-height:64px;
    }

    

    .main-logo {
        /* На телефонах делаем логотип чуть компактнее, чтобы осталось место для меню */
        height: 36px; 
        width: 128px; /* Вычисляется автоматически: 36 * (1447/407) */
    }

    

    /* show burger */

    .mobile-menu-btn {
        
        display:block;
    }

    

    /* mobile menu */

    #navv {
        
        margin-left:0;
        
		position:fixed;
        

        top:64px;
        
        right:-100%;
        

        width:260px;
        
        height:calc(100vh - 64px);
        

        background:#fff;
        

        box-shadow:
            -4px 0 20px rgba(0,0,0,.08);
        

        transition:right .28s ease;
        

        z-index:1001;
        

        padding:20px 0;
        

        overflow-y:auto;
    }

    

    #navv.active {
        
        right:0;
    }

    

    .navigation {
        
        flex-direction:column;
        
        gap:0;
    }

    

    .navigation li {
        
        width:100%;
        
        padding:0;
    }

    

    .navigation li a {
        
        display:block;
        

        padding:16px 24px;
        

        font-size:16px;
        
        font-weight:600;
        

        color:#333;
        

        border-bottom:
            1px solid #f0f0f0;
    }
}

@media screen and (min-width: 769px) {
    

    .mobile-menu-btn {
        
        display:none !important;
    }

    

    #navv {
        
        position:static;
        
        width:auto;
        
        height:auto;
        
        background:transparent;
        
        box-shadow:none;
        
        padding:0;
    }
}

.mob-table-of-contents  {
    
  position: sticky;
    
  top: 64px;
     /* под твой header */
  z-index: 1000;
    
  background: #fff;
    
  border-bottom: 1px solid #eee;
}

.toc-scroll-container  {
    
  display: flex;
    
  gap: 10px;
    
  overflow-x: auto;
    
  padding: 10px 12px;
    
  white-space: nowrap;
    
  scroll-behavior: smooth;
    
  -webkit-overflow-scrolling: touch;
}

/* скрываем скроллбар */
.toc-scroll-container::-webkit-scrollbar  {
    
  display: none;
}

.mob-toc-link  {
    
  flex: 0 0 auto;
    
  font-size: 14px;
    
  font-weight: 500;
    
  text-decoration: none;
    

  padding: 8px 14px;
    
  border-radius: 999px;
    

  background: #f3f4f6;
    
  color: #555;
    

  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.mob-toc-link:hover  {
    
  background: #e9ecef;
}

.mob-toc-link.active  {
    
  background: #007aff;
    
  color: #fff;
    
  transform: scale(1.03);
}

@media screen and (min-width: 769px)  {
    
  .mob-table-of-contents  {
        
    display: none !important;
    }
}

/* единая ширина центрального контента */

/* Обычное состояние ссылки */
.dict-link  {
    
  color: #000000;
                 /* Черный цвет текста */
  text-decoration: none;
          /* Убираем любое подчеркивание */
  transition: color 0.2s ease;
     /* Плавный переход цвета при наведении */
}

/* Состояние при наведении курсора */
.dict-link:hover  {
    
  color: #1b85e5;
                 /* Синий цвет при наведении */
  border-bottom: 1px dotted #1b85e5;
     /* Синий пунктир при наведении */
}

.passive-verb-link {
    text-decoration: none; /* Убираем стандартное подчеркивание */
    border-bottom: 1px dashed #0066cc; /* Пунктирное подчеркивание */
    padding-bottom: 1px; /* Небольшой отступ от текста */
    color: #0066cc; /* Цвет ссылки */
    transition: border-bottom 0.2s ease; /* Плавный переход при наведении */
}

.passive-verb-link:hover {
    border-bottom: 1px solid #0066cc; /* При наведении делаем сплошное подчеркивание */
    color: #004499; /* Можно изменить цвет при наведении */
}

.passive-verb-link:active {
    border-bottom: 2px solid #003366; /* При клике делаем толще */
}

/* При наведении на блок ссылки электронной почты меняем цвет текста на лазурно-синий */
.js-mail-link:hover {
    color: #1b85e5 !important;
}

/* При наведении на блок ссылки электронной почты меняем цвет линий иконки на лазурно-синий */
.js-mail-link:hover .footer-mail-icon {
    stroke: #1b85e5 !important;
}

/* Для машинного перевода */
.machine-translation-title  {
    
  width: 100%;
}

.res_search .dynamic-text, 
.dynamic-text  {
    
  color: #4B5563 !important;
    
  white-space: normal !important;
     /* Разрешаем перенос строк */
  word-wrap: break-word;
     /* Защита от вылета длинных слов */
  line-height: 1.4;
     /* Комфортный интервал между строками */
}

/* Базовые стили таблицы словоформ */
.morphy-table {
    border: 1px solid #bce1ff; /* Более мягкая, аккуратная рамка */
    border-collapse: collapse;
    max-width: 100%;
    width: 100%;
    margin: 16px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* Легкая тень для премиального вида */
    font-family: Arial, sans-serif;
}

/* Стили для всех ячеек */
.morphy-table th, 
.morphy-table td {
    border: 1px solid #d2e9ff; /* Внутренние границы чуть светлее внешних */
    padding: 10px 14px; /* Увеличили отступы, чтобы тексту было просторно */
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}

/* ШАПКА ТАБЛИЦЫ (падеж, ед. ч., мн. ч.) */
.morphy-table th {
    background-color: #f0f7ff !important; /* Приятный нежно-голубой фон */
    color: #1b85e5 !important; /* Ваш фирменный лазурно-синий цвет текста */
    font-weight: 600;
    text-transform: lowcase; /* Оставляем строчными, как у вас задумано */
    letter-spacing: 0.02em;
}

/* ПЕРВАЯ КОЛОНКА (Названия) */
/* Используем жесткий селектор, который точно перекрасит первую ячейку в каждой строке */
.morphy-table tr td:first-child {
    background-color: #f7fbe6 !important; /* Тонкий, благородный пастельно-зеленый оттенок (в тон изумруда из логотипа) */
    color: #0b6623 !important; /* Изумрудно-зеленый цвет для названий падежей */
    font-weight: 600; /* Делаем текст падежей полужирным */
    width: 26%;
}

/* Центрируем текст в контентных ячейках для лучшей читаемости */
.morphy-table td {
    text-align: left;
}
.morphy-table th,
.morphy-table tr td:not(:first-child) {
    text-align: center; /* Сами словоформы и шапку центрируем */
}

/* Эффект подсвечивания строки при наведении мыши */
.morphy-table tr:hover td:not(:first-child) {
    background-color: #fafafa;
}

/* Контейнер для степеней сравнения */
.adjective-degrees-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed #bce1ff; /* Элегантная штриховая рамка */
    background-color: #fcfdfe;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка со степенью */
.degree-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Чтобы на мобильных плашки переносились на новую строку */
    gap: 10px;
}

/* Общие стили заголовков степеней */
.degree-title {
    font-size: 14px;
    font-weight: 700;
    min-width: 170px; /* Выравнивает плашки по одной вертикальной линии */
}
.degree-blue { color: #1b85e5; }
.degree-green { color: #0b6623; }

/* Контейнер для плашек */
.degree-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Общий стиль плашки (бейжда) */
.degree-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.1s ease;
}
.degree-badge:hover {
    transform: translateY(-1px); /* Легкий интерактивный эффект при наведении */
}

/* Лазурно-синяя плашка для сравнительной степени */
.badge-blue {
    background-color: #f0f7ff;
    color: #1b85e5;
    border: 1px solid #d2e9ff;
}

/* Изумрудно-зеленая плашка для превосходной степени */
.badge-green {
    background-color: #f7fbe6;
    color: #0b6623;
    border: 1px solid #e2f2b3;
}

/* Адаптивность для смартфонов */
@media screen and (max-width: 580px) {
    .degree-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .degree-title {
        min-width: auto;
    }
}


.res_search {
    
    max-width: 820px;
}

/* выравниваем контент по той же оси, что и поиск */
.page-wrapper > .res_search {
    
    justify-self: center;
    
    width: 100%;
}

#yandex_rtb_R-A-1489615-67 {
    min-height: 600px;
}

#yandex_rtb_R-A-1489615-34,
#yandex_rtb_R-A-1489615-60 {
    min-height: auto;
}

/* ==========================================
   Убираем горизонтальную прокрутку от floor ad РСЯ
   ========================================== */

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

@supports (overflow-x: clip) {
    html, body {
        overflow-x: clip !important;
    }
}

/* Все iframe — не выходят за экран */
iframe {
    max-width: 100% !important;
}