/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-list {
        gap: 24px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    .header-left {
        gap: 16px;
    }
    
    .language-switcher .language-form {
        gap: 1px;
        padding: 2px;
        border-width: 1px;
    }

    .language-switcher .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 28px;
        border-radius: 4px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile navigation open state */
    .nav.nav-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: transparent !important; /* Убираем фон */
        backdrop-filter: none !important; /* Убираем размытие */
        z-index: 1000 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .nav.nav-open .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        max-width: 300px;
        padding: 20px;
        background: transparent; /* Убираем фон */
    }
    
    .nav.nav-open .nav-item {
        width: 100%;
        border-bottom: 1px solid transparent; /* Убираем границу */
    }
    
    .nav.nav-open .nav-item:last-child {
        border-bottom: 1px solid transparent; /* Убираем границу */
    }
    
    .nav.nav-open .nav-link {
        color: black !important;
        font-size: 18px !important;
        padding: 20px 0 !important;
        text-align: left !important;
        font-weight: 500 !important;
        background: transparent; /* Убираем фон */
    }
    
    .nav.nav-open .dropdown-menu {
        position: static !important;
        background: transparent !important; /* Убираем фон */
        box-shadow: none !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 !important;
        margin-top: 10px !important;
        display: none !important;
    }
    
    .nav.nav-open .nav-item.group.mobile-open .dropdown-menu {
        display: block !important;
    }
    
    .nav.nav-open .dropdown-link {
        color: rgba(0, 0, 0, 0.8) !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid transparent !important; /* Убираем границу */
        font-size: 16px !important;
        background: transparent; /* Убираем фон */
    }
    
    .nav.nav-open .dropdown-link:hover {
        background: transparent !important; /* Убираем фон */
        color: var(--primary-color) !important;
    }
    .mobile-menu-toggle.menu-open span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .mobile-menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.menu-open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .order-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Dark theme for mobile menu (повышенный приоритет) */
    body.dark .nav.nav-open,
    body.dark-theme .nav.nav-open {
        background: transparent !important; /* Убираем фон */
    }
    body.dark .nav.nav-open .nav-list,
    body.dark-theme .nav.nav-open .nav-list {
        background: transparent !important; /* Убираем фон */
    }
    body.dark .nav.nav-open .nav-link,
    body.dark-theme .nav.nav-open .nav-link {
        color: #fff !important;
        background: transparent; /* Убираем фон */
    }
    body.dark .nav.nav-open .dropdown-link,
    body.dark-theme .nav.nav-open .dropdown-link {
        color: #eee !important;
        background: transparent; /* Убираем фон */
    }
    body.dark .nav.nav-open .nav-item,
    body.dark-theme .nav.nav-open .nav-item {
        border-bottom: 1px solid transparent !important; /* Убираем границу */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .language-switcher .lang-btn {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 24px;
        border-radius: 3px;
    }

    .language-switcher .language-form {
        padding: 2px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    section {
        padding: 40px 0;
    }
    
    .card {
        padding: 24px;
    }
    
    .tariff-table {
        font-size: 14px;
    }
    
    .tariff-table th,
    .tariff-table td {
        padding: 12px 8px;
    }
}

/* Адаптивные изображения для мобильных устройств */

/* Базовые стили для всех изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Контейнеры изображений */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Responsive изображения в зависимости от размера экрана */
.responsive-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Hero изображения */
.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: none; /* Убираем тень */
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        border-radius: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .hero-image {
        border-radius: 16px;
        margin: 16px 0;
    }
}

/* Изображения в карточках */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

@media (max-width: 768px) {
    .card-image {
        height: 180px;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 160px;
        border-radius: 12px 12px 0 0;
    }
}

/* Галерея изображений */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Изображения логотипов */
.logo-image {
    width: auto;
    height: 40px;
    max-width: 200px;
}

@media (max-width: 768px) {
    .logo-image {
        height: 36px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 32px;
        max-width: 160px;
    }
}

/* Иконки и маленькие изображения */
.icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .icon-image {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
}

/* Изображения в блоках контента */
.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: none; /* Убираем тень */
}

@media (max-width: 768px) {
    .content-image {
        margin: 16px 0;
        border-radius: 16px;
    }
}

/* Изображения в сетке (для тарифов, услуг) */
.grid-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .grid-image {
        height: 140px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .grid-image {
        height: 120px;
        border-radius: 8px;
    }
}

/* Фоновые изображения */
.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bg-image > * {
    position: relative;
    z-index: 2;
}

/* Lazy loading стили */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Picture элемент для разных разрешений */
picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
}

/* WebP поддержка */
.webp-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Изображения с соотношением сторон */
.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

.aspect-ratio-3-2 {
    aspect-ratio: 3/2;
}

/* Контейнеры с фиксированным соотношением */
.aspect-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.aspect-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Изображения в слайдерах */
.slider-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .slider-image {
        height: 250px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .slider-image {
        height: 200px;
        border-radius: 12px;
    }
}

/* Аватары и круглые изображения */
.avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: none; /* Убираем тень */
}

@media (max-width: 768px) {
    .avatar-image {
        width: 56px;
        height: 56px;
        border-width: 2px;
    }
}

.avatar-large {
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .avatar-large {
        width: 100px;
        height: 100px;
    }
}

/* Изображения в отзывах */
.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

@media (max-width: 768px) {
    .testimonial-image {
        width: 70px;
        height: 70px;
        margin: 0 auto 12px;
    }
}

/* Изображения партнеров */
.partner-logo {
    width: auto;
    height: 60px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .partner-logo {
        height: 50px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        height: 40px;
        max-width: 100px;
    }
}

/* Оптимизация для Retina дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .retina-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Изображения с эффектами */
.image-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-zoom img {
    transition: transform 0.3s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Изображения с overlay */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Изображения в модальных окнах */
.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Плейсхолдеры для изображений */
.image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    border-radius: 8px;
    min-height: 150px;
}

@media (max-width: 768px) {
    .image-placeholder {
        min-height: 120px;
        font-size: 12px;
        border-radius: 12px;
    }
}

/* Анимации для изображений */
.image-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.image-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Оптимизация производительности */
.image-optimized {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Оптимизация для сенсорных устройств */

/* Увеличенные области нажатия для всех кликабельных элементов */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    position: relative;
}

/* Кнопки с оптимальными размерами для касания */
.btn,
.btn-primary,
.btn-secondary,
.order-btn,
button {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Увеличенная область нажатия для мобильных кнопок */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .order-btn,
    button {
        min-height: 56px;
        padding: 16px 28px;
        font-size: 18px;
        margin: 8px 4px;
    }
    
    /* Кнопки в hero секции */
    .hero-content .btn,
    .order-buttons .btn {
        min-height: 60px;
        padding: 18px 32px;
        font-size: 20px;
        font-weight: 600;
        margin: 10px 0;
        width: 100%;
        max-width: 320px;
    }
}

/* Навигационные ссылки */
.nav-link,
.nav a,
.dropdown-link {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .nav-link,
    .nav a,
    .dropdown-link {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 18px;
    }
}

/* Форматирование ссылок в мобильном меню */
.nav.nav-open .nav-link {
    min-height: 60px !important;
    padding: 20px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* Гамбургер меню с улучшенной областью нажатия */
.mobile-menu-toggle {
    min-height: 48px;
    min-width: 48px;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        min-height: 52px;
        min-width: 52px;
        padding: 14px;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 3px;
    }
}

/* Анимация гамбургера */
.mobile-menu-toggle.menu-open span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.menu-open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.menu-open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Карточки с touch-friendly отступами */
.card,
.tariff-card,
.service-card {
    margin: 16px 0;
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .card,
    .tariff-card,
    .service-card {
        margin: 20px 0;
        padding: 28px;
        border-radius: 20px;
    }
}

/* Аккордеоны и раскрывающиеся элементы */
.accordion-header,
.faq-question,
.dropdown-toggle {
    min-height: 56px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .accordion-header,
    .faq-question,
    .dropdown-toggle {
        min-height: 64px;
        padding: 20px 24px;
        font-size: 18px;
    }
}

/* Табы с увеличенными областями */
.tab-button,
.tab-link {
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .tab-button,
    .tab-link {
        min-height: 56px;
        padding: 16px 28px;
        font-size: 16px;
        margin: 4px 2px;
    }
}

/* Переключатель языков */
.language-switcher .lang-btn {
    min-height: 36px;
    min-width: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .language-switcher .lang-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Логотип и основные ссылки */
.logo-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Поддержка жестов свайп */
.swipe-container {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Горизонтальный скролл для табов и карточек */
.tabs-container,
.cards-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 16px;
}

.tabs-container::-webkit-scrollbar,
.cards-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item,
.card-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Улучшенные формы для touch */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 18px;
        border-radius: 16px;
        margin: 8px 0;
    }
    
    textarea {
        min-height: 120px;
    }
}

/* Чекбоксы и радиокнопки */
input[type="checkbox"],
input[type="radio"] {
    min-height: 24px;
    min-width: 24px;
    margin: 8px;
    cursor: pointer;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 28px;
        min-width: 28px;
        margin: 12px;
    }
    
    label {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 8px 0;
        font-size: 16px;
        cursor: pointer;
        touch-action: manipulation;
    }
}

/* Модальные окна touch-friendly */
.modal-header,
.modal-footer {
    padding: 24px;
}

.modal-close,
.close-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .modal-close,
    .close-btn {
        min-height: 52px;
        min-width: 52px;
        padding: 16px;
    }
}

/* Социальные ссылки */
.social-link,
.social-icon {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .social-link,
    .social-icon {
        min-height: 52px;
        min-width: 52px;
    }
}

/* Hover эффекты только для устройств с mouse */
@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .nav-link:hover,
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Тактильная обратная связь для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .btn:active,
    .nav-link:active,
    .mobile-menu-toggle:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    .card:active {
        transform: scale(0.99);
    }
}

/* Предотвращение случайных касаний */
.prevent-touch {
    pointer-events: none;
    touch-action: none;
}

/* Улучшение производительности для анимаций */
.btn,
.nav-link,
.card,
.mobile-menu-toggle {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Оптимизация скролла */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Отключение выделения текста для UI элементов */
.btn,
.nav-link,
.mobile-menu-toggle,
.tab-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Оптимизация форм для мобильных устройств */

/* Базовые стили для мобильных форм */
.mobile-form-container {
    padding: 20px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 16px 0;
}

/* Улучшенные поля ввода для мобильных */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

/* Основные поля ввода */
.form-input,
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 16px; /* Предотвращает zoom на iOS */
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-family: inherit;
}

/* Фокус состояние */
.form-input:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3e6d26;
    box-shadow: 0 0 0 3px rgba(62, 109, 38, 0.15);
    background: #fff;
}

/* Состояние ошибки */
.form-input.error,
.form-control.error,
input.error,
textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* Состояние успеха */
.form-input.success,
.form-control.success,
input.success,
textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

/* Textarea специальные стили */
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Select специальные стили */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .mobile-form-container {
        padding: 24px 20px;
        margin: 20px 0;
        border-radius: 20px;
    }
    
    .form-input,
    .form-control,
    input,
    textarea,
    select {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 18px;
        border-radius: 16px;
        margin: 8px 0;
    }
    
    .form-label {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    textarea {
        min-height: 140px;
    }
    
    select {
        background-size: 20px;
        padding-right: 48px;
    }
}

/* Особо маленькие экраны */
@media (max-width: 480px) {
    .mobile-form-container {
        padding: 20px 16px;
        margin: 16px 0;
        border-radius: 16px;
    }
    
    .form-input,
    .form-control,
    input,
    textarea,
    select {
        min-height: 52px;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 14px;
    }
}

/* Чекбоксы и радиокнопки */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    cursor: pointer;
    min-height: 48px;
}

.checkbox-input,
.radio-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .checkbox-group,
    .radio-group {
        gap: 16px;
        margin: 20px 0;
        min-height: 56px;
    }
    
    .checkbox-input,
    .radio-input {
        width: 24px;
        height: 24px;
        margin-top: 4px;
    }
    
    .checkbox-label,
    .radio-label {
        font-size: 18px;
        line-height: 1.4;
    }
}

/* Кнопки форм */
.form-button,
.submit-btn {
    width: 100%;
    min-height: 52px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: #3e6d26;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.form-button:hover,
.submit-btn:hover {
    background: #2d4f1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 109, 38, 0.3);
}

.form-button:active,
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 109, 38, 0.2);
}

@media (max-width: 768px) {
    .form-button,
    .submit-btn {
        min-height: 60px;
        padding: 18px 28px;
        font-size: 20px;
        border-radius: 16px;
        margin-top: 24px;
    }
}

/* Вторичные кнопки */
.form-button.secondary,
.submit-btn.secondary {
    background: transparent;
    border: 2px solid #3e6d26;
    color: #3e6d26;
}

.form-button.secondary:hover,
.submit-btn.secondary:hover {
    background: #3e6d26;
    color: #fff;
}

/* Группы кнопок */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }
}

/* Индикатор загрузки */
.form-button.loading,
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.form-button.loading::after,
.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Сообщения об ошибках */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

@media (max-width: 768px) {
    .error-message {
        font-size: 16px;
        margin-top: 8px;
    }
}

/* Сообщения об успехе */
.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

@media (max-width: 768px) {
    .success-message {
        font-size: 16px;
        margin-top: 8px;
    }
}

/* Плавающие лейблы */
.floating-label {
    position: relative;
}

.floating-label .form-input,
.floating-label .form-control {
    padding-top: 24px;
    padding-bottom: 8px;
}

.floating-label .form-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    margin: 0;
}

.floating-label .form-input:focus + .form-label,
.floating-label .form-input:not(:placeholder-shown) + .form-label,
.floating-label .form-control:focus + .form-label,
.floating-label .form-control:not(:placeholder-shown) + .form-label {
    top: 8px;
    font-size: 12px;
    color: #3e6d26;
}

@media (max-width: 768px) {
    .floating-label .form-input,
    .floating-label .form-control {
        padding-top: 28px;
        padding-bottom: 12px;
    }
    
    .floating-label .form-label {
        top: 20px;
        left: 20px;
        font-size: 18px;
    }
    
    .floating-label .form-input:focus + .form-label,
    .floating-label .form-input:not(:placeholder-shown) + .form-label,
    .floating-label .form-control:focus + .form-label,
    .floating-label .form-control:not(:placeholder-shown) + .form-label {
        top: 10px;
        font-size: 14px;
    }
}

/* Поля с иконками */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-input,
.input-with-icon .form-control {
    padding-left: 48px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .input-with-icon .form-input,
    .input-with-icon .form-control {
        padding-left: 56px;
    }
    
    .input-with-icon .input-icon {
        left: 20px;
        width: 24px;
        height: 24px;
    }
}

/* Шаги формы */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.form-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.form-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e1e5e9;
}

.form-step:last-child::after {
    display: none;
}

.form-step.active::after {
    background: #3e6d26;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-step.active .step-number,
.form-step.completed .step-number {
    background: #3e6d26;
    color: #fff;
}

.step-title {
    font-size: 14px;
    color: #666;
}

.form-step.active .step-title,
.form-step.completed .step-title {
    color: #3e6d26;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-steps {
        margin-bottom: 40px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        margin: 0 auto 12px;
    }
    
    .step-title {
        font-size: 16px;
    }
}

/* Автозаполнение */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #333;
    transition: background-color 5000s ease-in-out 0s;
}

/* Скрытие спиннеров для number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Файловые поля */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 8px 0;
}

.file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px dashed #3e6d26;
    border-radius: 12px;
    background: #f8f9fa;
    color: #3e6d26;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.file-input-label:hover {
    background: #e8f5e8;
    border-color: #2d4f1a;
}

@media (max-width: 768px) {
    .file-input-label {
        min-height: 56px;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 16px;
    }
}