/* Базовые стили страницы */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6; /* светло-серый фон, как в приложении */
    color: #111827;
}

/* Контейнер под мобильную ширину */

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
}

.back-arrow {
    font-size: 20px;
    line-height: 1;
    margin-top: -1px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Общие инпуты */

.form-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Карточка калькулятора */

.days-calculator {
    padding-top: 8px;
}

.days-calculator-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.days-calculator-columns {
    display: grid;
    gap: 16px;
}

/* На широком экране три колонки */

@media (min-width: 768px) {
    .container {
        max-width: 960px;
    }

    .days-calculator-columns {
        grid-template-columns: 1fr 1.2fr 1fr;
        align-items: flex-start;
    }
}

/* Панели дат и результатов */

.days-panel-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111827;
}

.days-date-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.days-date-input {
    width: 100%;
}

.days-date-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.days-date-label {
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px;
}

.days-date-extra {
    margin: 0;
    margin-top: 2px;
}

/* Центральная панель результатов */

.days-results-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.days-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.days-inline-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Блок результатов с голубым фоном */

.days-results-grid {
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.days-result-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.days-result-label {
    color: #374151;
}

/* Инпуты в центральном блоке */

.days-result-row--group {
    align-items: center;
}

.days-result-input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.days-result-input {
    width: 64px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 4px 6px;
    font-size: 13px;
    text-align: right;
    background-color: #ffffff;
}

.days-result-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.days-result-suffix {
    font-size: 12px;
    color: #4b5563;
}