/* ============================================================
   masterskayaexcursii.ru — стили туров
   Подключается функцией tours_css() из tours-assets.php
   с параметром ?v=<время изменения этого файла> (защита от кэша).
   Все селекторы начинаются с .tour-page / .tour-card / .itemid-142:
   reset ZOO (.yoo-zoo div, p, ul…; .yoo-zoo a:hover) перебивает всё слабее.
   ============================================================ */

/* ======================= Страница тура ======================= */

.tour-page.tour-page {
    /* Цветовая тема страницы. Значения по умолчанию — фирменные (Карелия).
       Тур включает свою тему классом .tour-theme--<имя> на этом же корне,
       переопределяя только переменные — разметка и остальной CSS общие. */
    --tour-c1: #013a70;                 /* тёмный край больших градиентов (шапка, цена, заявка, панель) */
    --tour-c2: #005AAA;
    --tour-c3: #0d6fc4;
    --tour-glow-rgb: 64, 156, 233;      /* световое пятно поверх градиентов */
    --tour-primary: #005AAA;            /* время в программе, точки таймлайна, цена отправления */
    --tour-soft1: #005AAA;              /* малые градиенты: номера дней, иконки впечатлений */
    --tour-soft2: #2a86d8;
    --tour-soft-rgb: 0, 90, 170;        /* их тени */
    --tour-tint1: #f2f7fc;              /* светлая подложка заголовка дня */
    --tour-tint2: #e8f1fa;
    --tour-accent: #ED1D23;             /* бейдж над заголовком, иконка впечатления при наведении */
    --tour-accent2: #ff5a4e;
    --tour-accent-ink: #ED1D23;         /* акцентный текст на белом: надзаголовки секций, подпись дня */
    --tour-accent-text: #fff;           /* текст на акцентном фоне */
    --tour-accent-shadow-rgb: 180, 10, 15;
    --tour-btn: #ED1D23;                /* кнопки «Забронировать», телефон, «Оставить заявку» */
    --tour-btn-hover: #d31118;
    --tour-btn-text: #fff;
    --tour-btn-rgb: 160, 10, 15;        /* тени кнопок */
    --tour-warm: #ffd9a0;               /* тёплые иконки на тёмном: факты в шапке, маршрут */
    --tour-route-bg: rgba(0, 22, 48, 0.45);
    --tour-route-pill: #0b3f75;

    line-height: 1.65;
    color: #1a2430;
    font-size: 16px;
}

/* ---------- Тема «зима / Новый год» (Великий Устюг) ---------- */

.tour-page.tour-theme--winter {
    --tour-c1: #0a1d4d;
    --tour-c2: #143c8f;
    --tour-c3: #2d6bd0;
    --tour-glow-rgb: 130, 190, 255;
    --tour-primary: #1e4fa6;
    --tour-soft1: #1e4fa6;
    --tour-soft2: #5fa3ff;
    --tour-soft-rgb: 30, 79, 166;
    --tour-tint1: #f1f6ff;
    --tour-tint2: #e5eefc;
    --tour-warm: #ffe6a3;
    --tour-route-bg: rgba(4, 16, 48, 0.5);
    --tour-route-pill: #102e6e;
}

/* снег вместо редких звёзд: три слоя точек разного размера */
.tour-page.tour-theme--winter .tour-hero::before,
.tour-page.tour-theme--winter .tour-cta::before {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.95) 1.6px, transparent 2.6px),
        radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.85) 2.2px, transparent 3.4px);
    background-size: 90px 90px, 48px 48px, 150px 150px;
    background-position: 0 0, 24px 38px, 60px 12px;
    opacity: 0.5;
}

/* мягкое свечение луны вместо кольца */
.tour-page.tour-theme--winter .tour-hero::after {
    border: none;
    width: 380px;
    height: 380px;
    right: -70px;
    top: -130px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 68%);
}

/* ---------- Тема «Грузия»: вино, терракота, охра ---------- */

.tour-page.tour-theme--georgia {
    --tour-c1: #4a1324;
    --tour-c2: #8a2b3d;
    --tour-c3: #c45a3b;
    --tour-glow-rgb: 240, 170, 90;
    --tour-primary: #8a2b3d;
    --tour-soft1: #8a2b3d;
    --tour-soft2: #d4704d;
    --tour-soft-rgb: 138, 43, 61;
    --tour-tint1: #fdf6f1;
    --tour-tint2: #f8ebe2;
    --tour-accent: #e0a23a;
    --tour-accent2: #f3c069;
    --tour-accent-ink: #9a5d12;
    --tour-accent-text: #2b1a08;
    --tour-accent-shadow-rgb: 170, 110, 20;
    --tour-btn: #e0a23a;
    --tour-btn-hover: #cf9128;
    --tour-btn-text: #2b1a08;
    --tour-btn-rgb: 170, 110, 20;
    --tour-warm: #ffd98e;
    --tour-route-bg: rgba(40, 8, 18, 0.45);
    --tour-route-pill: #5e1b2d;
}

/* узор «ткань»: две сетки тонких диагоналей вместо звёзд */
.tour-page.tour-theme--georgia .tour-hero::before,
.tour-page.tour-theme--georgia .tour-cta::before {
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 16px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 16px);
    background-size: auto;
    opacity: 0.7;
}

.tour-page.tour-page ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.tour-page.tour-page a {
    cursor: pointer;
}

.tour-page.tour-page a:focus-visible {
    outline: 3px solid #ED1D23;
    outline-offset: 3px;
}

/* ---------- Шапка тура ---------- */

.tour-page .tour-hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(var(--tour-glow-rgb), 0.55), transparent 65%),
        radial-gradient(700px 380px at -10% 110%, rgba(0, 30, 70, 0.55), transparent 60%),
        linear-gradient(128deg, var(--tour-c1) 0%, var(--tour-c2) 58%, var(--tour-c3) 100%);
    border-radius: 22px;
    padding: 60px 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* лёгкая «звёздная» текстура северного неба */
.tour-page .tour-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.5px);
    background-size: 90px 90px;
    opacity: 0.25;
    pointer-events: none;
}

.tour-page .tour-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.tour-page .tour-hero-inner {
    position: relative;
    z-index: 1;
}

.tour-page .tour-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tour-accent);
    color: var(--tour-accent-text);
    border-radius: 100px;
    padding: 8px 22px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(var(--tour-accent-shadow-rgb), 0.35);
}

.tour-page .tour-hero h1 {
    color: #fff;
    font-size: 62px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    text-shadow: 0 4px 30px rgba(0, 20, 50, 0.35);
}

.tour-page .tour-hero-subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    font-weight: 300;
}

.tour-page .tour-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.tour-page .tour-fact {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tour-page .tour-fact i {
    font-size: 24px;
    color: var(--tour-warm);
}

.tour-page .tour-fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.65);
}

.tour-page .tour-fact-value {
    font-weight: 700;
    font-size: 15px;
    margin-top: 1px;
}

/* лента маршрута внизу шапки */
.tour-page .tour-route {
    position: relative;
    z-index: 1;
    margin-top: 45px;
    margin-left: -60px;
    margin-right: -60px;
    background: var(--tour-route-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 20px 60px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
}

.tour-page .tour-route-city {
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-page .tour-route-city i {
    color: var(--tour-warm);
    font-size: 13px;
}

.tour-page .tour-route-line {
    flex: 1;
    height: 2px;
    min-width: 60px;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.7) 55%, transparent 45%);
    background-size: 14px 2px;
    position: relative;
}

.tour-page .tour-route-line i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    padding: 0 12px;
    background: var(--tour-route-pill);
    border-radius: 50px;
}

.tour-page .tour-route-note {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- Заголовки секций ---------- */

.tour-page .tour-section {
    margin-top: 70px;
}

.tour-page .tour-section-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tour-accent-ink);
    margin-bottom: 10px;
}

.tour-page .tour-section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: #10131f;
}

.tour-page .tour-section-intro {
    color: #5b6572;
    margin: 16px 0 0;
    max-width: 720px;
    font-size: 17px;
}

/* ---------- Чем запомнится ---------- */

.tour-page .tour-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.tour-page .tour-highlight {
    border-radius: 18px;
    border: 1px solid #edf1f6;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
    padding: 28px 24px;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tour-page .tour-highlight:hover {
    box-shadow: rgba(15, 40, 80, 0.13) 0 14px 34px 0;
    transform: translateY(-5px);
    border-color: transparent;
}

.tour-page .tour-highlight-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tour-soft1), var(--tour-soft2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(var(--tour-soft-rgb), 0.28);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.tour-page .tour-highlight:hover .tour-highlight-icon {
    background: linear-gradient(135deg, var(--tour-accent), var(--tour-accent2));
    box-shadow: 0 8px 18px rgba(220, 30, 40, 0.3);
}

.tour-page .tour-highlight-icon i {
    font-size: 22px;
    color: #fff;
}

.tour-page .tour-highlight-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}

.tour-page .tour-highlight-text {
    font-size: 14px;
    color: #66707c;
    line-height: 1.55;
}

/* ---------- Программа по дням ---------- */

.tour-page .tour-day {
    border-radius: 20px;
    margin-top: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9eef4;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
}

.tour-page .tour-day-header {
    background: linear-gradient(120deg, var(--tour-tint1) 0%, var(--tour-tint2) 100%);
    padding: 26px 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid #e4ebf3;
}

.tour-page .tour-day-num {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tour-soft1), var(--tour-soft2));
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(var(--tour-soft-rgb), 0.3);
}

.tour-page .tour-day-label {
    display: inline-block;
    color: var(--tour-accent-ink);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.tour-page .tour-day-title {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    color: #10131f;
}

.tour-page .tour-day-note {
    font-size: 13px;
    color: #8d97a3;
    margin-left: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-page .tour-day-note i {
    color: #b3bec9;
}

.tour-page .tour-day-body {
    padding: 14px 34px 30px;
}

/* таймлайн с осью */
.tour-page .tour-day-item {
    display: flex;
    gap: 26px;
    position: relative;
    padding: 16px 0 16px 34px;
}

/* вертикальная ось */
.tour-page .tour-day-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e3eaf2;
}

.tour-day-item:first-child::before { top: 28px; }
.tour-day-item:last-child::before  { bottom: calc(100% - 28px); }

/* точка на оси */
.tour-page .tour-day-item::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tour-primary);
    box-shadow: 0 0 0 4px rgba(var(--tour-soft-rgb), 0.12);
}

.tour-page .tour-day-time {
    min-width: 108px;
    font-weight: 800;
    font-size: 15px;
    color: var(--tour-primary);
    white-space: nowrap;
    padding-top: 1px;
    font-variant-numeric: tabular-nums;
}

.tour-page .tour-day-text {
    flex: 1;
    color: #2a3440;
}

.tour-page .tour-day-text ul {
    margin-top: 14px;
}

.tour-page .tour-day-text li {
    margin-bottom: 12px;
}

.tour-page .tour-day-text li:last-child {
    margin-bottom: 0;
}

/* ---------- Стоимость ---------- */

.tour-page .tour-price-card {
    border-radius: 20px;
    padding: 38px 36px;
    background: #fff;
    border: 1px solid #e9eef4;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tour-page .tour-price-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(15, 40, 80, 0.13) 0 16px 38px 0;
}

.tour-page .tour-price-card--featured {
    background:
        radial-gradient(500px 260px at 110% -20%, rgba(var(--tour-glow-rgb), 0.5), transparent 60%),
        linear-gradient(135deg, var(--tour-c1), var(--tour-c2) 70%, var(--tour-c3));
    border: none;
    color: #fff;
}

.tour-page .tour-price-who {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #7a8491;
}

.tour-page .tour-price-card--featured .tour-price-who {
    color: rgba(255, 255, 255, 0.75);
}

.tour-page .tour-price-amount {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #10131f;
    margin: 10px 0 4px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tour-page .tour-price-card--featured .tour-price-amount {
    color: #fff;
}

.tour-page .tour-price-amount span {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    color: #98a2ae;
}

.tour-page .tour-price-card--featured .tour-price-amount span {
    color: rgba(255, 255, 255, 0.65);
}

.tour-page .tour-price-note {
    font-size: 13px;
    color: #98a2ae;
    margin-top: 8px;
}

.tour-page .tour-price-card--featured .tour-price-note {
    color: rgba(255, 255, 255, 0.6);
}

/* сводная карточка: диапазон цен по отправлениям + кнопка к расписанию */
.tour-page .tour-price-summary {
    margin-top: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.tour-page .tour-price-summary .tour-price-amount {
    font-size: 44px;
}

.tour-page .tour-price-summary .tour-price-note {
    font-size: 14px;
    margin-top: 12px;
}

.tour-page #tour-dates {
    scroll-margin-top: 20px;
}

/* ---------- Включено / не включено ---------- */

.tour-page .tour-conditions {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.tour-page .tour-conditions-card {
    border-radius: 20px;
    padding: 34px 36px;
    background: #f5f8fb;
    border: 1px solid #e9eef4;
}

.tour-page .tour-conditions-card h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-page .tour-conditions-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tour-page .tour-conditions-card li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 13px;
}

.tour-page .tour-conditions-card li:last-child {
    margin-bottom: 0;
}

.tour-page .tour-conditions-card li i {
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.tour-page .tour-included li i {
    background: #def3e6;
    color: #1e8a4c;
}

.tour-page .tour-excluded li i {
    background: #fde5e6;
    color: #ED1D23;
}

.tour-page .tour-conditions-card h3 i {
    font-size: 20px;
}

.tour-included h3 i { color: #1e8a4c; }
.tour-excluded h3 i { color: #ED1D23; }

/* ---------- Документы и важное ---------- */

.tour-page .tour-docs {
    margin-top: 38px;
    border-radius: 20px;
    border: 1px solid #f5dfae;
    background: linear-gradient(120deg, #fffaf0, #fff4dc);
    padding: 34px 36px;
    display: flex;
    gap: 26px;
}

.tour-page .tour-docs-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: #f7b733;
    background: linear-gradient(135deg, #f0a92d, #e8890f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(220, 150, 20, 0.35);
}

.tour-page .tour-docs h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
}

.tour-page .tour-docs-warning {
    color: #8a6100;
    margin: 0 0 16px;
    font-size: 15px;
}

.tour-page .tour-docs ol {
    margin: 0;
    padding-left: 20px;
}

.tour-page .tour-docs ol li {
    margin-bottom: 9px;
}

.tour-page .tour-docs ol li::marker {
    font-weight: 700;
    color: #c98a10;
}

.tour-page .tour-docs ol li:last-child {
    margin-bottom: 0;
}

.tour-page .tour-fineprint {
    margin-top: 26px;
    font-size: 13px;
    color: #98a2ae;
    padding-left: 4px;
}

.tour-page .tour-fineprint p {
    margin: 0 0 6px;
    display: flex;
    gap: 9px;
    align-items: baseline;
}

.tour-page .tour-fineprint i {
    font-size: 11px;
    color: #c3ccd6;
}

/* ---------- Блок заявки ---------- */

.tour-page .tour-cta {
    margin-top: 70px;
    background:
        radial-gradient(700px 320px at 90% -30%, rgba(var(--tour-glow-rgb), 0.55), transparent 60%),
        linear-gradient(128deg, var(--tour-c1) 0%, var(--tour-c2) 60%, var(--tour-c3) 100%);
    border-radius: 22px;
    padding: 52px 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.tour-page .tour-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.5px);
    background-size: 90px 90px;
    opacity: 0.22;
    pointer-events: none;
}

.tour-page .tour-cta > div {
    position: relative;
}

.tour-page .tour-cta-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: #fff;
}

.tour-page .tour-cta-text {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 520px;
    font-size: 17px;
}

.tour-page .tour-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tour-page .tour-cta-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    border-radius: 14px;
    padding: 16px 34px;
    font-weight: 800;
    font-size: 19px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.tour-page .tour-cta-phone {
    background: var(--tour-btn);
    color: var(--tour-btn-text);
    box-shadow: 0 12px 28px rgba(var(--tour-btn-rgb), 0.45);
}

.tour-page .tour-cta-phone:hover {
    text-decoration: none;
    background: var(--tour-btn-hover);
    color: var(--tour-btn-text);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(var(--tour-btn-rgb), 0.55);
}

.tour-page .tour-cta-mail {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.tour-page .tour-cta-mail:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ---------- Плавающая панель покупки ---------- */

.tour-page .tour-buybar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 0);
    width: 1160px;
    max-width: calc(100vw - 40px);
    z-index: 90;
    background:
        radial-gradient(500px 200px at 90% -40%, rgba(var(--tour-glow-rgb), 0.5), transparent 60%),
        linear-gradient(128deg, var(--tour-c1) 0%, var(--tour-c2) 60%, var(--tour-c3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 25, 60, 0.45);
    color: #fff;
    padding: 16px 20px 16px 30px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.tour-page .tour-buybar-info {
    min-width: 0;
}

.tour-page .tour-buybar-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.tour-page .tour-buybar-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
    margin-top: 2px;
}

.tour-page .tour-buybar-price {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.tour-page .tour-buybar-price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.65);
}

.tour-page .tour-buybar-price-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.tour-page .tour-buybar-price-value span {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

.tour-page .tour-buybar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--tour-btn);
    color: var(--tour-btn-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    border-radius: 13px;
    padding: 15px 36px;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(var(--tour-btn-rgb), 0.5);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-page .tour-buybar-btn:hover {
    text-decoration: none;
    background: var(--tour-btn-hover);
    color: var(--tour-btn-text);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(var(--tour-btn-rgb), 0.6);
}

.tour-page .tour-buybar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 19px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.tour-page .tour-buybar-phone:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

/* ---------- Отправления: даты и цены ---------- */

.tour-page .tour-departures {
    margin-top: 38px;
    border-radius: 20px;
    border: 1px solid #e9eef4;
    background: #fff;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
    overflow: hidden;
}

.tour-page .tour-departure {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 22px 30px;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s ease;
}

.tour-page .tour-departure:last-child {
    border-bottom: none;
}

.tour-page .tour-departure:hover {
    background: #f7fafd;
}

.tour-page .tour-departure-num {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tour-soft1), var(--tour-soft2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 14px rgba(var(--tour-soft-rgb), 0.25);
}

.tour-page .tour-departure-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #98a2ae;
    font-weight: 700;
    margin-bottom: 3px;
}

.tour-page .tour-departure-dates {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    color: #10131f;
    letter-spacing: -0.01em;
}

.tour-page .tour-departure-price {
    text-align: right;
    font-size: 25px;
    font-weight: 800;
    color: var(--tour-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ZOO оборачивает каждый элемент позиции в свой div/p — гасим отступы,
   чтобы вывод из админки не ломал выравнивание строки */
.tour-page .tour-departure-dates p,
.tour-page .tour-departure-price p {
    margin: 0;
}

.tour-page .tour-departure-dates > *:last-child,
.tour-page .tour-departure-price > *:last-child {
    margin-bottom: 0;
}

.tour-page .tour-departure-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tour-btn);
    color: var(--tour-btn-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
    padding: 13px 26px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(var(--tour-btn-rgb), 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-page .tour-departure-btn:hover {
    text-decoration: none;
    background: var(--tour-btn-hover);
    color: var(--tour-btn-text);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--tour-btn-rgb), 0.45);
}

/* ---------- Доступность ---------- */

@media (prefers-reduced-motion: reduce) {
    .tour-page.tour-page *,
    .tour-page.tour-page *::before,
    .tour-page.tour-page *::after {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Форма заявки (модуль RSForm!Pro в позиции tour-form) ---------- */

.tour-page #tour-form {
    scroll-margin-top: 20px;
}

.tour-page .tour-form-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 38px;
}

.tour-page .tour-form-card {
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 20px;
    padding: 32px 34px;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
}

/* карточка контактов рядом с формой: вертикальная компоновка вместо широкой полосы */
.tour-page .tour-cta--aside {
    margin-top: 0;
    padding: 36px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.tour-page .tour-cta--aside .tour-cta-title {
    font-size: 26px;
}

.tour-page .tour-cta--aside .tour-cta-text {
    font-size: 16px;
}

.tour-page .tour-cta--aside .tour-cta-actions a {
    justify-content: center;
}

/* базовая нормализация полей RSForm!Pro внутри карточки (до тонкой настройки полей) */
.tour-page .tour-form-card input[type="text"],
.tour-page .tour-form-card input[type="email"],
.tour-page .tour-form-card input[type="tel"],
.tour-page .tour-form-card input[type="number"],
.tour-page .tour-form-card select,
.tour-page .tour-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9e1ea;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: #1a2430;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-page .tour-form-card input:focus,
.tour-page .tour-form-card select:focus,
.tour-page .tour-form-card textarea:focus {
    outline: none;
    border-color: var(--tour-primary);
    box-shadow: 0 0 0 4px rgba(var(--tour-soft-rgb), 0.12);
}

.tour-page .tour-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

.tour-page .tour-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #5b6572;
    margin-bottom: 6px;
}

.tour-page .tour-form-card .rsform-block,
.tour-page .tour-form-card .form-group,
.tour-page .tour-form-card .mb-3 {
    margin-bottom: 16px;
}

.tour-page .tour-form-card button[type="submit"],
.tour-page .tour-form-card input[type="submit"],
.tour-page .tour-form-card .rsform-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--tour-btn);
    color: var(--tour-btn-text);
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    border-radius: 13px;
    padding: 14px 30px;
    box-shadow: 0 10px 24px rgba(var(--tour-btn-rgb), 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-page .tour-form-card button[type="submit"]:hover,
.tour-page .tour-form-card input[type="submit"]:hover,
.tour-page .tour-form-card .rsform-submit-button:hover {
    background: var(--tour-btn-hover);
    color: var(--tour-btn-text);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--tour-btn-rgb), 0.45);
}

/* ======================= Список туров (/tury) ======================= */

/* ---------- Страница списка туров (пункт меню 142) ---------- */

.itemid-142 #yoo-zoo .details .title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 34px;
    color: #10131f;
}

/* сетка карточек поверх табличной разметки ZOO (.row / .widthNN) */
.itemid-142 #yoo-zoo .items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin: 0;
}

.itemid-142 #yoo-zoo .items .row,
.itemid-142 #yoo-zoo .items .row > div {
    display: contents;
}

.itemid-142 #yoo-zoo .items .row::before,
.itemid-142 #yoo-zoo .items .row::after {
    display: none;
}

.itemid-142 #yoo-zoo .items .teaser-item {
    padding: 0;
    margin: 0;
    overflow: visible;
    height: 100%;
}

/* стандартный заголовок teaser дублирует название в карточке */
.itemid-142 #yoo-zoo .items .teaser-item > .pos-title {
    display: none;
}

/* ---------- Карточка тура ---------- */

.tour-card.tour-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 20px;
    box-shadow: rgba(15, 40, 80, 0.05) 0 6px 24px 0;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tour-card.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(15, 40, 80, 0.14) 0 16px 38px 0;
}

/* reset ZOO (.yoo-zoo a:hover) подчёркивает любые ссылки при наведении —
   в карточке ссылками являются шапка с иконкой, заголовок и кнопка */
.tour-card.tour-card a,
.tour-card.tour-card a:hover,
.tour-card.tour-card a:focus {
    text-decoration: none;
}

.tour-card .tour-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    background:
        radial-gradient(500px 240px at 90% -20%, rgba(64, 156, 233, 0.55), transparent 60%),
        linear-gradient(128deg, #013a70 0%, #005AAA 58%, #0d6fc4 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.tour-card .tour-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.5px);
    background-size: 60px 60px;
    opacity: 0.25;
}

.tour-card .tour-card-media > i {
    position: relative;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.3s ease;
}

.tour-card.tour-card:hover .tour-card-media > i {
    transform: scale(1.08);
}

.tour-card .tour-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.tour-card.tour-card:hover .tour-card-media img {
    transform: scale(1.04);
}

.tour-card .tour-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ED1D23;
    color: #fff;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(180, 10, 15, 0.35);
}

.tour-card .tour-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.tour-card .tour-card-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 10px;
}

.tour-card .tour-card-title a {
    color: #10131f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tour-card .tour-card-title a:hover {
    color: #ED1D23;
    text-decoration: none;
}

.tour-card .tour-card-pitch {
    font-size: 14.5px;
    line-height: 1.55;
    color: #5b6572;
    margin: 0 0 16px;
}

.tour-card .tour-card-tags {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tour-card .tour-card-tags li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f2f7fc;
    color: #1f3a5a;
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    margin: 0;
}

.tour-card .tour-card-tags li i {
    color: #005AAA;
    font-size: 12px;
}

.tour-card .tour-card-dates {
    font-size: 13px;
    color: #7a8491;
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tour-card .tour-card-dates i {
    color: #ED1D23;
    font-size: 12px;
}

.tour-card .tour-card-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tour-card .tour-card-price {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #10131f;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.tour-card .tour-card-price-label,
.tour-card .tour-card-price-unit {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: #7a8491;
}

.tour-card .tour-card-price-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tour-card .tour-card-price--request {
    font-size: 15px;
    font-weight: 700;
    color: #005AAA;
}

.tour-card .tour-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ED1D23;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px 20px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(160, 10, 15, 0.3);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-card .tour-card-btn:hover {
    background: #d31118;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(160, 10, 15, 0.4);
}

.tour-card .tour-card-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.tour-card .tour-card-btn:hover i {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .tour-card.tour-card,
    .tour-card.tour-card * {
        transition: none !important;
        transform: none !important;
    }
}
