* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3390ec;
    --primary-dark: #2c7fd1;
    --success: #24a148;
    --warning: #f5a623;
    --danger: #d9534f;
    --gray-light: #f5f6f8;
    --gray: #e1e3e6;
    --gray-dark: #6b7684;
    --text: #1f232b;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-light);
    color: var(--text);
    padding: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.header .subtitle {
    color: var(--gray-dark);
    font-size: 14px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: white;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 144, 236, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #1e8a3d;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 400px) {
    .parts-grid {
        grid-template-columns: 1fr;
    }
}

.part-item {
    padding: 14px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.part-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.part-item.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.part-item .icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.part-item .name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.damage-option {
    padding: 14px 16px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.damage-option:hover {
    border-color: var(--primary);
    transform: translateX(2px);
}

.damage-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
}

.damage-option .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.damage-option .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.damage-option .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.damage-option .name {
    font-weight: 600;
    font-size: 14px;
}

.damage-option .description {
    font-size: 12px;
    color: var(--gray-dark);
}

.damage-option.selected .description {
    color: var(--primary-dark);
}

.damage-option .price {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.damage-option.selected .price {
    color: var(--primary-dark);
}

.icon-paint { background: #ffeaa7; }
.icon-dent { background: #fab1a0; }
.icon-replacement { background: #a29bfe; color: white; }
.icon-polish { background: #81ecec; }
.icon-crack { background: #ff7675; color: white; }

.summary {
    background: var(--gray-light);
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
}

.summary h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-total {
    border-top: 2px solid var(--gray);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--success);
}

/* ===== Поле телефона (input-группа) ===== */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 144, 236, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--gray-dark);
    font-size: 16px;
    font-weight: 500;
    background: var(--gray-light);
    border-right: 2px solid var(--gray);
    flex-shrink: 0;
}

.phone-input-wrapper input {
    flex: 1;
    min-width: 0;
    border: none !important;
    margin: 0 !important;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
    border-radius: 0;
}

.phone-input-wrapper input:focus {
    outline: none;
    box-shadow: none !important;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-dark);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.car-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.success-screen {
    text-align: center;
    padding: 30px 20px;
}

.success-screen .icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: pop 0.5s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-screen h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.success-screen .info {
    background: var(--gray-light);
    padding: 16px;
    border-radius: var(--radius);
    margin: 20px 0;
    text-align: left;
}

.success-screen .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.success-screen .info-row:last-child {
    margin-bottom: 0;
}

.success-screen .info-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    padding-top: 12px;
    border-top: 2px solid var(--gray);
    margin-top: 12px;
}

/* ===== Мультивыбор работ ===== */
.multi-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-dark);
    margin-left: 6px;
}

.summary-part {
    margin-bottom: 14px;
}

.summary-part-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

/* ===== 3D-модель ===== */
.car3d-wrapper {
    position: relative;
    margin-bottom: 12px;
}

#car3d {
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, #eaf3fb 0%, #d7e6f5 100%);
    border-radius: var(--radius);
    overflow: hidden;
}

#car3d canvas { display: block; }

.part-tooltip {
    position: absolute;
    display: none;
    pointer-events: none;
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 5;
    white-space: nowrap;
}

.car3d-controls {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.car3d-hint {
    text-align: center;
    color: var(--gray-dark);
    font-size: 12px;
    margin: 8px 0 14px;
}

/* ===== Чипы выбранных деталей ===== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 26px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f3ff;
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.chip-remove {
    border: none;
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.chips-empty { color: var(--gray-dark); font-size: 13px; }

/* ===== Загрузка фото ===== */
.photos-section {
    background: var(--gray-light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.photos-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
}

.photos-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.upload-btn-label {
    cursor: pointer;
    margin: 0 !important;
    width: auto !important;
    display: inline-flex;
}

.photos-hint {
    color: var(--gray-dark);
    font-size: 13px;
}

.photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--gray);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    text-align: center;
}

.photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* ===== Комбобокс с поиском ===== */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.combobox { position: relative; margin-bottom: 16px; }

.combobox .combo-input { margin-bottom: 0; }

.combo-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-top: 1px solid var(--gray);
    border-radius: 0 0 12px 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}

.combobox.open .combo-list { display: block; }

.combo-item {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 15px;
}

.combo-item:hover,
.combo-item.active { background: #e8f3ff; }

.combo-item b { color: var(--primary); }

/* ===== Карточки деталей (шаг 3) ===== */
.damage-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.damage-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
    border-bottom: 1px solid #e5e5e5;
}

.damage-card-header h3 {
    margin: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #2563eb);
}

.damage-card-header .multi-hint {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.damage-options {
    padding: 8px 0;
}

.damage-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.damage-option:hover {
    background: #f9f9f9;
}

.damage-option.selected {
    background: #e8f3ff;
    border-color: var(--primary, #2563eb);
}

.damage-option .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.damage-option .left .icon {
    font-size: 22px;
    flex-shrink: 0;
}

.damage-option .left .info {
    flex: 1;
    min-width: 0;
}

.damage-option .left .info .name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.damage-option .left .info .description {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}

/* Цена в "таблетке" */
.damage-option .price {
    flex-shrink: 1;  /* ← БЫЛО 0, СТАЛО 1 — разрешаем сжатие */
    white-space: normal;  /* ← БЫЛО nowrap, СТАЛО normal — разрешаем перенос */
    font-weight: 700;
    font-size: 15px;
    color: var(--primary, #2563eb);
    background: #f0f7ff;
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    max-width: 45%;  /* ← НОВОЕ: ограничиваем ширину */
    text-align: right;
    word-break: break-word;
}

.damage-option .price .price-amount {
    font-variant-numeric: tabular-nums;
}

.damage-option .price .price-currency {
    font-size: 14px;
    opacity: 0.8;
}

/* Адаптив для узких экранов */
@media (max-width: 420px) {
    .damage-card-header h3 {
        font-size: 15px;
    }

    .damage-option {
        gap: 10px;
        padding: 10px 14px;
    }

    .damage-option .left .info .name {
        font-size: 14px;
    }

    .damage-option .price {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* ===== Компактная шапка: лого слева + текст ===== */
.hero-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    text-align: left;
}

.app-logo {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.hero-text {
    min-width: 0;
}

.hero-text h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    text-align: left;
    border-bottom: none;
}

.hero-text .subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    text-align: left;
    border-bottom: none;
}

@media (max-width: 480px) {
    .hero-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .app-logo {
        width: 60px;    /* было 52px */
        height: 60px;   /* было 52px */
        border-radius: 10px;
        padding: 3px;
    }

    .hero-text h1 {
        font-size: 16px;
    }

    .hero-text .subtitle {
        font-size: 12px;
    }
}

/* ===== Дисклеймер о точной стоимости ===== */
.disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 12px 14px;
    background: #f5f7fa;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
}

.disclaimer-icon {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1.5;
}

.disclaimer p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
}

.disclaimer-small {
    margin: 14px auto 0;
    max-width: 340px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

/* ===== Галочки дефектов (шаг 3) ===== */
.damage-option {
    flex-wrap: wrap;
}

.defects-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.defect-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}

.defect-check input {
    accent-color: #2563eb;
    margin: 0;
}

.defect-check:has(input:checked) {
    background: #e8f0fe;
    border-color: #2563eb;
    color: #1e3a8a;
    font-weight: 600;
}

.defects-tags {
    font-style: normal;
    color: #64748b;
    font-size: 12px;
}

/* ===== Группы модификаторов: компактно ===== */
.mods-wrap {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.mods-group + .mods-group {
    margin-top: 10px;
}

.mods-group-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}

/* Чипсы внутри групп — без лишних отступов и линий */
.mods-group .defects-block {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 6px;
}

.mods-group .defect-check {
    padding: 5px 10px;
    font-size: 12px;
}

/* Плашка предупреждения */
.mods-warn {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3px solid #f97316;
    border-radius: 10px;
    font-size: 12.5px;
    color: #9a3412;
    line-height: 1.4;
}

.chip-mult {
    color: #2563eb;
    font-weight: 700;
    margin-left: 2px;
}

.req-mark {
    color: #d93025;
}

.mods-required-missing .mods-group-label {
    color: #d93025;
}

.mods-required-missing .defects-block {
    outline: 1.5px dashed #d93025;
    outline-offset: 5px;
    border-radius: 14px;
}

/* ===== Компактный тумблер «Полный окрас» под 3D-моделью ===== */
.fullpaint-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 10px auto 4px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.fullpaint-toggle input { display: none; }

.toggle-slider {
    width: 34px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 10px;
    position: relative;
    transition: 0.2s;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fullpaint-toggle input:checked + .toggle-slider { background: #2563eb; }
.fullpaint-toggle input:checked + .toggle-slider::after { transform: translateX(14px); }

.toggle-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Активное состояние — пилюля подсвечивается */
.fullpaint-toggle:has(input:checked) {
    border-color: #2563eb;
    background: #e8f0fe;
}

.fullpaint-toggle:has(input:checked) .toggle-text {
    color: #1e3a8a;
    font-weight: 600;
}

/* ===== Чекбокс "Снятие/установка" ===== */
.remove-install-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.remove-install-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    user-select: none;
}

.remove-install-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb;
}

.remove-install-check:hover {
    color: #1e293b;
}

/* Уменьшаем логотип на мобильных устройствах */
@media (max-width: 480px) {
    .app-logo,
    .logo,
    .header-logo,
    img[src*="logo"] {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
}

/* ===== ЧИСТЫЙ АДАПТИВ ДЛЯ КАРТОЧЕК РАБОТ ===== */

/* На мобильных — разрешаем перенос цены */
@media (max-width: 480px) {
    .damage-option {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }

    .damage-option .left {
        flex: 1;
        min-width: 0;
        padding-right: 4px;
    }

    .damage-option .price {
        flex-shrink: 0;
        max-width: 48%;
        font-size: 13px;
        padding: 6px 10px;
        white-space: normal;
        word-break: break-word;
        text-align: right;
        align-self: flex-start;
        line-height: 1.3;
    }

    .damage-option .price-amount {
        font-size: 12px;
    }

    .damage-option .left .info .name {
        font-size: 14px;
    }

    .damage-option .left .info .description {
        font-size: 12px;
    }
}

/* На очень узких экранах — цена на отдельной строке */
@media (max-width: 360px) {
    .damage-option {
        flex-direction: column;
        align-items: stretch;
    }

    .damage-option .price {
        max-width: 100%;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}

/* Итоговые суммы на шаге 4 и экране успеха */
@media (max-width: 480px) {
    .summary-item,
    .success-screen .info-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .summary-item > span:last-child,
    .success-screen .info-row > span:last-child,
    .success-screen .info-row > b {
        flex-shrink: 0;
        word-break: break-word;
        text-align: right;
    }

    .summary-item.summary-total,
    .success-screen .info-row.total {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .summary-item.summary-total > span:last-child,
    .success-screen .info-row.total > b {
        margin-left: 0;
        font-size: 15px;
        word-break: break-word;
    }
}

/* ===== Фикс поля даты на мобильных ===== */
@media (max-width: 480px) {
    #dateInput,
    input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 14px !important;
        font-size: 16px !important; /* iOS не зумит при фокусе */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    /* Убираем нативную иконку календаря на iOS */
    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0.6;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
}