/**
 * Основные стили фронтенда
 *
 * @package VertikalTour
 */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --vt-primary: #1774bb;
    --vt-primary-dark: #125a91;
    --vt-primary-light: #e8f4fc;

    /* Text */
    --vt-text: #1a1a1a;
    --vt-text-secondary: #666;
    --vt-text-muted: #999;

    /* Backgrounds */
    --vt-bg: #fff;
    --vt-bg-secondary: #f8f9fa;
    --vt-bg-hover: #f0f7fc;

    /* Borders */
    --vt-border: #e0e0e0;

    /* Status */
    --vt-success: #00aa55;
    --vt-error: #e53935;
    --vt-warning: #ff9800;
}

/* ===== Base Overrides ===== */
a {
    color: var(--vt-primary);
}

a:hover {
    color: var(--vt-primary-dark);
}

/* ===== Container ===== */
.vt-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.vt-header {
    position: relative;
    z-index: 1000;
}

/* Topbar */
.vt-topbar {
    background: var(--vt-primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.vt-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vt-topbar__contacts {
    display: flex;
    gap: 24px;
}

.vt-topbar__phone,
.vt-topbar__email {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.vt-topbar__phone:hover,
.vt-topbar__email:hover {
    opacity: 0.85;
    color: #fff;
}

.vt-topbar__social {
    display: flex;
    gap: 12px;
}

.vt-topbar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.2s;
}

.vt-topbar__social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Main Header - sticky */
.vt-header__main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--vt-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.vt-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.vt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.vt-logo__img {
    width: 44px;
    height: auto;
}

.vt-logo__text {
    font-size: 20px;
    font-weight: 700;
    color: var(--vt-primary);
    letter-spacing: -0.5px;
}

.vt-logo:hover .vt-logo__text {
    color: var(--vt-primary-dark);
}

/* Navigation */
.vt-nav {
    flex: 1;
}

.vt-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vt-nav__item {
    position: relative;
}

.vt-nav__link {
    display: block;
    padding: 10px 16px;
    color: var(--vt-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.vt-nav__link:hover {
    background: var(--vt-bg-hover);
    color: var(--vt-primary);
}

/* Dropdown */
.vt-nav__item--has-dropdown > .vt-nav__link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

.vt-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--vt-bg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    list-style: none;
    margin: 0;
}

.vt-nav__item--has-dropdown:hover .vt-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vt-nav__item--has-dropdown:hover > .vt-nav__link::after {
    transform: rotate(180deg);
}

.vt-nav__dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--vt-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.vt-nav__dropdown li a:hover {
    background: var(--vt-bg-hover);
    color: var(--vt-primary);
}

/* Вложенное подменю (ступенька) */
.vt-nav__dropdown-item--has-sub {
    position: relative;
}

.vt-nav__subdropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: var(--vt-bg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s;
}

.vt-nav__dropdown-item--has-sub:hover > .vt-nav__subdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.vt-nav__subdropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--vt-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.vt-nav__subdropdown li a:hover {
    background: var(--vt-bg-hover);
    color: var(--vt-primary);
}

/* Мобильный подпункт */
.vt-mobile-nav__link--sub {
    padding-left: 28px !important;
    font-size: 14px;
    color: #6b7280;
}

/* Header CTA */
.vt-header__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.vt-header__phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--vt-text);
    text-decoration: none;
    white-space: nowrap;
}

.vt-header__phone:hover {
    color: var(--vt-primary);
}

.vt-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--vt-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.vt-header__btn:hover {
    background: var(--vt-primary-dark);
    transform: translateY(-1px);
}

/* Burger */
.vt-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(23, 116, 187, 0.1);
    border: 2px solid rgba(23, 116, 187, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.vt-burger:hover {
    background: rgba(23, 116, 187, 0.15);
    border-color: rgba(23, 116, 187, 0.3);
}

.vt-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--vt-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.vt-burger.is-active {
    background: #1774bb;
    border-color: #1774bb;
}

.vt-burger.is-active span {
    background: white;
}

.vt-burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.vt-burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.vt-burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu - Современный дизайн */
.vt-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.vt-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.vt-mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.vt-mobile-nav {
    padding: 160px 24px 40px;
    position: relative;
    z-index: 2;
}

.vt-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-mobile-nav__item {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInMenu 0.4s ease forwards;
}

.vt-mobile-nav__item:nth-child(1) { animation-delay: 0.05s; }
.vt-mobile-nav__item:nth-child(2) { animation-delay: 0.1s; }
.vt-mobile-nav__item:nth-child(3) { animation-delay: 0.15s; }
.vt-mobile-nav__item:nth-child(4) { animation-delay: 0.2s; }
.vt-mobile-nav__item:nth-child(5) { animation-delay: 0.25s; }
.vt-mobile-nav__item:nth-child(6) { animation-delay: 0.3s; }
.vt-mobile-nav__item:nth-child(7) { animation-delay: 0.35s; }
.vt-mobile-nav__item:nth-child(8) { animation-delay: 0.4s; }
.vt-mobile-nav__item:nth-child(9) { animation-delay: 0.45s; }
.vt-mobile-nav__item:nth-child(10) { animation-delay: 0.5s; }

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vt-mobile-nav__link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vt-mobile-nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1774bb 0%, #0d5a94 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vt-mobile-nav__link:active,
.vt-mobile-nav__link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.vt-mobile-nav__link:active::before {
    transform: scaleY(1);
}

.vt-mobile-menu__contacts {
    margin-top: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpContacts 0.4s ease 0.6s forwards;
}

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

.vt-mobile-menu__phone {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 40px;
}

.vt-mobile-menu__phone::before {
    content: '';
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-mobile-menu__phone::after {
    content: '';
    position: absolute;
    left: 8px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.vt-mobile-menu__email {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 40px;
}

.vt-mobile-menu__email::before {
    content: '';
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.vt-mobile-menu__email::after {
    content: '';
    position: absolute;
    left: 8px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .vt-nav {
        display: none;
    }

    .vt-header__cta {
        display: none;
    }

    .vt-burger {
        display: flex;
    }

    .vt-mobile-menu {
        display: block;
    }

    /* Скрыть топбар когда открыто мобильное меню */
    body:has(.vt-mobile-menu.is-active) .vt-topbar {
        display: none;
    }

    /* Прижать шапку к верху когда открыто меню */
    body:has(.vt-mobile-menu.is-active) .vt-header__main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 576px) {
    .vt-topbar__email {
        display: none;
    }

    .vt-topbar__social {
        gap: 8px;
    }

    .vt-logo__text {
        font-size: 18px;
    }
}

/* ===== Main Content ===== */
.vt-main {
    min-height: 50vh;
}

/* ===== Breadcrumbs ===== */
.vt-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vt-breadcrumbs__link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.vt-breadcrumbs__link:hover {
    color: var(--vt-primary);
}

.vt-breadcrumbs__separator {
    color: #ccc;
}

.vt-breadcrumbs__current {
    color: #333;
}

/* ===== Footer ===== */
.vt-footer {
    background: #1a1a1a;
    color: #fff;
}

.vt-footer__main {
    padding: 60px 0 40px;
}

.vt-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.vt-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.vt-footer__logo img {
    filter: brightness(0) invert(1);
}

.vt-footer__logo span {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.vt-footer__desc {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vt-footer__social {
    display: flex;
    gap: 12px;
}

.vt-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s;
}

.vt-footer__social a:hover {
    background: var(--vt-primary);
    color: #fff;
}

.vt-footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.vt-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vt-footer__links li {
    margin-bottom: 12px;
}

.vt-footer__links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.vt-footer__links a:hover {
    color: #fff;
}

.vt-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vt-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: #999;
    font-size: 14px;
}

.vt-footer__contacts li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.vt-footer__contacts a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.vt-footer__contacts a:hover {
    color: #fff;
}

.vt-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.vt-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.vt-footer__legal {
    display: flex;
    gap: 24px;
}

.vt-footer__legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.vt-footer__legal a:hover {
    color: #999;
}

@media (max-width: 992px) {
    .vt-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .vt-footer__col--about {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .vt-footer__grid {
        grid-template-columns: 1fr;
    }

    .vt-footer__col--about {
        grid-column: span 1;
    }

    .vt-footer__bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .vt-footer__legal {
        flex-direction: column;
        gap: 8px;
    }
}
