/* Базовые сбросы и переменные */
:root {
    --bg-color: #0b0f19;
    --card-bg: #161f30;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #3b82f6;
    --accent-ai: #10b981;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Компоненты */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn--secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.btn--block {
    display: block;
    width: 100%;
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge--ai {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Сетки */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* Навигация */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .dot {
    color: #8b5cf6;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--text-color);
}

/* Главный экран */
.hero {
    padding: 100px 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-link {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.hero__visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient);
    border-radius: 21px;
    z-index: -1;
    opacity: 0.3;
}

.stats-card h3 {
    font-size: 5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Секции */
.about, .services, .ai-features, .contact {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Карточки */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3, .ai-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card p, .ai-card p {
    color: var(--text-muted);
}

.ai-card {
    background: linear-gradient(180deg, #161f30 0%, #0d1527 100%);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    position: relative;
}

.col-span-2 {
    grid-column: span 2;
}

/* Форма и Контакты */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #111827;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-block {
    margin-top: 30px;
}

.phone-large {
    display: block;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    transition: color 0.3s;
}

.phone-large:hover {
    color: var(--accent-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form__input {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-status {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Подвал */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero__container, .contact__container {
        grid-template-columns: 1fr;
    }
    .hero__content {
        text-align: center;
    }
    .hero__actions {
        justify-content: center;
    }
    .col-span-2 {
        grid-column: auto;
    }
    .hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .nav {
        display: none; /* Для полноценного продакшена можно сделать бургер-меню */
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Стили для блока конфиденциальности в форме */
.form__privacy {
    margin: 5px 0 10px 0;
    text-align: left;
}

.privacy-label {
    display: table; /* Имитация табличной верстки для выравнивания чекбокса и текста без flex */
    cursor: pointer;
}

.form__checkbox {
    display: table-cell;
    vertical-align: top;
    margin-top: 5px;
    margin-right: 10px;
    accent-color: var(--accent-color); /* Красит галочку в синий цвет бренда */
    cursor: pointer;
}

.privacy-text {
    display: table-cell;
    vertical-align: top;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 8px;
}

.privacy-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #60a5fa;
    text-decoration: none;
}