/* =========================================================
   СТРАНИЦА ПОИСКА — С-АГРОСЕРВИС 2026
   ========================================================= */

.sa-search-page-section {
    padding: 26px 0 78px;
    background:
        radial-gradient(circle at 92% 8%, rgba(20, 139, 190, 0.08), transparent 28%),
        linear-gradient(180deg, #f5f8fa 0, #ffffff 430px);
}

.sa-search-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #748393;
    font-size: 13px;
}

.sa-search-breadcrumbs a {
    color: #39739c;
    text-decoration: none;
}

.sa-search-breadcrumbs a:hover {
    color: var(--sa-blue);
}

.sa-search-hero {
    padding: 42px 46px;
    border: 1px solid #dbe5ec;
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 251, 0.96)),
        #ffffff;
    box-shadow: 0 18px 50px rgba(19, 43, 64, 0.08);
}

.sa-search-hero__content {
    max-width: 840px;
}

.sa-search-hero__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--sa-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sa-search-hero h1 {
    margin: 0;
    color: var(--sa-dark);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.sa-search-hero__content p {
    max-width: 760px;
    margin: 15px 0 0;
    color: #607181;
    font-size: 16px;
    line-height: 1.65;
}

.sa-search-hero__content strong {
    color: #203b55;
}

.sa-results-search {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    max-width: 980px;
    height: 62px;
    margin-top: 27px;
    padding-left: 19px;
    overflow: hidden;
    border: 2px solid #173854;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(19, 52, 77, 0.1);
}

.sa-results-search:focus-within {
    border-color: var(--sa-blue);
    box-shadow: 0 0 0 4px rgba(14, 144, 195, 0.12);
}

.sa-results-search__icon {
    width: 21px;
    height: 21px;
    fill: #718496;
}

.sa-results-search input {
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172b3d;
    font: inherit;
    font-size: 16px;
}

.sa-results-search input::placeholder {
    color: #91a0ae;
}

.sa-results-search button {
    align-self: stretch;
    min-width: 170px;
    padding: 0 25px;
    border: 0;
    background: var(--sa-blue);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sa-results-search button:hover {
    background: #0877a6;
}

.sa-search-examples {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    color: #728291;
    font-size: 12px;
}

.sa-search-examples button {
    padding: 7px 11px;
    border: 1px solid #d4e0e8;
    border-radius: 999px;
    background: #ffffff;
    color: #27445e;
    font: inherit;
    cursor: pointer;
}

.sa-search-examples button:hover {
    border-color: var(--sa-blue);
    color: var(--sa-blue);
}

.sa-search-output {
    min-height: 120px;
    margin-top: 38px;
}

.sa-search-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px;
}

.sa-search-results-head h2 {
    margin: 0;
    color: var(--sa-dark);
    font-size: 28px;
}

.sa-search-results-head p {
    margin: 0;
    color: #738292;
    font-size: 13px;
}

.sa-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.sa-search-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce5eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 23px rgba(18, 39, 57, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-search-card:hover {
    transform: translateY(-4px);
    border-color: #aac5d6;
    box-shadow: 0 15px 34px rgba(18, 39, 57, 0.11);
}

.sa-search-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 225px;
    padding: 18px;
    overflow: hidden;
    border-bottom: 1px solid #edf2f5;
    background: linear-gradient(145deg, #f7fafc, #eef3f6);
}

.sa-search-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sa-search-card:hover .sa-search-card__image img {
    transform: scale(1.035);
}

.sa-search-card__body {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
}

.sa-search-card__label {
    margin-bottom: 8px;
    color: var(--sa-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-search-card__title {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.42;
}

.sa-search-card__title a {
    color: #172c3f;
    text-decoration: none;
}

.sa-search-card__title a:hover {
    color: var(--sa-blue);
}

.sa-search-card__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 13px;
    border: 1px solid #d4e2ea;
    border-radius: 9px;
    color: #1b5274;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.sa-search-card__button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.sa-search-card__button:hover {
    border-color: var(--sa-blue);
    background: var(--sa-blue);
    color: #ffffff;
}

.sa-search-empty {
    padding: 55px 30px;
    border: 1px dashed #becfd9;
    border-radius: 20px;
    background: #f8fbfc;
    text-align: center;
}

.sa-search-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e3f1f7;
}

.sa-search-empty__icon svg {
    width: 34px;
    height: 34px;
    fill: var(--sa-blue);
}

.sa-search-empty h2 {
    margin: 0;
    color: var(--sa-dark);
    font-size: 27px;
}

.sa-search-empty p {
    max-width: 650px;
    margin: 13px auto 0;
    color: #66798a;
    line-height: 1.65;
}

.sa-search-pagination,
.ajaxSearch_paging {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
}

.ajaxSearch_paging a,
.ajaxSearch_currentPage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d5e0e7;
    border-radius: 9px;
    background: #ffffff;
    color: #27435b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ajaxSearch_paging a:hover,
.ajaxSearch_currentPage {
    border-color: var(--sa-blue);
    background: var(--sa-blue);
    color: #ffffff;
}

.sa-search-request {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
    padding: 28px 32px;
    border-radius: 20px;
    background: linear-gradient(120deg, #122b42, #173c59);
    color: #ffffff;
}

.sa-search-request__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.sa-search-request__icon svg {
    width: 30px;
    height: 30px;
    fill: #45c1ef;
}

.sa-search-request__content > span {
    color: #45c1ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sa-search-request h2 {
    margin: 4px 0 7px;
    color: #ffffff;
    font-size: 25px;
}

.sa-search-request p {
    max-width: 720px;
    margin: 0;
    color: #cedbe5;
    font-size: 14px;
    line-height: 1.55;
}

.sa-search-request__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--sa-blue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.sa-search-request__button:hover {
    background: #0aa0d5;
}

/* Модальное окно запроса */
body.sa-modal-open {
    overflow: hidden;
}

.sa-request-modal[hidden] {
    display: none;
}

.sa-request-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.sa-request-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 24, 38, 0.76);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.sa-request-modal__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 18, 32, 0.35);
}

.sa-request-modal__head {
    padding: 30px 72px 24px 32px;
    background: linear-gradient(120deg, #112b42, #194b6d);
    color: #fff;
}

.sa-request-modal__eyebrow {
    color: #4bc9f2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sa-request-modal__head h2 {
    margin: 7px 0 9px;
    color: #fff;
    font-size: clamp(26px, 4vw, 36px);
}

.sa-request-modal__head p {
    max-width: 720px;
    margin: 0;
    color: #d6e3ec;
    line-height: 1.55;
}

.sa-request-modal__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 15px;
}

.sa-request-modal__contacts a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.sa-request-modal__close {
    position: absolute;
    z-index: 2;
    top: 19px;
    right: 19px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.sa-request-form {
    padding: 28px 32px 32px;
}

.sa-request-form__notice {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #fff3f2;
    color: #9b312b;
    line-height: 1.5;
}

.sa-request-form__notice--success {
    background: #e9f8ef;
    color: #216c3d;
}

.sa-request-form__type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.sa-request-form__type label {
    position: relative;
}

.sa-request-form__type input {
    position: absolute;
    opacity: 0;
}

.sa-request-form__type span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d6e1e8;
    border-radius: 10px;
    color: #29445b;
    font-weight: 750;
    cursor: pointer;
}

.sa-request-form__type input:checked + span {
    border-color: var(--sa-blue);
    background: #e9f6fb;
    color: #087dab;
    box-shadow: inset 0 0 0 1px var(--sa-blue);
}

.sa-request-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.sa-request-field {
    display: grid;
    gap: 7px;
    color: #29445b;
    font-size: 13px;
    font-weight: 750;
}

.sa-request-field--wide {
    grid-column: 1 / -1;
}

.sa-request-field input,
.sa-request-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #ccd9e1;
    border-radius: 10px;
    background: #fff;
    color: #172c3f;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    outline: 0;
}

.sa-request-field input {
    height: 48px;
    padding: 0 14px;
}

.sa-request-field textarea {
    min-height: 116px;
    padding: 12px 14px;
    resize: vertical;
}

.sa-request-field input:focus,
.sa-request-field textarea:focus {
    border-color: var(--sa-blue);
    box-shadow: 0 0 0 3px rgba(14,144,195,.12);
}

.sa-request-field__hint {
    color: #748696;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.sa-request-files {
    display: grid;
    gap: 7px;
}

.sa-request-files:empty {
    display: none;
}

.sa-request-files__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 7px 6px 12px;
    border: 1px solid #d5e2e9;
    border-radius: 9px;
    background: #f5f9fb;
}

.sa-request-files__name {
    overflow: hidden;
    color: #29445b;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-request-files__size {
    color: #7b8c99;
    font-size: 11px;
    font-weight: 400;
}

.sa-request-files__remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #e6eef3;
    color: #4b6274;
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.sa-request-files__remove:hover {
    background: #ffe9e7;
    color: #aa3028;
}

.sa-request-form__company[hidden] {
    display: none;
}

.sa-request-form__company {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dce6ec;
    border-radius: 14px;
    background: #f7fafc;
}

.sa-request-form__company h3 {
    margin: 0 0 16px;
    color: #19364d;
    font-size: 18px;
}

.sa-request-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
    align-items: end;
    gap: 18px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #cfe0e8;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef7fa, #f8fbfc);
}

.sa-request-captcha__question {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
}

.sa-request-captcha__number,
.sa-request-captcha__operator {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #153a55;
    color: #fff;
    font-size: 21px;
    font-weight: 850;
}

.sa-request-captcha__operator {
    min-width: 30px;
    background: transparent;
    color: #1595c2;
}

.sa-request-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.sa-request-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 22px;
    color: #4f6475;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.sa-request-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--sa-blue);
}

.sa-request-consent a {
    color: #087fae;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Отдельная страница согласия */
.sa-legal-page {
    padding: 30px 0 76px;
    background: linear-gradient(180deg, #f4f8fa, #fff 420px);
}

.sa-legal-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 48px;
    border: 1px solid #dbe5ec;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(19,43,64,.08);
    color: #445a6c;
    line-height: 1.7;
}

.sa-legal-card h1 {
    margin: 0 0 12px;
    color: #142f46;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.sa-legal-card h2 {
    margin: 30px 0 10px;
    color: #17364e;
    font-size: 21px;
}

.sa-legal-card p,
.sa-legal-card ul {
    margin: 10px 0;
}

.sa-legal-card a {
    color: #087fae;
}

.sa-legal-card__date {
    color: #7b8b98;
    font-size: 13px;
}

.sa-request-form__privacy {
    max-width: 560px;
    margin: 0;
    color: #758696;
    font-size: 11px;
    line-height: 1.5;
}

.sa-request-form__submit {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--sa-blue);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sa-request-form__submit:hover {
    background: #0879a7;
}

.sa-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 1100px) {
    .sa-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sa-search-page-section {
        padding-top: 19px;
    }

    .sa-search-hero {
        padding: 34px 28px;
    }

    .sa-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .sa-search-request {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sa-search-request__button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sa-search-page-section {
        padding: 14px 0 52px;
    }

    .sa-search-breadcrumbs {
        margin-bottom: 13px;
    }

    .sa-search-hero {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .sa-search-hero h1 {
        font-size: 34px;
    }

    .sa-search-hero__content p {
        font-size: 14px;
    }

    .sa-results-search {
        grid-template-columns: 22px minmax(0, 1fr) 52px;
        height: 54px;
        margin-top: 21px;
        padding-left: 13px;
    }

    .sa-results-search input {
        padding: 0 8px;
        font-size: 14px;
    }

    .sa-results-search button {
        min-width: 52px;
        width: 52px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
    }

    .sa-results-search button::before {
        content: "";
        width: 19px;
        height: 19px;
        display: block;
        margin: 0 auto;
        background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10.7 4a6.7 6.7 0 1 0 4.24 11.88l4.6 4.6 1.42-1.42-4.6-4.6A6.7 6.7 0 0 0 10.7 4Zm0 2a4.7 4.7 0 1 1 0 9.4 4.7 4.7 0 0 1 0-9.4Z'/%3E%3C/svg%3E");
    }

    .sa-search-examples {
        align-items: flex-start;
    }

    .sa-search-examples > span {
        width: 100%;
    }

    .sa-search-output {
        margin-top: 29px;
    }

    .sa-search-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .sa-search-results-head h2 {
        font-size: 24px;
    }

    .sa-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .sa-search-card {
        border-radius: 12px;
    }

    .sa-search-card__image {
        height: 150px;
        padding: 10px;
    }

    .sa-search-card__body {
        min-height: 160px;
        padding: 12px;
    }

    .sa-search-card__label {
        font-size: 8px;
    }

    .sa-search-card__title {
        margin-bottom: 13px;
        font-size: 13px;
    }

    .sa-search-card__button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .sa-search-empty {
        padding: 40px 20px;
    }

    .sa-search-request {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 36px;
        padding: 25px 21px;
    }

    .sa-search-request__icon {
        width: 50px;
        height: 50px;
    }

    .sa-search-request h2 {
        font-size: 23px;
    }

    .sa-search-request__button {
        grid-column: auto;
    }

    .sa-request-modal {
        align-items: end;
        padding: 0;
    }

    .sa-request-modal__dialog {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }

    .sa-request-modal__head {
        padding: 27px 62px 22px 20px;
    }

    .sa-request-form {
        padding: 22px 20px 28px;
    }

    .sa-request-form__type,
    .sa-request-form__grid,
    .sa-request-captcha {
        grid-template-columns: 1fr;
    }

    .sa-request-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .sa-request-form__submit {
        width: 100%;
    }

    .sa-legal-page {
        padding: 16px 0 52px;
    }

    .sa-legal-card {
        padding: 27px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 390px) {
    .sa-search-grid {
        grid-template-columns: 1fr;
    }

    .sa-search-card__image {
        height: 210px;
    }
}
