/* Секция "Также мы оказываем услуги" */
.services-section {
    padding: 120px 0;
    background: #f8f9fa;
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

/* Левый блок - sticky */
.services-left {
    position: sticky;
    top: 110px;
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.services-badge-dot {
    width: 8px;
    height: 8px;
    background: #4A90E2;
    border-radius: 50%;
}

.services-badge-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A90E2;
}

.services-main-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
}

/* Правый блок с контентом */
.services-right {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Карточки услуг */
.service-card {
    background: #eaf6ff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card img {
    margin-left: auto;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.service-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.service-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Форма консультации */
.consultation-form {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border-radius: 24px;
    padding: 48px 40px;
    color: white;
    text-align: center;
}

.consultation-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.consultation-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.consultation-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.form-input {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: background 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: white;
}

.form-input::placeholder {
    color: #999;
}

/* Кастомные стили для intl-tel-input */
.iti-styled {
    width: 100%;
    position: relative;
}

/* Контейнер флага - убираем фон */
.iti-styled .iti__flag-container {
    background: transparent;
    border: none;
    border-radius: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 2;
}

.iti-styled .iti__selected-flag {
    padding: 16px 12px 16px 20px;
    background: transparent;
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.iti-styled .iti__flag {
    margin-right: 8px;
}

/* Код страны - увеличиваем размер шрифта */
.iti-styled .iti__selected-dial-code {
    color: #666;
    font-size: 16px;
    margin-left: 4px;
    font-weight: 400;
}

.iti-styled .iti__arrow {
    border-top-color: #999;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.iti-styled.iti--show-dropdown .iti__arrow {
    transform: rotate(180deg);
}

/* Поле ввода - добавляем отступ слева для флага и кода */
.iti-styled input[type="tel"] {
    padding: 16px 20px 16px 80px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: background 0.3s ease;
    width: 100%;
    height: auto;
    border: 2px solid #e9ecef !important;
}
.iti-styled input[type="tel"]:focus {
    border-color: #4285f4 !important;
}

.iti-styled input[type="tel"]:focus {
    outline: none;
    background: white;
}

.iti-styled input[type="tel"]::placeholder {
    color: #999;
}

.iti-styled:focus-within input[type="tel"] {
    background: white;
}

/* Выпадающее меню стран - фиксируем позиционирование */
.iti__dropdown-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: none;
    max-height: 400px;
    margin-top: 4px;
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-width: 300px;
    left: 0;
    right: auto;
}

/* Если выпадающий список выходит за границы, сдвигаем его */
.iti--container-has-been-opened .iti__dropdown-content {
    left: auto;
    right: 0;
}

.iti__country {
    padding: 12px 16px;
    border-bottom: none;
    transition: background 0.2s ease;
}

.iti__country:hover {
    background: #f8f9fa;
}

.iti__country:first-child {
    border-radius: 12px 12px 0 0;
}

.iti__country:last-child {
    border-radius: 0 0 12px 12px;
}

.iti__country-name {
    color: #1a1a1a;
    font-weight: 500;
}

.iti__dial-code {
    color: #666;
    font-size: 12px;
}

.iti__search-input {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    border-radius: 12px 12px 0 0;
}

.iti__search-input:focus {
    outline: none;
    border-bottom-color: #4285f4;
}

/* Валидация */
.iti-styled input[type="tel"].error {
    background: rgba(220, 53, 69, 0.1);
}

.iti-styled input[type="tel"].valid {
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .iti-styled input[type="tel"] {
        padding-left: 75px;
    }
    
    .iti-styled .iti__selected-flag {
        padding: 16px 8px 16px 16px;
    }
    
    .iti__dropdown-content {
        max-width: 280px;
    }
}

/* Чекбокс */
.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.form-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.form-checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox-custom {
    background: white;
    border-color: white;
}

.form-checkbox-custom::after {
    content: '✓';
    color: #4285f4;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox-custom::after {
    opacity: 1;
}

.form-checkbox-label {
    font-size: 14px;
    line-height: 1.4;
    color: white;
    cursor: pointer;
}

.form-checkbox-label a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-checkbox-label a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.consultation-btn {
    background: white;
    color: #4285f4;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.consultation-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Принудительные стили для чекбокса в форме консультации */
.consultation-form .form-checkbox-custom {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.consultation-form .form-checkbox input[type="checkbox"]:checked + .form-checkbox-custom {
    background: white !important;
    border-color: white !important;
}

.consultation-form .form-checkbox-custom::after {
    content: '✓' !important;
    color: #4285f4 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.consultation-form .form-checkbox input[type="checkbox"]:checked + .form-checkbox-custom::after {
    opacity: 1 !important;
}

.consultation-form .form-checkbox-label {
    color: white !important;
}

.consultation-form .form-checkbox-label a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: underline !important;
}

.consultation-form .form-checkbox-label a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.consultation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-left {
        position: static;
        text-align: center;
    }
    
    .services-main-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }
    
    .services-container {
        padding: 0 16px;
        gap: 40px;
    }
    
    .services-main-title {
        font-size: 32px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-card-title {
        font-size: 24px;
    }
    
    .consultation-form {
        padding: 40px 24px;
    }
    
    .consultation-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .services-main-title {
        font-size: 28px;
    }
    
    .service-card-title {
        font-size: 22px;
    }
    
    .consultation-title {
        font-size: 24px;
    }
}