:root {
    --product: #00A991;
    --product-hover: #009982;
    --product-active: #008F7B;
    --product-light: #E8F8F5;
    --product-dark: #007F6D;
    --lime: #D7EE36;
    --ink: #252A31;
    --ink-light: #5F738C;
    --cloud: #E8EDF1;
    --cloud-bg: #F5F7F9;
    --white: #FFFFFF;
    --blue: #0172CB;
    --tg: #29A9EB;
    --tg-hover: #1D95D3;
    --radius-card: 12px;
    --radius-input: 6px;
    --shadow-widget: 0 8px 24px rgba(37, 42, 49, .16);
    --shadow-dd: 0 4px 12px rgba(37, 42, 49, .16), 0 12px 32px rgba(37, 42, 49, .12);
    --shadow-hover: 0 4px 12px rgba(37, 42, 49, .10), 0 16px 40px rgba(37, 42, 49, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif
}

body {
    background: var(--white);
    color: var(--ink);
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

img {
    display: block;
    max-width: 100%
}

button {
    font-family: inherit
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--cloud);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer
}

.logo span {
    color: var(--product)
}

nav {
    display: flex;
    align-items: center;
    gap: 28px
}

nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink)
}

nav a:hover {
    color: var(--product)
}

@media (max-width: 600px) {
    .nav-header-a  {
        display: none;
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(to right, #ccede9 0%, #dcf3f0 50%, #f5f7f9 calc(50% + 180px));
    padding: 56px 20px 64px
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto
}

.hero p {
    font-size: 18px;
    color: #3B4653;
    font-weight: 500
}

.hero h1 {
    margin-top: 10px;
    font-size: 46px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1
}

/* ===== SEARCH WIDGET ===== */
.widget {
    margin-top: 30px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-widget);
    padding: 12px
}

.widget-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.dd {
    position: relative
}

.dd-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cloud-bg);
    border: 1px solid var(--cloud);
    border-radius: var(--radius-input);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: .15s
}

.dd-btn:hover {
    background: var(--cloud)
}

.dd-btn .caret {
    font-size: 10px;
    color: var(--ink-light)
}

.dd.open .dd-btn {
    border-color: var(--product);
    box-shadow: 0 0 0 2px rgba(0, 169, 145, .18)
}

.dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-dd);
    padding: 6px;
    display: none;
    z-index: 60
}

.dd.open .dd-menu {
    display: block
}

.dd-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.dd-item:hover {
    background: var(--cloud-bg)
}

.dd-item.sel {
    color: var(--product-dark);
    font-weight: 700
}

.dd-item.sel::after {
    content: "✓";
    color: var(--product)
}

.dd-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink-light);
    padding: 10px 14px 6px
}

.dd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500
}

.dd-row small {
    display: block;
    color: var(--ink-light);
    font-weight: 400;
    font-size: 12px
}

.counter {
    display: flex;
    align-items: center;
    gap: 12px
}

.counter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--cloud);
    background: var(--white);
    font-size: 16px;
    cursor: pointer;
    color: var(--product-dark);
    font-weight: 700;
    line-height: 1
}

.counter button:hover {
    border-color: var(--product)
}

.counter b {
    min-width: 16px;
    text-align: center
}

.dd-done {
    margin: 8px 6px 4px;
    width: calc(100% - 12px);
    min-height: 38px;
    font-size: 14px
}

.widget-fields {
    display: flex;
    align-items: stretch;
    position: relative
}

.field {
    flex: 1;
    min-width: 130px;
    padding: 10px 16px;
    border-right: 1px solid var(--cloud)
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink-light);
    margin-bottom: 2px
}

.field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    background: transparent
}

.field input::placeholder {
    color: #BAC7D5;
    font-weight: 500
}

.field input[type="date"] {
    cursor: pointer
}

/* ===== Поле "Куда" ===== */
.field-dest {
    position: relative
}

.dest-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 360px;
    max-width: 92vw;
    max-height: 360px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-dd);
    padding: 6px;
    display: none;
    z-index: 70
}

.dest-menu.open {
    display: block
}

.dest-group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink-light);
    padding: 12px 14px 4px
}

.dest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer
}

.dest-item:hover {
    background: var(--cloud-bg)
}

.dest-item .d-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--product-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px
}

.dest-item .d-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink)
}

.dest-item .d-sub {
    font-size: 12px;
    color: var(--ink-light)
}

.dest-item .d-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 13px;
    color: var(--product-dark);
    white-space: nowrap
}

.dest-empty {
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-light)
}

.btn {
    background: var(--product);
    color: var(--white);
    border: none;
    border-radius: var(--radius-input);
    padding: 0 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s;
    min-height: 56px;
    margin-left: 12px
}

.btn:hover {
    background: var(--product-hover)
}

.btn:active {
    background: var(--product-active)
}

.btn-sm {
    min-height: 40px;
    padding: 0 20px;
    font-size: 14px
}

@media (max-width: 900px) {
    .widget-fields {
        flex-direction: column;
        gap: 8px
    }

    .field {
        border: 1px solid var(--cloud);
        border-radius: var(--radius-input)
    }

    .btn {
        margin: 0
    }

    .dest-menu {
        min-width: 0;
        width: 100%
    }
}

/* ===== СЕКЦИИ ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px
}

.section h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 4px
}

.section .sub {
    color: var(--ink-light);
    margin-bottom: 24px;
    font-size: 15px
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 26px
}

.chip {
    border: 1px solid var(--cloud);
    color: var(--ink-light);
    border-radius: 100px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    transition: .15s
}

.chip:hover {
    border-color: var(--product);
    color: var(--product)
}

.chip.active {
    background: var(--product);
    border-color: var(--product);
    color: var(--white)
}

/* ===== КАРТОЧКИ ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px
}

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--cloud);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: #D9E2EA
}

.card-img {
    position: relative
}

.card-img img {
    height: 190px;
    width: 100%;
    object-fit: cover
}

/* --- фото + галерея --- */
.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--cloud-bg);
    overflow: hidden
}

.card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease, transform .35s ease
}

.card-photo.is-active {
    opacity: 1
}

.card:hover .card-photo.is-active {
    transform: scale(1.04)
}

/* градиент снизу — точки читаемы на любом фото */
.card-media::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 56px;
    background: linear-gradient(to top, rgba(37, 42, 49, .35), transparent);
    pointer-events: none
}

/* --- стрелки и точки галереи --- */
.gal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(37, 42, 49, .18);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .15s
}

.gal-btn:hover { background: #fff }
.card:hover .gal-btn { opacity: 1 }

@media (hover: none) {
    .gal-btn { opacity: .85 }
}

.gal-prev { left: 10px }
.gal-next { right: 10px }

.gal-dots {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px;
    z-index: 2;
    pointer-events: none
}

.gal-dots i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transition: .2s
}

.gal-dots i.on { background: #fff; transform: scale(1.25) }

/* --- тело карточки --- */
.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin: 0
}

/* stretched-link: кликабельна вся карточка, но это настоящая ссылка */
.card-link { color: inherit }
.card-link:hover { color: var(--product-dark) }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1 }
.card-link:focus-visible {
    outline: 2px solid var(--product);
    outline-offset: 2px;
    border-radius: 3px
}

.rating {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light)
}

.rating b {
    background: var(--product);
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 800
}

/* одна строка инфо: страна • отель • ночи (обрезается многоточием) */
.card-info {
    font-size: 13px;
    color: var(--ink-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 8px;
}

.card-info .stars {
    color: #F5A623;
    font-size: 11px;
    letter-spacing: 1px;
    margin-right: 4px
}

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--cloud)
}

.card-price s {
    font-size: 13px;
    color: var(--ink-light);
    margin-right: 6px
}

.card-price .now {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px
}

.card-price .now small {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-light)
}

.card-cta {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    background: var(--product);
    color: #fff;
    border: none;
    border-radius: var(--radius-input);
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s
}

.card:hover .card-cta { background: var(--product-hover) }
.card-cta:active { background: var(--product-active) }

.discount {
    background: var(--lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 8px
}

@media (prefers-reduced-motion: reduce) {
    .card, .card-photo, .gal-btn { transition: none }
}

.links-sec {
    background: var(--cloud-bg);
    padding: 48px 20px
}

.links-inner {
    max-width: 1280px;
    margin: 0 auto
}

.cta {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    gap: 60px;
    padding: 32px 36px;
}

.cta p {
    font-size: 22px;
    letter-spacing: -.5px;
    margin-bottom: 8px
}

@media (max-width: 900px) {
    .cta {
        flex-direction: column;
        gap: 20px;
    }
    .cta p {
        font-size: 19px;
    }
}
@media (max-width: 720px) {
    .cta p {
        font-size: 16px;
    }
    .cta {
        padding: 0 5px 30px 5px;
    }
}
@media (max-width: 420px) {
    .cta p {
        font-size: 12px;
    }
}

.cta-text {
    text-align: center;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
    flex: 0 0 auto
}

.cta-btns .btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.btn-tg {
    background: var(--tg);
    color: var(--white);
    border: none;
    border-radius: var(--radius-input);
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 9px
}

.btn-tg:hover {
    background: var(--tg-hover)
}

.links-inner > h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px
}

.links-cols {
    display: flex;
    justify-content: space-around;
}

.links-cols h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px
}

.links-cols a {
    display: block;
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 8px;
    cursor: pointer
}

.links-cols a:hover {
    color: var(--blue);
    text-decoration: underline
}

/* ===== СТРАНИЦА ТУРА ===== */
.tour-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 70px;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 36px
}

@media (max-width: 960px) {
    .tour-wrap {
        grid-template-columns: 1fr
    }
}

.crumbs {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 16px
}

.crumbs a {
    color: var(--blue)
}

.crumbs a:hover {
    text-decoration: underline
}

.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 24px
}

.gallery img {
    border-radius: var(--radius-card);
    object-fit: cover;
    width: 100%;
    cursor: pointer;
    transition: filter .15s
}

.gallery img:hover {
    filter: brightness(.88)
}

.gallery img:first-child {
    grid-row: span 2;
    height: 100%
}

.gallery img:nth-child(2), .gallery img:nth-child(3) {
    height: 195px
}
@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: 1fr 1fr;

    }
    .gallery img:first-child {
        grid-column: span 2;
        height: 100%
    }
}
.tour-info h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin-bottom: 6px
}

.tour-meta {
    color: var(--ink-light);
    margin-bottom: 18px;
    font-size: 14px
}

.tour-meta b {
    color: var(--ink)
}

.tour-info > p {
    line-height: 1.75;
    font-size: 16px;
    color: #3B4653
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin: 24px 0
}
@media (max-width: 900px) {
    .benefits {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 500px) {
    .benefits {
        grid-template-columns: 1fr;
    }
}
.benefit {
    display: flex;
    justify-content: space-between;
    background: var(--cloud-bg);
    border-radius: var(--radius-card);
    padding: 16px;
    font-size: 14px;
    font-weight: 500
}

.benefit b {
    display: block;
    margin-bottom: 4px;
    color: var(--product-dark);
    font-size: 15px
}

.price-box {
    background: var(--cloud-bg);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px
}

.price-box .price {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px
}

.price-box .price small {
    display: block;
    font-size: 13px;
    color: var(--ink-light);
    font-weight: 500;
    margin-top: 2px
}

.sidebar h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800
}

.sidebar .card {
    margin-bottom: 16px
}

.sidebar .card-media {
    aspect-ratio: 16 / 8
}

.sidebar .card-body {
    padding: 12px 14px
}

.sidebar .card-title {
    font-size: 15px
}

.sidebar .card-price .now {
    font-size: 17px
}

/* ===== ЛАЙТБОКС (просмотр фото) ===== */
.lb-bg {
    position: fixed;
    inset: 0;
    background: rgba(18, 22, 27, .93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200
}

.lb-bg.open {
    display: flex
}

.lb-bg img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    user-select: none
}

.lb-close {
    position: absolute;
    top: 18px;
    right: 26px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    opacity: .75;
    line-height: 1;
    z-index: 2
}

.lb-close:hover {
    opacity: 1
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: #fff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    opacity: .75;
    user-select: none;
    z-index: 2
}

.lb-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .12)
}

.lb-prev {
    left: 14px
}

.lb-next {
    right: 14px
}

.lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: .8
}

/* ===== МОДАЛКА ===== */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(37, 42, 49, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.modal-bg.open {
    display: flex
}

.modal {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-widget);
    padding: 32px;
    width: min(450px, 92vw);
    position: relative
}

.modal h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
    margin-bottom: 6px
}

.modal p {
    color: var(--ink-light);
    font-size: 14px;
    margin-bottom: 20px
}

.modal input {
    width: 100%;
    border: 1px solid var(--cloud);
    border-radius: var(--radius-input);
    padding: 13px 14px;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: .15s
}

.modal input:focus {
    border-color: var(--product);
    box-shadow: 0 0 0 3px rgba(0, 169, 145, .18)
}

.modal .btn {
    width: 100%;
    min-height: 48px;
    margin: 0
}

.close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 20px;
    cursor: pointer;
    color: var(--ink-light)
}

.close:hover {
    color: var(--ink)
}

.modal label.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    margin: 15px 15px 25px 15px;
    cursor: pointer;
    user-select: none
}

.modal label.check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--product);
    cursor: pointer
}

/* ===== FOOTER ===== */
footer {
    background: var(--ink);
    padding: 40px 20px;
    text-align: center
}

.foot-title {
    color: var(--white);
    font-size: 12px;
    letter-spacing: -.3px
}

.price-badge {
    font-weight: bold;
}

.iti { width: 100%; }
.phone-hint { font-size: 12px; color: #64748b; }
.phone-hint:empty { display: none; }
.phone-hint:not(:empty) { margin-top: 6px; }
.phone-hint.ok  { color: #22c55e; }
.phone-hint.bad { color: #ef4444; }
input.phone-invalid { border-color: #ef4444 !important; }