/* ============================================
   Travel.te.ua — Екскурсії по Україні 2026
   Сучасний преміальний веб-дизайн
   ============================================ */

:root {
    /* Палітра кольорів (Alpine Emerald & Amber) */
    --primary: #0f382c;
    --primary-light: #185242;
    --primary-dark: #09261e;
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-light: #fef3c7;
    --accent-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-dark: #091712;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --border-light: #e2e8f0;
    --border-accent: #fcd34d;
    
    /* Типографіка */
    --ff-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --ff-heading: 'Playfair Display', Georgia, serif;
    
    /* Тіні та заокруглення */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Скинути стилі --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
}

body {
    font-family: var(--ff-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Утиліти --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Хедер та Навігація --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
}

.nav__logo-icon {
    font-size: 1.6rem;
}

.nav__logo-accent {
    color: var(--accent);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav__phone:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.nav__toggle span {
    display: block;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero Секція --- */
.hero {
    position: relative;
    padding: 140px 0 90px;
    background: linear-gradient(135deg, #09261e 0%, #0f382c 60%, #185242 100%);
    color: var(--text-white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: brightness(0.9);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 680px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn--primary {
    background: var(--accent-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero__quick-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero__contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* --- Секції Загальні --- */
.section {
    padding: 90px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- Секція Калькулятора та Каталогу Екскурсій --- */
.tours-section {
    background: var(--bg-main);
}

/* Панель Фільтрів та Налаштувань */
.tours-controls {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

/* Таби Тарифів (1 День vs 2-3 Дні) */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    background: var(--bg-alt);
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
    color: var(--primary);
}

/* Калькулятор авто/групи */
.group-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.group-selector__label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-selector__options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.group-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.group-btn.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent-hover);
    font-weight: 800;
}

.group-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Пошук */
.search-box {
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-light);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-main);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 56, 44, 0.12);
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* Сітка Карток Екскурсій */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* Картка Екскурсії */
.tour-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.4);
}

.tour-card__header {
    padding: 24px 24px 16px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px dashed var(--border-light);
    position: relative;
}

.tour-card__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    background: var(--primary-light);
    color: var(--text-white);
}

.tour-card__tag--multi {
    background: var(--accent);
}

.tour-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}

.tour-card__body {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card__features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.feature-item svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
}

/* Прайс техніка в картці */
.tour-card__price-box {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-info__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.price-info__value {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
}

.price-info__per-person {
    font-size: 0.82rem;
    color: var(--accent-hover);
    font-weight: 700;
}

.tour-card__actions {
    display: flex;
    gap: 10px;
}

.btn-book {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
}

.btn-book:hover {
    background: var(--primary-light);
}

/* --- Секція Включених послуг --- */
.included-section {
    background: var(--bg-dark);
    color: var(--text-white);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.included-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.included-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.included-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.included-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.included-card__desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Переваги / Чому нас обирають --- */
.about-section {
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--ff-heading);
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.about-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-light);
}

.badge-card__icon {
    font-size: 2rem;
}

/* --- Контакти --- */
.contacts-section {
    background: var(--bg-main);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-card__icon svg {
    width: 28px;
    height: 28px;
}

.contact-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-card__value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* PDF завантаження секція */
.pdf-download-bar {
    margin-top: 50px;
    background: linear-gradient(135deg, #0f382c, #185242);
    border-radius: var(--radius-xl);
    padding: 30px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.pdf-download-bar__info h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.pdf-download-bar__info p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

.pdf-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
}

.btn-pdf:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* --- Модальне вікно замовлення --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-messenger-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

.btn-viber {
    background: #7360f2;
}

.btn-viber:hover {
    background: #5b48d8;
}

.btn-telegram {
    background: #229ed9;
}

.btn-telegram:hover {
    background: #1a82b5;
}

.btn-phone {
    background: var(--primary);
}

.btn-phone:hover {
    background: var(--primary-light);
}

/* --- Футер --- */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.footer-copy {
    font-size: 0.88rem;
    text-align: center;
    margin-top: 20px;
}

/* --- Адаптивність (Mobile) --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.6rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav__menu.active {
        left: 0;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__title {
        font-size: 2.1rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .pdf-download-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
