/* ===== Базовый фон и секции ===== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #eef3ef !important;
}

#page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: transparent !important;
}

.gtco-container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.gtco-container *,
.cards,
.cards *,
.card,
.destination-card,
.destination-card--with-image,
.destination-card__image,
.destination-card__image img {
    box-sizing: border-box;
}

.section {
    background: transparent !important;
    padding: 80px 0;
}

.section-soft {
    background: #e4ece7 !important;
}


/* ===== Исправление потока после hero-блока =====

   В старой теме .gtco-cover объявлен как float: left.
   Из-за этого следующая секция на главной в Chromium-браузерах
   может начинаться под hero-блоком: заголовок секции скрывается,
   а карточки выглядят так, будто прилипли к hero.
*/

#gtco-header.gtco-cover,
#gtco-header.home-hero {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

#gtco-header.gtco-cover::after,
#gtco-header.home-hero::after {
    content: "";
    display: table;
    clear: both;
}

main,
.section {
    display: block;
    clear: both;
}

#gtco-header + .section,
#gtco-header + #destinations,
#destinations {
    clear: both !important;
}


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

.section-head {
    margin-bottom: 38px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.section-head--split {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.section-head-text {
    max-width: 760px;
}

.section-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 216, 192, 0.10);
    color: #00a891;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.section-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    color: #1f1f1f;
}

.section-head-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 216, 192, 0.18);
    color: #172033 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.section-head-cta__arrow {
    color: #00bfa6;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.section-head-cta:hover,
.section-head-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    border-color: rgba(0, 216, 192, 0.38);
    color: #00a891 !important;
    text-decoration: none !important;
}

.section-head-cta:hover .section-head-cta__arrow,
.section-head-cta:focus .section-head-cta__arrow {
    transform: translateX(3px);
}

.section-kicker--light {
    color: rgba(255, 255, 255, 0.82);
}


/* ===== Главный экран ===== */

#gtco-header.gtco-cover,
#gtco-header.home-hero {
    background-image: url("/static/traveler/images/orig.jpeg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    overflow-x: hidden;
}

#gtco-header.gtco-cover .overlay,
#gtco-header.home-hero .overlay {
    background: rgba(0, 0, 0, 0.45) !important;
}


/* ===== Карточки ===== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards > * {
    min-width: 0;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 28px;
    max-width: 100%;
    min-width: 0;
}

.destination-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 28px;
    color: #2d2d2d;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    min-width: 0;
}

.card-text {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.meta-item {
    color: #777;
    font-size: 14px;
}

.card-link {
    color: #00d8c0;
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover {
    color: #00bfa6;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 216, 192, 0.12);
    color: #00bfa6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.empty-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.promo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.promo-text {
    margin-top: 12px;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
}


/* ===== Карточки направлений с фото на странице списка ===== */

.destination-card--with-image {
    padding: 0;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.destination-card__image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #dfe8e4;
    border-radius: 8px 8px 0 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.destination-card__image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.destination-card--with-image:hover .destination-card__image img {
    transform: scale(1.06);
}

.destination-card__body {
    padding: 26px;
    min-width: 0;
}

.destination-card--with-image .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-card--with-image .card-top {
    margin-bottom: 14px;
}

.destination-card--with-image .meta-list {
    margin-top: 18px;
}

.destination-card--with-image .card-link {
    display: inline-block;
    margin-top: 22px;
}


/* ===== Кликабельные карточки ===== */

.card-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 216, 192, 0.25);
}

.card-clickable:hover .card-link {
    color: #00bfa6;
}

.card-clickable h3,
.card-clickable .card-text,
.card-clickable .meta-item,
.card-clickable .card-link,
.card-clickable .tag {
    text-decoration: none;
}


/* ===== Правая колонка на главной ===== */

.trip-choice {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.trip-choice:last-of-type {
    border-bottom: none;
}

.trip-choice strong {
    display: block;
    margin-bottom: 4px;
    color: #3f3f3f;
    font-size: 18px;
}

.trip-choice span {
    color: #777;
    font-size: 15px;
}

.trip-choice:hover {
    transform: translateX(4px);
    text-decoration: none;
}

.trip-choice:hover strong {
    color: #00d8c0;
}

.trip-choice:hover span {
    color: #555;
}


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

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #ffffff !important;
}

.btn-primary.btn-block,
.btn-primary.btn-block:hover,
.btn-primary.btn-block:focus {
    color: #ffffff !important;
}

.btn-white,
.btn-white:hover,
.btn-white:focus,
.btn-white:active {
    opacity: 1 !important;
    text-decoration: none !important;
}

.btn-white {
    background: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #ffffff !important;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
    background: #f3f5f7 !important;
    color: #172033 !important;
    border: 1px solid #ffffff !important;
}


/* ===== Верхняя навигация ===== */

.gtco-nav {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e8edf1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.gtco-nav .gtco-container {
    padding-top: 14px;
    padding-bottom: 14px;
}

.gtco-nav #gtco-logo a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #00d8c0;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 216, 192, 0.22);
}

.gtco-nav ul li {
    margin-left: 8px;
}

.gtco-nav ul li a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d9e2e8;
    color: #172033 !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    transition: all 0.2s ease;
}

.gtco-nav ul li a,
.gtco-nav ul li a:hover,
.gtco-nav ul li a:focus,
.gtco-nav ul li a:active {
    opacity: 1 !important;
}

.gtco-nav ul li a:hover,
.gtco-nav ul li a:focus,
.gtco-nav ul li.active a {
    background: #00d8c0 !important;
    border-color: #00d8c0 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* ===== Внутренние страницы направлений ===== */

.destination-hero {
    position: relative;
    padding: 120px 0 110px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.destination-hero__content {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.destination-hero__title {
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #ffffff;
    font-weight: 700;
}

.destination-hero__subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.destination-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.page-top-actions {
    margin-bottom: 28px;
}

.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d9e4ec;
    color: #00bfa6 !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.soft-button:hover,
.soft-button:focus {
    transform: translateY(-2px);
    border-color: #00d8c0;
    color: #00a891 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.14);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.content-main {
    min-width: 0;
}

.content-side {
    min-width: 280px;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f4;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row span {
    color: #666;
}

.info-row strong {
    color: #1f1f1f;
    text-align: right;
}

.prose-card p {
    margin-bottom: 0;
    line-height: 1.8;
}

.content-section {
    margin-bottom: 30px;
}


/* ===== Галерея ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin: 0;
    position: relative;
    z-index: 1;
}

.gallery-card:hover,
.gallery-card:focus-within {
    z-index: 20;
}

.gallery-preview {
    position: relative;
    height: 135px;
    border-radius: 18px 18px 0 0;
    overflow: visible;
}

.gallery-image {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    transition: width 0.22s ease, height 0.22s ease, transform 0.22s ease, border-radius 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover .gallery-image,
.gallery-card:focus-within .gallery-image {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(520px, calc(100vw - 40px));
    height: 340px;
    transform: translateX(-50%);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    z-index: 30;
}

.gallery-card figcaption {
    padding: 18px 18px 20px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}


/* ===== Унифицированные страницы маршрутов ===== */

.route-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.route-summary-card {
    margin-bottom: 0;
}

.route-summary-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.25;
}

.route-summary-value {
    margin-bottom: 0;
}

.route-section-card {
    margin-bottom: 30px;
}

.section-title--card {
    font-size: 32px;
    margin-bottom: 18px;
}

.clean-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.clean-list--compact {
    gap: 10px;
}

.clean-list--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
}

.clean-list li {
    position: relative;
    padding-left: 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.55;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d8c0;
    box-shadow: 0 0 0 5px rgba(0, 216, 192, 0.12);
}

.prose-content {
    color: #555;
    font-size: 16px;
    line-height: 1.85;
}

.prose-content p {
    margin: 0 0 18px;
}

.prose-content p:last-child {
    margin-bottom: 0;
}

.prose-card .prose-content p {
    margin-bottom: 18px;
}

.prose-card .prose-content p:last-child {
    margin-bottom: 0;
}

.gallery-card figcaption strong {
    color: #1f1f1f;
}


/* ===== Адаптив ===== */

@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destination-hero__title {
        font-size: 44px;
    }

    .destination-hero__subtitle {
        font-size: 18px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .cards,
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .promo-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 32px;
    }

    .section-head--split {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .route-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .destination-hero {
        padding: 90px 0 80px;
    }

    .destination-hero__title {
        font-size: 36px;
    }

    .destination-hero__subtitle {
        font-size: 17px;
    }

    .destination-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .sticky-card {
        position: static;
    }

    .gtco-nav #gtco-logo a,
    .gtco-nav ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .section-head {
        margin-bottom: 28px;
        padding-bottom: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-head-cta {
        width: auto;
    }

    .destination-card__image {
        height: 190px;
    }

    .destination-card__body {
        padding: 22px;
    }

    .clean-list--two-columns {
        grid-template-columns: 1fr;
    }

    .section-title--card {
        font-size: 28px;
    }
}

.cards, .cards-3 {
    display: grid !important;
}
.destination-card {
    display: block !important;
}

/* Исправление наезда hero-блока на заголовки направлений */
#destinations {
    padding-top: 80px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    background: #f4f7fb !important; /* или цвет фона твоей страницы */
}


.meta-item--icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f3;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
}

.destination-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-card-bg {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #1a2a2a;
    text-decoration: none;
    cursor: pointer;
}

.destination-card-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.65) 45%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.destination-card-bg:hover .destination-card-bg__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.75) 45%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.destination-card-bg__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px 16px;
    z-index: 1;
}

.destination-card-bg__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 8px;
}

.destination-card-bg__name {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.destination-card-bg__desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.destination-card-bg__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.destination-card-bg__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px 9px;
}

#destinations-list {
    background: #f0ede8 !important;
}

.destination-card-bg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}