
.configurator-page {
    background: #f5f6f2;
    padding-bottom: 72px;
}

/* Hero секция */
.configurator-hero {
    padding: 48px 0 44px;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(25, 51, 35, .96) 0%,
            rgba(35, 60, 43, .88) 45%,
            rgba(35, 60, 43, .55) 100%
        ),
        url('/images/guide.jpg') center / cover no-repeat;
}

.configurator-hero .section-label {
    color: #d9e59b;
}

.configurator-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.configurator-hero-text {
    width: 100%;
    max-width: none;
}

.configurator-hero h1 {
    max-width: 100%;
    margin: 12px 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.configurator-hero p {
    max-width: 100%;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Основно съдържание */
.configurator-content {
    padding-top: 28px;
}

.configurator-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.configurator-form,
.configurator-results {
    min-width: 0;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(22, 45, 31, .08);
}

.configurator-form h2,
.configurator-results h2 {
    margin: 0 0 16px;
    color: #233c2b;
    font-size: 20px;
}

/* Полета на формата */
.configurator-fields,
.cultivator-only-fields,
.mechanical-seeder-only-fields,
.precision-seeder-only-fields {
    display: grid;
    gap: 8px;
}

.cultivator-only-fields.is-hidden,
.mechanical-seeder-only-fields.is-hidden,
.precision-seeder-only-fields.is-hidden {
    display: none;
}

.configurator-fields label {
    display: grid;
    gap: 4px;
    color: #314337;
    font-size: 13px;
    font-weight: 700;
}

.configurator-fields input,
.configurator-fields select {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd3c8;
    border-radius: 6px;
    color: #26352a;
    background: #fff;
    font: inherit;
}

/* Бутони на формата */
.configurator-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.configurator-actions button,
.configurator-card a {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #80b918;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.configurator-actions button {
    flex: 0 1 auto;
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
}

.configurator-actions button:hover,
.configurator-card a:hover {
    background: #669614;
}

.configurator-actions a {
    flex-shrink: 0;
    color: #486046;
    font-size: 13px;
    text-decoration: none;
}

.configurator-actions a:hover {
    text-decoration: underline;
}

/* Заглавие на резултатите */
.configurator-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e6e9e4;
}

.configurator-results-heading span {
    color: #637267;
    white-space: nowrap;
}

.configurator-cards {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

/* Карти на продуктите */
.configurator-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e0e5de;
    border-radius: 9px;
}

.configurator-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    align-self: start;
    object-fit: cover;
    background: #eef1ec;
}

.configurator-card-body {
    min-width: 0;
    padding: 13px 16px;
}

.configurator-type {
    color: #55794d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.configurator-card h3 {
    margin: 3px 0 2px;
    color: #223a2a;
    font-size: 21px;
}

.configurator-card p {
    margin: 0;
    color: #66756a;
}

.configurator-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 10px 0;
}

.configurator-card dl div {
    padding-top: 6px;
    border-top: 1px solid #e7ebe5;
}

.configurator-card dt {
    margin-bottom: 1px;
    color: #738076;
    font-size: 12px;
}

.configurator-card dd {
    margin: 0;
    color: #2d3f31;
    font-weight: 700;
}

.configurator-card a {
    white-space: nowrap;
}

.configurator-empty {
    padding: 28px;
    margin-top: 22px;
    border: 1px dashed #c9d1c7;
    border-radius: 8px;
    color: #5d6d60;
    text-align: center;
}

/* Таблети */
@media (max-width: 850px) {
    .configurator-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Мобилни устройства */
@media (max-width: 560px) {
    .configurator-hero {
        padding: 36px 0 32px;
        background-position: 60% center;
    }

    .configurator-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.12;
    }

    .configurator-hero p {
        font-size: 16px;
        line-height: 1.55;
    }

    .configurator-form,
    .configurator-results {
        padding: 16px;
    }

    .configurator-actions {
        gap: 8px;
    }

    .configurator-actions button {
        padding: 10px 8px;
        font-size: 12px;
    }

    .configurator-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .configurator-card > img {
        width: min(100%, 320px);
        aspect-ratio: 4 / 3;
    }

    .configurator-card-body {
        padding: 13px;
    }
}
