.pit-poz {
    --pit-ink: #16332c;
    --pit-muted: #5d6e69;
    --pit-bg: #f5faf8;
    --pit-card: #ffffff;
    --pit-line: #dbe8e3;
    --pit-green: #1f8a5b;
    --pit-yellow: #d59c17;
    --pit-orange: #d86b2d;
    --pit-red: #be3535;
    color: var(--pit-ink);
    font-family: inherit;
    max-width: 1180px;
    margin: 0 auto;
}

.pit-poz *,
.pit-poz *::before,
.pit-poz *::after {
    box-sizing: border-box;
}

.pit-poz h1,
.pit-poz h2,
.pit-poz h3,
.pit-poz p {
    margin-top: 0;
}

.pit-poz__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--pit-line);
    border-radius: 28px;
    background: linear-gradient(135deg, #f8fcfa 0%, #e9f5f0 100%);
    box-shadow: 0 18px 50px rgba(22, 51, 44, 0.08);
}

.pit-poz__hero h1 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.pit-poz__hero-copy > p:last-child {
    color: var(--pit-muted);
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 760px;
}

.pit-poz__eyebrow {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--pit-green);
}

.pit-poz__today {
    min-height: 190px;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(22, 51, 44, 0.12);
}

.pit-poz__today span,
.pit-poz__today small {
    color: var(--pit-muted);
}

.pit-poz__today strong {
    font-size: 20px;
    margin: 8px 0 4px;
}

.pit-poz__today b {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 10px;
}

.pit-status-low .pit-poz__today b,
.pit-status-low.pit-poz__best-score strong,
.pit-status-low .pit-poz__day-head b { color: var(--pit-green); }
.pit-status-moderate .pit-poz__today b,
.pit-status-moderate.pit-poz__best-score strong,
.pit-status-moderate .pit-poz__day-head b { color: var(--pit-yellow); }
.pit-status-high .pit-poz__today b,
.pit-status-high.pit-poz__best-score strong,
.pit-status-high .pit-poz__day-head b { color: var(--pit-orange); }
.pit-status-very-high .pit-poz__today b,
.pit-status-very-high.pit-poz__best-score strong,
.pit-status-very-high .pit-poz__day-head b { color: var(--pit-red); }

.pit-poz__disclaimer {
    margin: 18px 0 28px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f2f6f4;
    color: var(--pit-muted);
    font-size: 14px;
    line-height: 1.55;
}

.pit-poz__disclaimer strong {
    color: var(--pit-ink);
}

.pit-poz__emergency {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 22px;
    background: #fff4f4;
    border: 1px solid #f0caca;
    margin-bottom: 28px;
}

.pit-poz__emergency h2 {
    margin-bottom: 10px;
    font-size: clamp(23px, 3vw, 32px);
}

.pit-poz__emergency p:last-child {
    margin-bottom: 0;
    color: #694b4b;
    line-height: 1.6;
}

.pit-poz__emergency-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pit-poz__emergency-actions a {
    display: inline-flex;
    justify-content: center;
    min-width: 130px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--pit-red);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
}

.pit-poz__best {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
    padding: 26px 28px;
    border-radius: 22px;
    background: #ecf8f2;
    border: 1px solid #bfdfd0;
    margin-bottom: 34px;
}

.pit-poz__best h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 8px;
}

.pit-poz__best p:last-child {
    color: var(--pit-muted);
    margin-bottom: 0;
}

.pit-poz__best-score {
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--pit-line);
}

.pit-poz__best-score strong,
.pit-poz__best-score span {
    display: block;
}

.pit-poz__best-score strong {
    font-size: 32px;
    margin-bottom: 6px;
}

.pit-poz__section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.pit-poz__section-heading h2 {
    font-size: clamp(27px, 4vw, 40px);
    margin-bottom: 0;
}

.pit-poz__section-heading > p {
    max-width: 430px;
    color: var(--pit-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.pit-poz__forecast {
    margin: 44px 0;
}

.pit-poz__forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pit-poz__day {
    min-width: 160px;
    min-height: 330px;
    padding: 18px;
    border-radius: 18px;
    background: var(--pit-card);
    border: 1px solid var(--pit-line);
    box-shadow: 0 10px 26px rgba(22, 51, 44, 0.06);
    position: relative;
}

.pit-poz__day.is-best {
    border: 2px solid var(--pit-green);
    transform: translateY(-3px);
}

.pit-poz__day-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.pit-poz__day-head span,
.pit-poz__day-head strong {
    display: block;
}

.pit-poz__day-head span {
    font-weight: 800;
}

.pit-poz__day-head strong {
    color: var(--pit-muted);
    font-size: 14px;
    margin-top: 3px;
}

.pit-poz__day-head b {
    font-size: 28px;
}

.pit-poz__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dff3e9;
    color: #146a43;
    font-size: 11px;
    font-weight: 800;
}

.pit-poz__badge--secondary {
    background: #eef4f1;
    color: var(--pit-muted);
}

.pit-poz__badge--closed {
    background: #e8eef9;
    color: #3d5e91;
}

.pit-poz__day h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.pit-poz__confidence,
.pit-poz__weather {
    font-size: 12px;
    color: var(--pit-muted);
}

.pit-poz__day ul {
    padding-left: 18px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.45;
}

.pit-poz__day li + li {
    margin-top: 6px;
}

.pit-poz__weather {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid var(--pit-line);
}

.pit-poz__nisoz {
    margin-top: 54px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 26px;
    background: var(--pit-bg);
    border: 1px solid var(--pit-line);
}

.pit-poz__open-state {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7e6;
    border: 1px solid #efd7a0;
}

.pit-poz__open-state.is-open {
    background: #e9f7f0;
    border-color: #b9dfcb;
}

.pit-poz__open-state strong,
.pit-poz__open-state span {
    display: block;
}

.pit-poz__open-state span {
    margin-top: 4px;
    font-size: 13px;
    color: var(--pit-muted);
}

.pit-poz__nisoz-note {
    color: var(--pit-muted);
    line-height: 1.55;
    margin-bottom: 22px;
}

.pit-poz__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pit-poz__point {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--pit-line);
}

.pit-poz__point.is-children {
    border-color: #b8d0f0;
    background: #f7faff;
}

.pit-poz__point-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f3ef;
    color: var(--pit-green);
    font-weight: 900;
}

.pit-poz__point h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.pit-poz__point p {
    margin-bottom: 5px;
}

.pit-poz__point small {
    display: block;
    color: var(--pit-muted);
}

.pit-poz__children-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e3eefc;
    color: #365f96;
    font-size: 11px;
    font-weight: 800;
}

.pit-poz__point-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.pit-poz__point-actions a {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 9px;
    background: #edf6f2;
    color: #176943 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
}

.pit-poz__point-actions a.is-route {
    background: #eef2f7;
    color: #3f566f !important;
}

.pit-poz__more {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.pit-poz__more > summary,
.pit-poz__method > summary {
    cursor: pointer;
    font-weight: 800;
}

.pit-poz__points--more {
    margin-top: 14px;
}

.pit-poz__source-link {
    margin: 20px 0 0;
    font-size: 14px;
}

.pit-poz__source-link a {
    font-weight: 700;
}

.pit-poz__method {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f4f7f6;
    border: 1px solid var(--pit-line);
}

.pit-poz__method > div {
    margin-top: 14px;
    color: var(--pit-muted);
    line-height: 1.6;
}

.pit-poz__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--pit-line);
    color: var(--pit-muted);
    font-size: 12px;
}

.pit-poz__footer p {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .pit-poz__forecast-grid {
        grid-template-columns: repeat(7, 185px);
    }

    .pit-poz__points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pit-poz__hero,
    .pit-poz__emergency,
    .pit-poz__best {
        grid-template-columns: 1fr;
    }

    .pit-poz__today {
        min-height: auto;
    }

    .pit-poz__emergency-actions a {
        flex: 1;
    }

    .pit-poz__section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .pit-poz__open-state {
        min-width: 0;
    }

    .pit-poz__nisoz {
        padding: 20px;
    }
}
