/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #1e293b;
    --dark-light: #334155;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-transparent {
    background: transparent;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 1px;
}

/* Меню навигации */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    color: #ec489a;
}

.navbar-scrolled .nav-link {
    color: #ec489a;
}

.navbar-transparent .nav-link {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link.active {
    color: white;
}

.navbar-transparent .nav-link::after {
    background: white;
}

/* Действия в навигации */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Мобильное меню */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-transparent .mobile-toggle span {
    background: white;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.btn::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px) scale(1.1);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== МИКРО-АНИМАЦИИ ДЛЯ КАРТОЧЕК ===== */
.feature-card, .card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(59, 130, 246, 0.2) 0%, 
                transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before, .card:hover::before {
    opacity: 1;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 20px rgba(59,130,246,0.5); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-subtitle {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
}

/* ===== СЕТКИ ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray);
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

/* ===== СТАТИСТИКА ===== */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '🏆';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 1.2rem;
    opacity: 0;
    transform: rotate(-20deg) scale(0);
    transition: all 0.5s ease;
}

.stat-number.medal-show::after {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--primary); }
    100% { transform: scale(1); }
}

.stat-number.count-animate {
    animation: countPop 0.5s ease;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* ===== ФОРМЫ ===== */
.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== DRAG & DROP ЗОНА ===== */
.drop-zone {
    border: 2px dashed var(--gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.drop-zone.dragover {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

.drop-zone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.drop-zone p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.drop-zone small {
    color: var(--gray);
    font-size: 0.8rem;
}

.drop-zone .file-list {
    margin-top: 1rem;
    text-align: left;
}

.drop-zone .file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
    animation: slideInFile 0.3s ease;
}

@keyframes slideInFile {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.drop-zone .file-item i {
    font-size: 1rem;
    margin: 0;
    color: var(--success);
}

.drop-zone .file-item .file-name {
    flex: 1;
    font-size: 0.9rem;
}

.drop-zone .file-item .file-size {
    color: var(--gray);
    font-size: 0.8rem;
}

.drop-zone .file-item .remove-file {
    color: var(--error);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.drop-zone .file-item .remove-file:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== ТАБЛИЦЫ ===== */
.table-responsive {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-table th {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.price-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: #f8fafc;
}

.price-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== БЛОКИ С ЗАКОНАМИ ===== */
.law-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.law-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.law-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.law-card h3 i {
    color: var(--primary);
}

.term-box {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.term-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ===== ИНФО-БЛОКИ ===== */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.info-content h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.info-content p {
    color: var(--gray);
}

/* ===== БЛОКИ ПРЕИМУЩЕСТВ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray);
}

/* ===== БОНУС БЛОК ===== */
.bonus-box {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.bonus-box::before {
    content: '🎁';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 10rem;
    opacity: 0.2;
    transform: rotate(20deg);
    transition: all 0.5s ease;
}

.bonus-box:hover::before {
    transform: rotate(0deg) scale(1.2);
}

.bonus-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bonus-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    animation: bonusPulse 2s ease-in-out infinite;
}

@keyframes bonusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ ===== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-grid-item:hover img {
    transform: scale(1.1);
}

.image-grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-grid-item:hover::after {
    opacity: 1;
}

/* ===== ЧАТ-ВИДЖЕТ ===== */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.chat-button:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Форма ввода имени */
.chat-name-form {
    display: flex;
    flex-direction: column;
}

.chat-name-content {
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
}

.chat-name-content h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.chat-name-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.chat-name-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.chat-name-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-start-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-start-btn:hover {
    transform: translateY(-2px);
}

/* Основной чат */
.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-header-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-messages {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
    animation: messageAppear 0.3s ease;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.received {
    margin-right: auto;
}

.chat-message.sent {
    margin-left: auto;
}

.chat-message-content {
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    word-break: break-word;
    max-width: 100%;
}

.chat-message.received .chat-message-content {
    background: white;
    box-shadow: var(--shadow-sm);
}

.chat-message.sent .chat-message-content {
    background: var(--primary);
    color: white;
}

/* ===== СТИЛИ ДЛЯ ИМЕНИ И ВРЕМЕНИ В ЧАТЕ ===== */
.message-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
    gap: 8px;
}

.message-author {
    font-weight: 600;
    font-size: 11px;
}

/* Имя клиента (отправленные сообщения) - ЗЕЛЕНЫЙ */
.chat-message.sent .message-author {
    color: #4ade80;
    font-weight: 700;
}

/* Имя Николая (полученные сообщения) - СИНИЙ */
.chat-message.received .message-author {
    color: var(--primary);
    font-weight: 700;
}

.message-time {
    font-size: 10px;
    font-weight: 500;
}

/* Время клиента (отправленные сообщения) */
.chat-message.sent .message-time {
    color: #4ade80;
}

/* Время Николая (полученные сообщения) */
.chat-message.received .message-time {
    color: var(--primary);
}

#typingIndicator .chat-message-content {
    background: #f0f0f0;
    color: #666;
    font-style: italic;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input button {
    background: var(--gradient);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* ===== ФЛЕШ СООБЩЕНИЯ ===== */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--success);
}

.flash-message.flash-error {
    border-left-color: var(--error);
}

.flash-message i {
    font-size: 1.5rem;
    color: var(--success);
}

.flash-error i {
    color: var(--error);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.flash-close:hover {
    color: var(--error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact .contact-item i {
    color: var(--primary);
}

.footer-contact .contact-item a,
.footer-contact .contact-item span {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== КНОПКА НАВЕРХ ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 90px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ec489a 0%, #a855f7 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== ПРЕЛОАДЕР ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 20px 20px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-transparent .nav-menu {
        background: var(--dark);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .chat-box {
        width: 350px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .bonus-text {
        font-size: 1.8rem;
    }
    
    .chat-box {
        width: 300px;
    }
}