/* Стили для витрины open-space */

/* Убираем прыжки шапки */
html {
    overflow-y: scroll;
}

body {
    background: linear-gradient(-45deg, #556a71, #24301f, #1C1F20, #181A1B);
    background-size: 400% 400%;
    animation: gradientBG 70s ease infinite;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #f5f4ef;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стили для шапки */
.header {
    background: transparent;
    border: none;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 80px;
    margin-bottom: 16px;
    border-radius: 20px;
}

.tabs {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.tab {
    padding: 14px 28px;
    cursor: pointer;
    color: #b1972d;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(177, 151, 45, 0.3) 25%, 
        rgba(230, 194, 0, 0.4) 50%, 
        rgba(177, 151, 45, 0.3) 75%, 
        transparent 100%);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
    filter: blur(1px);
}

.tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(177, 151, 45, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.tab:hover::before {
    left: 100%;
}

.tab:hover::after {
    width: 200%;
    height: 200%;
}

.tab:hover,
.tab.active {
    background: rgba(177, 151, 45, 0.12);
    border-color: rgba(177, 151, 45, 0.4);
    box-shadow: 
        0 0 20px rgba(177, 151, 45, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 15px rgba(177, 151, 45, 0.8);
    filter: brightness(1.2);
}

.tab.active {
    background: linear-gradient(135deg, 
        rgba(177, 151, 45, 0.2) 0%, 
        rgba(230, 194, 0, 0.15) 50%, 
        rgba(177, 151, 45, 0.2) 100%);
    border-color: rgba(177, 151, 45, 0.5);
    font-weight: 600;
    box-shadow: 
        0 0 30px rgba(177, 151, 45, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.tab:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.login-button {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(177, 151, 45, 0.3);
    color: #b1972d;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(177, 151, 45, 0.2) 0%, 
        rgba(230, 194, 0, 0.3) 50%, 
        rgba(177, 151, 45, 0.2) 100%);
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.login-button:hover::before {
    left: 0;
}

.login-button:hover {
    background: rgba(177, 151, 45, 0.15);
    border-color: rgba(177, 151, 45, 0.6);
    box-shadow: 
        0 0 25px rgba(177, 151, 45, 0.4);
    text-shadow: 0 0 15px rgba(177, 151, 45, 0.8);
    color: #e6c200;
}

/* Переключатель услуг */
.service-switcher {
    display: flex;
    gap: 8px;
}

.service-tab {
    padding: 8px 20px;
    cursor: pointer;
    color: #b1972d;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    background: none;
    border: none;
    outline: none;
}

.service-tab:hover,
.service-tab.active {
    background: rgba(177, 151, 45, 0.15);
    color: #b1972d;
}

/* Стили для плавной смены контента */
#content-container {
    transition: opacity 0.2s ease-in-out;
    min-height: 60vh;
}

#content-container.content-loading {
    opacity: 0;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ СЕРВИСОВ === */
.service-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.service-tab {
    padding: 12px 28px;
    margin: 0 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

/* === ОСНОВНАЯ ВОЛНА === */
.service-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-tab:hover::before {
    left: 100%;
}

/* === КВАНТОВЫЙ ЭФФЕКТ: волна на соседних элементах === */
.service-tab.quantum-neighbor-wave::before {
    background: linear-gradient(90deg, transparent, rgba(177, 151, 45, 0.15), transparent) !important;
    left: 100% !important;
    transition: left 0.8s ease !important;
}

/* === CSS для соседних элементов === */
.service-tab:hover + .service-tab::before,
.service-tab:has(+ .service-tab:hover)::before {
    background: linear-gradient(90deg, transparent, rgba(177, 151, 45, 0.12), transparent);
    left: 100%;
    transition: left 0.8s ease;
}

.service-tab:hover {
    border-color: rgba(177, 151, 45, 0.6);
    background: rgba(177, 151, 45, 0.08);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(177, 151, 45, 0.15);
}

.service-tab.active {
    background: linear-gradient(135deg, #b1972d 0%, #e6c200 100%);
    border-color: #b1972d;
    color: #1C1F20;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(177, 151, 45, 0.25);
}

.service-tab.active:hover {
    background: linear-gradient(135deg, #e6c200 0%, #b1972d 100%);
    box-shadow: 0 4px 16px rgba(177, 151, 45, 0.35);
}

.service-tab:active {
    opacity: 0.9;
    transition: all 0.1s ease;
}

.service-tab.active:active {
    opacity: 0.9;
}

.service-tab.switching {
    opacity: 0.7;
    animation: switchPulseSmooth 0.5s ease-in-out;
}

@keyframes switchPulseSmooth {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

/* === QUANTUM ПУЛЬС на активном табе — отключён (избыточная анимация) === */
/*
.service-tab.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: quantumPulse 2s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes quantumPulse {
    0%, 100% { width: 0; height: 0; opacity: 0.8; }
    50% { width: 120%; height: 120%; opacity: 0; }
}
*/

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .service-switcher { flex-direction: column; gap: 12px; padding: 20px 15px; }
    .service-tab { margin: 0; width: 100%; max-width: 350px; padding: 16px 25px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .service-switcher { padding: 15px 10px; }
    .service-tab { font-size: 0.85rem; padding: 14px 20px; }
}

/* === DARK === */
@media (prefers-color-scheme: dark) {
    .service-switcher { border-bottom-color: rgba(255, 255, 255, 0.05); }
    .service-tab { border-color: rgba(255, 255, 255, 0.1); }
    .service-tab:hover { border-color: #f7931a; box-shadow: 0 8px 25px rgba(247, 147, 26, 0.25), 0 4px 15px rgba(247, 147, 26, 0.15); }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-tab { border-width: 1.5px; }
    .service-tab.active { border-width: 2px; }
}

/* Loader overlay styles are created inline by JS */
