/* Основные стили для лендинга */

/* Tailwind CSS базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Утилиты */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: #ffffff; }
.text-gray-900 { color: #111827; }
.text-gray-800 { color: #1f2937; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-100 { color: #f3f4f6; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-gray-500 { background-color: #6b7280; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-black { background-color: #000000; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-white { border-color: #ffffff; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:scale-105:hover { transform: scale(1.05); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.object-cover { object-fit: cover; }
.object-center { object-position: center; }

.cursor-pointer { cursor: pointer; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Анимации */
@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fade-in-delay {
    0%, 60% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient-flow 8s ease-in-out infinite;
}

.animate-fade-delay {
    animation: fade-in-delay 1.2s ease-out;
}

/* Кнопки */
.gradient-btn {
    background: linear-gradient(to right, hsl(200, 50%, 55%), hsl(200, 50%, 65%), hsl(200, 50%, 55%));
    background-size: 200% auto;
    background-position: left;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(84, 153, 199, 0.3);
}

.gradient-btn:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(84, 153, 199, 0.5);
}

/* Формы */
.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.form-input:focus {
    outline: none;
    border-color: #5499c7;
    box-shadow: 0 0 0 3px rgba(84, 153, 199, 0.1);
}

/* Phone input with flag */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.phone-flag {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
}

.flag-icon {
    width: 20px;
    height: 15px;
    background: linear-gradient(to bottom, #b22234 0%, #b22234 7.7%, #ffffff 7.7%, #ffffff 15.4%, #b22234 15.4%, #b22234 23.1%, #ffffff 23.1%, #ffffff 30.8%, #b22234 30.8%, #b22234 38.5%, #ffffff 38.5%, #ffffff 46.2%, #b22234 46.2%, #b22234 53.8%, #ffffff 53.8%, #ffffff 61.5%, #b22234 61.5%, #b22234 69.2%, #ffffff 69.2%, #ffffff 76.9%, #b22234 76.9%, #b22234 84.6%, #ffffff 84.6%, #ffffff 92.3%, #b22234 92.3%, #b22234 100%);
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-right: 8px;
}

.phone-code {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 16px;
    background: transparent;
}

.phone-input::placeholder {
    color: #9ca3af;
}

/* Кнопки с градиентом */
.gradient-btn {
    background: linear-gradient(to right, hsl(200, 50%, 55%), hsl(200, 50%, 65%), hsl(200, 50%, 55%));
    background-size: 200% auto;
    background-position: left;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(84, 153, 199, 0.3);
}

.gradient-btn:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(84, 153, 199, 0.5);
}

/* Поля ввода */
.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Поле телефона с флагом */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.phone-flag {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
}

.flag-icon {
    width: 20px;
    height: 15px;
    background: linear-gradient(to bottom, #b22234 0%, #b22234 7.7%, #ffffff 7.7%, #ffffff 15.4%, #b22234 15.4%, #b22234 23.1%, #ffffff 23.1%, #ffffff 30.8%, #b22234 30.8%, #b22234 38.5%, #ffffff 38.5%, #ffffff 46.2%, #b22234 46.2%, #b22234 53.8%, #ffffff 53.8%, #ffffff 61.5%, #b22234 61.5%, #b22234 69.2%, #ffffff 69.2%, #ffffff 76.9%, #b22234 76.9%, #b22234 84.6%, #ffffff 84.6%, #ffffff 92.3%, #b22234 92.3%, #b22234 100%);
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-right: 8px;
}

.phone-code {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 16px;
    background: transparent;
}

.phone-input::placeholder {
    color: #9ca3af;
}

/* Слайдеры */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #374151;
}

/* Адаптивность */
@media (max-width: 768px) {
    #hero-form {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .phone-input-container {
        flex-direction: row !important;
        align-items: center;
    }
    
    .phone-flag {
        border-right: 1px solid #e5e7eb !important;
        border-bottom: none !important;
        min-width: 60px;
    }
    
    .phone-input {
        flex: 1;
    }
    
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 16px;
    }
}

/* License section mobile styles */
@media (max-width: 768px) {
    /* Секция с лицензией и формой */
    section .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Контейнер секции лицензии */
    section .grid.md\\:grid-cols-2 > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Изображение лицензии на мобильных */
    section .grid.md\\:grid-cols-2 img[alt="Official License"] {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    #license-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    #license-form .phone-input-container {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
    }
    
    #license-form .phone-flag {
        border-right: 1px solid #e5e7eb !important;
        border-bottom: none !important;
        min-width: 60px;
    }
    
    #license-form .phone-input {
        flex: 1;
    }
}

/* Утилиты */
.text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
