/* DIVERSAINT: обновлённое оформление обоих сайтов (OnePix, 08.10.2026).
   Только внешний вид поверх стилей темы: шрифты и отступы, кнопки, карточки, таблицы, формы, меню, подвал.
   Разметка страниц, тексты и фото не меняются, всё по-прежнему правится в админке.
   Подключается в header.php после fixes.css; откат: убрать строку подключения. */

:root {
    --ds-blue: #1b98e0;      /* фирменный голубой: акценты и крупный текст */
    --ds-blue-700: #1579b2;  /* ссылки и кнопки: контраст с белым 4,8:1 */
    --ds-blue-800: #10669a;  /* наведение */
    --ds-navy: #0b3d5c;
    --ds-ink: #171b26;
    --ds-text: #2a3242;
    --ds-muted: #5b6676;
    --ds-line: #e2e8f0;
    --ds-soft: #f3f7fb;
    --ds-radius: 12px;
    --ds-radius-lg: 16px;
    --ds-shadow: 0 1px 2px rgba(15, 35, 60, .06), 0 6px 18px rgba(15, 35, 60, .08);
    --ds-shadow-hover: 0 2px 4px rgba(15, 35, 60, .08), 0 14px 30px rgba(15, 35, 60, .14);
    --ds-ease: cubic-bezier(.2, .7, .2, 1);
    --ds-header: 100px;
}
@media (max-width: 414px) {
    :root {
        --ds-header: 80px;
    }
}

/* ---------- Основа ---------- */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    accent-color: var(--ds-blue-700);
}
::selection {
    background: rgba(27, 152, 224, .22);
}
/* Рамка фокуса для клавиатуры: у полей и ссылок тема её убирала */
:focus-visible {
    outline: 2px solid var(--ds-blue-700);
    outline-offset: 3px;
}
/* Переход по якорю не прячет заголовок под закреплённой шапкой */
[id] {
    scroll-margin-top: 84px;
}
h1, h2, h3 {
    line-height: 1.25;
}
h4, h5, h6 {
    line-height: 1.35;
}
h1, h2, h3, h4 {
    text-wrap: balance;
}
p, li, blockquote, dd {
    text-wrap: pretty;
}

/* ---------- Шапка ---------- */

/* Шапка закрепляется при прокрутке: место под ней остаётся, страница больше не прыгает вверх */
body:has(> header.top.fixed) {
    padding-top: var(--ds-header);
}
header.fixed {
    box-shadow: 0 6px 24px rgba(3, 30, 50, .28);
    animation: ds-header-in .28s var(--ds-ease);
}
@keyframes ds-header-in {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: none;
    }
}
/* Выпадающее меню: без красной служебной черты и пустой строки сверху, скруглённое, с тенью */
.header__menu > li.header__menu-sub > ul::before,
.header__menu > li.menu-item-has-children > ul::before {
    display: none;
}
.header__menu > li.header__menu-sub > ul,
.header__menu > li.menu-item-has-children > ul {
    padding: .6rem;
    border-radius: 0 0 var(--ds-radius) var(--ds-radius);
    box-shadow: 0 18px 40px rgba(3, 30, 50, .35);
}
.header__menu > li.header__menu-sub > ul li,
.header__menu > li.menu-item-has-children > ul li {
    margin: 0;
}
.header__menu > li.header__menu-sub > ul li a,
.header__menu > li.menu-item-has-children > ul li a {
    display: block;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .95rem;
    transition: background-color .15s;
}
.header__menu > li.header__menu-sub > ul li a:hover,
.header__menu > li.menu-item-has-children > ul li a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, .14);
}
/* Кнопка меню на телефоне: та же иконка, область нажатия больше */
.header__menu--mobile::before {
    content: "";
    position: absolute;
    inset: -14px -12px;
}
/* Мобильное меню: длинное меню прокручивается, пункты крупнее и удобнее для пальца */
.mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-menu.active {
    box-shadow: 12px 0 40px rgba(3, 30, 50, .35);
}
.mobile-menu ul li {
    margin: 0;
}
.mobile-menu ul li a {
    display: block;
    padding: .55rem 0;
}
.mobile-menu ul li + li {
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.mobile-menu input[type=search] {
    min-height: 44px;
}

/* ---------- Первый экран: подложка под текстом на фото ---------- */

.slider__item {
    position: relative;
}
.slider__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 28, 46, .62) 0%, rgba(3, 28, 46, .38) 42%, rgba(3, 28, 46, 0) 72%);
    pointer-events: none;
}
.slider__item > .container-fluid {
    position: relative;
    z-index: 1;
}
.slider__item-h1,
.slider__item-subs,
.slider__item p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.slider__item-h1 {
    text-wrap: balance;
    letter-spacing: -.01em;
}
@media (max-width: 767px) {
    .slider__item::before {
        background: linear-gradient(180deg, rgba(3, 28, 46, .66) 0%, rgba(3, 28, 46, .42) 55%, rgba(3, 28, 46, .55) 100%);
    }
}

/* Заголовок на фото вверху страниц туров, курсов и статей */
.catalog__slider-item--noslider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 28, 46, .22) 0%, rgba(3, 28, 46, .5) 100%);
    pointer-events: none;
}
.catalog__slider-item--noslider h1,
.catalog__slider-item--noslider h3 {
    z-index: 1;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
    text-wrap: balance;
}
@media (max-width: 767px) {
    .catalog__slider-item--noslider {
        height: 300px;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .catalog__slider-item--noslider {
        height: 420px;
    }
}
/* Слайды в начале разделов каталога */
.catalog__slider-content {
    border-radius: var(--ds-radius-lg);
    background: rgba(0, 35, 56, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---------- Кнопки ---------- */

.btn-def {
    border-radius: 10px;
    background-image: none;
    background-color: var(--ds-blue-700);
    font-weight: 500;
    letter-spacing: .01em;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 35, 60, .12), 0 4px 14px rgba(21, 121, 178, .25);
    transition: background-color .2s var(--ds-ease), box-shadow .2s var(--ds-ease), transform .2s var(--ds-ease);
}
.btn-def:hover {
    background-image: none;
    background-color: var(--ds-blue-800);
    box-shadow: 0 2px 4px rgba(15, 35, 60, .12), 0 10px 24px rgba(21, 121, 178, .32);
    transform: translateY(-1px);
}
.btn-def:active {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 35, 60, .12);
}
.btn-def--form {
    letter-spacing: .02em;
}
/* Отправка заявки: кнопка показывает, что запрос идёт */
.btn-def.loading {
    opacity: .7;
    cursor: progress;
    pointer-events: none;
}

/* ---------- Заголовки разделов ---------- */

.tours h2,
.blogs h2,
.reviews h2,
.episod h2 {
    text-transform: none;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem);
    line-height: 1.2;
}
.daiving h2 {
    text-transform: none;
    font-weight: 600;
    font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
    line-height: 1.3;
}
.daving h1,
.article#story h2,
.article#team h2,
.article#contacts h2 {
    text-transform: none;
    color: var(--ds-ink);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.daving h1 {
    font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.6rem);
}
/* .com «Contacts» и «Prices»: заголовок оформлен стилем внутри самой страницы, приводим к общему виду */
h1.cont,
h1.wp-block-heading.price {
    text-transform: none;
    color: var(--ds-ink);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.6rem);
}
.article#story h2,
.article#team h2,
.article#contacts h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
}
.about__container h1,
.about__container h2 {
    font-weight: 600;
    letter-spacing: -.01em;
}
.service__item-title {
    font-weight: 600;
}

/* ---------- Текст страниц ---------- */

.article__left,
.article__context,
.daving {
    line-height: 1.6;
}
/* Длинные строки на широком экране читать тяжело: вступление разделов не шире ~85 знаков (одна ширина для текста и подзаголовков) */
.daving > :is(p, ul, ol, h2, h3, h4, h5, blockquote):not(:has(img, iframe, table, video)) {
    max-width: 50rem;
}
/* «О нас»: абзацы той же удобной ширины, фото и награда как были */
.article#story > article > p,
.team-item .info p {
    max-width: 50rem;
}

/* Подзаголовки отделены от текста выше */
:is(.article__left, .daving, .article__context, .tour__aricle-text) > :is(h2, h3, h4):not(:first-child) {
    margin-top: 1.6em;
}
:is(.article__left, .daving) > h2:not(.ds-h1) {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    font-weight: 600;
    margin-bottom: .6em;
}
:is(.article__left, .daving) > h3 {
    font-weight: 600;
    margin-bottom: .5em;
}
.article__context h2 {
    color: #3a4250;
    margin-bottom: .75em;
}
.article__context h4,
.daving > h4 {
    font-weight: 600;
    color: var(--ds-ink);
}
/* Выделенные абзацы в описаниях туров: был отступ 46 px после каждого */
.article__context strong {
    margin-bottom: .6em;
}
:is(.article__left, .article__context, .daving) :is(ul, ol) > li {
    margin-bottom: .3em;
}
:is(.article__left, .article__context, .daving) ul > li::marker {
    color: var(--ds-blue);
}
/* Ссылки в тексте: темнее (читаются на белом) и подчёркнуты, как принято для ссылок внутри абзаца */
:is(.article__left, .article__context, .daving, .about__container-desc, .article, .ds-season) :is(p, li, td, dd, blockquote) a:not([class]) {
    color: var(--ds-blue-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    text-decoration-color: rgba(21, 121, 178, .4);
    transition: color .15s, text-decoration-color .15s;
}
:is(.article__left, .article__context, .daving, .about__container-desc, .article, .ds-season) :is(p, li, td, dd, blockquote) a:not([class]):hover {
    color: var(--ds-blue-800);
    text-decoration-color: currentColor;
}
/* Мелкий шрифт из старого редактора (13 px и меньше) на телефоне не читался */
:is(.article__left, .article__context, .daving) :is([style*="font-size: small"], [style*="font-size: x-small"], [style*="font-size: xx-small"], [style*="font-size: 8pt"], [style*="font-size: 9pt"], [style*="font-size: 10pt"], [style*="font-size:10pt"]) {
    font-size: .9rem !important;
}
.breadcrubs__item:after {
    content: "\203A";
    right: -.65em;
    color: #9aa5b3;
}
.breadcrubs__item {
    margin-right: 1.15rem;
}

/* ---------- Таблицы цен и расписаний ---------- */

:is(.article__left, .article__context, .daving) table {
    font-variant-numeric: tabular-nums;
}
:is(.article__left, .article__context, .daving) :is(td, th) {
    line-height: 1.4;
}
/* Широкая таблица на телефоне: край затухает, пока дальше есть столбцы (видно, что таблицу можно листать вбок) */
@property --ds-fade-l {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}
@property --ds-fade-r {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}
@supports (animation-timeline: scroll()) {
    .ds-table-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--ds-fade-l), #000 calc(100% - var(--ds-fade-r)), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 var(--ds-fade-l), #000 calc(100% - var(--ds-fade-r)), transparent 100%);
        animation: ds-table-fade linear both;
        animation-timeline: scroll(self inline);
    }
    @keyframes ds-table-fade {
        0% {
            --ds-fade-l: 0px;
            --ds-fade-r: 36px;
        }
        6%, 94% {
            --ds-fade-l: 36px;
            --ds-fade-r: 36px;
        }
        100% {
            --ds-fade-l: 36px;
            --ds-fade-r: 0px;
        }
    }
}

/* ---------- Карточки туров, курсов, статей, видео ---------- */

.sorting__content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.75rem 1.25rem;
}
.sorting__item {
    width: auto;
    min-width: 0;
    margin: 0;
}
.sorting__item-img {
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: .7rem;
    overflow: hidden;
    border-radius: var(--ds-radius);
    background: var(--ds-soft);
    box-shadow: var(--ds-shadow);
}
.sorting__item-img img,
.entry__blog-img img,
.episod__list .episod__item .episod__item-img img:not(.play),
.big__tour .tour__img img {
    transition: transform .6s var(--ds-ease);
}
.sorting__item:hover .sorting__item-img img,
.big__tour .tour__img:hover img {
    transform: translate(-50%, -50%) scale(1.04);
}
.entry__blog:hover .entry__blog-img img:not(.play) {
    transform: scale(1.04);
}
.episod__list .episod__item .episod__item-img:hover img:not(.play) {
    transform: translate(-50%, -50%) scale(1.04);
}
.sorting__item-price {
    color: var(--ds-muted);
    margin-bottom: .15rem;
}
.sorting__item-price span {
    color: var(--ds-blue-700);
    font-weight: 600;
}
.sorting__item-name {
    font-weight: 600;
    color: var(--ds-ink);
    line-height: 1.3;
    transition: color .15s;
}
.sorting__item-name:hover {
    color: var(--ds-blue-700);
}
.entry__blog-img,
.episod__list .episod__item .episod__item-img,
.big__tour .tour__img,
.right__tour .tour__item,
.tour__aricle-img,
.about__container-video,
.blog__item-img {
    overflow: hidden;
    border-radius: var(--ds-radius);
}
.about__container-video {
    border-radius: var(--ds-radius-lg);
    box-shadow: 0 20px 45px rgba(3, 30, 50, .28);
}
.right__tour .tour__item .tour__item-btm {
    background-image: linear-gradient(0deg, rgba(3, 28, 46, .82), rgba(3, 28, 46, 0));
    padding-top: 2.5rem;
}
.blog__info-title,
.tour__info h3,
.episod__list .episod__item h3 {
    font-weight: 600;
    line-height: 1.3;
}
.entry__blog-info .tour__info-text {
    opacity: 1;
    color: var(--ds-muted);
}
/* Фотогалерея тура: скруглённая, у миниатюр отмечена текущая */
.article__slider .owl-stage-outer {
    border-radius: var(--ds-radius);
}
.article__slider-2 img {
    border-radius: 6px;
}
.article__slider-2 .owl-item.current img {
    outline: 2px solid var(--ds-blue);
    outline-offset: -2px;
}

/* Плей-кнопка на видео заметнее при наведении */
.episod__list .episod__item .episod__item-img img.play,
.entry__blog-img img.play,
.about__container-video img.play {
    transition: transform .25s var(--ds-ease);
}
.episod__list .episod__item .episod__item-img:hover img.play,
.entry__blog-img:hover img.play,
.about__container-video:hover img.play {
    transform: translate(-50%, -50%) scale(1.12);
}

/* ---------- Вкладки «Популярные / Премиум туры» на главной ---------- */

.tabs__head {
    gap: .5rem;
}
.tabs__name {
    margin: 0;
    padding: .55rem 1.15rem;
    border: 1px solid var(--ds-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    font-size: .95rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.tabs__name:hover {
    color: var(--ds-blue-700);
    border-color: var(--ds-blue-700);
    text-decoration: none;
}
.tabs__name.active {
    color: #fff;
    background: var(--ds-blue-700);
    border-color: var(--ds-blue-700);
    text-decoration: none;
}
@media (max-width: 414px) {
    .tabs__name {
        font-size: .9rem;
    }
}

/* ---------- Отзывы ---------- */

.reviews__item {
    padding: 2rem 2.25rem;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-soft);
}
.reviews__item-right p {
    margin-bottom: 0;
    letter-spacing: 0;
}
.reviews__slider .owl-stage-outer {
    transition: height .3s var(--ds-ease);
}
@media (max-width: 767px) {
    .reviews__item {
        padding: 1.5rem 1.25rem;
    }
}

/* ---------- Частые вопросы ---------- */

.ds-faq__item summary {
    transition: color .15s;
}
.ds-faq__item summary:hover {
    color: var(--ds-blue-700);
}

/* ---------- Формы заявки ---------- */

input[type=email],
input[type=tel],
input[type=text],
input[type=search],
textarea {
    border-radius: 10px;
    transition: box-shadow .15s;
}
input[type=email]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=search]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 152, 224, .55);
}
::placeholder {
    color: #6b7584;
    opacity: 1;
}
/* iPhone увеличивал страницу при нажатии на поле: шрифт полей был меньше 16 px */
@media (max-width: 414px) {
    input[type=email],
    input[type=tel],
    input[type=text],
    input[type=search],
    textarea {
        font-size: 16px;
    }
}
.modal-form {
    border-radius: var(--ds-radius-lg);
}
.modal-close {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
}
.modal-close span {
    top: 15px;
    left: 8px;
    width: 16px;
}

/* ---------- Боковая колонка (курсы, туры) ---------- */

.sidebar .sidebar-learning h3,
.sidebar .sidebar-tours h3 {
    color: var(--ds-ink);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    border-bottom-color: var(--ds-line);
    padding-bottom: .6rem;
    margin-bottom: .5rem;
}
.sidebar .sidebar-learning ul li,
.sidebar .sidebar-tours ul li {
    margin: 0;
}
.sidebar .sidebar-learning ul a,
.sidebar .sidebar-tours ul a {
    display: block;
    padding: .32rem 0;
    color: var(--ds-text);
    line-height: 1.35;
    transition: color .15s;
}
.sidebar .sidebar-learning ul a:hover,
.sidebar .sidebar-tours ul a:hover {
    color: var(--ds-blue-700);
    text-decoration: none;
}
@media (min-width: 992px) {
    .sidebar .sidebar-learning,
    .sidebar .sidebar-tours {
        padding: 1rem 1.1rem .75rem;
        border-radius: var(--ds-radius-lg);
        background: var(--ds-soft);
    }
}
/* Виджет погоды: до загрузки тёмная полоса в цвет виджета, а не белое пустое место */
.weatherwidget-io {
    display: block;
    min-height: 98px;
    overflow: hidden;
    color: transparent;
    background: #1f567c;
}
.sidebar .weather .weatherwidget-io {
    border-radius: var(--ds-radius);
}

/* ---------- Кнопки «Поделиться» ---------- */

.share__social {
    gap: .5rem;
}
.share__social-item {
    margin-right: 0;
    border-radius: 10px;
    transition: filter .15s, transform .15s;
}
@media (max-width: 650px) {
    .share__social-item {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 96px;
        padding-right: 0;
    }
    .share__social-item::before {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
.share__social-item:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* ---------- Страницы списков ---------- */

.section__pagination .page-numbers li a,
.section__pagination .page-numbers li span,
.pagination__item {
    width: 40px;
    height: 40px;
    line-height: 40px;
    align-items: center;
    border-radius: 10px;
}
.section__pagination .page-numbers li span.current,
.pagination__item--active {
    background: var(--ds-blue-700);
}

/* ---------- Подвал ---------- */

.footer__menu {
    gap: .2rem 1.25rem;
}
.footer__menu li {
    margin: 0;
}
.footer__menu li a,
.footer__address a {
    display: inline-block;
    padding: .3rem 0;
}
.footer__menu li a:hover,
.footer__address a:hover,
.footer__bottom--flex a:hover {
    color: #bfe3f7;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .75rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    transition: background-color .15s;
}
.footer-social a:hover {
    background: rgba(255, 255, 255, .14);
}
.footer-social a img {
    width: 26px;
    height: 26px;
}
.footer__bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
@media (max-width: 414px) {
    footer {
        padding: 2rem 0 1.5rem;
    }
    .footer__bottom--flex {
        gap: .35rem;
    }
}

/* ---------- Без лишнего движения, если так настроено в системе ---------- */

@media (prefers-reduced-motion: reduce) {
    html,
    body {
        scroll-behavior: auto;
    }
    *:not(.ds-table-scroll),
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .btn-def:hover,
    .share__social-item:hover {
        transform: none;
    }
}
