* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ИСПРАВЛЕНО: больше нет жёсткого overflow: hidden */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== ЭКРАН АВТОРИЗАЦИИ ========== */
.auth-fullscreen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    font-size: 4rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-container h2 {
    font-size: 1.8rem;
    color: #1a2b3c;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.auth-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0;
}

.auth-container .form-group {
    margin-bottom: 25px;
}

.auth-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.phone-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    outline: none;
    font-size: 1.1rem;
}

.phone-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========== ПРОМЕЖУТОЧНОЕ ОКНО ========== */
.intermediate-fullscreen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-sizing: border-box;
}

.intermediate-container {
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.intermediate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}

.intermediate-container h2 {
    font-size: 1.8rem;
    color: #27ae60;
    margin-bottom: 10px;
}

.intermediate-message {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Карточка с информацией о пользователе */
.user-info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.info-value {
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
}

/* Стили для выбора адреса */
.address-select-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.address-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.address-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.address-select option {
    padding: 10px;
}

/* ========== ОСНОВНОЙ ЭКРАН ========== */
.content-wrapper {
    max-width: 1000px;
    width: 100%;
    min-height: 95vh;
    background: white;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    margin: 16px auto;
    box-sizing: border-box;
}

h2, h3 {
    color: #1a2b3c;
    font-weight: 600;
    flex-shrink: 0;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.4rem;
    margin: 8px 0 12px 0;
}

.form-group {
    margin-bottom: 12px;
    flex-shrink: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

/* Стили для кнопок с датами */
.dates-buttons {
    display: flex;
    gap: 12px;
    margin-top: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.date-btn {
    flex: 1;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.date-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.date-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
}

.date-btn:hover::before {
    opacity: 1;
}

.date-btn.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #764ba2;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

.date-btn.selected .date-icon,
.date-btn.selected .date-number,
.date-btn.selected .date-weekday {
    color: white;
}

.date-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.date-btn.selected .date-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.date-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.date-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1.2;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-weekday {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-weekday::first-letter {
    text-transform: uppercase;
}

.loading-dates {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px dashed #e1e8ed;
}

/* Стили для сетки товаров - ИСПРАВЛЕНО: таблица скроллится отдельно */
.products-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    overflow-y: auto;
    background: white;
    max-height: 400px;
}

.grid-header {
    padding: 14px 20px;
    background: #e9ecef;
    font-weight: 700;
    color: #1a2b3c;
    font-size: 1.1rem;
    border-bottom: 2px solid #ced4da;
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-header-name {
    border-right: 2px solid #ced4da;
}

.grid-row {
    display: contents;
}

.grid-cell-name {
    padding: 12px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #e1e8ed;
    border-right: 2px solid #e1e8ed;
    font-size: 1rem;
    line-height: 1.3;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.grid-cell-weight {
    padding: 8px 20px;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-row:last-child .grid-cell-name,
.grid-row:last-child .grid-cell-weight {
    border-bottom: none;
}

.weight-input {
    width: 100%;
    max-width: 120px;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 14px;
    font-size: 1rem;
    text-align: center;
    background: white;
    height: 44px;
    outline: none;
    transition: all 0.2s;
}

.weight-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Убираем стрелки у number input */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Общий вес */
.total-weight {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border-radius: 18px;
    color: #2c3e50;
    border: 2px solid #d4e4f5;
    flex-shrink: 0;
}

/* Кнопка отправки */
.primary-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 8px;
    display: block;
    height: 56px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.primary-btn:disabled::before {
    display: none;
}

/* Сообщения об ошибках */
.error-message {
    color: #e74c3c;
    font-size: 0.95rem;
    margin-top: 6px;
    min-height: 20px;
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

.header-with-logout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.header-with-logout h2 {
    margin-bottom: 0;
}

.logout-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.logout-btn:hover {
    background: #f0f0f0;
    color: #e74c3c;
    transform: scale(1.1);
}

/* Стиль для отображения адреса пользователя */
.user-address {
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    padding: 10px 16px;
    border-radius: 16px;
    margin: 8px 0 16px 0;
    font-size: 0.95rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cde5f5;
    flex-shrink: 0;
}

.address-icon {
    font-size: 1.2rem;
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.auth-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.auth-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(5px);
}

.intermediate-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    margin-top: 10px;
}

.intermediate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #219a52, #27ae60);
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.4);
}

/* ========== СТИЛИ ДЛЯ ВСПЛЫВАЮЩИХ УВЕДОМЛЕНИЙ (TOAST) - УВЕЛИЧЕННЫЕ ========== */
.toast-notification {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: white;
    border-radius: 60px;
    padding: 18px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.4s ease;
    min-width: 300px;
    max-width: 90vw;
    text-align: center;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.toast-icon {
    font-size: 2rem;
}

.toast-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.toast-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 6px solid #28a745;
}

.toast-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left: 6px solid #dc3545;
}

.toast-success .toast-message {
    color: #155724;
}

.toast-error .toast-message {
    color: #721c24;
}

.toast-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left: 6px solid #17a2b8;
}

.toast-info .toast-message {
    color: #0c5460;
}

/* ========== МОДАЛЬНОЕ ОКНО ДЛЯ КОММЕНТАРИЯ ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #e1e8ed;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1a2b3c;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #e74c3c;
}

.modal-body {
    padding: 24px;
}

.comment-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.comment-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
}

.modal-footer .primary-btn {
    margin: 0;
    flex: 1;
    height: 48px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.secondary-btn {
    flex: 1;
    padding: 0 16px;
    background: white;
    color: #7f8c8d;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.secondary-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

/* ========== ДЕСКТОП ========== */
@media (min-width: 1024px) {
    .content-wrapper {
        max-width: 1000px;
        padding: 20px 30px;
    }

    .date-btn {
        padding: 14px 20px;
    }

    .date-icon {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }

    .date-number {
        font-size: 1.3rem;
    }

    .date-weekday {
        font-size: 1rem;
    }

    .grid-cell-name {
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .weight-input {
        max-width: 130px;
    }
    
    .auth-container {
        padding: 50px 40px;
    }
}

/* ========== ПЛАНШЕТЫ ========== */
@media (min-width: 601px) and (max-width: 1023px) {
    .content-wrapper {
        max-width: 900px;
        padding: 16px 24px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 1.3rem;
        margin: 6px 0 10px;
    }

    .date-btn {
        padding: 10px 14px;
        gap: 10px;
    }

    .date-icon {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .date-number {
        font-size: 1.1rem;
    }

    .date-weekday {
        font-size: 0.85rem;
    }

    .grid-cell-name {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .weight-input {
        max-width: 100px;
        padding: 8px 10px;
        height: 40px;
    }

    .total-weight {
        font-size: 1.1rem;
        padding: 12px 18px;
    }

    .primary-btn {
        height: 52px;
        font-size: 1.1rem;
    }
    
    .user-address {
        padding: 8px 14px;
        font-size: 0.9rem;
        margin: 6px 0 12px;
    }
    
    .auth-container {
        padding: 30px 25px;
    }
    
    .intermediate-container {
        padding: 30px 25px;
    }
    
    .intermediate-icon {
        font-size: 4rem;
    }
    
    .intermediate-container h2 {
        font-size: 1.6rem;
    }
    
    .products-grid {
        max-height: 350px;
    }

    .toast-notification {
        padding: 16px 28px;
        min-width: 260px;
    }

    .toast-icon {
        font-size: 1.6rem;
    }

    .toast-message {
        font-size: 1rem;
    }
}

/* ========== МОБИЛЬНЫЕ УСТРОЙСТВА ========== */
@media (max-width: 600px) {
    .content-wrapper {
        min-height: 100vh;
        padding: 12px 16px;
        border-radius: 0;
        margin: 0;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    h3 {
        font-size: 1.2rem;
        margin: 4px 0 8px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .dates-buttons {
        gap: 6px;
    }

    .date-btn {
        padding: 8px 8px;
        gap: 6px;
        border-radius: 16px;
    }

    .date-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .date-number {
        font-size: 0.9rem;
    }

    .date-weekday {
        font-size: 0.7rem;
    }

    .products-grid {
        border-radius: 16px;
        max-height: 45vh;
    }

    .grid-header {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .grid-cell-name {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .grid-cell-weight {
        padding: 4px 8px;
    }

    .weight-input {
        max-width: 70px;
        padding: 6px 4px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .total-weight {
        font-size: 1rem;
        padding: 10px 14px;
        margin: 8px 0 6px;
    }

    .primary-btn {
        height: 48px;
        padding: 10px;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .error-message {
        font-size: 0.85rem;
        margin-top: 4px;
    }
    
    .auth-container {
        padding: 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .auth-header {
        margin-bottom: 25px;
    }
    
    .auth-logo {
        font-size: 3rem;
    }
    
    .auth-container h2 {
        font-size: 1.5rem;
    }
    
    .phone-input {
        padding: 12px 14px;
        font-size: 1rem;
    }
    
    .user-address {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 6px 0 12px;
    }
    
    .address-icon {
        font-size: 1rem;
    }
    
    .intermediate-container {
        padding: 25px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .intermediate-icon {
        font-size: 4rem;
    }
    
    .intermediate-container h2 {
        font-size: 1.5rem;
    }
    
    .user-info-card {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
    }
    
    .address-select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .comment-textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .modal-footer .primary-btn,
    .secondary-btn {
        height: 44px;
        font-size: 0.9rem;
        padding: 0 12px;
    }

    /* Мобильные уведомления */
    .toast-notification {
        bottom: 30px;
        padding: 14px 24px;
        border-radius: 50px;
        min-width: 260px;
    }

    .toast-icon {
        font-size: 1.5rem;
    }

    .toast-message {
        font-size: 1rem;
    }
}

/* ========== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ========== */
@media (max-width: 360px) {
    .content-wrapper {
        padding: 8px 12px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    h3 {
        font-size: 1.1rem;
        margin: 2px 0 4px;
    }

    .date-btn {
        padding: 6px 4px;
    }

    .date-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .date-number {
        font-size: 0.8rem;
    }

    .date-weekday {
        font-size: 0.6rem;
    }

    .grid-header {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .grid-cell-name {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .weight-input {
        max-width: 60px;
        padding: 4px 2px;
        height: 32px;
        font-size: 0.8rem;
    }

    .total-weight {
        font-size: 0.95rem;
        padding: 8px 12px;
        margin: 6px 0 4px;
    }

    .primary-btn {
        height: 44px;
        font-size: 0.95rem;
    }
    
    .auth-container h2 {
        font-size: 1.3rem;
    }
    
    .auth-logo {
        font-size: 2.5rem;
    }
    
    .intermediate-icon {
        font-size: 3rem;
    }
    
    .intermediate-container h2 {
        font-size: 1.3rem;
    }

    .modal-footer .primary-btn,
    .secondary-btn {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 8px;
    }
    
    .products-grid {
        max-height: 40vh;
    }

    .toast-notification {
        bottom: 20px;
        padding: 12px 20px;
        min-width: 220px;
    }

    .toast-icon {
        font-size: 1.3rem;
    }

    .toast-message {
        font-size: 0.9rem;
    }
}