/* ============================================
   БАЗОВЫЕ СТИЛИ И СБРОС
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основная палитра - красный акцент */
    --primary-color: #DC143C; /* Темно-красный */
    --primary-dark: #B01030;
    --primary-light: #FF4060;
    
    /* Дополнительные цвета */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Акценты */
    --success-color: #28a745;
    --warning-color: #ffc107;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Шрифты */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================
   КНОПКИ
============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ============================================
   ЗАГОЛОВКИ СЕКЦИЙ
============================================ */
.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* ============================================
   HEADER / ШАПКА
============================================ */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo h2 span {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-top: -4px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.phone-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.messengers {
    display: flex;
    gap: 12px;
}

.messengers a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.whatsapp {
    background: #25D366;
    color: white;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.telegram {
    background: #0088cc;
    color: white;
}

.telegram:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s;
}

/* ============================================
   HERO / ПЕРВЫЙ ЭКРАН
============================================ */
.hero {
    background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
    url('/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" opacity="0.05" fill="white">📦</text></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-card.promo {
    background: rgba(220, 20, 60, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   ПРОБЛЕМА VS РЕШЕНИЕ
============================================ */
.problem-solution {
    padding: 80px 0;
    background: var(--bg-light);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.comparison-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border-color);
}

.comparison-card.problem h3 {
    color: #dc3545;
}

.comparison-card.solution h3 {
    color: var(--success-color);
}

.comparison-card ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-card li {
    font-size: 16px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.comparison-card.problem li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.comparison-card.solution li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================
   КАЛЬКУЛЯТОР
============================================ */
.calculator {
    padding: 80px 0;
    background: white;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.calc-field {
    margin-bottom: 32px;
}

.calc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.calc-field input[type="range"] {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.calc-field input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.calc-value {
    text-align: center;
    font-size: 28px; /* Увеличили */
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.checkbox-field {
    margin-bottom: 40px;
}

.checkbox-field span {
    display: inline-block;
    top: -5px;
    position: relative;
    margin-left: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.calc-result {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.result-label {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.result-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.calculator-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.calculator-info ul {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.calculator-info ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.calculator-info ul li:last-child {
    border-bottom: none;
}

.calculator-info ul li strong {
    color: var(--primary-color);
}

.calculator-info li {
    font-size: 15px;
    padding-left: 8px;
}

.promo-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 24px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   ПРЕИМУЩЕСТВА
============================================ */
.advantages {
    padding: 80px 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantage-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.advantage-card.highlight {
    background: linear-gradient(135deg, #fff 0%, #ffe5e5 100%);
    border: 2px solid var(--primary-color);
}

.advantage-card.promo-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.advantage-card.promo-card h3 {
    color: white;
}

.advantage-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advantage-card li {
    font-size: 15px;
    padding-left: 20px;
    position: relative;
}

.advantage-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.advantage-card.promo-card li::before {
    color: white;
}

/* ============================================
   УСЛУГИ
============================================ */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.service-card li {
    font-size: 15px;
    padding-left: 24px;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   ДЛЯ ВОДИТЕЛЕЙ
============================================ */
.drivers {
    padding: 80px 0;
    background: var(--bg-light);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.drivers {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.driver-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.driver-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.15);
}

.driver-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.driver-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.driver-card:hover .driver-image img {
    transform: scale(1.15);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, #DC143C, #B01030);
}

.driver-content {
    padding: 30px 25px;
    flex: 1;
}

.driver-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.driver-card:hover h3 {
    color: #DC143C;
}

.driver-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ============================================
   КАК НАЧАТЬ РАБОТАТЬ
============================================ */
.how-to-start {
    padding: 80px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 5px;
    font-size: 32px;
    color: var(--primary-color);
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-center {
    text-align: center;
}

/* ============================================
   FAQ
============================================ */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgb(255 255 255 / 25%)), url(/images/fon_2.webp);
    background-size: cover;
    background-position: center;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-toggle {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   КОНТАКТЫ
============================================ */
.contacts {
    padding: 80px 0;
    background: white;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.contact-form > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-privacy {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
}

.form-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-block h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-block p {
    font-size: 18px;
    color: var(--secondary-color);
}

.contact-block a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-block a:hover {
    text-decoration: underline;
}

.contact-messengers {
    display: flex;
    gap: 16px;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.messenger-btn.whatsapp {
    background: #25D366;
}

.messenger-btn.whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn.telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-company h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-company p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.footer-year {
    margin-top: 16px !important;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   ФИКСИРОВАННЫЕ КНОПКИ (Мобильная версия)
============================================ */
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fixed-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.fixed-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    background: var(--primary-color);
    color: white;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
============================================ */
/* ========================================
   МОДАЛЬНЫЕ ОКНА
======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Добавляем возможность скролла */
    padding: 20px 0; /* Отступы сверху/снизу */
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    margin: auto; /* Центрируем по вертикали */
    max-height: 90vh; /* Максимум 90% высоты экрана */
    overflow-y: auto; /* Скролл внутри модалки если нужно */
}

/* Кнопка закрытия всегда видна */
.modal-close {
    position: sticky; /* Липкая позиция при скролле */
    top: 10px;
    right: 10px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    background: white; /* Белый фон для видимости */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #DC143C;
    transform: rotate(90deg);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .modal {
        padding: 10px 0; /* Меньше отступы на мобильных */
        align-items: flex-start; /* Прижимаем к верху */
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh; /* Больше места на мобильных */
        margin: 0 auto 10px; /* Отступ от верха */
    }
    
    .modal-close {
        top: 5px;
        right: 5px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .modal-content {
        padding: 20px 15px;
        max-height: 98vh;
    }
}

/* ========================================
   ОПТИМИЗАЦИЯ ФОРМЫ В МОДАЛЬНОМ ОКНЕ
======================================== */

/* Заголовок модалки */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 40px; /* Отступ под крестик */
}

/* Форма в модальном окне */
.modal-form {
    margin-top: 20px;
}

/* Поля формы в модалке */
.modal-form .form-group {
    margin-bottom: 15px; /* Меньше отступы между полями */
}

/* Капча в модалке */
.modal-content .smart-captcha {
    margin: 15px 0; /* Меньше отступы для капчи */
}

/* Кнопка отправки */
.modal-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .modal-form .form-group {
        margin-bottom: 12px;
    }
    
    .modal-form input,
    .modal-form textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .modal-content .smart-captcha {
        margin: 10px 0;
    }
}


@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.privacy-text {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 20px;
}

.privacy-text h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--secondary-color);
}

.privacy-text p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

/* ============================================
   АДАПТИВНОСТЬ
============================================ */

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header */
    .nav {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        line-height: 28px;
    }
    .hero-description {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    /* Section titles */
    .section-title {
        font-size: 32px;
    }
    
    /* Comparison */
    .comparison {
        grid-template-columns: 1fr;
    }
    
    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Drivers */
    .drivers-grid {
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step::after {
        display: none;
    }
    
    /* Contacts */
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    /* Fixed buttons */
    .fixed-buttons {
        display: flex;
    }
    
    /* Modal */
    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
    }
}
@media (max-width: 768px) {
  .nav {
    display: none; /* по умолчанию скрыто */
    position: absolute;
    top: 70px; /* под шапкой */
    right: 0;
    background: white;
    width: 200px;
    flex-direction: column;
    padding: 20px;
    border-radius: 0 0 0 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1001;
}
.nav.active {
    display: flex; /* показываем при active */
}

.mobile-menu-toggle {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    z-index: 1100;
}
.mobile-menu-toggle span {
    height: 3px;
    width: 28px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
.calculator-form {
    padding: 15px;
}
.calc-result {
    padding: 10px;
}
.result-value {
    font-size: 36px;
}
.checkbox-field span {
    font-size: 13px;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
}
.modal-content h2 {
    font-size: 22px;
}
.drivers {
    padding: 60px 0;
}

.driver-image {
    height: 200px;
}

.driver-content {
    padding: 25px 20px;
}

.driver-card h3 {
    font-size: 22px;
}
.contact-form {
    padding: 10px;
}
.hero {
    padding: 20px 0;
}
.hero-title {
    font-size: 38px;
}
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

/* Новые стили для SVG внутри stat-icon */
.stat-icon svg {
    width: 36px;   /* Размер иконки */
    height: 36px;
    display: block;
    margin: 0 auto;
}

/* Если хотите изменить цвет SVG через CSS (опционально) */
.stat-icon svg path:nth-child(2) {
    fill: var(--primary-color); /* Заменит зелёный цвет на красный */
}

/* ============================================
   СТИЛИ ДЛЯ СООБЩЕНИЙ ФОРМ
============================================ */

.form-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Состояние кнопки при отправке */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc !important;
}



/* ============================================
   СТИЛИ ДЛЯ ОТЗЫВОВ
============================================ */

.reviews {
    padding: 80px 0;
    background: #f8f9fa;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.review-author strong {
    display: block;
    font-size: 18px;
    color: #1a1a1a;
}

.review-author span {
    font-size: 14px;
    color: #666;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.review-date {
    font-size: 13px;
    color: #999;
}


/* ========================================
   ЯНДЕКС SMARTCAPTCHA
======================================== */

.smart-captcha {
    margin: 20px 0;
    /*display: flex;
    justify-content: center;*/
    min-width: 220px !important;
    max-width: 100%;
}

/* Скрываем капчу до инициализации */
.smart-captcha:empty {
    display: none;
}

/* Адаптив */
@media (max-width: 768px) {
    .smart-captcha {
        margin: 15px 0;
        max-width: 300px;
    }
}
