:root {
    --crm-blue: #00ace3; /* Цвет Bitrix24 */
    --infocom-navy: #005691; /* Глубокий синий Infocom */
    --gold-accent: #D4AF37; /* Золото из орнаментов */
    --bg-light: #f8fafc;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
}

/* Фон с национальным паттерном (на основе ваших орнаментов) */
.page-wrapper {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' viewBox='0 0 80 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q20 0 40 20 Q60 40 80 0' fill='none' stroke='%2300ace3' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
}

header {
    background: var(--white);
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 900;
    color: var(--infocom-navy);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: var(--crm-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    gap: 40px;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--infocom-navy);
    line-height: 1.2;
}

.btn-install {
    background: linear-gradient(135deg, var(--crm-blue), var(--infocom-navy));
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 172, 227, 0.3);
}

.btn-install:hover {
    transform: translateY(-2px);
}

.digital-seal-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px double var(--gold-accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.seal-inner {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--infocom-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ornament-divider {
    height: 20px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' fill='none' stroke='%23D4AF37' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    margin: 20px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 50px 10%;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--gold-accent);
}

footer {
    background: var(--infocom-navy);
    color: white;
    padding: 40px 10%;
    text-align: center;
}

/* --- Новые компоненты для вкладок и языков --- */

/* Контейнер для переключателя в хедере */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    transition: 0.3s;
}

.lang-btn.active {
    background: var(--infocom-navy);
    color: white;
    border-color: var(--infocom-navy);
}

/* Навигация по вкладкам */
.tabs-nav {
    display: flex;
    justify-content: center;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 10%;
}

.tab-link {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #64748b;
    position: relative;
    transition: 0.3s;
}

.tab-link:hover { color: var(--infocom-navy); }

.tab-link.active {
    color: var(--infocom-navy);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-accent);
}

/* Содержимое вкладок */
.tab-content {
    display: none; /* По умолчанию скрыто */
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block; /* Показываем активную */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.disk-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    background-color: white;
}
.disk-nav-level {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }


#auth-status {
    padding: 10px;
    border-radius: 6px;
    background-color: #f0fdf4; /* Светло-зеленый фон */
    transition: all 0.3s ease;
}