/* ====== TOKENS ====== */
:root {
    --orange:   #FA6A2D;
    --orange-h: #e85e24;
    --blue:     #369AE3;
    --blue-2:   #0099DF;
    --teal:     #36A88F;
    --green:    #34A853;
    --yellow:   #F79E1B;
    --dark:     #1E1E1E;
    --slate:    #405362;
    --light:    #EFF2F4;
    --slate-10: rgba(64,83,98,.10);
    --slate-50: rgba(64,83,98,.50);
    --slate-60: rgba(64,83,98,.60);
    --bg:       #f4f5fb;
}

/* ====== RESET ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*,*::before,*::after { box-sizing: border-box; }
input,button,select,textarea { font-family: inherit; }

body{
    min-width: 320px;
}
body.site-body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dark);
    background: var(--bg);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main { min-height: 60vh; }

/* ====== HEADER ====== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0;
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
    background: rgba(20,32,52,0.96);
    background: var(--slate);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.header-logo img { height: 32px; }

.header-nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.header-nav a {
    color: rgba(255,255,255,0.88);
    transition: color .2s ease;
}

.header-nav a:hover { color: #ffffff; }

.header-right { display: flex; align-items: center; gap: 12px; }

.header-login-btn {
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.header-login-btn:hover {
    background: rgba(255,255,255,0.25);
}

.header-login-btn-js { border: none; }

.header-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 5px;
}

.header-profile-prefix {
    width: 30px; height: 30px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ====== BURGER ====== */

.header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    padding: 0;
    cursor: pointer;
    align-items: center;
}

.header-burger span {
    display: block;
    height: 2px; width: 18px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform .25s ease, opacity .25s ease;
}

.header-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-burger.is-open span:nth-child(2) { opacity: 0; }
.header-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== MOBILE MENU ====== */

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,20,35,0.5);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.mobile-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open { overflow: hidden; }

.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .38s cubic-bezier(.32,.72,0,1), opacity .3s ease;
    overflow: hidden;
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu__inner {
    padding: 20px 24px 28px;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mobile-menu__logo img { height: 28px; }

.mobile-menu__close {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 20px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    transition: background .18s ease;
}

.mobile-menu__link:hover { background: var(--light); }
.mobile-menu__link-icon { font-size: 18px; }

.mobile-menu__auth {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.mobile-menu__auth-btn,
.mobile-menu__profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    background: var(--orange);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-menu__logout-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

.mobile-menu__footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.mobile-menu__footer a { color: #6b7280; }

/* ====== HERO ====== */

.hero-section {
    position: relative;
    min-height: 620px;
    height: 92vh;
    max-height: 760px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
        rgba(10,18,35,0.78) 0%,
        rgba(10,18,35,0.55) 50%,
        rgba(10,18,35,0.70) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 40px;
    width: 100%;
}

.hero-top { margin-bottom: 32px; }

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
}

.hero-bottom-links {
    margin-top: 16px;
    font-size: 14px;
}

.hero-bottom-links a {
    color: rgba(255,255,255,0.75);
    transition: color .2s ease;
}

.hero-bottom-links a:hover { color: #ffffff; }

/* ====== HERO SEARCH BAR ====== */

.hero-search-bar {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: visible;
    position: relative;
}

.hsb-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    min-width: 0;
}

.hsb-field--direction { flex: 2; }
.hsb-field--dates     { flex: 1.6; }
.hsb-field--days      { flex: 1.2; }

.hsb-field.is-open { background: rgba(64,83,98,0.06); border-radius: 20px; }

.hsb-field__icon {
    color: var(--slate-50);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hsb-field__content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hsb-field__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate-50);
    margin-bottom: 3px;
    white-space: nowrap;
}

.hsb-field__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hsb-field__input::placeholder { color: rgba(64,83,98,0.45); }

.hsb-dates-display,
.hsb-days-display {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.hsb-clear-btn {
    width: 22px; height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(64,83,98,0.12);
    color: var(--slate);
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.hsb-divider {
    width: 1px;
    background: rgba(64,83,98,0.12);
    margin: 12px 0;
    flex-shrink: 0;
}

.hsb-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    margin: 8px;
    border-radius: 14px;
    border: none;
    background: var(--orange);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}

.hsb-submit-btn:hover {
    background: var(--orange-h);
    transform: translateY(-1px);
}

/* ====== HSB POPUPS ====== */

.hsb-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 50;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(15,29,68,0.18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    min-width: 280px;
}

.hsb-field.is-open .hsb-popup {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hsb-popup--cal {
    width: 640px;
    left: -80px;
}

.hsb-popup--days {
    width: 300px;
    right: 0;
    left: auto;
}

.hsb-popup__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 12px;
}

.hsb-popup__loading {
    font-size: 13px;
    color: var(--slate-50);
    margin-bottom: 6px;
}

.hsb-popup__empty {
    font-size: 13px;
    color: var(--slate-50);
    padding: 6px 0;
}

.hsb-popup__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
}

.hsb-popup__list::-webkit-scrollbar { width: 4px; }
.hsb-popup__list::-webkit-scrollbar-thumb { background: #dde2ee; border-radius: 999px; }

.hsb-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: background .15s ease;
    text-transform: capitalize;
}

.hsb-suggestion:hover { background: var(--light); }
.hsb-suggestion svg { color: var(--slate-50); flex-shrink: 0; }

/* ====== DUAL CALENDAR ====== */

.hsb-cal-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.hsb-preset {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: var(--light);
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all .15s ease;
}

.hsb-preset:hover,
.hsb-preset.is-active {
    border-color: var(--blue);
    background: rgba(54,154,227,0.1);
    color: var(--blue-2);
}

.hsb-dual-cal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hsb-cal-month__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hsb-cal-month__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.hsb-cal-nav {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--light);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    transition: background .15s ease;
}

.hsb-cal-nav:hover { background: #e2e6f0; }

.hsb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.hsb-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-50);
    padding: 3px 0;
}

.hsb-cal-weekend { color: var(--orange) !important; }

.hsb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.hsb-cal-cell {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

.hsb-cal-cell:hover:not(.is-past):not(:disabled) {
    background: rgba(54,154,227,0.1);
}

.hsb-cal-cell.is-weekend:not(.is-past) { color: var(--orange); }
.hsb-cal-cell.is-past,
.hsb-cal-cell:disabled { color: #d1d5db; cursor: default; }

.hsb-cal-cell.in-range {
    background: rgba(54,154,227,0.1);
    border-radius: 0;
}

.hsb-cal-cell.is-from {
    background: var(--blue) !important;
    color: #ffffff !important;
    border-radius: 8px 0 0 8px;
}

.hsb-cal-cell.is-to {
    background: var(--blue) !important;
    color: #ffffff !important;
    border-radius: 0 8px 8px 0;
}

.hsb-cal-cell.is-from.is-to { border-radius: 8px !important; }

.hsb-cal-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--slate-50);
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    min-height: 18px;
}

/* ====== DAYS GRID ====== */

.hsb-days-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hsb-day-chip {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: background .15s ease;
}

.hsb-day-chip:hover { background: var(--light); }

.hsb-day-chip.is-active {
    background: rgba(54,154,227,0.1);
    border-color: var(--blue);
    color: var(--blue-2);
}

/* ====== FEATURES ====== */

.features-section {
    padding: 40px 0 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(15,29,68,0.07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15,29,68,0.11);
}

.feature-item__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item__icon img { width: 28px; height: 28px; }

.feature-item__icon--orange { background: rgba(250,106,45,0.12); }
.feature-item__icon--blue   { background: rgba(54,154,227,0.12); }
.feature-item__icon--teal   { background: rgba(54,168,143,0.12); }

.feature-item__body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}

.feature-item__body p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

/* ====== SECTION HEADER ====== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    margin-top: 36px;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.section-header a {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue);
    transition: color .18s ease;
}

.section-header a:hover { color: var(--blue-2); }

/* ====== TOURS GRID ====== */

.tours-section { padding: 0 0 32px; }

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* ====== INTERESTING ====== */

.interesting-section { padding: 0 0 36px; }

.interesting-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.interesting-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(15,29,68,0.06);
    border: 1px solid transparent;
    transition: all .22s ease;
}

.interesting-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(54,154,227,0.14);
    transform: translateY(-2px);
}

.interesting-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.interesting-card__arrow {
    color: var(--blue);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ====== SUBSCRIBE ====== */

.subscribe-section { padding: 0 0 40px; }

.subscribe-inner {
    background: linear-gradient(135deg, var(--slate) 0%, #2d3d4d 100%);
    border-radius: 24px;
    padding: 40px 48px;
}

.subscribe-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(239,242,244,0.55);
    margin-bottom: 10px;
}

.subscribe-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
}

.subscribe-content p {
    font-size: 15px;
    color: rgba(239,242,244,0.75);
    margin: 0 0 24px;
    max-width: 500px;
    line-height: 1.6;
}

.subscribe-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s ease, transform .2s ease;
}

.subscribe-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.subscribe-btn--tg { background: #29a9eb; color: #ffffff; }
.subscribe-btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #ffffff; }

/* ====== FOOTER ====== */

.site-footer {
    background: var(--slate);
    color: var(--light);
    padding: 52px 0 0;
    margin-top: 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo img { height: 36px; }

.footer-brand__desc {
    font-size: 13px;
    color: rgba(239,242,244,0.6);
    line-height: 1.65;
    margin: 0;
}

.footer-socials { display: flex; gap: 8px; }

.footer-social-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}

.footer-social-link:hover { background: rgba(255,255,255,0.18); }
.footer-social-link img { width: 18px; height: 18px; }

.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-nav-col { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-col__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(239,242,244,0.45);
    margin-bottom: 4px;
}

.footer-nav-col a {
    font-size: 14px;
    color: rgba(239,242,244,0.78);
    transition: color .18s ease;
}

.footer-nav-col a:hover { color: var(--orange); }

.footer-address {
    font-size: 13px;
    color: rgba(239,242,244,0.5);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(239,242,244,0.4);
}

.footer-bottom__links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom__links a {
    color: rgba(239,242,244,0.4);
    transition: color .18s ease;
}

.footer-bottom__links a:hover { color: var(--light); }

/* ====== AUTH MODAL ====== */

.site-modal-open { overflow: hidden; }

.site-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.site-auth-modal.is-open { opacity: 1; pointer-events: auto; }

.site-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,15,28,0.65);
    backdrop-filter: blur(5px);
}

.site-auth-modal__dialog {
    position: absolute;
    left: 50%; top: 50%;
    width: min(860px, calc(100% - 24px));
    transform: translate(-50%, -50%) scale(0.96);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(9,18,35,0.3);
    transition: transform .32s cubic-bezier(.32,.72,0,1), opacity .3s ease;
    opacity: 0;
}

.site-auth-modal.is-open .site-auth-modal__dialog {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.site-auth-modal__close {
    position: absolute;
    right: 14px; top: 14px;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-auth-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 480px;
}

.site-auth-modal__left {
    background: linear-gradient(160deg, var(--slate) 0%, #2a3a4a 100%);
    color: #ffffff;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.site-auth-modal__brand { margin-bottom: 8px; }

.site-auth-modal__left h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.site-auth-modal__left p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.6;
}

.site-auth-modal__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-auth-modal__links a {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .18s ease;
}

.site-auth-modal__links a:hover { color: rgba(255,255,255,0.9); }

.site-auth-modal__right {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.site-auth-error {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    border-left: 3px solid #b91c1c;
}

.site-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.site-auth-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-60);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.site-auth-field input {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: #fafbff;
}

.site-auth-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(54,154,227,0.12);
    background: #ffffff;
}

.site-auth-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: var(--orange);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    margin-top: 4px;
}

.site-auth-submit-btn:hover:not(:disabled) {
    background: var(--orange-h);
    transform: translateY(-1px);
}

.site-auth-submit-btn:disabled { opacity: 0.65; cursor: default; }

.site-auth-success {
    min-height: 480px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.site-auth-success__icon {
    width: 72px; height: 72px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 6px;
}

.site-auth-success h3 { margin: 0; font-size: 24px; color: var(--dark); }
.site-auth-success p  { margin: 0; color: #6b7280; font-size: 14px; }
.site-auth-success__timer { font-size: 13px; color: var(--blue); font-weight: 500; }

/* ====== TC GRID (tour cards) ====== */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1100px) {
    .tours-grid,
    .tc-grid    { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .hsb-popup--cal { width: 100%; left: 0; }
}

@media (max-width: 900px) {
    .header-nav,
    .header-right { display: none; }
    .header-burger { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .tours-grid,
    .tc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .interesting-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-nav-group { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .site-auth-modal__grid { grid-template-columns: 1fr; }
    .site-auth-modal__left { display: none; }

    .subscribe-inner { padding: 28px 24px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 15px; }

    .hero-search-bar {
        flex-direction: column;
        border-radius: 18px;
        background: rgba(255,255,255,0.97);
    }

    .hsb-field { border-bottom: 1px solid rgba(64,83,98,0.1); }
    .hsb-field:last-of-type { border-bottom: none; }
    .hsb-divider { display: none; }

    .hsb-submit-btn {
        margin: 10px;
        padding: 14px;
        justify-content: center;
        border-radius: 12px;
    }

    .hsb-popup {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 300;
    }

    .hsb-dual-cal {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header { margin-top: 24px; }
}

@media (max-width: 640px) {
    .tours-grid,
    .tc-grid { grid-template-columns: 1fr; }
    .interesting-grid { grid-template-columns: 1fr; }
    .footer-nav-group { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-section { min-height: 560px; height: auto; }
    .hero-inner { padding-top: 100px; padding-bottom: 32px; }
}










/* ====== HEADER STATES ====== */

.site-header {
    transition: transform .35s ease, background .3s ease, box-shadow .3s ease;
}

/* Logo crossfade */
.header-logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    min-width: 80px;
}

.logo-img {
    height: 32px;
    transition: opacity .3s ease;
    display: block;
}

.logo-img--dark {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
}

.logo-img--white { opacity: 1; }

/* HOME: transparent by default */
body.page-home .site-header { background: transparent; }

/* HOME is-light (scrolled): white bg, dark elements */
body.page-home .site-header.is-light {
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

body.page-home .site-header.is-light .logo-img--white { opacity: 0; }
body.page-home .site-header.is-light .logo-img--dark  { opacity: 1; }

body.page-home .site-header.is-light .header-nav a {
    color: var(--slate);
}
body.page-home .site-header.is-light .header-nav a:hover {
    color: var(--dark);
}
body.page-home .site-header.is-light .header-login-btn {
    background: var(--light);
    border-color: #e5e7eb;
    color: var(--slate);
}
body.page-home .site-header.is-light .header-burger {
    border-color: #e5e7eb;
    background: var(--light);
}
body.page-home .site-header.is-light .header-burger span {
    background: var(--slate);
}

/* Hide animation */
.site-header.is-header-hidden {
    transform: translateY(-100%);
}

/* NON-HOME: always white */
body:not(.page-home) .site-header {
    background: #ffffff;
    box-shadow: 0 1px 0 #e8eaf2;
}

body:not(.page-home) .site-header .logo-img--white { opacity: 0; }
body:not(.page-home) .site-header .logo-img--dark  { opacity: 1; }

body:not(.page-home) .site-header .header-nav a {
    color: var(--slate);
}
body:not(.page-home) .site-header .header-nav a:hover {
    color: var(--dark);
}
body:not(.page-home) .site-header .header-login-btn {
    background: var(--light);
    border-color: #e5e7eb;
    color: var(--slate);
}
body:not(.page-home) .site-header .header-burger {
    border-color: #e5e7eb;
    background: var(--light);
}
body:not(.page-home) .site-header .header-burger span {
    background: var(--slate);
}

/* Remove old is-scrolled rule */
.site-header.is-scrolled {
    background: unset;
    backdrop-filter: unset;
    box-shadow: unset;
}

/* ====== MOBILE FULL-SCREEN MODAL ====== */

body.hsb-mob-open { overflow: hidden; }

.hsb-mob-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}

.hsb-mob-modal.is-open {
    background: rgba(0,0,0,0.3);
}

.hsb-mob-modal__inner {
    background: #ffffff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32,.72,0,1);
    overflow: hidden;
}

.hsb-mob-modal.is-open .hsb-mob-modal__inner {
    transform: translateY(0);
}

.hsb-mob-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.hsb-mob-modal__title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.hsb-mob-modal__close {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.hsb-mob-modal__search-row {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.hsb-mob-modal__search {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: #f8f9fc;
    color: var(--dark);
}

.hsb-mob-modal__search:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(54,154,227,0.12);
}

.hsb-mob-modal__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
}

/* Popup moved into modal — reset all positioning */
.hsb-popup.is-in-modal {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: unset !important;
    width: auto !important;
    background: transparent !important;
}

/* On mobile: hide original popup (it's in the modal) */
@media (max-width: 768px) {
    .hsb-field.is-open .hsb-popup:not(.is-in-modal) {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hsb-dual-cal {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ====== "Не важно" chip special style ====== */
.hsb-day-chip[data-from=""] {
    background: linear-gradient(135deg,
        rgba(54,154,227,0.13) 0%,
        rgba(0,153,223,0.08) 100%);
    border-color: rgba(54,154,227,0.3);
    color: var(--blue);
    font-weight: 600;
    font-style: italic;
}

.hsb-day-chip[data-from=""]:hover {
    background: linear-gradient(135deg,
        rgba(54,154,227,0.22) 0%,
        rgba(0,153,223,0.16) 100%);
    border-color: var(--blue);
}






/* ====== AUTH MODAL MOBILE ====== */

@media (max-width: 640px) {
    .site-auth-modal {
        align-items: flex-end;
        justify-content: flex-end;
    }

    .site-auth-modal__dialog {
        position: relative;
        left: auto; top: auto;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateY(100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        display: flex;
        flex-direction: column;
    }

    .site-auth-modal.is-open .site-auth-modal__dialog {
        transform: translateY(0);
        transition: transform .4s cubic-bezier(.32,.72,0,1);
    }

    .site-auth-modal__close {
        position: fixed;
        right: 14px; top: 14px;
        width: 38px; height: 38px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: var(--slate);
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .site-auth-modal__grid {
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }

    .site-auth-modal__left { display: none; }

    .site-auth-modal__right {
        padding: 80px 24px 40px;
        justify-content: flex-start;
        min-height: 100dvh;
    }

    .site-auth-mob-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 32px;
        gap: 10px;
    }

    .site-auth-mob-logo { height: 30px; }

    .site-auth-mob-title {
        font-size: 22px;
        font-weight: 800;
        color: var(--dark);
    }

    .site-auth-mob-sub {
        font-size: 14px;
        color: #6b7280;
        margin: 0;
        line-height: 1.5;
    }

    .site-auth-success {
        min-height: 100dvh;
    }
}

@media (min-width: 641px) {
    .site-auth-mob-header { display: none; }
}

.site-auth-legal {
    margin-top: 14px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}

.site-auth-legal a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}





/* ===== DIRECTION POPUP IMPROVEMENTS ===== */

/* Спиннер в popup направлений */
.hsb-popup__loading {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 0 auto;
}

.hsb-dir-spinner {
    margin: 0 auto;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--blue);
    border-radius: 999px;
    animation: hsbDirSpin .7s linear infinite;
}

@keyframes hsbDirSpin {
    to { transform: rotate(360deg); }
}

/* Popup шире + padding у suggestion */
#hsbDirectionWrap .hsb-popup {
    min-width: 340px;
    padding: 14px 16px;
}

#hsbDirectionWrap .hsb-suggestion {
    padding: 12px 14px;
    font-size: 14px;
}

/* ===== MOBILE DIRECTION MODAL ===== */

/* X кнопка справа */
#hsbMobileModal .hsb-mob-modal__head {
    flex-direction: row;
    justify-content: space-between;
}

#hsbMobileModal .hsb-mob-modal__close {
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
}

/* Список направлений длиннее */
#hsbMobileModal .hsb-popup__list {
    max-height: 55vh;
}