:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

/* Верхняя панель (Header) */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

/* Переключатель языков */
.lang-switcher select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.lang-switcher select:focus {
    border-color: var(--primary);
}

/* Главный экран (Hero) */
.hero {
    padding: 60px 0 80px 0;
    text-align: center;
    background: radial-gradient(circle at top, #EEF2FF 0%, var(--white) 70%);
}

h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Кнопки скачивания */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-download {
    background-color: #111827;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-download:hover {
    background-color: #374151;
}

.btn-download:active {
    transform: scale(0.98);
}

/* Интерактивный виджет-макет */
.widget-mockup {
    max-width: 320px;
    margin: 0 auto;
    background: #111827;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid #374151;
}

.widget-inner {
    background: #1F2937;
    border-radius: 20px;
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.widget-title {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 15px;
}

.widget-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border: none;
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.1s, box-shadow 0.2s;
}

.widget-btn:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

.widget-btn:active {
    transform: scale(0.95);
}

/* Секции и сетка */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Нижний блок (Footer CTA) */
.footer-cta {
    background-color: #111827;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-cta p {
    color: #9CA3AF;
    margin-bottom: 40px;
    font-size: 18px;
}

/* Контрастные белые кнопки для темного футера */
.footer-cta .btn-download {
    background-color: var(--white);
    color: #111827;
    border: 1px solid var(--white);
}

.footer-cta .btn-download:hover {
    background-color: #E5E7EB;
    border-color: #E5E7EB;
}

/* Модальное окно (Поп-ап) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9CA3AF;
    line-height: 1;
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
}

/* Форма сбора Email */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-email {
    padding: 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.input-email:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.success-message {
    display: none;
    color: #10B981;
    font-weight: 500;
    margin-top: 15px;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 { font-size: 30px; }
    .subtitle { font-size: 16px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 24px; margin-bottom: 35px; }
    .footer-cta h2 { font-size: 28px; }
    .modal-content { padding: 30px 20px; }
}

/* Баннер Cookie */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: #111827;
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: bottom 0.4s ease;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.4;
}

.btn-cookie-accept {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
