/* СТИЛИ ДЛЯ СТРАНИЦЫ ЗАГРУЗКИ АНАЛИЗОВ ВЛАДЕЛЬЦЕВ */
/* Убраны дублирования - используются стили из forms.css, buttons.css, variables.css */

/* ПОДСВЕТКА ЦЕНЫ КАК МАРКЕРОМ */
.price-highlight {
    background: linear-gradient(120deg, rgba(255, 235, 59, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #e65100;
}

/* ИНФОРМАЦИОННЫЙ БЛОК (для объяснения ценности расшифровки) */
.info-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* СЕКЦИЯ ВЫБОРА ТИПА ЖИВОТНОГО И EMAIL */
.pet-type-section,
.email-section {
    margin: 2rem 0;
}

.flex-align {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* СВОРАЧИВАЕМЫЙ БЛОК ДОПОЛНИТЕЛЬНЫХ ДАННЫХ О ЖИВОТНОМ */
.animal-additional-data {
    /* Используем существующий .info-box стиль + небольшая кастомизация */
    margin: 2rem 0;
    padding: 1.25rem;
    background: #eff6ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
}

.animal-data-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.animal-data-header:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Бейдж "+Точность" (минималистично, как price-highlight) */
.accuracy-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.animal-data-header i {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.animal-data-header.expanded i {
    transform: rotate(180deg);
}

.animal-data-hint {
    margin: 0.75rem 0 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.animal-data-hint strong {
    color: #0369a1;
}

.animal-data-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.animal-data-content.expanded {
    max-height: 600px;
    margin-top: 1rem;
}

/* ССЫЛКА НА ПРИМЕР РАСШИФРОВКИ */
.example-link-container {
    text-align: center;
    margin-top: 1rem;
}

.example-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.example-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

.example-link i {
    width: 16px;
    height: 16px;
}

/* ОСНОВНОЙ КОНТЕЙНЕР - расширяет base.css .container */
.owners-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}


/* УПРАВЛЕНИЕ ШАГАМИ */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

/* Отступ для прокрутки с учётом фиксированного header */
.step {
    scroll-margin-top: 100px; /* Учитываем высоту navbar + небольшой отступ */
}

/* ЗАГОЛОВКИ ШАГОВ */
.step-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.step-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ВЫБОР МЕТОДА ВВОДА */
.method-choice {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.method-btn {
    /* Использует .flex-center из components.css */
    gap: 1rem;
    padding: 1rem; /* Уменьшено с 1.5rem */
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    width: 100%;
}

.method-btn:hover {
    border-color: var(--primary-blue);
    background: var(--bg-light);
}

.method-btn i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.method-btn strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.method-btn small {
    color: var(--text-secondary);
}

.method-divider {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0.5rem 0; /* Уменьшено с 1rem */
}

/* ДЕЙСТВИЯ ШАГА */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.step-actions.text-center {
    justify-content: center;
}

/* ТОЛЬКО специфичные стили для disabled состояния */
.btn-primary:disabled {
    background: var(--bg-muted);
    cursor: not-allowed;
}

/* УБРАНО - переносим в buttons.css как общие стили */

/* ЗАГРУЗКА ФАЙЛОВ */
.upload-area {
    border: 2px dashed var(--border-medium);
    border-radius: var(--border-radius-sm);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light);
    transition: var(--transition-base);
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--bg-primary-light);
}

.upload-area.dragover {
    border-color: var(--primary-blue);
    background: var(--bg-primary-medium);
}

.upload-icons {
    /* Использует .flex-justify из components.css */
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-icons i {
    font-size: 3rem;
    color: var(--text-muted);
}

.upload-area h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-instruction {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-area p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-input {
    display: none;
}

/* ПРЕВЬЮ ИЗОБРАЖЕНИЯ */
.image-preview {
    max-width: 300px;
    margin: 1rem auto;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: white;
    padding: 1rem;
    display: none;
}

.image-preview.show {
    display: block;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.image-preview-info {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* TEXTAREA - расширяет form-group из forms.css */
.analysis-textarea {
    min-height: 200px;
    resize: vertical;
}

/* НОМЕР ШАГА */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    flex-shrink: 0;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* РАДИО КНОПКИ */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* Запрещаем сжатие */
    vertical-align: middle;
    cursor: pointer;
}

.radio-option span {
    font-weight: normal;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

/* Стили для заблокированных радиокнопок */
.radio-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
    border-color: var(--border-light);
}

.radio-option.disabled:hover {
    border-color: var(--border-light);
    background-color: #f3f4f6;
    transform: none;
}

.radio-option.disabled input[type="radio"] {
    cursor: not-allowed;
}

/* КАСТОМНОЕ ПОЛЕ ЖИВОТНОГО */
#customAnimalGroup {
    margin-top: 0.5rem;
}

/* ВАЛИДАЦИЯ ТАБЛИЦЫ ПАРАМЕТРОВ - используем существующие стили */
.invalid-row {
    background-color: var(--error-bg);
    border: 1px solid var(--error);
}

/* ==================== ТАБЛИЦА ПАРАМЕТРОВ ==================== */
.parameters-table-container {
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: white;
    overflow: hidden;
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
    table-layout: fixed;
}

/* Ширины колонок - компактные для предотвращения прокрутки */
.parameters-table th:nth-child(1),
.parameters-table td:nth-child(1) {
    width: 28%;
}

.parameters-table th:nth-child(2),
.parameters-table td:nth-child(2) {
    width: 16%;
}

.parameters-table th:nth-child(3),
.parameters-table td:nth-child(3) {
    width: 12%;
}

.parameters-table th:nth-child(4),
.parameters-table td:nth-child(4) {
    width: 25%;
}

.parameters-table th:nth-child(5),
.parameters-table td:nth-child(5) {
    width: 8%;
    text-align: center;
}

/* Заголовки таблицы */
.parameters-table th {
    background: var(--bg-light);
    padding: 0.375rem 0.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-size: 0.75rem;
    white-space: nowrap;
}

.parameters-table th:last-child {
    border-right: none;
}

/* Ячейки таблицы */
.parameters-table td {
    padding: 0.375rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
}

.parameters-table td:last-child {
    border-right: none;
}

.parameters-table tr:last-child td {
    border-bottom: none;
}

/* Поля ввода в таблице */
.param-input {
    width: 100%;
    padding: 0.25rem 0.125rem;
    border: 1px solid var(--border-medium);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    /* transition сократлен - используется из variables.css */
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.param-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* ПОДСВЕТКА ОШИБОК - используем специфичность вместо !important */
.parameters-table .param-input.param-error {
    border-color: var(--error);
    background-color: var(--error-bg);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.parameters-table .param-input.param-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.upload-owners .input-error {
    border-color: var(--error);
    background-color: var(--error-bg);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.upload-owners .input-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* КНОПКИ ДЕЙСТВИЙ С ПАРАМЕТРАМИ */
.remove-param-btn {
    background: var(--error);
    color: white;
    border: none;
    border-radius: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    margin: 0 auto;
    min-width: 1.75rem;
    flex-shrink: 0;
}

.remove-param-btn:hover {
    background: #dc2626;
}

/* Специальный стиль для кнопки удаления фото */
#removeImageFile.remove-param-btn {
    width: auto;
    height: auto;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

#removeImageFile.remove-param-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.add-param-container {
    text-align: center;
    margin-top: 1rem;
}

.add-param-container .btn {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--border-medium);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.add-param-container .btn:hover {
    opacity: 1;
    background: var(--bg-light);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

/* Стили перенесены выше к основным кнопкам */

/* СООБЩЕНИЯ */
.empty-params-message {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 2px dashed var(--border-medium);
}

/* РАЗДЕЛЕНИЕ БЛОКОВ - используют стили как form-section из других файлов */
.analysis-parameters,
.pet-info-section,
.email-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-parameters h4,
.pet-info-section h4,
.email-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* СЕТКА ДЛЯ ИНФОРМАЦИИ О ПИТОМЦЕ */
.pet-info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* ПОДСВЕТКА ОШИБОК В ЧЕКБОКСАХ */
.error-highlight {
    animation: errorPulse 0.6s ease-in-out 2;
    border-radius: var(--border-radius-sm);
}

@keyframes errorPulse {
    0% { 
        background-color: transparent; 
        transform: scale(1);
    }
    50% { 
        background-color: rgba(239, 68, 68, 0.1);
        transform: scale(1.02);
    }
    100% { 
        background-color: transparent; 
        transform: scale(1);
    }
}

.error-highlight label {
    animation: errorTextPulse 0.6s ease-in-out 2;
}

@keyframes errorTextPulse {
    0% { color: var(--text-primary); }
    50% { color: #dc2626; }
    100% { color: var(--text-primary); }
}

/* .loading-overlay {  // DEPRECATED: использовалось раньше, оставлено закомментированным для сравнения
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
} */

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* Используем спиннер из forms.css */
/* .loading-spinner { // DEPRECATED: заменено на .spinner из forms.css
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
} */

.loading-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* СТИЛИ ДЛЯ КАРТОЧЕК ВЫБОРА ПАЦИЕНТА */
.patient-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.patient-mode-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
}

.patient-mode-card:hover {
    border-color: var(--primary-blue);
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.patient-mode-card.selected {
    border-color: var(--primary-blue);
    background: #f8f9ff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.patient-mode-card.selected .card-icon {
    background: linear-gradient(135deg, #1d4ed8, #059669);
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.patient-mode-card.selected .card-content h3 {
    color: var(--primary-blue);
}

.card-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* СТИЛИ ДЛЯ ПОИСКА ПАЦИЕНТОВ */
.search-container {
    position: relative;
}

.search-container .settings-dropdown {
    left: 0;
    right: 0;
    width: auto;
    min-width: auto;
    max-height: 300px;
    margin-top: 0;
}

.selected-patient {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--primary-blue);
    margin-top: 15px;
}

.selected-patient h4 {
    margin: 0 0 10px 0;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
}

.patient-card-small {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.patient-card-small img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.patient-card-small-info h5 {
    margin: 0 0 2px 0;
    font-weight: 600;
}

.patient-card-small-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* АНИМАЦИИ ДЛЯ ФОРМ ВЕТЕРИНАРОВ (только для upload.php) */
.dashboard-page .form-section {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* @keyframes spin уже определён в forms.css - не дублируем */

/* Стили модальных окон с примерами загружаются из analysis-display.css */

/* ==================== ДЕСКТОПНЫЕ СТИЛИ ==================== */

/* УМЕНЬШЕНИЕ ЗАГОЛОВКОВ ШАГОВ в десктопной версии */
.step h2 {
    font-size: 1.5rem; /* было 2rem по умолчанию */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
/* ===================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ ВЛАДЕЛЬЦЕВ
   =================================== */

@media (max-width: 768px) {
    /* Контейнеры */
    .owners-container {
        margin: 0.5rem auto;
        padding: 0 0.75rem;
    }
    
    .owners-header {
        padding: 1.5rem 1rem;
    }
    
    .owners-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .owners-form {
        padding: 0.75rem 1rem 1.5rem;
    }
    
    /* Шаги */
    .step {
        padding: 1rem;
    }
    
    .analysis-parameters,
    .pet-info-section,
    .email-section {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Методы выбора */
    .method-choice {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .method-divider {
        margin: 0.5rem 0;
    }
    
    .method-btn {
        padding: 1rem;
        min-height: 60px; /* Достаточно для тапа */
        font-size: 0.9375rem;
    }
    
    .method-btn strong {
        font-size: 1rem; /* Чуть меньше на мобильных */
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .method-btn small {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    .upload-area {
        padding: 2rem 1rem;
        min-height: 180px;
    }
    
    /* Формы */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem; /* 16px для предотвращения зума в iOS */
        padding: 0.75rem;
        min-height: 48px; /* Минимум для тач-интерфейсов */
    }
    
    .field-hint {
        font-size: 0.8125rem;
    }
    
    /* Радио-кнопки и чекбоксы */
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .radio-option {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        min-height: 48px;
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }
    
    .radio-option span {
        flex: 1;
        line-height: 1.5;
    }
    
    /* Разворачивающийся блок дополнительных данных */
    .animal-additional-data {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }
    
    .animal-data-header {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        gap: 0.375rem;
    }
    
    .animal-data-header i {
        width: 18px;
        height: 18px;
    }
    
    .animal-data-hint {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Pet info grid */
    .pet-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Таблица параметров - КРИТИЧНО ДЛЯ МОБИЛЬНЫХ */
    .parameters-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem; /* Расширяем на всю ширину */
        padding: 0 1rem;
    }
    
    .parameters-table {
        min-width: 100%; /* Убираем фиксированный min-width */
        font-size: 0.875rem;
    }
    
    .parameters-table th,
    .parameters-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
    }
    
    .parameters-table th {
        position: sticky;
        top: 0;
        background: var(--bg-secondary);
        z-index: 1;
    }
    
    .param-input {
        padding: 0.5rem 0.375rem;
        font-size: 0.875rem;
        min-width: 70px;
        min-height: 40px; /* Достаточно для тапа */
    }
    
    .remove-param-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px; /* Минимум для тапа */
        font-size: 1rem;
        padding: 0;
    }
    
    /* Кнопки действий */
    .step-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .step-actions .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        min-height: 48px; /* Минимум для тапа */
        font-size: 0.9375rem; /* Чуть меньше для длинных текстов */
        justify-content: center;
        white-space: normal; /* Разрешаем перенос текста */
        line-height: 1.4;
        text-align: center;
    }
    
    .btn {
        min-height: 44px; /* Apple HIG минимум */
        padding: 0.75rem 1rem;
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
        text-align: center;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Номера шагов */
    .step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    /* Заголовки */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.375rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .step h2 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .step-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    
    /* Info boxes */
    .info-box,
    .value-explanation {
        padding: 1.25rem 1rem;
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .info-box ul,
    .value-explanation ul {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    /* Hero keywords - SEO подзаголовок */
    .hero-keywords {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0.75rem 0 1rem 0;
    }
    
    /* Example links */
    .example-link-container {
        margin: 0.5rem 0;
    }
    
    .example-link {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
        text-align: center;
        justify-content: center;
    }
    
    /* Price highlight */
    .price-highlight {
        font-size: 1.25rem;
    }
}

/* Дополнительная оптимизация для маленьких экранов */
@media (max-width: 480px) {
    .owners-container {
        padding: 0 0.5rem;
    }
    
    .owners-header h1 {
        font-size: 1.5rem;
    }
    
    .owners-form {
        padding: 1.25rem 0.75rem;
    }
    
    .step {
        padding: 1.25rem 0.75rem;
        scroll-margin-top: 80px; /* Меньший отступ для мобильных */
    }
    
    .analysis-parameters,
    .pet-info-section,
    .pet-type-section,
    .email-section {
        padding: 1rem 0.75rem;
    }
    
    /* Разворачивающийся блок на маленьких экранах */
    .animal-additional-data {
        margin: 1rem 0;
        padding: 0.625rem;
    }
    
    .animal-data-header {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.0625rem;
    }
    
    /* Таблица на очень маленьких экранах */
    .parameters-table {
        font-size: 0.8125rem;
    }
    
    .parameters-table th,
    .parameters-table td {
        padding: 0.375rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .param-input {
        font-size: 0.8125rem;
        min-width: 60px;
    }
    
    /* Кнопки на маленьких экранах */
    .step-actions .btn {
        font-size: 0.875rem; /* Еще меньше для очень узких экранов */
        padding: 0.75rem 0.75rem;
        line-height: 1.3;
    }
}

/* Оптимизация для горизонтальной ориентации телефонов */
@media (max-width: 768px) and (max-height: 450px) {
    .owners-header {
        padding: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВЕТЕРИНАРНОЙ СИСТЕМЫ */

/* Иконка метода ввода */
.method-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Кнопка удаления параметра в таблице */
.btn-delete-param {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-delete-param:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Действия таблицы */
.table-actions {
    margin-top: 1rem;
    text-align: center;
}

.table-actions .btn {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--border-medium);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.table-actions .btn:hover {
    opacity: 1;
    background: var(--bg-light);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

