* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #E3DAC3;
    background-image: url("../icons/background.webp");
    background-blend-mode: soft-light;
    background-size: 700px auto;
    min-height: 100vh;
    color: #2b2b2b;
}

.landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Шапка */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #474641 0%, #696758 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    -webkit-text-fill-color: unset;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.hero-text h1 {
    font-size: 40px;
    line-height: 1.15;
    color: #333;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #474641 0%, #734666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 28px;
}

/* Кнопки авторизации */
.auth-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    width: 100%;
    margin: 28px auto 0;
}

.divider {
    text-align: center;
    color: #999;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #948069 0%, #734666 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: #734666;
    border: 2px solid #948069;
}

.btn-secondary:hover {
    background: #f7f2ec;
}

.btn-demo {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
    margin-top: 24px;
    background: transparent;
    color: #734666;
    padding: 10px 0;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}

.btn-demo:hover {
    transform: none;
    box-shadow: none;
    color: #4d2c44;
}

.auth-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    background: #faf7f2;
    border-left: 3px solid #948069;
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 420px;
    width: 100%;
    margin: 20px auto 0;
    text-align: center; 
}

/* Иллюстрация */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image video {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: block;
    background: #f2ede4;
}

/* Плейсхолдер, пока картинки нет */
.hero-image img.video-missing {
    min-height: 320px;
    background:
        repeating-linear-gradient(45deg, #f2ede4, #f2ede4 12px, #e8e1d2 12px, #e8e1d2 24px);
    border: 2px dashed #b9ad97;
    box-shadow: none;
    color: #8a7c62;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

/* Преимущества */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    flex-shrink: 0;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-body {
    flex: 1;
    min-width: 0;
}

.feature h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Футер */
.landing-footer {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: #8a7c62;
    padding-top: 20px;
}

/* Адаптивность */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-image {
        order: -1; /* картинка сверху на мобильных — визуально цепляет раньше */
    }

    .auth-block {
        max-width: none;
    }

    .btn-demo {
        align-self: stretch;
        text-align: center;
    }

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

    .feature {
        padding: 18px 20px;
        gap: 14px;
    }

    .feature-icon {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .landing {
        padding: 16px 14px 28px;
    }

    .hero {
        padding: 24px 18px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }
}

/* Шаги в hero */
.hero-steps {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 460px;
}

.hero-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #948069 0%, #734666 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(115, 70, 102, 0.25);
}

.step-text strong {
    color: #2b2b2b;
    font-weight: 600;
}

/* Итоговая фраза */
.hero-tagline {
    font-size: 16px;
    line-height: 1.55;
    color: #666;
    font-style: italic;
    margin-bottom: 28px;
    padding-left: 14px;
    /*border-left: 3px solid #948069;*/
    max-width: 460px;
}

/* Языки */

.lang-switcher {
    position: relative;
    display: inline-block;
    user-select: none;
}

.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    min-width: 54px;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1;
}

.lang-switcher__btn:hover {
    border-color: #667eea;
}

.lang-switcher__btn:focus-visible {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .2);
}

.lang-switcher__code {
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.lang-switcher__chev {
    font-size: 9px;
    opacity: .5;
    margin-left: 1px;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    padding: 4px;
    z-index: 100;
    display: none;
}

.lang-switcher.open .lang-switcher__menu {
    display: block;
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: left;
    transition: background .12s;
}

.lang-switcher__item:hover {
    background: #f2f4ff;
}

.lang-switcher__item.active {
    background: #eef1ff;
    font-weight: 600;
}

.lang-switcher__label {
    font-size: 13px;
}
