/* Сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(233, 70, 127);
    --primary-hover: rgb(213, 50, 107);
    --dark-bg: #111;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Хедер */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.welcome-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.welcome-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 70, 127, 0.3);
}

.btn-lang {
    background: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
}

.btn-lang:hover {
    background: var(--dark-bg);
    color: #fff;
}

/* Основной блок с героем */
.welcome-hero {
    flex: 1;
    background-image: url('assets/images/fone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.welcome-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 600px;
    width: 100%;
}

.welcome-hero-logo {
    max-width: 300px;
/*    width: 100%;*/
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.welcome-hero-title {
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-download-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.download-link {
    display: block;
    transition: transform 0.3s;
}

.download-link:hover {
    transform: scale(1.05);
}

.download-btn {
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Google Play кнопка */
.download-link:first-child .download-btn {
    width: 170px;
}

/* App Store кнопка */
.download-link:last-child .download-btn {
    width: 150px;
}

/* Блок с преимуществами */
.welcome-content {
    background: #fff;
    padding: 60px 40px;
}

.welcome-content-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--dark-bg);
    margin-bottom: 50px;
    line-height: 1.3;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Индивидуальные размеры для каждой иконки */
.feature-item:nth-child(1) .feature-icon {
    height: 80px;
}

.feature-item:nth-child(2) .feature-icon {
    height: 70px;
}

.feature-item:nth-child(3) .feature-icon {
    height: 80px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Футер */
.welcome-footer {
    background: var(--dark-bg);
    padding: 40px 40px 30px;
    color: #fff;
}

.footer-rules-btn {
    display: block;
    margin: 0 auto 30px;
    background: transparent;
    border: none;
    color: #F0047F;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.footer-rules-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(240, 4, 127, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-licenses {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-licenses-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-info,
.footer-service {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-license-link {
    color: #F0047F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-license-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Модалка */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
    padding-right: 40px;
    text-align: center;
}

.modal-body {
    font-size: 15px;
    color: #333;
}

.modal-intro {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.modal-text {
    line-height: 0.8;
}

/* Модалка авторизации */
.auth-modal-content {
    max-width: 400px;
}

.auth-modal-body {
    margin-top: 20px;
}

.auth-step {
    display: block;
}

.auth-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.auth-phone-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    transition: all 0.3s;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 4, 127, 0.1);
}

.auth-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 0 0 15px 0;
    min-height: 18px;
    text-align: center;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    background: #c00360;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 4, 127, 0.3);
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.auth-pricing {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 12px 0 0 0;
    line-height: 1.4;
}

.auth-btn-secondary {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn-secondary:hover {
    border-color: #999;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .welcome-header {
        padding: 15px 20px;
    }
    
    .welcome-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .welcome-title {
        font-size: 16px;
    }
    
    .btn-login {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-lang {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .welcome-hero {
        padding: 40px 20px;
    }
    
    .welcome-hero-logo {
        max-width: 200px;
    }
    
    .welcome-hero-title {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    
    .download-link:first-child .download-btn {
        width: 150px;
    }
    
    .download-link:last-child .download-btn {
        width: 130px;
    }
    
    .welcome-content {
        padding: 50px 30px;
    }
    
    .welcome-content-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-item:nth-child(1) .feature-icon {
        height: 70px;
    }
    
    .feature-item:nth-child(2) .feature-icon {
        height: 60px;
    }
    
    .feature-item:nth-child(3) .feature-icon {
        height: 70px;
    }
    
    .feature-title {
        font-size: 17px;
    }
    
    .feature-description {
        font-size: 14px;
    }
    
    .welcome-footer {
        padding: 30px 20px 20px;
    }
    
    .footer-rules-btn {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .footer-copyright {
        font-size: 14px;
    }
    
    .footer-licenses {
        font-size: 13px;
    }
    
    .footer-licenses-detail,
    .footer-info,
    .footer-service {
        font-size: 12px;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modal-body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-header {
        padding: 12px 15px;
    }
    
    .welcome-header-left {
        gap: 10px;
    }
    
    .welcome-logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .welcome-title {
        font-size: 14px;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn-lang {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 45px;
    }
    
    .welcome-hero-content {
        gap: 35px;
    }
    
    .welcome-hero-logo {
        max-width: 150px;
    }
    
    .welcome-hero-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .download-link:first-child .download-btn {
        width: 130px;
    }
    
    .download-link:last-child .download-btn {
        width: 110px;
    }
    
    .welcome-content {
        padding: 40px 20px;
    }
    
    .welcome-content-title {
        font-size: 22px;
        margin-bottom: 35px;
    }
    
    .welcome-features {
        gap: 35px;
    }
    
    .feature-icon {
        margin-bottom: 15px;
    }
    
    .feature-item:nth-child(1) .feature-icon {
        height: 60px;
    }
    
    .feature-item:nth-child(2) .feature-icon {
        height: 50px;
    }
    
    .feature-item:nth-child(3) .feature-icon {
        height: 60px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-description {
        font-size: 13px;
    }
    
    .footer-rules-btn {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        font-size: 13px;
    }
    
    .modal-list li {
        padding: 10px 0;
        font-size: 13px;
    }
}

