/*
Theme Name: Open Mind Travel
Theme URI: https://omtrvl.ru/
Author: Lev Barkov
Author URI: https://buro-it.ru/
Description: Кастомная тема для туристического сообщества Open Mind Travel.
Version: 1.0
Text Domain: omtrvl
*/

/* --- Сброс отступов --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #1a1613;
    --paper: #eeeae3;
    --rust: #a8442a;
    --rust-light: #e2a17c;
    --line: rgba(26, 22, 19, 0.15);
}

body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Навигация (шапка) --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    box-shadow: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.header-menu li a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.header-menu li a:hover {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.contact-phone:hover {
    opacity: 0.7;
}

/* Соцсети в шапке */
.socials {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--paper);
}

/* Мобильный бургер */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.menu-toggle.is-active span {
    background-color: var(--ink);
}


/* --- Главная страница (Hero) --- */
.hero-main {
    padding: 140px 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-text-wrap {
    max-width: 66%;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(44px, 11vw, 88px);
    line-height: 0.95;
    margin: 0 0 20px;
    color: var(--paper);
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    opacity: 0;
    animation: fadeUp 1.4s 0.4s forwards;
}

.hero-lede {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 24px;
    color: #e2a17c;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-lede em {
    font-style: italic;
}

.btn-community {
    display: inline-block;
    background: #d4764e;
    color: #fff;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.btn-community:hover {
    background: #b85a32;
}

/* Туры на главной */
.hero-tours-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
}

.hero-scroll-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(238, 234, 227, 0.72);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 24px;
    width: 100%;
    max-width: 900px;
}

.hero-scroll-heading::before {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(238, 234, 227, 0.56);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.tour-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.tour-card:hover {
    transform: translateY(-4px);
}

.tour-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.tour-info {
    padding: 12px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tour-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.tour-dates {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--rust);
}

/* --- Адаптив для главной и шапки --- */
@media (max-width: 992px) {
    .site-nav {
        padding: 16px 20px;
    }

    .hero-text-wrap {
        max-width: 100%;
    }

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

    .contact-phone {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-menu-wrap {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--paper);
        padding: 100px 40px 40px;
        flex-direction: column;
        align-items: flex-start;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .header-menu-wrap.is-active {
        right: 0;
    }

    .header-menu {
        flex-direction: column;
        gap: 24px;
    }

    .header-menu li a {
        color: var(--ink);
        font-size: 16px;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (max-height: 900px) and (min-width: 993px) {
    .hero-main {
        padding: 90px 40px 24px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 8vw, 88px);
        margin-bottom: 12px;
    }

    .hero-lede {
        margin-bottom: 24px;
        font-size: 20px;
        max-width: 50%;
    }

    .tour-thumb img {
        height: 120px;
    }
}

@media (max-height: 700px) and (min-width: 993px) {
    .tour-thumb img {
        height: 100px;
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
    font-family: 'JetBrains Mono', sans-serif;
    /* Или ваш базовый шрифт */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

/* Колонки */
.footer-socials {
    max-width: 250px;
}

.socials-large {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.socials-large a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.socials-large a:hover {
    color: var(--rust, #F19E57);
}

.socials-large svg {
    width: 100%;
    height: 100%;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Меню */
.footer-menus-grid {
    display: flex;
    gap: 80px;
    flex-grow: 1;
    justify-content: center;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.footer-menu-block ul,
.support-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-block li,
.support-list li {
    margin-bottom: 16px;
}

.footer-menu-block a,
.support-list a {
    font-size: 14px;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-block a:hover,
.support-list a:hover {
    color: var(--rust, #F19E57);
}

/* Нижняя часть (Копирайты) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-copyright {
    font-size: 13px;
    color: #888;
}

/* ==========================================================================
   СТИЛИ АНИМАЦИИ КОПИРАЙТА (БЮРО ЛЬВА БАРКОВА)
   ========================================================================== */
.footer__credits {
    text-align: right;
}

.footer__copyright-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;

    /* Базовый цвет темный (#4a4a4a), блик яркий оранжевый (#FFAC62) */
    background: linear-gradient(to right,
            #4a4a4a 0%,
            #4a4a4a 40%,
            #FFAC62 50%,
            #4a4a4a 60%,
            #4a4a4a 100%);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: shine 4s linear infinite;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer__copyright-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255, 172, 98, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 991px) {
    .footer-top {
        flex-wrap: wrap;
    }

    .footer-menus-grid {
        justify-content: flex-start;
        gap: 40px;
        order: 3;
        /* Смещаем меню вниз на планшетах */
        width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-menus-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer__credits {
        text-align: center;
    }
}

/* Базовый контейнер для всего сайта */
.container {
    width: 100%;
    max-width: 1200px;
    /* Укажи здесь ширину своего макета (может быть 1140px или 1240px) */
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* --- ПОПАП БРОНИРОВАНИЯ --- */
/* ========================================= */

.tour-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tour-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    transition: opacity 0.3s ease;
}

.tour-modal-close:hover {
    opacity: 0.7;
}

.tour-modal-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.tour-modal-form .form-group {
    margin-bottom: 15px;
}

.tour-modal-form .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.tour-modal-form .form-input:focus {
    border-color: var(--rust, #a8442a);
}

.tour-modal-text {
    font-size: 14px;
    color: #555;
    margin: 15px 0;
    line-height: 1.4;
}

.privacy-label {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}

.privacy-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.privacy-label a {
    color: var(--rust, #a8442a);
    text-decoration: underline;
}

.privacy-label a:hover {
    text-decoration: none;
}

.w-100 {
    width: 100%;
}