/* Калькулятор плитки - стиль в духе smeta-calculator.css */

.tile-page {
    background-color: #f3f4f6;
    color: #111827;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Контент */

.tile-calculator {
    padding-bottom: 32px;
}

.tile-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-top: 8px;
}

/* Секции */

.tile-section + .tile-section {
    margin-top: 16px;
}

.tile-section__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111827;
}

/* Сетка полей */

.tile-grid {
    display: grid;
    gap: 8px;
}

@media (min-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Поля ввода */

.tile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tile-field--full {
    grid-column: 1 / -1;
}

.tile-field__label {
    font-size: 13px;
    color: #4b5563;
}

.tile-field__input {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    background-color: #ffffff;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.tile-field__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.tile-field__input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.tile-field__input--inline {
    display: inline-block;
    width: 80px;
    margin-left: 8px;
}

.tile-field__suffix {
    font-size: 13px;
    color: #6b7280;
    margin-left: 4px;
}

/* Радио кнопки */

.tile-radio-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tile-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.tile-radio input[type="radio"] {
    cursor: pointer;
}

/* Чекбоксы */

.tile-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
}

.tile-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Результаты */

.tile-section--results {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
}

.tile-results {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.tile-results__placeholder {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.tile-results__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tile-results__block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tile-results__block-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.tile-results__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #4b5563;
}

.tile-results__row--bold {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.tile-results__value {
    font-weight: 500;
    color: #111827;
}

.tile-results__value--primary {
    color: #2563eb;
    font-weight: 600;
}

/* Кнопки */

.tile-buttons {
    display: grid;
    gap: 8px;
}

@media (min-width: 768px) {
    .tile-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tile-btn {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.tile-btn--calculate {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    grid-column: 1 / -1;
}

.tile-btn--calculate:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tile-btn--secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.tile-btn--secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.tile-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tile-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Адаптивность для маленьких экранов */

@media (max-width: 767px) {
    .tile-card {
        padding: 12px;
    }

    .tile-section {
        padding: 12px;
        border-radius: 12px;
        background: #ffffff;
    }

    .tile-section + .tile-section {
        margin-top: 12px;
    }

    .tile-grid {
        gap: 10px;
    }

    .tile-buttons {
        gap: 10px;
    }
}

@media (min-width: 780px) {
    .tile-card {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
    }
}