/* Калькулятор затирки для швов */
.tgr-app {
    max-width: 560px;
}

.tgr-app [hidden] {
    display: none !important;
}

.tgr-intro-row {
    display: block;
}

.tgr-intro-inputs {
    display: block;
}

.tgr-intro-visual {
    display: none;
}

.tgr-section {
    margin-bottom: 22px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.tgr-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.tgr-icon {
    font-size: 1.15em;
    line-height: 1;
}

.tgr-tile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    margin-top: 4px;
}

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

.tgr-tile-grid .calc-field {
    margin-bottom: 0 !important;
    min-width: 0;
}

.tgr-tile-fields--locked input {
    background: #f5f5f7;
    color: #6e6e73;
}

.tgr-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
}

.tgr-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tgr-range-row input[type="range"] {
    flex: 1;
    min-width: 0;
}

.tgr-range-row output {
    min-width: 42px;
    font-weight: 600;
    font-size: 14px;
    color: #1d1d1f;
}

.tgr-result-sheet {
    padding: 4px 0 8px;
}

.tgr-sheet-meta {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.tgr-result-hero {
    text-align: center;
    margin-bottom: 16px;
}

.tgr-hero-sub {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6e6e73;
}

.tgr-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.tgr-summary-col {
    padding: 12px 14px;
    background: #f5f5f7;
    border-radius: 14px;
}

.tgr-summary-col--highlight {
    background: linear-gradient(165deg, #fff8f5 0%, #fff3eb 100%);
    border: 1px solid #ffe4d6;
}

.tgr-summary-label {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.tgr-summary-big {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.tgr-summary-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.35;
}

.tgr-warnings {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tgr-warnings li {
    padding: 10px 12px;
    background: #fff8e6;
    border: 1px solid #ffe08a;
    border-radius: 10px;
    font-size: 13px;
    color: #6b4e00;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tgr-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.tgr-action {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.tgr-action:hover {
    border-color: #c7c7cc;
    background: #fafafa;
}

.tgr-visual-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
}

.tgr-visual-lead {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
}

.tgr-3d-container {
    width: 100%;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f8;
}

.tgr-visual-caption {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: #6e6e73;
}

.tgr-print-body h1 {
    font-size: 18px;
    margin: 0 0 16px;
}

@media (min-width: 900px) {
    .tgr-app {
        max-width: 920px;
    }

    .tgr-intro-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
        gap: 16px;
        align-items: start;
        margin-bottom: 22px;
    }

    .tgr-intro-inputs .tgr-section {
        margin-bottom: 16px;
    }

    .tgr-intro-inputs .tgr-section:last-child {
        margin-bottom: 0;
    }

    .tgr-intro-visual {
        display: block;
        position: sticky;
        top: 16px;
        padding: 16px;
        background: #fff;
        border: 1px solid #e5e5ea;
        border-radius: 18px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    }

    .tgr-3d-container {
        min-height: 300px;
    }
}

@media (max-width: 400px) {
    .tgr-summary {
        grid-template-columns: 1fr;
    }
}
