/* ============================================================
   С-АГРОСЕРВИС
   NEW FRONTEND V2
   ============================================================ */

:root {

    --sa-dark: #111c29;
    --sa-dark-2: #18283a;
    --sa-dark-3: #22364c;

    --sa-blue: #087baa;
    --sa-blue-dark: #09658b;
    --sa-blue-light: #eaf5f9;

    --sa-text: #17202b;
    --sa-muted: #667585;

    --sa-bg: #ffffff;
    --sa-bg-soft: #f5f7f9;

    --sa-border: #e0e6eb;

    --sa-container: 1320px;

    --sa-radius-small: 10px;
    --sa-radius: 16px;
    --sa-radius-large: 24px;

    --sa-shadow:
        0 14px 35px rgba(18, 38, 58, 0.09);

}


/* ============================================================
   RESET
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body.sagro-new {

    margin: 0;

    background: var(--sa-bg);
    color: var(--sa-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;

}

.sagro-new img {
    max-width: 100%;
    height: auto;
}

.sagro-new a {
    color: inherit;
    text-decoration: none;
}

.sagro-new button,
.sagro-new input {
    font: inherit;
}

.sa-container {

    width: min(
        calc(100% - 40px),
        var(--sa-container)
    );

    margin-inline: auto;

}

.sa-visually-hidden {

    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;

}


/* ============================================================
   HEADER
   ============================================================ */

.sa-header {

    position: relative;

    z-index: 100;

    background: #fff;

}


/* TOP BAR */

.sa-topbar {

    background: var(--sa-dark);

    color: #c8d1da;

}

.sa-topbar__inner {

    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    font-size: 13px;

}

.sa-topbar__left,
.sa-topbar__nav {

    display: flex;
    align-items: center;

    gap: 20px;

}

.sa-topbar__delivery {

    display: flex;
    align-items: center;

    gap: 7px;

}

.sa-topbar__delivery svg {

    width: 17px;
    height: 17px;

    fill: currentColor;

}

.sa-topbar__divider {

    width: 1px;
    height: 14px;

    background: rgba(255,255,255,.25);

}

.sa-topbar__nav a {

    transition: color .2s;

}

.sa-topbar__nav a:hover {

    color: #fff;

}


/* MAIN HEADER */

.sa-mainbar {

    border-bottom: 1px solid var(--sa-border);

    background: #fff;

}

.sa-mainbar__inner {

    min-height: 92px;

    display: grid;

    grid-template-columns:
        205px
        auto
        minmax(320px, 1fr)
        auto;

    align-items: center;

    gap: 20px;

}


/* LOGO */

.sa-logo {

    display: flex;
    align-items: center;

}

.sa-logo img {

    display: block;

    width: 190px;
    max-height: 70px;

    object-fit: contain;

}


/* CATALOG BUTTON */

.sa-catalog-button {

    height: 50px;

    padding: 0 20px;

    border: 0;
    border-radius: var(--sa-radius-small);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: var(--sa-dark-3);
    color: #fff;

    cursor: pointer;

    font-weight: 700;

    transition:
        background .2s,
        transform .2s;

}

.sa-catalog-button:hover {

    background: var(--sa-blue-dark);

}

.sa-catalog-button:active {

    transform: translateY(1px);

}

.sa-catalog-button__icon {

    width: 23px;
    height: 23px;

    fill: currentColor;

}


/* SEARCH */

.sa-search {

    height: 50px;

    display: grid;

    grid-template-columns: 1fr auto;

    border: 2px solid var(--sa-dark-3);

    border-radius: var(--sa-radius-small);

    overflow: hidden;

    background: #fff;

}

.sa-search:focus-within {

    border-color: var(--sa-blue);

    box-shadow:
        0 0 0 3px rgba(8,123,170,.12);

}

.sa-search input {

    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    padding: 0 17px;

    color: var(--sa-text);

    background: transparent;

}

.sa-search input::placeholder {

    color: #8a97a3;

}

.sa-search button {

    min-width: 94px;

    padding: 0 18px;

    border: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #fff;
    background: var(--sa-dark-3);

    cursor: pointer;

    font-weight: 700;

    transition: background .2s;

}

.sa-search button:hover {

    background: var(--sa-blue);

}

.sa-search button svg {

    width: 20px;
    height: 20px;

    fill: currentColor;

}


/* ACTIONS */

.sa-actions {

    display: flex;
    align-items: center;

    gap: 12px;

}

.sa-action {

    min-width: 60px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 3px;

    color: #283441;

    font-size: 11px;
    font-weight: 650;

    transition: color .2s;

}

.sa-action:hover {

    color: var(--sa-blue);

}

.sa-action__icon svg {

    display: block;

    width: 24px;
    height: 24px;

    fill: currentColor;

}


/* MOBILE BUTTON */

.sa-mobile-menu-button {

    display: none;

    width: 46px;
    height: 46px;

    padding: 10px;

    border: 0;
    border-radius: 9px;

    background: var(--sa-dark-3);

    cursor: pointer;

}

.sa-mobile-menu-button span {

    display: block;

    height: 2px;

    margin: 5px 0;

    background: #fff;

}


/* MOBILE SEARCH */

.sa-mobile-search {

    display: none;

    padding-bottom: 14px;

}


/* ============================================================
   CATEGORY NAV
   ============================================================ */

.sa-category-nav {

    border-bottom: 1px solid var(--sa-border);

    background: #fff;

}

.sa-category-nav__inner {

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

}

.sa-category-nav a {

    padding: 14px 0;

    white-space: nowrap;

    color: #334250;

    font-size: 13px;
    font-weight: 700;

    transition: color .2s;

}

.sa-category-nav a:hover {

    color: var(--sa-blue);

}


/* ============================================================
   MEGA MENU
   ============================================================ */

.sa-mega-menu {

    position: absolute;

    left: 0;
    right: 0;

    background: #fff;

    border-bottom: 1px solid var(--sa-border);

    box-shadow:
        0 22px 45px rgba(16,31,45,.15);

}

.sa-mega-menu[hidden] {

    display: none;

}

.sa-mega-menu__heading {

    padding: 24px 0 16px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

}

.sa-mega-menu__heading strong {

    font-size: 22px;

}

.sa-mega-menu__heading a {

    color: var(--sa-blue);

    font-weight: 700;
    font-size: 13px;

}

.sa-mega-grid {

    padding-bottom: 28px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

}

.sa-mega-card {

    min-height: 110px;

    padding: 14px;

    border: 1px solid var(--sa-border);
    border-radius: 14px;

    display: grid;

    grid-template-columns: 78px 1fr;

    align-items: center;

    gap: 13px;

    transition:
        border .2s,
        box-shadow .2s,
        transform .2s;

}

.sa-mega-card:hover {

    transform: translateY(-2px);

    border-color: #bbcbd6;

    box-shadow: var(--sa-shadow);

}

.sa-mega-card img {

    width: 72px;
    height: 72px;

    object-fit: contain;

}

.sa-mega-card span {

    display: flex;
    flex-direction: column;

    gap: 5px;

}

.sa-mega-card strong {

    font-size: 14px;

}

.sa-mega-card small {

    color: var(--sa-muted);

    font-size: 11px;
    line-height: 1.45;

}


/* ============================================================
   MOBILE MENU
   ============================================================ */

.sa-mobile-menu {

    display: none;

}

.sa-mobile-menu[hidden] {

    display: none;

}


/* ============================================================
   HERO
   ============================================================ */

.sa-hero {

    padding: 24px 0 18px;

}

.sa-hero__layout {

    min-height: 425px;

    border: 1px solid #e4e9ed;
    border-radius: var(--sa-radius-large);

    overflow: hidden;

    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(430px, 1.05fr);

    background:
        linear-gradient(
            115deg,
            #f9fbfc 0%,
            #f2f6f8 100%
        );

}

.sa-hero__content {

    padding: 48px 20px 45px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;

    z-index: 2;

}

.sa-eyebrow {

    display: block;

    margin-bottom: 9px;

    color: var(--sa-blue);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.sa-hero h1 {

    max-width: 620px;

    margin: 0;

    color: var(--sa-dark);

    font-size:
        clamp(38px, 4vw, 57px);

    line-height: 1.04;

    letter-spacing: -1.8px;

}

.sa-hero__description {

    max-width: 610px;

    margin: 20px 0 0;

    color: var(--sa-muted);

    font-size: 17px;

}


/* HERO SEARCH */

.sa-hero__search {

    max-width: 600px;

    margin-top: 25px;

}

.sa-hero__search form {

    height: 52px;

    display: grid;

    grid-template-columns: 1fr auto;

    border: 1px solid #ccd7df;

    border-radius: 11px;

    overflow: hidden;

    background: #fff;

    box-shadow:
        0 7px 22px rgba(21,38,53,.07);

}

.sa-hero__search input {

    min-width: 0;

    padding: 0 17px;

    border: 0;
    outline: 0;

}

.sa-hero__search button {

    padding: 0 22px;

    border: 0;

    background: var(--sa-blue);

    color: #fff;

    cursor: pointer;

    font-weight: 700;

}

.sa-hero__search button:hover {

    background: var(--sa-blue-dark);

}


/* HERO BUTTONS */

.sa-hero__actions {

    margin-top: 17px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

}

.sa-btn {

    min-height: 48px;

    padding: 0 22px;

    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 750;

    transition:
        background .2s,
        color .2s,
        transform .2s;

}

.sa-btn:hover {

    transform: translateY(-1px);

}

.sa-btn--primary {

    background: var(--sa-blue);

    color: #fff !important;

}

.sa-btn--primary:hover {

    background: var(--sa-blue-dark);

}

.sa-btn--outline {

    border: 1px solid #b9c7d1;

    background: #fff;

    color: var(--sa-dark) !important;

}

.sa-btn--outline:hover {

    border-color: var(--sa-blue);

    color: var(--sa-blue) !important;

}


/* QUICK SEARCH */

.sa-hero__quick {

    margin-top: 21px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    color: var(--sa-muted);

    font-size: 12px;

}

.sa-hero__quick a {

    padding: 5px 9px;

    border-radius: 999px;

    background: #e8eef2;

    color: #435361;

}

.sa-hero__quick a:hover {

    background: var(--sa-blue-light);

    color: var(--sa-blue-dark);

}


/* HERO IMAGE */

.sa-hero__media {

    min-width: 0;

    position: relative;

    overflow: hidden;

}

.sa-hero__image-card {

    width: 100%;
    height: 100%;

    display: flex;

    background: #eef2f4;

}

.sa-hero__image-card img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


/* ============================================================
   BENEFITS
   ============================================================ */

.sa-benefits-strip {

    padding: 0 0 14px;

}

.sa-benefits-strip__grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border: 1px solid var(--sa-border);
    border-radius: 15px;

    overflow: hidden;

    background: #fff;

}

.sa-benefit-small {

    min-height: 92px;

    padding: 19px;

    display: flex;
    align-items: center;

    gap: 13px;

    border-right: 1px solid var(--sa-border);

}

.sa-benefit-small:last-child {

    border-right: 0;

}

.sa-benefit-small svg {

    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    fill: var(--sa-blue);

}

.sa-benefit-small span {

    display: flex;
    flex-direction: column;

    color: var(--sa-muted);

    font-size: 11px;

}

.sa-benefit-small strong {

    color: var(--sa-dark);

    font-size: 14px;

}


/* ============================================================
   SECTIONS
   ============================================================ */

.sa-section {

    padding: 62px 0;

}

.sa-section--gray {

    background: var(--sa-bg-soft);

}

.sa-heading {

    margin-bottom: 25px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

}

.sa-heading h2,
.sa-request h2 {

    margin: 0;

    color: var(--sa-dark);

    font-size:
        clamp(28px, 3vw, 39px);

    line-height: 1.12;

    letter-spacing: -1px;

}

.sa-heading__link {

    padding-bottom: 4px;

    color: var(--sa-blue);

    font-size: 13px;
    font-weight: 750;

}


/* ============================================================
   POPULAR CATEGORIES
   ============================================================ */

.sa-popular-grid {

    display: grid;

    grid-template-columns:
        repeat(8, minmax(0,1fr));

    gap: 12px;

}

.sa-popular-card {

    min-width: 0;

    padding: 12px;

    border: 1px solid var(--sa-border);
    border-radius: 15px;

    background: #fff;

    transition:
        transform .2s,
        border .2s,
        box-shadow .2s;

}

.sa-popular-card:hover {

    transform: translateY(-4px);

    border-color: #bacbd6;

    box-shadow: var(--sa-shadow);

}

.sa-popular-card__image {

    height: 120px;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f3f5f6;

}

.sa-popular-card__image img {

    width: 100%;
    height: 100%;

    padding: 8px;

    object-fit: contain;

}

.sa-popular-card strong {

    display: block;

    margin-top: 12px;

    font-size: 14px;
    line-height: 1.3;

}

.sa-popular-card > span {

    display: block;

    margin-top: 4px;

    color: var(--sa-muted);

    font-size: 11px;
    line-height: 1.4;

}


/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.sa-product-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 14px;

}

.sa-product-card {

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--sa-border);
    border-radius: 16px;

    background: #fff;

    transition:
        transform .2s,
        box-shadow .2s,
        border-color .2s;

}

.sa-product-card:hover {

    transform: translateY(-4px);

    border-color: #bdcbd5;

    box-shadow: var(--sa-shadow);

}

.sa-product-card__image {

    height: 190px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

}

.sa-product-card__image img {

    width: 100%;
    height: 100%;

    object-fit: contain;

}

.sa-product-card__body {

    padding: 15px 15px 17px;

}

.sa-product-card__category {

    color: var(--sa-blue);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

}

.sa-product-card h3 {

    min-height: 44px;

    margin: 6px 0;

    color: var(--sa-dark);

    font-size: 15px;
    line-height: 1.4;

}

.sa-product-card p {

    min-height: 40px;

    margin: 0 0 14px;

    color: var(--sa-muted);

    font-size: 11px;

}

.sa-product-card__button {

    width: 100%;
    min-height: 39px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--sa-blue-light);

    color: var(--sa-blue-dark);

    font-size: 12px;
    font-weight: 750;

}

.sa-product-card__button:hover {

    background: var(--sa-blue);

    color: #fff;

}

.sa-temporary-note {

    margin: 15px 0 0;

    color: #87939e;

    font-size: 11px;

}


/* ============================================================
   STATS
   ============================================================ */

.sa-stats {

    background: var(--sa-dark-2);

    color: #fff;

}

.sa-stats__grid {

    min-height: 138px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

}

.sa-stat {

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right:
        1px solid rgba(255,255,255,.13);

}

.sa-stat:last-child {

    border-right: 0;

}

.sa-stat strong {

    font-size: 31px;
    line-height: 1;

}

.sa-stat span {

    margin-top: 7px;

    color: #b9c5cf;

    font-size: 12px;

}


/* ============================================================
   CATALOG CARDS
   ============================================================ */

.sa-catalog-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 14px;

}

.sa-catalog-card {

    min-height: 260px;

    padding: 24px;

    position: relative;

    overflow: hidden;

    border: 1px solid var(--sa-border);
    border-radius: 16px;

    display: grid;

    grid-template-columns:
        1fr 140px;

    gap: 15px;

    background: #fff;

    transition:
        transform .2s,
        box-shadow .2s;

}

.sa-catalog-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--sa-shadow);

}

.sa-catalog-card__content {

    position: relative;

    z-index: 2;

}

.sa-catalog-card h3 {

    margin: 0 0 12px;

    color: var(--sa-dark);

    font-size: 20px;
    line-height: 1.2;

}

.sa-catalog-card ul {

    margin: 0;
    padding: 0;

    list-style: none;

}

.sa-catalog-card li {

    margin: 4px 0;

    color: var(--sa-muted);

    font-size: 12px;

}

.sa-catalog-card__content > span {

    display: block;

    margin-top: 17px;

    color: var(--sa-blue);

    font-size: 12px;
    font-weight: 750;

}

.sa-catalog-card > img {

    align-self: center;

    width: 140px;
    height: 155px;

    object-fit: contain;

}


/* ============================================================
   WHY
   ============================================================ */

.sa-why-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 13px;

}

.sa-why-card {

    min-height: 195px;

    padding: 23px;

    border: 1px solid var(--sa-border);
    border-radius: 15px;

    background: #fff;

}

.sa-why-card__number {

    color: var(--sa-blue);

    font-size: 11px;
    font-weight: 800;

}

.sa-why-card h3 {

    margin: 28px 0 8px;

    font-size: 18px;

}

.sa-why-card p {

    margin: 0;

    color: var(--sa-muted);

    font-size: 13px;

}


/* ============================================================
   REQUEST
   ============================================================ */

.sa-request {

    padding: 42px 46px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    background:
        linear-gradient(
            120deg,
            #edf5f8,
            #f4f7f9
        );

}

.sa-request__main {

    max-width: 730px;

}

.sa-request__main p {

    max-width: 650px;

    margin: 13px 0 0;

    color: var(--sa-muted);

}

.sa-request__side {

    min-width: 235px;

    display: flex;
    flex-direction: column;

    gap: 12px;

}

.sa-request__phone {

    color: var(--sa-dark);

    text-align: center;

    font-size: 20px;
    font-weight: 800;

}


/* ============================================================
   FOOTER
   ============================================================ */

.sa-footer {

    margin-top: 30px;

    background: var(--sa-dark);

    color: #bcc6d0;

}

.sa-footer__grid {

    padding: 58px 0 48px;

    display: grid;

    grid-template-columns:
        1.5fr
        repeat(3, 1fr);

    gap: 60px;

}

.sa-footer__logo {

    display: inline-block;

}

.sa-footer__logo img {

    width: 190px;

    filter:
        brightness(0)
        invert(1);

    opacity: .94;

}

.sa-footer__brand p {

    max-width: 360px;

    margin: 22px 0;

    color: #9eabb7;

    font-size: 13px;

}

.sa-footer__phone {

    display: block;

    color: #fff;

    font-size: 21px;
    font-weight: 800;

}

.sa-footer__brand > span {

    display: block;

    margin-top: 4px;

    color: #85939f;

    font-size: 11px;

}

.sa-footer__column {

    display: flex;
    flex-direction: column;

    gap: 9px;

}

.sa-footer__column h3 {

    margin: 0 0 8px;

    color: #fff;

    font-size: 14px;

}

.sa-footer__column a {

    color: #aab6c1;

    font-size: 12px;

}

.sa-footer__column a:hover {

    color: #fff;

}

.sa-footer__bottom {

    min-height: 65px;

    border-top:
        1px solid rgba(255,255,255,.1);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    color: #788895;

    font-size: 11px;

}


/* ============================================================
   RESPONSIVE 1200
   ============================================================ */

@media (max-width: 1200px) {

    .sa-mainbar__inner {

        grid-template-columns:
            175px
            auto
            minmax(240px,1fr)
            auto;

        gap: 12px;

    }

    .sa-logo img {

        width: 165px;

    }

    .sa-search button span {

        display: none;

    }

    .sa-search button {

        min-width: 53px;

    }

    .sa-popular-grid {

        grid-template-columns:
            repeat(4,1fr);

    }

    .sa-product-grid {

        grid-template-columns:
            repeat(3,1fr);

    }

}


/* ============================================================
   RESPONSIVE 950
   ============================================================ */

@media (max-width: 950px) {

    .sa-topbar__nav a:nth-child(-n+2) {

        display: none;

    }

    .sa-mainbar__inner {

        min-height: 74px;

        grid-template-columns:
            1fr
            auto
            auto;

    }

    .sa-mainbar__inner > .sa-search {

        display: none;

    }

    .sa-actions {

        margin-left: auto;

    }

    .sa-mobile-search {

        display: block;

    }

    .sa-category-nav {

        overflow-x: auto;

    }

    .sa-category-nav__inner {

        width: max-content;

        min-width: 100%;

        justify-content: flex-start;

    }

    .sa-mega-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-hero__layout {

        grid-template-columns: 1fr;

    }

    .sa-hero__content {

        padding: 42px 38px;

    }

    .sa-hero__media {

        height: 330px;

    }

    .sa-benefits-strip__grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-benefit-small:nth-child(2) {

        border-right: 0;

    }

    .sa-product-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-catalog-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-why-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-footer__grid {

        grid-template-columns:
            repeat(2,1fr);

        gap: 40px;

    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .sa-container {

        width: calc(100% - 28px);

    }


    /* TOP */

    .sa-topbar__inner {

        justify-content: center;

    }

    .sa-topbar__left span:not(:first-child),
    .sa-topbar__nav {

        display: none;

    }


    /* HEADER */

    .sa-mainbar__inner {

        grid-template-columns:
            1fr
            auto;

    }

    .sa-logo img {

        width: 155px;

    }

    .sa-catalog-button,
    .sa-actions {

        display: none;

    }

    .sa-mobile-menu-button {

        display: block;

    }

    .sa-category-nav {

        display: none;

    }

    .sa-mobile-search {

        display: block;

    }

    .sa-search {

        height: 46px;

    }

    .sa-search button {

        min-width: 48px;

    }


    /* MOBILE MENU */

    .sa-mobile-menu {

        padding: 10px 14px 18px;

        border-bottom:
            1px solid var(--sa-border);

        display: flex;
        flex-direction: column;

        background: #fff;

    }

    .sa-mobile-menu[hidden] {

        display: none;

    }

    .sa-mobile-menu a {

        padding: 12px 6px;

        border-bottom:
            1px solid #edf0f2;

        color: var(--sa-dark);

        font-size: 14px;
        font-weight: 600;

    }

    .sa-mobile-menu__separator {

        height: 10px;

    }


    /* HERO */

    .sa-hero {

        padding-top: 13px;

    }

    .sa-hero__layout {

        border-radius: 18px;

    }

    .sa-hero__content {

        padding: 31px 22px;

    }

    .sa-hero h1 {

        font-size: 37px;

        letter-spacing: -1.2px;

    }

    .sa-hero__description {

        font-size: 15px;

    }

    .sa-hero__search {

        display: none;

    }

    .sa-hero__actions {

        flex-direction: column;

    }

    .sa-btn {

        width: 100%;

    }

    .sa-hero__quick {

        display: none;

    }

    .sa-hero__media {

        height: 225px;

    }


    /* BENEFITS */

    .sa-benefits-strip__grid {

        grid-template-columns: 1fr;

    }

    .sa-benefit-small {

        min-height: 75px;

        border-right: 0;

        border-bottom:
            1px solid var(--sa-border);

    }

    .sa-benefit-small:last-child {

        border-bottom: 0;

    }


    /* SECTIONS */

    .sa-section {

        padding: 48px 0;

    }

    .sa-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;

    }


    /* CATEGORIES */

    .sa-popular-grid {

        grid-template-columns:
            repeat(2,1fr);

        gap: 9px;

    }

    .sa-popular-card {

        padding: 9px;

    }

    .sa-popular-card__image {

        height: 105px;

    }


    /* PRODUCTS */

    .sa-product-grid {

        grid-template-columns:
            repeat(2,1fr);

        gap: 9px;

    }

    .sa-product-card__image {

        height: 145px;

        padding: 12px;

    }

    .sa-product-card__body {

        padding: 12px;

    }

    .sa-product-card h3 {

        font-size: 13px;

    }

    .sa-product-card p {

        display: none;

    }


    /* STATS */

    .sa-stats__grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .sa-stat {

        padding: 25px 18px;

    }

    .sa-stat:nth-child(2) {

        border-right: 0;

    }

    .sa-stat strong {

        font-size: 24px;

    }


    /* CATALOG */

    .sa-catalog-grid {

        grid-template-columns: 1fr;

    }

    .sa-catalog-card {

        min-height: 220px;

        grid-template-columns:
            1fr 105px;

    }

    .sa-catalog-card > img {

        width: 105px;
        height: 125px;

    }


    /* WHY */

    .sa-why-grid {

        grid-template-columns: 1fr;

    }


    /* REQUEST */

    .sa-request {

        padding: 30px 22px;

        align-items: flex-start;

        flex-direction: column;

    }

    .sa-request__side {

        width: 100%;

    }


    /* FOOTER */

    .sa-footer__grid {

        padding-top: 45px;

        grid-template-columns: 1fr;

        gap: 30px;

    }

    .sa-footer__bottom {

        padding: 18px 0;

        align-items: flex-start;

        flex-direction: column;

        gap: 7px;

    }

}
/* ============================================================
   V2.1
   ============================================================ */

.sa-mainbar__inner {
    grid-template-columns:
        190px
        110px
        auto
        minmax(350px, 1fr)
        auto;
}

.sa-city-selector {
    min-width: 0;
}

.sa-city-selector__label {
    margin-bottom: 2px;

    color: #81909d;

    font-size: 10px;
}

.sa-city-selector__button {
    position: relative;

    padding: 0;

    border: 0;

    display: flex;
    align-items: center;

    gap: 5px;

    background: none;

    color: var(--sa-blue);

    cursor: pointer;

    font-weight: 700;
}

.sa-city-selector__button > svg {
    width: 16px;
    height: 16px;

    fill: var(--sa-blue);
}

.sa-city-selector__current {
    white-space: nowrap;
}

.sa-city-selector__dropdown {
    display: none;

    position: absolute;

    left: 0;
    top: calc(100% + 12px);

    z-index: 900;

    width: 220px;

    padding: 9px;

    border: 1px solid var(--sa-border);
    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 18px 40px rgba(15,31,45,.18);
}

.sa-city-selector__button[aria-expanded="true"]
.sa-city-selector__dropdown {
    display: block;
}

.sa-city-selector__dropdown a {
    display: block;

    padding: 9px 10px;

    border-radius: 6px;

    color: var(--sa-dark);

    font-size: 13px;
    font-weight: 500;
}

.sa-city-selector__dropdown a:hover {
    background: var(--sa-bg-soft);

    color: var(--sa-blue);
}


/* HERO */

.sa-hero__box {
    min-height: 430px;

    border-radius: 24px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        .92fr
        1.08fr;

    background:
        linear-gradient(
            115deg,
            #112337 0%,
            #17314c 100%
        );

    color: #fff;
}

.sa-hero__content {
    padding: 49px 45px;
}

.sa-hero .sa-eyebrow {
    color: #52b8e0;
}

.sa-hero h1 {
    color: #fff;
}

.sa-hero__content > p {
    max-width: 620px;

    margin: 18px 0 0;

    color: #d6e0e9;

    font-size: 16px;
}

.sa-hero-search {
    max-width: 610px;

    margin-top: 24px;

    height: 52px;

    display: grid;
    grid-template-columns: 1fr auto;

    border-radius: 9px;

    overflow: hidden;

    background: #fff;
}

.sa-hero-search input {
    min-width: 0;

    padding: 0 17px;

    border: 0;
    outline: 0;
}

.sa-hero-search button {
    padding: 0 24px;

    border: 0;

    background: var(--sa-blue);

    color: #fff;

    font-weight: 700;

    cursor: pointer;
}

.sa-hero-actions {
    margin-top: 16px;

    display: flex;

    gap: 10px;
}

.sa-hero .sa-btn--outline {
    border-color: rgba(255,255,255,.45);

    background: transparent;

    color: #fff !important;
}

.sa-hero .sa-btn--outline:hover {
    background: rgba(255,255,255,.08);
}

.sa-quick-tags {
    margin-top: 22px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    color: #b6c5d2;

    font-size: 11px;
}

.sa-quick-tags a {
    padding: 5px 9px;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 999px;

    color: #dce7ef;
}

.sa-hero__media {
    overflow: hidden;
}

.sa-hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* BENEFITS */

.sa-benefits-strip {
    padding-top: 15px;
}

.sa-benefits-strip__grid {
    border-radius: 13px;
}

.sa-benefit-small {
    position: relative;

    padding-left: 28px;
}


/* REQUEST IMAGE */

.sa-request {
    display: grid;

    grid-template-columns:
        180px
        minmax(0,1fr)
        250px;

    align-items: center;
}

.sa-request__image img {
    width: 170px;
    height: 130px;

    object-fit: contain;
}


/* CART BADGE */

.sa-action__icon--cart {
    position: relative;
}

.sa-cart-badge {
    position: absolute;

    right: -7px;
    top: -7px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--sa-blue);

    color: #fff;

    font-size: 9px;
    font-weight: 800;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .sa-mainbar__inner {
        grid-template-columns:
            170px
            auto
            minmax(260px,1fr)
            auto;
    }

    .sa-city-selector {
        display: none;
    }

}

@media (max-width: 720px) {

    .sa-hero__box {
        grid-template-columns: 1fr;
    }

    .sa-hero__content {
        padding: 34px 23px;
    }

    .sa-hero__media {
        min-height: 230px;
    }

    .sa-request {
        grid-template-columns: 1fr;
    }

    .sa-request__image {
        display: none;
    }

}
.sa-city-selector__dropdown {
    display: none;

    position: absolute;
    left: 0;
    top: calc(100% + 12px);

    z-index: 900;

    width: 460px;

    padding: 18px;

    border: 1px solid var(--sa-border);
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 18px 45px rgba(15, 31, 45, .18);
}

.sa-city-selector__button[aria-expanded="true"]
.sa-city-selector__dropdown {
    display: block;
}

.sa-city-selector__dropdown-title {
    margin-bottom: 12px;

    color: var(--sa-dark);

    font-size: 15px;
    font-weight: 800;

    text-align: left;
}

.sa-city-selector__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px 10px;
}

.sa-city-selector__grid a {
    min-height: 38px;

    padding: 9px 10px;

    border-radius: 8px;

    display: flex;
    align-items: center;

    color: var(--sa-dark);

    font-size: 13px;
    font-weight: 500;

    transition:
        background .2s,
        color .2s;
}

.sa-city-selector__grid a:hover {
    background: var(--sa-blue-light);

    color: var(--sa-blue-dark);
}

@media (max-width: 700px) {

    .sa-city-selector__dropdown {
        width: min(92vw, 420px);
    }

    .sa-city-selector__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
/* ============================================================
   MEGA CATALOG V2
   ============================================================ */

.sa-mega-menu {
    position: absolute;

    left: 0;
    right: 0;

    z-index: 1200;

    padding: 24px 0 28px;

    background: #fff;

    border-bottom: 1px solid var(--sa-border);

    box-shadow:
        0 22px 45px rgba(16,31,45,.14);
}

.sa-mega-menu[hidden] {
    display: none !important;
}


.sa-mega-menu__heading {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.sa-mega-menu__heading strong {
    color: var(--sa-dark);

    font-size: 22px;
    line-height: 1.2;
}

.sa-mega-menu__heading a {
    color: var(--sa-blue);

    font-size: 13px;
    font-weight: 700;
}


/* GRID */

.sa-mega-catalog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* CARD */

.sa-mega-category-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--sa-border);
    border-radius: 16px;

    background: #fff;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.sa-mega-category-card:hover {
    transform: translateY(-3px);

    border-color: #bccbd6;

    box-shadow:
        0 12px 30px rgba(18,38,58,.09);
}


/* IMAGE */

.sa-mega-category-card__image {
    height: 145px;

    overflow: hidden;

    background: #f4f6f8;
}

.sa-mega-category-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* CONTENT */

.sa-mega-category-card__content {
    padding: 15px 16px 17px;
}

.sa-mega-category-card__content h3 {
    margin: 0 0 7px;

    color: var(--sa-dark);

    font-size: 17px;
    line-height: 1.25;
}

.sa-mega-category-card__content p {
    margin: 0;

    color: var(--sa-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* OTHER PRODUCTS */

.sa-mega-other {
    min-height: 82px;

    margin-top: 14px;

    padding: 14px 18px;

    border: 1px solid var(--sa-border);
    border-radius: 14px;

    display: grid;

    grid-template-columns:
        50px
        minmax(0,1fr)
        36px;

    align-items: center;

    gap: 14px;

    background: #fff;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.sa-mega-other:hover {
    border-color: #bccbd6;

    background: var(--sa-bg-soft);
}

.sa-mega-other__icon {
    width: 46px;
    height: 46px;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--sa-blue-light);
}

.sa-mega-other__icon svg {
    width: 23px;
    height: 23px;

    fill: var(--sa-blue);
}

.sa-mega-other__content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.sa-mega-other__content strong {
    color: var(--sa-dark);

    font-size: 15px;
}

.sa-mega-other__content span {
    color: var(--sa-muted);

    font-size: 12px;
}

.sa-mega-other__arrow {
    color: var(--sa-blue);

    font-size: 24px;

    text-align: right;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .sa-mega-catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {

    .sa-mega-menu {
        position: static;

        padding: 16px 0 20px;
    }

    .sa-mega-catalog-grid {
        grid-template-columns: 1fr;
    }

    .sa-mega-category-card__image {
        height: 125px;
    }

    .sa-mega-other {
        grid-template-columns:
            42px
            minmax(0,1fr)
            26px;
    }

}
/* =========================================================
   S-АГРОСЕРВИС — V3 VISUAL UPDATE
   ========================================================= */


/* ---------------------------------------------------------
   1. ВЕРХНЯЯ ПАНЕЛЬ БЫСТРЫХ КАТЕГОРИЙ
   --------------------------------------------------------- */

.sa-category-nav {
    background: #f4f7f9;
    border-top: 1px solid #e3e9ed;
    border-bottom: 1px solid #dfe6eb;
}

.sa-category-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    max-width: 1320px;
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 0;
}

.sa-category-nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 16px;

    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 10px;

    color: #14263a;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.sa-category-nav a:hover {
    background: #edf6fa;
    border-color: #b8d0dc;

    color: #0788b9;

    box-shadow: 0 4px 12px rgba(15, 45, 65, .07);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   2. ФОНЫ СЕКЦИЙ
   --------------------------------------------------------- */

.sa-section {
    position: relative;
}

.sa-section--gray {
    background: #f4f7f9;
}

.sa-section--soft-blue {
    background: #edf4f8;
}


/* ---------------------------------------------------------
   3. КАРТОЧКИ
   --------------------------------------------------------- */

.sa-popular-card,
.sa-product-card,
.sa-why-card,
.sa-mega-category-card {
    border-color: #d7e0e6;

    box-shadow:
        0 3px 12px rgba(20, 35, 50, .035);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.sa-popular-card:hover,
.sa-product-card:hover,
.sa-why-card:hover,
.sa-mega-category-card:hover {
    border-color: #b9ccd8;

    box-shadow:
        0 10px 28px rgba(20, 40, 60, .09);

    transform: translateY(-3px);
}


/* ---------------------------------------------------------
   4. ВЫПАДАЮЩИЙ КАТАЛОГ
   --------------------------------------------------------- */

.sa-mega-menu {
    background: #f4f7f9;
    border-top: 1px solid #dfe6eb;
    border-bottom: 1px solid #d8e1e7;

    box-shadow:
        0 16px 30px rgba(15, 30, 45, .10);
}

.sa-mega-category-card {
    background: #ffffff;
}


/* ---------------------------------------------------------
   5. FOOTER
   --------------------------------------------------------- */

.sa-footer {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #0e1926 0%,
            #14283a 100%
        );

    border-top: 4px solid #078bbb;
}

.sa-footer__grid {
    padding-top: 70px;
    padding-bottom: 60px;
}

.sa-footer__column h3 {
    margin-bottom: 20px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    color: #ffffff;
}

.sa-footer__column a {
    font-size: 14px;
    line-height: 1.65;

    color: #c2d1dc;

    transition: color .2s ease;
}

.sa-footer__column a:hover {
    color: #ffffff;
}

.sa-footer__brand p {
    font-size: 14px;
    line-height: 1.65;

    color: #b9cad7;
}

.sa-footer__phone {
    margin-top: 22px;

    font-size: 24px;
    font-weight: 800;

    color: #ffffff;
}


/* ---------------------------------------------------------
   6. НИЖНЯЯ ЧАСТЬ FOOTER
   --------------------------------------------------------- */

.sa-footer__bottom {
    padding-top: 22px;
    padding-bottom: 24px;

    border-top: 1px solid rgba(255,255,255,.12);

    font-size: 12px;

    color: #8299aa;
}


/* ---------------------------------------------------------
   7. МОБИЛЬНАЯ ВЕРСИЯ
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .sa-category-nav__inner {
        justify-content: flex-start;

        padding-left: 16px;
        padding-right: 16px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .sa-category-nav__inner::-webkit-scrollbar {
        display: none;
    }

    .sa-category-nav a {
        flex: 0 0 auto;

        white-space: nowrap;
    }

    .sa-footer__grid {
        padding-top: 48px;
        padding-bottom: 40px;
    }
}
/* ============================================================
   КНОПКА КАТАЛОГ — MECHANIC V1
   ============================================================ */

.sa-catalog-button--mechanic {
    position: relative;

    width: 158px;
    min-width: 158px;
    height: 52px;

    padding: 0 39px;

    overflow: hidden;

    /* более заметная голубовато-синяя рамка */
    border: 1px solid #397da5;
    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* фон специально светлее шестерёнок */
    background:
        linear-gradient(
            180deg,
            #315979 0%,
            #274b68 48%,
            #203f59 100%
        );

    color: #fff;
    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -1px 0 rgba(5,28,46,.28),
        0 2px 5px rgba(12,35,54,.10);

    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .18s ease;
}


/* ТЕКСТ */

.sa-catalog-button--mechanic
.sa-catalog-button__text {
    position: relative;

    z-index: 3;

    display: block;

    width: 100%;

    color: #fff;

    font-size: 14px;
    font-weight: 750;
    line-height: 1;

    text-align: center;

    pointer-events: none;
}


/* ШЕСТЕРНИ */

.sa-catalog-gear {
    position: absolute;

    top: 50%;

    z-index: 2;

    width: 47px;
    height: 47px;

    transform: translateY(-50%);

    opacity: .95;

    pointer-events: none;

    transition:
        opacity .2s ease,
        filter .2s ease;
}


.sa-catalog-gear img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.sa-catalog-gear--left {
    left: -23px;
}


.sa-catalog-gear--right {
    right: -23px;
}


/* ВНУТРЕННИЕ РАЗДЕЛИТЕЛИ */

.sa-catalog-button--mechanic::before,
.sa-catalog-button--mechanic::after {
    content: "";

    position: absolute;

    top: 10px;
    bottom: 10px;

    z-index: 1;

    width: 1px;

    background: rgba(255,255,255,.25);

    transition:
        background .2s ease,
        opacity .2s ease;
}


.sa-catalog-button--mechanic::before {
    left: 36px;
}


.sa-catalog-button--mechanic::after {
    right: 36px;
}


/* ============================================================
   HOVER
   ============================================================ */

.sa-catalog-button--mechanic:hover {
    border-color: #29a9dc;

    background:
        linear-gradient(
            180deg,
            #39749a 0%,
            #2b6387 48%,
            #245571 100%
        );

    box-shadow:
        0 5px 16px rgba(0, 119, 166, .22),
        inset 0 1px 0 rgba(255,255,255,.20),
        inset 0 -1px 0 rgba(5,28,46,.20);

    transform: translateY(-1px);
}


.sa-catalog-button--mechanic:hover
.sa-catalog-gear {
    opacity: 1;

    filter:
        brightness(1.18)
        saturate(1.12);
}


.sa-catalog-button--mechanic:hover
.sa-catalog-gear--left img {
    animation:
        saGearSpinLeft
        .9s
        linear
        infinite;
}


.sa-catalog-button--mechanic:hover
.sa-catalog-gear--right img {
    animation:
        saGearSpinRight
        .9s
        linear
        infinite;
}


.sa-catalog-button--mechanic:hover::before,
.sa-catalog-button--mechanic:hover::after {
    background:
        rgba(76,192,232,.48);
}


/* ============================================================
   ПРИ ОТКРЫТОМ КАТАЛОГЕ
   ============================================================ */

.sa-catalog-button--mechanic[aria-expanded="true"] {
    border-color: #0b94c7;

    background:
        linear-gradient(
            180deg,
            #0d7eaa 0%,
            #08688f 100%
        );

    box-shadow:
        0 5px 17px rgba(0, 126, 175, .23);
}


.sa-catalog-button--mechanic[aria-expanded="true"]
.sa-catalog-gear {
    opacity: 1;
}


.sa-catalog-button--mechanic[aria-expanded="true"]
.sa-catalog-gear--left img {
    animation:
        saGearSpinLeft
        1.5s
        linear
        infinite;
}


.sa-catalog-button--mechanic[aria-expanded="true"]
.sa-catalog-gear--right img {
    animation:
        saGearSpinRight
        1.5s
        linear
        infinite;
}


/* ============================================================
   НАЖАТИЕ
   ============================================================ */

.sa-catalog-button--mechanic:active {
    transform:
        translateY(1px)
        scale(.985);
}


/* ============================================================
   КЛАВИАТУРА
   ============================================================ */

.sa-catalog-button--mechanic:focus-visible {
    outline: 3px solid rgba(18,159,211,.25);
    outline-offset: 3px;
}


/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes saGearSpinLeft {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


@keyframes saGearSpinRight {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }

}


/* ============================================================
   УВАЖАЕМ reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .sa-catalog-button--mechanic
    .sa-catalog-gear img {
        animation: none !important;
    }

}


/* ============================================================
   ЧУТЬ КОМПАКТНЕЕ НА СРЕДНИХ ЭКРАНАХ
   ============================================================ */

@media (max-width: 1200px) {

    .sa-catalog-button--mechanic {
        width: 145px;
        min-width: 145px;

        padding-left: 36px;
        padding-right: 36px;
    }

}
/* =========================================================
   ГЛАВНЫЕ БАННЕРЫ РТИ / СТАЛЬ — V6
   Компактная версия
   ========================================================= */

.main-category-banners {
    width: 100%;

    /* Уменьшаем пустое пространство над и под баннерами */
    padding: 10px 0 12px;

    background:
        linear-gradient(
            180deg,
            #f5f8fa 0%,
            #eef3f6 100%
        );

    border-top: 1px solid #dfe7ec;
    border-bottom: 1px solid #d7e0e6;
}


/* =========================================================
   ОБЩИЙ КОНТЕЙНЕР
   ========================================================= */

.main-category-banners__inner {
    width: calc(100% - 110px);
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   ОБЩАЯ КАРТОЧКА
   ========================================================= */

.main-category-banner {
    position: relative;

    display: block;

    min-width: 0;

    /*
       Было 360px.
       Теперь баннер заметно компактнее.
    */
    height: 310px;

    overflow: hidden;

    border: 1px solid #cedae2;
    border-radius: 16px;

    background: #eef3f6;

    box-shadow:
        0 3px 8px rgba(17, 38, 58, .045),
        0 10px 25px rgba(17, 38, 58, .07);

    text-decoration: none;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


/* =========================================================
   ОБЩЕЕ ИЗОБРАЖЕНИЕ
   ========================================================= */

.main-category-banner img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    /*
       Картинка заполняет карточку.
       Лишнее сверху/снизу автоматически обрезается.
    */
    object-fit: cover;
    object-position: center center;

    transition:
        transform .35s ease,
        filter .25s ease;
}


/* =========================================================
   РТИ
   ========================================================= */

/*
   РТИ немного смещаем вправо,
   чтобы текст не прижимался к левому краю.
*/

.main-category-banner--rti img {
    width: calc(100% + 24px);

    margin-left: 12px;

    /*
       Чуть увеличиваем изображение.
       Это также помогает полностью убрать белые края.
    */
    transform: scale(1.055);

    object-position: center center;
}


/* =========================================================
   СТАЛЬ
   ========================================================= */

.main-category-banner--steel img {
    width: 100%;

    margin-left: 0;

    transform: scale(1.035);

    object-position: center center;
}


/* =========================================================
   HOVER КАРТОЧКИ
   ========================================================= */

.main-category-banner:hover {
    transform: translateY(-3px);

    border-color: #9eb8ca;

    box-shadow:
        0 6px 16px rgba(17, 38, 58, .08),
        0 16px 34px rgba(17, 38, 58, .10);
}


/* =========================================================
   HOVER ИЗОБРАЖЕНИЙ
   ========================================================= */

.main-category-banner:hover img {
    filter:
        contrast(1.02)
        saturate(1.03);
}


.main-category-banner--rti:hover img {
    transform: scale(1.07);
}


.main-category-banner--steel:hover img {
    transform: scale(1.05);
}


/* =========================================================
   ЛЁГКИЙ БЛИК ПРИ НАВЕДЕНИИ
   ========================================================= */

.main-category-banner::after {
    content: "";

    position: absolute;

    top: 0;
    left: -75%;

    width: 45%;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(255,255,255,.02) 35%,
            rgba(255,255,255,.22) 50%,
            rgba(255,255,255,.02) 65%,
            transparent 100%
        );

    transform: skewX(-18deg);

    transition: left .65s ease;
}


.main-category-banner:hover::after {
    left: 135%;
}


/* =========================================================
   НАЖАТИЕ
   ========================================================= */

.main-category-banner:active {
    transform:
        translateY(-1px)
        scale(.997);
}


/* =========================================================
   ФОКУС
   ========================================================= */

.main-category-banner:focus-visible {
    outline: 3px solid rgba(10, 139, 190, .28);
    outline-offset: 3px;
}


/* =========================================================
   НОУТБУКИ
   ========================================================= */

@media (max-width: 1400px) {

    .main-category-banners__inner {
        width: calc(100% - 80px);
        max-width: 1320px;

        gap: 16px;
    }


    .main-category-banner {
        height: 295px;
    }


    .main-category-banner--rti img {
        width: calc(100% + 20px);

        margin-left: 10px;
    }

}


/* =========================================================
   НЕБОЛЬШИЕ НОУТБУКИ
   ========================================================= */

@media (max-width: 1200px) {

    .main-category-banners {
        padding: 9px 0 11px;
    }


    .main-category-banners__inner {
        width: calc(100% - 50px);

        gap: 14px;
    }


    .main-category-banner {
        height: 275px;

        border-radius: 14px;
    }


    .main-category-banner--rti img {
        width: calc(100% + 16px);

        margin-left: 8px;
    }

}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .main-category-banners__inner {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .main-category-banner {
        height: 320px;
    }


    .main-category-banner--rti img {
        width: 100%;

        margin-left: 0;

        transform: scale(1.035);
    }


    .main-category-banner--steel img {
        transform: scale(1.035);
    }

}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 600px) {

    .main-category-banners {
        padding: 8px 0;
    }

    .main-category-banners__inner {
        width: calc(100% - 20px);
        gap: 10px;
    }

    .main-category-banner {
        height: 205px;
        border-radius: 12px;
    }

    /*
       На телефоне полностью отменяем десктопное
       расширение и смещение РТИ
    */

    .main-category-banner--rti img {
        width: 100%;
        height: 100%;

        margin-left: 0;

        object-fit: cover;
        object-position: center center;

        transform: scale(1);
    }

    /*
       Сталь тоже приводим к той же логике,
       чтобы оба баннера выглядели одинаково
    */

    .main-category-banner--steel img {
        width: 100%;
        height: 100%;

        margin-left: 0;

        object-fit: cover;
        object-position: center center;

        transform: scale(1);
    }

    /*
       На мобильном hover-анимация не нужна
    */

    .main-category-banner:hover {
        transform: none;
    }

    .main-category-banner--rti:hover img,
    .main-category-banner--steel:hover img {
        transform: scale(1);
    }

}
/* =========================================================
   ГЛАВНЫЙ БАННЕР — УВЕЛИЧЕННАЯ ОБЛАСТЬ ПОИСКА
   ========================================================= */

@media (min-width: 1101px) {

    .sa-hero__box {
        grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    }

    .sa-hero__content {
        width: 100%;
        max-width: none;
        padding-right: 42px;
    }

    .sa-hero-search {
        width: 100%;
        max-width: none;
    }

    .sa-hero-search input {
        min-width: 0;
        width: 100%;
    }

    .sa-hero__media {
        min-width: 0;
        overflow: hidden;
    }

    .sa-hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 58% center;
    }
}


/* ПЛАНШЕТЫ */

@media (min-width: 769px) and (max-width: 1100px) {

    .sa-hero__box {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    }

    .sa-hero__content {
        width: 100%;
        max-width: none;
        padding-right: 25px;
    }

    .sa-hero-search {
        width: 100%;
        max-width: none;
    }

    .sa-hero__media {
        min-width: 0;
        overflow: hidden;
    }

    .sa-hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 58% center;
    }
}


/* ТЕЛЕФОНЫ — СОХРАНЯЕМ ТЕКУЩУЮ МОБИЛЬНУЮ КОМПОНОВКУ */

@media (max-width: 768px) {

    .sa-hero__content,
    .sa-hero-search {
        width: 100%;
        max-width: none;
    }
}
/* Главный баннер на телефонах и небольших планшетах */

@media (max-width: 768px) {

    .sa-hero__box {
        grid-template-columns: 1fr;
    }

    .sa-hero__content {
        width: 100%;
        max-width: none;
        padding: 34px 23px;
    }

    .sa-hero-search {
        width: 100%;
        max-width: none;
    }

    .sa-hero__media {
        min-height: 230px;
    }
}

@media (max-width: 480px) {

    .sa-hero-search button {
        padding: 0 16px;
    }

    .sa-hero-search input {
        padding: 0 14px;
    }
}
/* Убираем горизонтальное смещение сайта на телефонах */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    body.sagro-new {
        position: relative;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .sa-header,
    .sa-main,
    .sa-footer {
        max-width: 100%;
    }

    img,
    svg {
        max-width: 100%;
    }
}
/* =========================================================
   ТЕЛЕФОН В ВЕРХНЕЙ ПОЛОСЕ
   ========================================================= */

.sa-topbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.sa-topbar__phone svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: #22a7df;
}

.sa-topbar__phone:hover {
    color: #45c4f5;
}


/* Телефон на мобильных устройствах */

@media (max-width: 640px) {

    .sa-topbar__inner {
        justify-content: stretch;
    }

    .sa-topbar__left {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .sa-topbar__phone {
        flex-shrink: 0;
        font-size: 12px;
    }

    /* Возвращаем текст номера, поскольку старое правило
       скрывает дополнительные span в верхней полоске */

    .sa-topbar__phone span {
        display: inline !important;
    }

    .sa-topbar__phone svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }
}


/* Совсем узкие телефоны */

@media (max-width: 370px) {

    .sa-topbar__delivery {
        font-size: 11px;
    }

    .sa-topbar__phone {
        gap: 4px;
        font-size: 11px;
    }
}