/**
 * heat-stress.css
 * Версия для калькулятора теплового стресса у птицы.
 * Стили ограничены классами hs-*, чтобы калькулятор можно было вставить на существующую страницу.
 */

:root {
    --hs-green: #278b45;
    --hs-green-dark: #14672e;
    --hs-green-soft: #eaf6ee;
    --hs-green-light: #54ae49;
    --hs-text: #27292d;
    --hs-muted: #6f766f;
    --hs-border: #e4e6e0;
    --hs-bg: #f6f6f1;
    --hs-card: #ffffff;
    --hs-warm: #f4efe2;
    --hs-red: #de3434;
    --hs-red-soft: #ffe7e7;
    --hs-yellow: #f3ca3e;
    --hs-radius-xl: 28px;
    --hs-radius-lg: 22px;
    --hs-radius-md: 16px;
    --hs-shadow: 0 18px 45px rgba(34, 45, 37, .10);
}

.hs-page {
    background:
        radial-gradient(circle at 20% 0%, rgba(248, 225, 166, .25), transparent 35%),
        var(--hs-bg);
    padding: 36px 0 60px;
    color: var(--hs-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hs-app,
.hs-app * {
    box-sizing: border-box;
}

.hs-app {
    max-width: 1240px;
    margin: 0 auto;
}

.hs-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--hs-green);
    background: var(--hs-green-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.hs-muted {
    color: var(--hs-muted);
}

.hs-hero {
    min-height: 420px;
    border: 1px solid rgba(39, 139, 69, .10);
    border-radius: var(--hs-radius-xl);
    overflow: hidden;
    box-shadow: var(--hs-shadow);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 44%, rgba(255,255,255,.25) 68%),
        var(--hs-card);
}

.hs-hero__content {
    padding: 58px 58px 50px;
    position: relative;
    z-index: 2;
}

.hs-hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--hs-text);
    font-weight: 850;
}

.hs-lead {
    max-width: 630px;
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.3;
    color: var(--hs-text);
    font-weight: 500;
}

.hs-hero .hs-muted {
    max-width: 650px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.hs-hero__image {
    min-height: 420px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,0)),
        linear-gradient(180deg, rgba(246, 230, 195, .2), rgba(0,0,0,.18)),
        url("../img/poultry-heat.jpg");
    background-size: cover;
    background-position: center;
}

/* Если фото ещё не положили в assets/img/poultry-heat.jpg, блок выглядит как мягкий градиент. */
.hs-hero__image:empty {
    background-color: #d9d0b7;
}

.hs-benefits {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin: 34px 0 32px;
    flex-wrap: wrap;
}

.hs-benefit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: var(--hs-text);
    font-size: 15px;
    font-weight: 700;
}

.hs-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--hs-green);
    background: var(--hs-green-soft);
    font-size: 22px;
}

.hs-hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hs-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hs-muted);
    font-size: 13px;
}

.hs-disclaimer::before {
    content: "◎";
    color: var(--hs-muted);
}

/* Buttons */
.hs-btn {
    appearance: none;
    border: 0;
    min-height: 48px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.hs-btn:hover {
    transform: translateY(-1px);
}

.hs-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.hs-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--hs-green-dark), var(--hs-green-light));
    box-shadow: 0 12px 22px rgba(39, 139, 69, .23);
}

.hs-btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 30px rgba(39, 139, 69, .3);
}

.hs-btn-outline {
    background: #fff;
    color: var(--hs-text);
    border: 1px solid #d8ded6;
}

.hs-btn-outline:hover {
    border-color: var(--hs-green);
    color: var(--hs-green);
}

.hs-btn-block {
    width: 100%;
    margin-top: 12px;
}

.hs-btn-link,
.hs-product-link {
    background: transparent;
    border: 0;
    color: var(--hs-green);
    font-weight: 800;
    cursor: pointer;
}

/* Test card */
.hs-test-card {
    margin-top: 28px;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-xl);
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    box-shadow: var(--hs-shadow);
    background: var(--hs-card);
}

.hs-progress-head {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 18px;
    color: var(--hs-text);
    font-weight: 750;
}

.hs-progress-head b {
    font-size: 13px;
    color: var(--hs-muted);
}

.hs-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0ec;
}

.hs-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hs-green-dark), var(--hs-green-light));
}

.hs-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 28px;
}

.hs-tab {
    min-height: 56px;
    border-radius: 13px;
    background: #f0f1ef;
    color: #656b64;
    font-weight: 750;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hs-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--hs-green-dark), var(--hs-green-light));
}

.hs-question-form h2 {
    margin: 0 0 24px;
    color: var(--hs-text);
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 850;
}

.hs-options {
    display: grid;
    gap: 13px;
}

.hs-option {
    min-height: 68px;
    padding: 14px 18px;
    border: 1px solid var(--hs-border);
    border-radius: 13px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hs-option:hover {
    border-color: rgba(39, 139, 69, .5);
    box-shadow: 0 10px 25px rgba(39, 139, 69, .08);
}

.hs-option input {
    display: none;
}

.hs-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #cfd4cf;
    border-radius: 50%;
    position: relative;
}

.hs-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hs-green);
    position: absolute;
    top: 5px;
    left: 5px;
    transform: scale(0);
    transition: transform .16s ease;
}

.hs-option.is-selected {
    border-color: var(--hs-green);
    background: #fbfffc;
    box-shadow: 0 10px 24px rgba(39, 139, 69, .09);
}

.hs-option.is-selected .hs-radio {
    border-color: var(--hs-green);
}

.hs-option.is-selected .hs-radio::after {
    transform: scale(1);
}

.hs-option__text {
    font-size: 17px;
    color: var(--hs-text);
    font-weight: 650;
}

.hs-option__points {
    white-space: nowrap;
    color: var(--hs-text);
    font-weight: 800;
}

.hs-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.hs-form-error {
    margin-top: 14px;
    color: var(--hs-red);
    font-size: 14px;
    font-weight: 700;
}

/* Side score card */
.hs-score-card {
    border-radius: var(--hs-radius-lg);
    padding: 30px;
    background: linear-gradient(180deg, #f7f9f5, #f2f4ef);
}

.hs-score-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.hs-score-card strong {
    display: block;
    margin-top: 7px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.04em;
}

.hs-gauge {
    color: var(--hs-green);
    font-size: 52px;
    line-height: 1;
}

.hs-score-card p {
    margin: 16px 0 0;
    color: var(--hs-muted);
    line-height: 1.5;
}

.hs-note {
    margin-top: 26px;
    padding: 22px;
    border-radius: var(--hs-radius-md);
    background: linear-gradient(180deg, #fbf6e6, #f3e7cb);
    color: #555044;
    font-size: 14px;
    line-height: 1.55;
}

.hs-note b {
    display: block;
    color: var(--hs-text);
    margin-bottom: 6px;
}

.hs-score-photo {
    margin-top: 0;
    min-height: 150px;
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,.08)),
        url("../img/poultry-barn.jpg");
    background-size: cover;
    background-position: center;
}

/* Result */
.hs-result-card {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-xl);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, .78fr) 290px;
    gap: 26px;
    background: #fff;
    box-shadow: var(--hs-shadow);
}

.hs-result-summary h2 {
    margin: 8px 0 12px;
    font-size: 54px;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--hs-text);
    font-weight: 900;
}

.hs-diagnosis {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--hs-red-soft);
    color: var(--hs-red);
    font-weight: 900;
    font-size: 20px;
}

.hs-diagnosis span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
}

.hs-result-none .hs-diagnosis,
.hs-result-low .hs-diagnosis {
    color: var(--hs-green);
    background: var(--hs-green-soft);
}

.hs-result-moderate .hs-diagnosis {
    color: #b98200;
    background: #fff3cd;
}

.hs-result-extreme .hs-diagnosis {
    color: #a80000;
    background: #ffe1e1;
}

.hs-scale {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.hs-scale__item {
    position: relative;
    padding-top: 18px;
}

.hs-scale__item span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    background: #d7ead7;
}

.hs-scale__item:nth-child(1) span { background: #7cc957; border-radius: 999px 0 0 999px; }
.hs-scale__item:nth-child(2) span { background: var(--hs-yellow); }
.hs-scale__item:nth-child(3) span { background: #ee5656; }
.hs-scale__item:nth-child(4) span { background: #a4161a; border-radius: 0 999px 999px 0; }

.hs-scale__item.is-active::after {
    content: "";
    position: absolute;
    top: -8px;
    left: calc(50% - 12px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--hs-red);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.hs-result-none .hs-scale__item.is-active::after,
.hs-result-low .hs-scale__item.is-active::after { border-color: var(--hs-green); }
.hs-result-moderate .hs-scale__item.is-active::after { border-color: #d8a500; }
.hs-result-extreme .hs-scale__item.is-active::after { border-color: #a4161a; }

.hs-scale__item b {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--hs-text);
}

.hs-scale__item small {
    display: block;
    color: var(--hs-muted);
    font-size: 12px;
}

.hs-result-summary p {
    line-height: 1.65;
    color: #444946;
    font-size: 16px;
}

.hs-warning-box {
    margin-top: 22px;
    padding: 22px;
    border-radius: var(--hs-radius-md);
    background: linear-gradient(135deg, #eff7e5, #f8f3df);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
}

.hs-warning-box span {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hs-green);
    background: #fff;
    font-size: 26px;
}

.hs-warning-box p {
    margin: 0;
    font-size: 14px;
}

.hs-recommend-card,
.hs-product-card {
    border-radius: var(--hs-radius-lg);
    padding: 28px;
    background: linear-gradient(180deg, #f6f9f4, #eef3ed);
}

.hs-product-card {
    background: #fff;
    border: 1px solid var(--hs-border);
}

.hs-recommend-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hs-recommend-title span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hs-green-soft);
    color: var(--hs-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.hs-recommend-title h3,
.hs-product-card h3 {
    margin: 0;
    color: var(--hs-text);
    font-size: 21px;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.hs-recommend-card p {
    color: #4e554f;
    line-height: 1.58;
}

.hs-check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 12px;
}

.hs-check-list li {
    position: relative;
    padding-left: 28px;
    color: #454a45;
    line-height: 1.45;
    font-size: 14px;
}

.hs-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: #fff;
    background: var(--hs-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.hs-soft-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--hs-muted);
}

.hs-product-icons {
    margin: 12px 0 18px;
    color: var(--hs-green);
    letter-spacing: .35em;
}

.hs-product-image {
    min-height: 190px;
    border-radius: 18px;
    margin: 0 0 22px;
    background:
        linear-gradient(150deg, rgba(255,255,255,.6), rgba(39,139,69,.08)),
        url("https://kombikorm.ru/userfls/shop/medium/707_betamaks-s1.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #edf0ec;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
}

.hs-product-image span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: var(--hs-green);
    font-weight: 900;
    font-size: 13px;
    line-height: 1.2;
}

.hs-final-cta {
    margin-top: 28px;
    border-radius: var(--hs-radius-lg);
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        linear-gradient(90deg, rgba(250,247,232,.95), rgba(250,247,232,.8), rgba(250,247,232,.25)),
        url("../img/poultry-heat.jpg");
    background-size: cover;
    background-position: center right;
    border: 1px solid rgba(39, 139, 69, .12);
}

.hs-final-cta strong {
    display: block;
    font-size: 24px;
    color: var(--hs-text);
    line-height: 1.25;
}

.hs-final-cta p {
    margin: 7px 0 0;
    color: var(--hs-muted);
}

.hs-final-cta .hs-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 14px 28px;
}

.hs-restart-wrap {
    text-align: center;
    margin-top: 18px;
}

/* Mobile */
@media (max-width: 1100px) {
    .hs-hero,
    .hs-test-card,
    .hs-result-card {
        grid-template-columns: 1fr;
    }

    .hs-hero__image {
        min-height: 280px;
        order: -1;
    }

    .hs-result-card {
        gap: 18px;
    }
}


@media (max-width: 980px) {
    .hs-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .hs-page {
        padding: 18px 0 36px;
    }

    .hs-hero__content,
    .hs-test-card,
    .hs-result-card {
        padding: 22px;
        border-radius: 22px;
    }

    .hs-hero {
        border-radius: 22px;
    }

    .hs-lead {
        font-size: 18px;
    }

    .hs-benefits,
    .hs-hero__actions,
    .hs-form-actions,
    .hs-final-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hs-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hs-progress-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hs-option {
        grid-template-columns: 24px 1fr;
    }

    .hs-option__points {
        grid-column: 2;
    }

    .hs-scale {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hs-scale__item span {
        border-radius: 999px !important;
    }

    .hs-final-cta strong {
        font-size: 20px;
    }
}
