
:root {
    --primary: #2ecc71;
    --dark: #1a1a1a;
    --light: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер */
.header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav> a:hover::after {
    width: 100%;
}

.btn {
    background: var(--primary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Мобильное меню */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Герой-блок */
.hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: 
        linear-gradient(45deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9)), /* Затемнение */
        url('../img/hero.webp'); /* Ваше изображение */
    background-size: cover; /* Растягивает изображение на весь блок */
    background-position: center; /* Центрирует изображение */
    background-repeat: no-repeat; /* Запрещает повторение изображения */
    min-height: 100vh; /* Занимает всю высоту экрана */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 1s ease-in-out;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #cccccc;
    animation: fadeIn 1.5s ease-in-out;
}

.hero .btn {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секции */
section {
    padding: 6rem 5%;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
}

/* Как это работает */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.step,  .feature{
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 15px;
    transition: var(--transition);
}

.step:hover, .feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.step i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

/* Преимущества */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 15px;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.comparison {
    padding: 4rem 0;
    
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}

.accuracy {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.dialog {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.message {
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.5;
    position: relative;
}

.message {
    background: rgba(255,255,255,0.05);
}

.incorrect {
    color: #ff6b6b;
    position: relative;
    display: inline-block;
}

.incorrect::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(231,76,60,0.5) 0%, 
        rgba(231,76,60,0) 100%);
}

@media (max-width: 768px) {
    .comparison-card {
        padding: 1rem;
    }
    
    .message {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    
    .accuracy {
        font-size: 1rem;
    }
}


/* Тарифы */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    transition: var(--transition);
}

.card>ul{
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.price {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 1rem 0;
}

/* FAQ */
.faq-item {
    background: #2d2d2d;
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item.active {
    background: #363636;
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0;
}

.faq-item.active p {
    max-height: 200px;
    padding-top: 1rem;
}

/* Футер */
.footer {
    background: #141414;
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

.social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 2rem;
        width: 250px;
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .steps, .features {
        grid-template-columns: 1fr;
    }
}a{
    text-decoration: none;
}













/* Стили только для страницы "Политика конфиденциальности" */
.policy-page {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.policy-page h1 {
    font-size: 2.5rem;
    color: #2ecc71; /* Используем конкретный цвет, чтобы избежать конфликтов */
    margin-bottom: 2rem;
    text-align: center;
}

.policy-page h2 {
    font-size: 1.8rem;
    color: #2ecc71; /* Используем конкретный цвет, чтобы избежать конфликтов */
    margin: 2rem 0 1rem;
}

.policy-page p {
    margin: 1rem 0;
    line-height: 1.6;
    color: #ffffff; /* Используем конкретный цвет, чтобы избежать конфликтов */
}

.policy-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-page ul li {
    margin-bottom: 0.5rem;
    color: #ffffff; /* Используем конкретный цвет, чтобы избежать конфликтов */
}

.policy-page .back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: #2ecc71; /* Используем конкретный цвет, чтобы избежать конфликтов */
    color: #1a1a1a; /* Используем конкретный цвет, чтобы избежать конфликтов */
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.policy-page .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .policy-page {
        padding: 2rem 1rem;
    }

    .policy-page h1 {
        font-size: 2rem;
    }

    .policy-page h2 {
        font-size: 1.5rem;
    }
}








/* Стили для аутентификации */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
}

.auth-card {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #aaa;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.input-label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.icon {
    position: absolute;
    left: 1rem;
    color: #666;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.link-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.auth-link:hover .link-icon {
    transform: translateX(3px);
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.7rem 1rem 0.7rem 2.2rem;
    }
}








/* Стили для flash-сообщений */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.flash.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.flash.danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.close-flash {
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
}

.close-flash:hover {
    opacity: 1;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary);
}

/* Стили для ошибок */
.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 40px !important;
}

.refresh-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.refresh-icon:hover {
    color: var(--primary);
}

.timer {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-left: 5px;
}

.input-wrapper input {
    padding-right: 70px !important;
}

.refresh-icon {
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.refresh-icon:hover:not(:disabled) {
    color: var(--primary);
}

.refresh-icon:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none; /* Отключаем клики */
}









.history-item {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.history-item.processing {
    background-color: #e0f0ff;
    border: 1px solid #2196F3;
}

.history-item.completed {
    background-color: #e8f5e9;
    border: 1px solid #4CAF50;
}

.history-item.error {
    background-color: #ffebee;
    border: 1px solid #f44336;
}

.progress-container {
    margin: 20px 0;
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f1f1f1;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}
:root {
    --primary-color: #2ecc71;
    --dark-background: #1a1a1a;
    --light-text: #ffffff;
    --border-color: #333333;
    --warning-color: #e74c3c;
}

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


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.stat-item:hover::before {
    opacity: 1;
    animation: glow 3s infinite;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.stat-item:hover i {
    transform: scale(1.2);
}

.number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light);
    margin: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.stat-item:hover .number::after {
    width: 80px;
}

.label {
    font-size: 1.1rem;
    color: #cccccc;
    letter-spacing: 0.5px;
}



/* Адаптивность */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .label {
        font-size: 1rem;
    }
}


body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--dark-background);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 130px;
}
.page-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--dark-background);
    z-index: 1000;
}
 .navigation-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-link {
            font-size: 1.5rem;
            color: var(--primary-color);
            text-decoration: none;
        }

        .balance-container {
            display: flex;
            gap: 1.5rem;
        }

        .balance-item {
            padding: 6px 12px;
            border-radius: 6px;
            background-color: #2d2d2d;
            font-size: 0.9rem;
        }

        .file-drop-zone {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            margin: 1rem 0;
            cursor: pointer;
        }

        .content-wrapper {
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .history-sidebar {
            background-color: #2d2d2d;
            border-radius: 12px;
            padding: 1rem;
            max-height: 67vh;
            overflow-y: auto;
            scrollbar-width: thin; /* Уменьшает ширину скроллбара */
            scrollbar-color: #555 #2d2d2d; /* Цвет ползунка и трека */
        }

        .history-item {
            padding: 0.8rem;
            margin-bottom: 0.5rem;
            border-radius: 6px;
            cursor: pointer;
            background-color: #363636;
        }

        .history-item.selected {
            background-color: var(--primary-color);
        }

        .conversion-main {
            background-color: #2d2d2d;
            border-radius: 12px;
            padding: 1.5rem;
        }

        .file-info-compact {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .progress-container {
            margin: 1rem 0;
        }

        .progress-bar {
            height: 8px;
            background-color: #363636;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background-color: var(--primary-color);
            width: 45%;
        }

        .text-output {
            background-color: #1a1a1a;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
            max-height: 50vh;
            overflow-y: auto;
            scrollbar-width: thin; /* Уменьшает ширину скроллбара */
            scrollbar-color: #555 #2d2d2d; /* Цвет ползунка и трека */
        }

        .text-line {
            margin: 0.5rem 0;
            font-size: 0.95rem;
        }

        @media (max-width: 768px) {
            .content-wrapper {
                grid-template-columns: 1fr;
            }
            
            .file-info-compact {
                grid-template-columns: 1fr;
            }
        }html {
            scrollbar-width: thin; /* Уменьшает ширину скроллбара */
            scrollbar-color: #555 #2d2d2d; /* Цвет ползунка и трека */
        }.file-drop-zone {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            margin: 1rem 0;
            cursor: pointer;
            transition: var(--transition);
            color: var(--light-text);
        }
        
        .file-drop-zone:hover {
            border-color: var(--primary);
        }
        
        .file-drop-zone button {
            background: var(--primary);
            color: var(--dark);
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-weight: bold;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        
        .file-drop-zone button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }











/* В auth-section или общие стили */
.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}