/* ROOT VARIABLES */
:root {
    --primary-grad: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #3B82F6 100%);
    --cta-grad: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --text-dark: #1F2937;
    --text-gray: #4B5563;
    --text-muted: #6B7280;
    --accent: #6366F1;
    --transition: all 0.3s ease;
}

/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Запрет копирования текста */
    user-select: none; /* Стандарт */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

/* Разрешить копирование в форме */
form input,
form textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
}

/* Запрет контекстного меню (правая кнопка) */
body {
    -webkit-touch-callout: none; /* iOS Safari */
}

/* Запрет перетаскивания изображений */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Полный запрет взаимодействия */
}

/* Разрешить клики по кликабельным элементам */
a, button, .btn, .h-feat {
    pointer-events: auto;
}


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

/* PROGRESS BAR */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--cta-grad);
    width: 0%;
    z-index: 1000;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(-45deg, #7C3AED, #6366F1, #3B82F6, #1D4ED8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 100px 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.h-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease; /* Плавная анимация */
    cursor: pointer; /* Курсор-указатель */
}

/* Анимация при наведении */
.h-feat:hover {
    transform: translateY(-5px) scale(1.05); /* Подъем вверх + увеличение */
    background: rgba(255,255,255,0.2); /* Чуть ярче фон */
    border-color: rgba(255,255,255,0.4); /* Ярче граница */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Тень */
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: #4F46E5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-cta {
    background: var(--cta-grad);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* SERVICES SECTION */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.icon-box {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* PARTNERS SECTION */
.partners-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.partner-col {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 24px;
    transition: var(--transition);
}

.partner-col:hover {
    background: #F3F4F6;
}

.partner-logo {
    max-height: 50px; /* Фиксированная высота */
    width: auto; /* Пропорциональная ширина */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain; /* Вписывается без искажений */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    filter: grayscale(0%); /* Цветные логотипы */
    }

.partner-logo:hover {
    transform: scale(1.05); /* Увеличение при наведении */
    opacity: 1;
}

.partner-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Выравнивание слева */
    min-height: 70px; /* Одинаковая высота блока */
}

.partner-list {
    list-style: none;
    margin-top: 25px;
}

.partner-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 500;
}

.partner-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

/* STATS SECTION */
.stats {
    background: #111827;
    color: var(--white);
    padding: 80px 0;
}

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

.stat-item h2 {
    font-size: 56px;
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.7;
}

/* CONTACTS & FORM */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* PDN CHECKBOX STYLES (REQUIRED) */
.checkbox-group {
    margin-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #4338CA;
}

/* FOOTER */
footer {
    background: #F9FAFB;
    padding: 0; /* Убираем стандартный padding */
    border-top: 1px solid #F3F4F6;
    font-size: 9px !important;
    color: #D1D5DB;
    min-height: 120px; /* Толщина футера */
    position: relative; /* Для позиционирования текста */
}

footer p {
    font-size: 11px;
    margin: 2px 0;
    opacity: 0.6; /* Полупрозрачность */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Прижать к низу */
    position: absolute; /* Абсолютное позиционирование */
    bottom: 10px; /* Отступ от низа */
    left: 0;
    right: 0;
    padding: 0 20px; /* Боковые отступы */
    color: #D1D5DB;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 9px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8; /* При наведении чуть ярче */
}

/* SCROLL TOP */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cta-grad);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 99;
    font-size: 20px;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* КНОПКА В КАРТОЧКЕ УСЛУГИ */
.service-card .btn-card {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--cta-grad);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .partners-split, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}