/* ========== ПЕРЕМЕННЫЕ (СЕРО-ГОЛУБАЯ ТЕМА, МИНИМУМ ЦВЕТА) ========== */
:root {
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius-card: 24px;
    --border-radius-input: 12px;
    --border-radius-btn: 40px;
    --border-radius-lang: 30px;
    --transition-speed: 0.25s;
    
    --bg-primary: #f0f4f8;
    --bg-primary-rgb: 240, 244, 248;
    --bg-secondary: rgba(255, 255, 255, 0.85);
    --bg-secondary-rgb: 255, 255, 255;
    --bg-tertiary: #e8edf2;
    --text-primary: #1a2634;
    --text-secondary: #3d4a5a;
    --text-tertiary: #6b7a8a;
    --accent-primary: #8aa9c9;          /* очень мягкий серо‑голубой */
    --accent-primary-rgb: 138, 169, 201;
    --accent-dark: #6a8aaa;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    --hover-bg: rgba(0, 0, 0, 0.02);
    --input-bg: rgba(0, 0, 0, 0.02);
    --button-bg: rgba(0, 0, 0, 0.04);   /* фон всех кнопок */
    --button-hover: rgba(0, 0, 0, 0.07);
    --success-color: #5b8a7a;
    --error-color: #c47a7a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 70px;
    position: relative;
}

/* ===== ФОН ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/wall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 244, 248, 0.78);
    pointer-events: none;
}

/* ===== ХЕДЕР (для лендинга) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
}
.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img-header {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
 
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Переключатель языка */
.language-switcher {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: var(--border-radius-lang);
    border: 1px solid var(--border-light);
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--text-tertiary);
    font-family: var(--font-family);
}
.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}
.lang-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

/* Кнопки "Войти"/"Регистрация" в хедере */
.auth-buttons {
    display: flex;
    gap: 8px;
}
.btn-header {
    padding: 8px 20px;
    border-radius: var(--border-radius-btn);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-family);
    background: var(--button-bg);
    color: var(--text-secondary);
}
.btn-header:hover {
    background: var(--button-hover);
    color: var(--text-primary);
}
.btn-register {
    background: var(--button-bg);
    color: var(--text-secondary);
}
.btn-register:hover {
    background: var(--button-hover);
    color: var(--text-primary);
}

/* ===== БУРГЕР ===== */
.burger-btn {
    display: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
    line-height: 1;
}
.burger-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}
/* ===== HERO BUTTONS ===== */
.hero-buttons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-buttons .btn-secondary {
    padding: 12px 32px;
    font-size: 16px;
}

/* ===== FEATURES GRID (карточки) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all var(--transition-speed) ease;
}
.feature-card:hover {
    background: rgba(255,255,255,0.65);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}
.feature-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.feature-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section .philosophy-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.philosophy-block h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.philosophy-block blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 24px 0;
    padding-left: 20px;
    border-left: 4px solid var(--accent-primary);
}
.philosophy-block p {
    font-size: 16px;
    color: var(--text-tertiary);
}

/* ===== HOW STEPS (иконки) ===== */
.step .step-number {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    opacity: 0.8;
}
.step .step-number i {
    font-size: 36px;
    color: var(--text-secondary);
}

/* ===== АДАПТИВНОСТЬ (дополнения) ===== */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ===== БОКОВАЯ НАВИГАЦИЯ (лендинг) ===== */
.side-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 14px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}
.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    font-family: var(--font-family);
}
.nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}
/* Активный пункт — теперь серый, без голубизны */
.nav-link.active {
    background: var(--button-hover);
    color: var(--text-primary);
    box-shadow: none;
}

/* ===== ОСНОВНОЙ КОНТЕНТ (лендинг) ===== */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 0 120px;
}
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-light);
    scroll-margin-top: 80px;
}
.section:last-child {
    border-bottom: none;
}
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.hero-section {
    text-align: center;
}
.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.2;
}
.hero-video-wrapper {
    margin-top: 32px;   /* отступ сверху от текста */
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ===== О ПРОДУКТЕ ===== */
.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.about-text {
    flex: 2 1 60%;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}
.about-list li i {
    color: var(--text-tertiary);   /* иконки теперь серые */
    font-size: 18px;
}
.about-image {
    flex: 1 1 30%;
    display: flex;
    justify-content: center;
}
.about-icon-wrapper {
    width: 160px;
    height: 160px;
    background: rgba(138, 169, 201, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: var(--text-tertiary);
}

/* ===== АККОРДЕОН ===== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.accordion-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}
.accordion-item:hover {
    background: rgba(255, 255, 255, 0.6);
}
.accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-speed) ease;
}
.accordion-header:hover {
    background: rgba(0, 0, 0, 0.01);
}
.accordion-icon {
    font-size: 24px;
    color: var(--text-tertiary);   /* иконки аккордеона серые */
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.accordion-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}
.accordion-arrow {
    font-size: 18px;
    color: var(--text-tertiary);
    transition: transform var(--transition-speed) ease;
    flex-shrink: 0;
}
.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}
.accordion-item.open .accordion-body {
    max-height: 1500px;
    padding: 0 24px 24px;
}
.accordion-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.accordion-body p:last-child {
    margin-bottom: 0;
}

/* ===== СТОИМОСТЬ ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.pricing-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.pricing-card.popular {
    border-color: var(--border-color);
    background: rgba(0, 0, 0, 0.02);
    position: relative;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-secondary);   /* бейдж серый */
    color: #fff;
    padding: 4px 20px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
}
.pricing-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.pricing-period {
    font-size: 13px;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 20px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin: 16px 0 24px;
    flex: 1;
}
.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}
.pricing-features .fa-check {
    color: var(--success-color);
}
.pricing-features .fa-times {
    color: var(--error-color);
}
/* Кнопки тарифов — серые */
.pricing-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--button-bg);
    color: var(--text-secondary);
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-family);
}
.pricing-btn:hover {
    background: var(--button-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* ===== КАК ЭТО РАБОТАЕТ ===== */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}
.step {
    text-align: center;
}
.step-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.4;
    margin-bottom: 8px;
}
.step h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.step p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 24px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-secondary);
}
.contact-item i {
    font-size: 20px;
    color: var(--text-tertiary);   /* иконки серые */
    width: 24px;
    text-align: center;
}
.contacts-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== ПОДВАЛ ===== */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    padding: 40px 24px 24px;
    margin-top: 20px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 32px;
}
.footer-col h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.footer-col p,
.footer-col a {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
}
.footer-col a:hover {
    color: var(--accent-dark);
}
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================= */
/*   СТИЛИ ДЛЯ СТРАНИЦЫ АВТОРИЗАЦИИ (AUTH)      */
/* ============================================= */
.glass-card {
    position: relative;
    z-index: 10;
    width: 94%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-card);
    padding: 36px 32px 42px;
    margin: 40px auto;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}
.logo-area {
    text-align: center;
    margin-bottom: 32px;
}
.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}
.glass-card h1 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.glass-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: var(--border-radius-input);
    transition: all var(--transition-speed) ease;
}
.input-group i {
    position: absolute;
    left: 16px;
    font-size: 15px;
    color: var(--text-tertiary);
    pointer-events: none;
}
.input-group input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-family);
}
.input-group input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}
/* фокус — нейтральный, без голубого */
.input-group:focus-within {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.input-group:focus-within i {
    color: var(--text-secondary);
}
.button-group {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}
.btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: var(--border-radius-btn);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-family);
}
.btn-primary,
.btn-secondary {
    background: var(--button-bg);
    color: var(--text-secondary);
}
.btn-primary:hover,
.btn-secondary:hover {
    background: var(--button-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    border: none;
    border-radius: var(--border-radius-btn);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background: var(--button-bg);
    color: var(--text-secondary);
    font-family: var(--font-family);
}
.social-btn i {
    font-size: 18px;
}
.social-btn:hover {
    background: var(--button-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}
/* Ссылка "Забыли пароль?" — серая */
.forgot-link-ru,
.forgot-link-en {
    color: var(--text-secondary) !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 24px;
    }
    .side-nav {
        display: none;
    }
    .burger-btn {
        display: block;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .header {
        height: 60px;
        padding: 0 16px;
    }
    .btn-header {
        padding: 6px 14px;
        font-size: 12px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .glass-card {
        padding: 28px 20px 34px;
        margin: 20px auto;
    }
}
@media (max-width: 480px) {
    .auth-buttons .btn-register {
        display: none;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .glass-card {
        padding: 24px 16px 30px;
        width: 92%;
    }
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
}
