:root {
    --green-900: #123a22;
    --green-800: #18502e;
    --green-700: #25683e;
    --green-500: #39a35d;
    --green-100: #eaf8ed;
    --gold: #e6b65a;
    --orange: #f28b36;
    --red: #dc4c4c;
    --ink: #1d2b20;
    --muted: #66756a;
    --paper: #fbfff9;
    --line: #dfe9df;
    --shadow: 0 20px 55px rgba(18, 58, 34, .14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(57, 163, 93, .16), transparent 34rem),
        linear-gradient(180deg, #f6fff4 0%, #ffffff 40%, #f8fff8 100%);
    color: var(--ink);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    background: url("hero-family.jpg") center center / cover no-repeat;
    color: #07150c;
    padding: 58px 0 42px;
}

.hero__glow {
    display: none;
}

.hero__content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: center;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.068),
        0 3px 12px rgba(255, 255, 255, 0),
        0 8px 24px rgba(0, 0, 0, 0.055);
}

.hero__content > div:first-child {
    background: rgba(255, 255, 255, .58);
    border-radius: 18px;
    padding: 18px 20px;
    backdrop-filter: blur(2px);
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    color: #0b1d10;
    font-weight: 700;
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: .96;
    margin-bottom: 18px;
}

.hero__text {
    max-width: 780px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #07150c;
}

.hero__actions {
    margin-top: 18px;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .38);
    color: #17351f;
    font-weight: 800;
    text-decoration: none;
    text-shadow: none;
}

.hero__panel {
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    gap: 4px;
    backdrop-filter: blur(10px);
    color: #17351f;
    text-shadow: none;
}

.hero__panel strong {
    font-size: 3rem;
    line-height: 1;
}

.hero__panel span {
    margin-bottom: 14px;
    color: #354121;
}

.notice,
.card,
.product-card,
.mini-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notice {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 6px solid var(--orange);
    line-height: 1.5;
}

.notice--success {
    border-left-color: var(--green-500);
    background: #f2fbf4;
}

.notice--warning {
    border-left-color: var(--gold);
    background: #fffaf0;
}

.filters {
    padding: 20px;
    margin-bottom: 24px;
}

.filters__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--green-900);
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #bfd2c2;
    border-radius: 14px;
    padding: 0 14px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

button,
.filters__actions a {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: var(--green-700);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-grid;
    place-items: center;
}

.filters__actions {
    display: flex;
    gap: 8px;
}

.filters__actions a {
    background: var(--green-100);
    color: var(--green-900);
}

.setup-form,
.setup-steps {
    padding: 20px;
}

.setup-copy {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.setup-steps a {
    color: var(--green-800);
    font-weight: 700;
}

.judge {
    padding: 20px;
    margin-bottom: 24px;
}

.scale,
.meta-row,
.tag-cloud,
.chip-list,
.condition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill,
.meta-row span,
.tag-cloud span,
.chip-list span,
.condition-dot {
    border-radius: 999px;
    padding: 8px 11px;
    font-size: .82rem;
    font-weight: 800;
}

.meta-row span,
.chip-list span {
    background: #f3f8f1;
    color: var(--green-800);
}

.tag-cloud span {
    background: var(--green-100);
    color: var(--green-900);
}

.score-high {
    background: #dff6e5 !important;
    color: #17632c !important;
}

.score-mid {
    background: #fff1d0 !important;
    color: #8a5600 !important;
}

.score-low {
    background: #edf1ff !important;
    color: #334ca3 !important;
}

.score-none {
    background: #f1f1f1 !important;
    color: #555 !important;
}

.alert {
    background: #ffe1e1 !important;
    color: #991f1f !important;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.mini-card {
    padding: 20px;
}

.mini-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .12em;
}

.mini-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.mini-card p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 14px;
}

.section-title h2 {
    margin: 0;
}

.section-title span {
    color: var(--muted);
    font-weight: 700;
}

.products {
    display: grid;
    gap: 18px;
    padding-bottom: 50px;
}

.product-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.product-card__media {
    margin: -24px -24px 18px;
    background: linear-gradient(180deg, #f4fbf3, #ffffff);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.product-card__media img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    display: block;
}

.product-card:before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green-500), var(--gold), var(--orange));
}

.product-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.product-card h3 {
    margin-bottom: 4px;
    font-size: 1.7rem;
}

.line {
    color: var(--muted);
    font-weight: 700;
}

.price {
    background: var(--green-900);
    color: #fff;
    border-radius: 18px;
    padding: 12px 15px;
    font-weight: 900;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: .9fr 1.2fr;
    gap: 22px;
    margin-top: 18px;
}

.product-grid--wide {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

h4 {
    margin-bottom: 10px;
    color: var(--green-900);
}

.bullet {
    margin-bottom: 9px;
    line-height: 1.5;
}

.product-grid p,
.precautions p {
    line-height: 1.56;
    color: #3f4f43;
}

.precautions {
    margin-top: 16px;
    background: #fff8ed;
    border: 1px solid #ffdba5;
    border-radius: 18px;
    padding: 14px 16px;
}

.precautions summary {
    cursor: pointer;
    font-weight: 900;
    color: #7a4500;
}

.empty {
    padding: 30px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    border: 1px dashed #b5c8b6;
}

.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, .82);
    padding: 24px 0;
}

.footer p {
    margin: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 56px;
}

.catalog-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.catalog-card__media {
    background: linear-gradient(180deg, #f7fff5, #fff);
    border-bottom: 1px solid var(--line);
    aspect-ratio: 4 / 4.6;
    display: grid;
    place-items: center;
    padding: 16px;
}

.catalog-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-card__body {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.catalog-card__body h3 {
    margin: 0;
    font-size: 1.35rem;
}

.catalog-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-card__actions a {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    display: inline-grid;
    place-items: center;
    background: var(--green-100);
    color: var(--green-900);
    font-weight: 800;
    text-decoration: none;
}

.filters__grid--catalog {
    grid-template-columns: 1.6fr .8fr auto;
}

@media (max-width: 980px) {
    .hero__content,
    .filters__grid,
    .filters__grid--catalog,
    .summary-grid,
    .catalog-grid,
    .product-grid,
    .product-grid--wide {
        grid-template-columns: 1fr;
    }

    .filters__actions {
        align-items: stretch;
    }
}

@media (max-width: 620px) {
    .product-card__top,
    .section-title {
        flex-direction: column;
        align-items: start;
    }

    .filters__actions {
        flex-direction: column;
    }

    button,
    .filters__actions a {
        width: 100%;
    }
}
.lift-in {
    animation: liftIn .45s ease both;
}

@keyframes liftIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
