:root {
    --af-green: #8cc63f;
    --af-green-hover: #7bb236;
    --af-black: #111111;
    --af-gray: #777777;
    --af-border: #bdbdbd;
    --af-white: #ffffff;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Montserrat", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: var(--af-black);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* First screen */
.af-first-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #050505;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Header */
.af-header,
.af-header * {
    box-sizing: border-box;
}

.af-header {
    width: 100%;
    background: var(--af-white);
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 100;
}

.af-header__inner {
    width: 100%;
    min-height: 74px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.af-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.af-header__logo img {
    width: 180px;
    height: auto;
}

.af-header__catalog {
    flex: 0 0 auto;
    min-width: 128px;
    height: 34px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--af-green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.af-header__catalog:hover {
    background: var(--af-green-hover);
}

.af-header__catalog:active {
    transform: scale(0.97);
}

.af-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.2vw, 36px);
    flex: 1 1 auto;
    min-width: 0;
}

.af-header__nav a {
    color: var(--af-black);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.af-header__nav a:hover {
    color: var(--af-green-hover);
}

.af-header__search {
    width: 240px;
    height: 34px;
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    margin-left: auto;
    border: 1px solid var(--af-border);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.af-header__search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 8px 0 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--af-black);
    font-size: 13px;
    font-weight: 400;
}

.af-header__search input::placeholder {
    color: var(--af-gray);
    opacity: 1;
}

.af-header__search button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-header__search svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #777777;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Burger */
.af-header__burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.af-header__burger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #111111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.af-header.is-open .af-header__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.af-header.is-open .af-header__burger span:nth-child(2) {
    opacity: 0;
}

.af-header.is-open .af-header__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.af-header__mobile {
    display: none;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.af-header__mobile-nav {
    padding: 10px 20px 18px;
    display: flex;
    flex-direction: column;
}

.af-header__mobile-nav a {
    padding: 13px 0;
    color: var(--af-black);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    border-bottom: 1px solid #f1f1f1;
}

.af-header__mobile-nav a:hover {
    color: var(--af-green-hover);
}

/* Hero */
.af-hero {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #050505;
}

.af-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("img/banner_bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.af-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.74) 0%,
                    rgba(0, 0, 0, 0.56) 34%,
                    rgba(0, 0, 0, 0.16) 62%,
                    rgba(0, 0, 0, 0.08) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0.08) 0%,
                    rgba(0, 0, 0, 0.12) 52%,
                    rgba(0, 0, 0, 0.52) 100%
            );
}

.af-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1840px;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(48px, 7vh, 118px) 52px clamp(92px, 12vh, 150px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.af-hero__title {
    max-width: 900px;
    margin: 0 0 clamp(22px, 3vh, 34px);
    color: #ffffff;
    font-size: clamp(46px, 4.3vw, 82px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.af-hero__text {
    max-width: 760px;
    margin: 0 0 clamp(34px, 5vh, 54px);
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(17px, 1.25vw, 25px);
    line-height: 1.55;
    font-weight: 400;
}

.af-hero__buttons {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.af-hero__btn {
    min-width: 260px;
    height: 64px;
    padding: 0 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.af-hero__btn:hover {
    transform: translateY(-1px);
}

.af-hero__btn--green {
    background: linear-gradient(180deg, #70ca3a 0%, #54b82d 100%);
    box-shadow: 0 12px 26px rgba(83, 188, 46, 0.26);
}

.af-hero__btn--green:hover {
    background: linear-gradient(180deg, #7bd943 0%, #58bd31 100%);
    box-shadow: 0 16px 34px rgba(83, 188, 46, 0.34);
}

.af-hero__btn--green span {
    width: 14px;
    height: 14px;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.af-hero__btn--outline {
    min-width: 250px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(4px);
}

.af-hero__btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.72);
}

.af-hero__dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: clamp(74px, 11vh, 150px);
    transform: translateX(-2%);
    display: flex;
    align-items: center;
    gap: 18px;
}

.af-hero__dots button {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    opacity: 1;
    transition:
            background 0.2s ease,
            transform 0.2s ease;
}

.af-hero__dots button:hover {
    transform: scale(1.15);
}

.af-hero__dots button.is-active {
    background: #55b934;
}

/* Filter */
.af-fit-filter {
    width: 100%;
    position: relative;
    z-index: 30;
    margin-top: -64px;
    padding-bottom: 28px;
    background:
            linear-gradient(
                    to bottom,
                    transparent 0,
                    transparent 64px,
                    #ffffff 64px,
                    #ffffff 100%
            );
}

.af-fit-filter__container {
    width: min(100% - 104px, 1680px);
    margin: 0 auto;
    position: relative;
    z-index: 31;
}

.af-fit-filter__card {
    width: 100%;
    min-height: 132px;
    margin: 0;
    padding: 28px 64px 34px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
            0 22px 44px rgba(0, 0, 0, 0.09),
            0 4px 12px rgba(0, 0, 0, 0.045);
}

.af-fit-filter__title {
    margin: 0 0 22px;
    color: #111111;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.af-fit-filter__grid {
    display: grid;
    grid-template-columns:
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    280px;
    gap: 28px 72px;
    align-items: end;
}

.af-fit-filter__field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.af-fit-filter__field label {
    color: #111111;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.af-fit-filter__field select {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    border: 1px solid #9f9f9f;
    border-radius: 7px;
    background-color: #ffffff;
    color: #777777;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image:
            linear-gradient(45deg, transparent 50%, #777777 50%),
            linear-gradient(135deg, #777777 50%, transparent 50%);
    background-position:
            calc(100% - 18px) 16px,
            calc(100% - 13px) 16px;
    background-size:
            5px 5px,
            5px 5px;
    background-repeat: no-repeat;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.af-fit-filter__field select:focus {
    border-color: #8cc63f;
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.16);
}

.af-fit-filter__action {
    display: flex;
    align-items: flex-end;
}

.af-fit-filter__action button {
    width: 100%;
    height: 38px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #8cc63f;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition:
            background 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.af-fit-filter__action button:hover {
    background: #7bb236;
    box-shadow: 0 8px 20px rgba(123, 178, 54, 0.26);
}

.af-fit-filter__action button:active {
    transform: scale(0.98);
}

/* ============================================================
   WHY SECTION — УМЕНЬШЕННЫЕ БЛОКИ С СОХРАНЕНИЕМ СТИЛЕЙ
   ============================================================ */
.af-why {
    width: 100%;
    padding: 60px 0 70px;
    background: #ffffff;
}

.af-why,
.af-why * {
    box-sizing: border-box;
}

.af-why__container {
    width: min(100% - 96px, 1680px);
    margin: 0 auto;
}

.af-why__title {
    margin: 0 0 40px;
    color: #111111;
    text-align: left;
    font-size: clamp(34px, 2.8vw, 52px);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.af-why__title span {
    color: #8cc63f;
}

/* 4 колонки в строку — компактные карточки */
.af-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    cursor: pointer;
}

/* Компактная карточка с сохранением оригинальных стилей */
.af-why-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.055);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    text-decoration: none;
    color: #111111;
}

.af-why-card:hover,
.af-why-card:focus-visible {
    transform: translateY(-4px) scale(1.012);
    border-color: rgba(140, 198, 63, 0.38);
    background:
            radial-gradient(circle at 22% 50%, rgba(140, 198, 63, 0.18), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #fbfff8 100%);
    box-shadow:
            0 34px 70px rgba(0, 0, 0, 0.11),
            0 18px 34px rgba(140, 198, 63, 0.16);
}

.af-why-card:focus-visible {
    outline: 3px solid rgba(140, 198, 63, 0.35);
    outline-offset: 5px;
}

.af-why-card__icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    background: rgba(140, 198, 63, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.af-why-card:hover .af-why-card__icon,
.af-why-card:focus-visible .af-why-card__icon {
    transform: scale(1.06);
    background: rgba(140, 198, 63, 0.2);
    box-shadow: 0 16px 34px rgba(140, 198, 63, 0.2);
}

.af-why-card__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.af-why-card__content {
    min-width: 0;
    flex: 1;
}

.af-why-card h3 {
    margin: 0 0 6px;
    color: #111111;
    font-size: clamp(18px, 1.2vw, 24px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.af-why-card p {
    margin: 0;
    color: #5f5f5f;
    font-size: clamp(13px, 0.8vw, 15px);
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ============================================================
   АДАПТИВ — перестроение в колонки
   ============================================================ */

/* До 1024px — 2 колонки */
@media (max-width: 1024px) {
    .af-why {
        padding: 50px 0 60px;
    }

    .af-why__container {
        width: min(100% - 48px, 100%);
    }

    .af-why__title {
        margin-bottom: 32px;
        font-size: 28px;
    }

    .af-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .af-why-card {
        padding: 20px 22px;
        min-height: 110px;
        gap: 14px;
        border-radius: 20px;
    }

    .af-why-card__icon {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .af-why-card__icon img {
        width: 34px;
        height: 34px;
    }

    .af-why-card h3 {
        font-size: 20px;
    }

    .af-why-card p {
        font-size: 14px;
    }
}

/* До 768px — 1 колонка */
@media (max-width: 768px) {
    .af-why {
        padding: 40px 0 50px;
    }

    .af-why__container {
        width: min(100% - 24px, 100%);
    }

    .af-why__title {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .af-why__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .af-why-card {
        padding: 18px 22px;
        min-height: auto;
        gap: 16px;
        border-radius: 18px;
    }

    .af-why-card__icon {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .af-why-card__icon img {
        width: 34px;
        height: 34px;
    }

    .af-why-card h3 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .af-why-card p {
        font-size: 14px;
    }
}

/* До 480px */
@media (max-width: 480px) {
    .af-why {
        padding: 30px 0 40px;
    }

    .af-why__container {
        width: min(100% - 16px, 100%);
    }

    .af-why__title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .af-why__grid {
        gap: 12px;
    }

    .af-why-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
        gap: 12px;
        border-radius: 16px;
    }

    .af-why-card__icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .af-why-card__icon img {
        width: 28px;
        height: 28px;
    }

    .af-why-card h3 {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .af-why-card p {
        font-size: 13px;
    }
}

/* ============================================================
   ОСТАЛЬНЫЕ АДАПТИВНЫЕ СТИЛИ (header, hero, filter)
   ============================================================ */

@media (max-width: 1440px) {
    .af-header__inner {
        padding: 0 36px;
        gap: 22px;
    }
    .af-header__logo img {
        width: 168px;
    }
    .af-header__nav {
        gap: 24px;
    }
    .af-header__search {
        width: 220px;
        flex-basis: 220px;
    }
    .af-fit-filter__container {
        width: min(100% - 72px, 1380px);
    }
    .af-fit-filter__card {
        padding-left: 44px;
        padding-right: 44px;
    }
    .af-fit-filter__grid {
        gap: 26px 46px;
        grid-template-columns:
            minmax(150px, 1fr)
            minmax(150px, 1fr)
            minmax(150px, 1fr)
            minmax(150px, 1fr)
            230px;
    }
}

@media (max-width: 1180px) {
    .af-header__inner {
        padding: 0 24px;
        gap: 16px;
    }
    .af-header__logo img {
        width: 148px;
    }
    .af-header__catalog {
        min-width: 88px;
        height: 30px;
        padding: 0 18px;
        font-size: 12px;
    }
    .af-header__nav {
        gap: 14px;
    }
    .af-header__nav a {
        font-size: 12px;
    }
    .af-header__search {
        width: 190px;
        flex-basis: 190px;
    }
    .af-hero__bg {
        background-position: 58% center;
    }
    .af-hero__content {
        padding-left: 32px;
        padding-right: 32px;
    }
    .af-hero__title {
        max-width: 620px;
    }
    .af-hero__text {
        max-width: 570px;
    }
    .af-hero__dots {
        left: 54%;
    }
    .af-fit-filter {
        margin-top: -28px;
        background: linear-gradient(to bottom, transparent 0, transparent 28px, #ffffff 28px, #ffffff 100%);
    }
    .af-fit-filter__container {
        width: min(100% - 64px, 1040px);
    }
    .af-fit-filter__card {
        padding: 24px 36px 28px;
    }
    .af-fit-filter__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px 28px;
    }
    .af-fit-filter__action {
        grid-column: 1 / -1;
    }
    .af-fit-filter__action button {
        max-width: 280px;
    }
}

@media (max-width: 980px) {
    .af-header__inner {
        padding: 0 18px;
        gap: 11px;
    }
    .af-header__logo img {
        width: 124px;
    }
    .af-header__catalog {
        min-width: 76px;
        padding: 0 12px;
        font-size: 10.5px;
        border-radius: 7px;
    }
    .af-header__nav {
        gap: 10px;
    }
    .af-header__nav a {
        font-size: 10.5px;
    }
    .af-header__search {
        width: 170px;
        flex-basis: 170px;
        height: 28px;
    }
    .af-header__search input {
        font-size: 10.5px;
    }
    .af-header__search button {
        height: 28px;
    }
    .af-hero__bg {
        background-position: 66% center;
    }
    .af-hero::after {
        background:
                linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.65) 46%, rgba(0,0,0,0.18) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.24) 58%, rgba(0,0,0,0.62) 100%);
    }
    .af-hero__content {
        padding-left: 28px;
        padding-right: 28px;
    }
    .af-hero__title {
        max-width: 560px;
        font-size: 42px;
    }
    .af-hero__text {
        max-width: 510px;
        font-size: 16px;
    }
    .af-hero__buttons {
        gap: 18px;
    }
    .af-hero__btn {
        min-width: 210px;
        height: 54px;
        padding: 0 28px;
        font-size: 16px;
    }
    .af-hero__dots {
        left: 28px;
        bottom: 34px;
        transform: none;
    }
    .af-fit-filter {
        margin-top: -40px;
        background: linear-gradient(to bottom, transparent 0, transparent 40px, #ffffff 40px, #ffffff 100%);
    }
    .af-fit-filter__container {
        width: min(100% - 40px, 760px);
    }
    .af-fit-filter__card {
        padding: 22px 28px 26px;
    }
    .af-fit-filter__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 22px;
    }
    .af-fit-filter__action {
        grid-column: span 2;
    }
    .af-fit-filter__action button {
        max-width: none;
        height: 38px;
    }
    .af-fit-filter__field select {
        height: 38px;
        font-size: 12px;
        background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
    }
}

@media (max-width: 768px) {
    .af-header__inner {
        min-height: 68px;
        padding: 0 18px;
        gap: 14px;
    }
    .af-header__logo img {
        width: 145px;
    }
    .af-header__nav {
        display: none;
    }
    .af-header__search {
        width: clamp(180px, 38vw, 240px);
        flex-basis: clamp(180px, 38vw, 240px);
        margin-left: auto;
    }
    .af-header__burger {
        display: flex;
    }
    .af-header.is-open .af-header__mobile {
        display: block;
    }
}

@media (max-width: 640px) {
    .af-header__inner {
        min-height: auto;
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .af-header__logo img {
        width: 145px;
    }
    .af-header__burger {
        margin-left: auto;
    }
    .af-header__catalog {
        order: 3;
        width: calc(50% - 6px);
        height: 38px;
        border-radius: 10px;
        font-size: 13px;
    }
    .af-header__search {
        order: 4;
        width: calc(50% - 6px);
        flex-basis: calc(50% - 6px);
        height: 38px;
        margin-left: 0;
    }
    .af-header__search button {
        height: 38px;
    }
    .af-hero__bg {
        background-position: 72% center;
    }
    .af-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.22);
        pointer-events: none;
    }
    .af-hero__content {
        padding: 38px 16px 76px;
        justify-content: center;
    }
    .af-hero__title {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.025em;
    }
    .af-hero__text {
        max-width: 100%;
        margin-bottom: 34px;
        font-size: 14.5px;
        line-height: 1.55;
    }
    .af-hero__text br {
        display: none;
    }
    .af-hero__buttons {
        width: 100%;
        gap: 14px;
    }
    .af-hero__btn {
        width: 100%;
        min-width: 0;
        height: 52px;
        border-radius: 9px;
        font-size: 15px;
    }
    .af-hero__dots {
        left: 16px;
        bottom: 28px;
        gap: 13px;
    }
    .af-hero__dots button {
        width: 12px;
        height: 12px;
    }
    .af-fit-filter {
        margin-top: -10px;
        padding-bottom: 22px;
        background: linear-gradient(to bottom, transparent 0, transparent 30px, #ffffff 30px, #ffffff 100%);
    }
    .af-fit-filter__container {
        width: min(100% - 24px, 100%);
    }
    .af-fit-filter__card {
        padding: 20px 16px 18px;
        border-radius: 14px;
    }
    .af-fit-filter__title {
        margin-bottom: 16px;
        font-size: 19px;
    }
    .af-fit-filter__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .af-fit-filter__action {
        grid-column: auto;
    }
    .af-fit-filter__action button {
        max-width: none;
        height: 42px;
        font-size: 13px;
    }
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.af-categories {
    width: 100%;
    padding: 80px 0 90px;
    background: #f8faf8;
}

.af-categories__container {
    width: min(100% - 96px, 1680px);
    margin: 0 auto;
}

.af-categories__title {
    margin: 0 0 48px;
    color: #111111;
    text-align: center;
    font-size: clamp(34px, 2.8vw, 52px);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -0.035em;
}

/* Grid — 7 карточек в строку */
.af-categories__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

/* Карточка категории */
.af-categories-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 16px 24px;
    text-align: center;
    text-decoration: none;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.af-categories-card:hover {
    transform: translateY(-6px);
    border-color: rgba(140, 198, 63, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.af-categories-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(140, 198, 63, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.af-categories-card:hover .af-categories-card__icon {
    transform: scale(1.06);
    background: rgba(140, 198, 63, 0.18);
}

.af-categories-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.af-categories-card h3 {
    margin: 0 0 6px;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
}

.af-categories-card p {
    margin: 0;
    font-size: clamp(12px, 0.7vw, 14px);
    color: #777777;
    line-height: 1.3;
    font-weight: 400;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* До 1200px — 5 колонок */
@media (max-width: 1200px) {
    .af-categories__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    .af-categories-card {
        padding: 24px 14px 20px;
    }
    .af-categories-card__icon {
        width: 64px;
        height: 64px;
    }
    .af-categories-card__icon img {
        width: 32px;
        height: 32px;
    }
    .af-categories-card h3 {
        font-size: 15px;
    }
    .af-categories-card p {
        font-size: 12px;
    }
}

/* До 992px — 4 колонки */
@media (max-width: 992px) {
    .af-categories {
        padding: 60px 0 70px;
    }
    .af-categories__container {
        width: min(100% - 48px, 100%);
    }
    .af-categories__title {
        margin-bottom: 36px;
        font-size: 28px;
    }
    .af-categories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .af-categories-card {
        padding: 20px 12px 18px;
        border-radius: 16px;
    }
    .af-categories-card__icon {
        width: 56px;
        height: 56px;
    }
    .af-categories-card__icon img {
        width: 28px;
        height: 28px;
    }
    .af-categories-card h3 {
        font-size: 14px;
    }
    .af-categories-card p {
        font-size: 11px;
    }
}

/* До 768px — 3 колонки */
@media (max-width: 768px) {
    .af-categories {
        padding: 48px 0 56px;
    }
    .af-categories__container {
        width: min(100% - 24px, 100%);
    }
    .af-categories__title {
        margin-bottom: 28px;
        font-size: 24px;
    }
    .af-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .af-categories-card {
        padding: 18px 10px 16px;
        border-radius: 14px;
    }
    .af-categories-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    .af-categories-card__icon img {
        width: 24px;
        height: 24px;
    }
    .af-categories-card h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .af-categories-card p {
        font-size: 10px;
    }
}

/* До 480px — 2 колонки */
@media (max-width: 480px) {
    .af-categories {
        padding: 36px 0 44px;
    }
    .af-categories__container {
        width: min(100% - 16px, 100%);
    }
    .af-categories__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .af-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .af-categories-card {
        padding: 16px 8px 14px;
        border-radius: 12px;
    }
    .af-categories-card__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    .af-categories-card__icon img {
        width: 22px;
        height: 22px;
    }
    .af-categories-card h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .af-categories-card p {
        font-size: 10px;
    }
}

/* ============================================================
   CATALOG PRODUCT CATEGORIES — блок под концепцию сайта
   ============================================================ */

.af-catalog-section,
.af-catalog-section * {
    box-sizing: border-box;
}

.af-catalog-section {
    width: 100%;
    padding: 34px 0 64px;
    background: #ffffff;
}

.af-catalog-section__container {
    width: min(100% - 104px, 1680px);
    margin: 0 auto;
}

.af-catalog-section__head {
    margin: 0 0 24px;
}

.af-catalog-section__title {
    margin: 0;
    color: #111111;
    font-size: clamp(24px, 1.8vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.af-catalog-section__head span {
    width: 68px;
    height: 4px;
    margin-top: 14px;
    display: block;
    border-radius: 10px;
    background: #8cc63f;
}

.af-catalog-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px;
}

.af-catalog-card {
    min-height: 154px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #111111;
    text-decoration: none;
    background:
            radial-gradient(circle at 12% 50%, rgba(140, 198, 63, 0.055), transparent 34%),
            #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 18px;
    box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.055),
            0 3px 10px rgba(0, 0, 0, 0.035);
    transition:
            transform 0.26s ease,
            box-shadow 0.26s ease,
            border-color 0.26s ease,
            background 0.26s ease;
}

.af-catalog-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #8cc63f;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.af-catalog-card::before {
    content: "";
    position: absolute;
    right: 31px;
    bottom: 28px;
    width: 8px;
    height: 8px;
    z-index: 2;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translateY(8px) rotate(45deg);
    opacity: 0;
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.af-catalog-card:hover,
.af-catalog-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(140, 198, 63, 0.34);
    background:
            radial-gradient(circle at 14% 50%, rgba(140, 198, 63, 0.13), transparent 38%),
            linear-gradient(180deg, #ffffff 0%, #fbfff8 100%);
    box-shadow:
            0 26px 54px rgba(0, 0, 0, 0.09),
            0 16px 32px rgba(140, 198, 63, 0.12);
}

.af-catalog-card:hover::after,
.af-catalog-card:focus-visible::after,
.af-catalog-card:hover::before,
.af-catalog-card:focus-visible::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.af-catalog-card:focus-visible {
    outline: 3px solid rgba(140, 198, 63, 0.28);
    outline-offset: 4px;
}

.af-catalog-card__image {
    width: 42%;
    height: 114px;
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.12));
    transition: transform 0.28s ease;
}

.af-catalog-card:hover .af-catalog-card__image img {
    transform: scale(1.035);
}

.af-catalog-card__image--big img {
    transform: scale(1.08);
}

.af-catalog-card:hover .af-catalog-card__image--big img {
    transform: scale(1.45);
}

.af-catalog-card__image--wide {
    width: 46%;
    flex-basis: 46%;
    justify-content: flex-start;
}

.af-catalog-card__image--wide img {
    width: 116%;
    max-width: none;
}

.af-catalog-card__content {
    position: relative;
    z-index: 3;
    min-width: 0;
    flex: 1;
}

.af-catalog-card h3 {
    margin: 0 0 8px;
    color: #111111;
    font-size: clamp(18px, 1.28vw, 25px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.af-catalog-card p {
    margin: 0;
    color: #5f5f5f;
    font-size: clamp(12px, 0.78vw, 15px);
    line-height: 1.28;
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* Adaptive */
@media (max-width: 1440px) {
    .af-catalog-section__container {
        width: min(100% - 72px, 1380px);
    }

    .af-catalog-card {
        min-height: 142px;
        padding: 18px 20px;
        gap: 18px;
    }

    .af-catalog-card__image {
        height: 104px;
    }
}

@media (max-width: 1180px) {
    .af-catalog-section {
        padding: 30px 0 56px;
    }

    .af-catalog-section__container {
        width: min(100% - 64px, 1040px);
    }

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

    .af-catalog-card {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .af-catalog-section {
        padding: 24px 0 44px;
    }

    .af-catalog-section__container {
        width: min(100% - 28px, 100%);
    }

    .af-catalog-section__title {
        font-size: 24px;
    }

    .af-catalog-section__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .af-catalog-card {
        min-height: 136px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .af-catalog-card__image {
        width: 38%;
        flex-basis: 38%;
        height: 100px;
    }

    .af-catalog-card h3 {
        font-size: 21px;
    }

    .af-catalog-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .af-catalog-section {
        padding: 20px 0 36px;
    }

    .af-catalog-section__container {
        width: min(100% - 18px, 100%);
    }

    .af-catalog-card {
        min-height: 124px;
        padding: 14px 14px;
        gap: 14px;
    }

    .af-catalog-card__image {
        width: 36%;
        flex-basis: 36%;
        height: 88px;
    }

    .af-catalog-card h3 {
        font-size: 18px;
    }

    .af-catalog-card p {
        font-size: 12px;
    }

    .af-catalog-card::after,
    .af-catalog-card::before {
        display: none;
    }
}

.af-catalog-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.af-catalog-section__head-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.af-catalog-section__head-left > span {
    display: block;
    width: 68px;
    height: 4px;
    margin-top: 14px;
    border-radius: 10px;
    background: #64a34d;
}

.af-catalog-section__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px 10px 16px;
    border: 1px solid #64a34d;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
}




.af-catalog-section__all:hover {
    background: #8cc63f;
    color: #ffffff;
    transform: translateX(2px);
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */

.af-brands-section,
.af-brands-section * {
    box-sizing: border-box;
}

.af-brands-section {
    width: 100%;
    padding: 58px 0 42px;
    background: #ffffff;
    overflow: hidden;
}

.af-brands-section__container {
    width: min(100% - 104px, 1680px);
    margin: 0 auto;
}

.af-brands-section__logos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 42px;
}

.af-brand-logo {
    width: 100%;
    min-width: 140px;
    max-width: 240px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition:
            transform 0.25s ease,
            opacity 0.25s ease;
}

.af-brand-logo:hover {
    transform: translateY(-3px);
    opacity: 0.82;
}

.af-brand-logo img {
    display: block;
    width: auto;
    min-width: 140px;
    height: auto;
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

/* Индивидуальная подстройка размеров */
.af-brand-logo:nth-child(1) img {
    min-width: 140px;
    max-width: 175px;
    max-height: 70px;
}

.af-brand-logo:nth-child(2) img {
    min-width: 140px;
    max-width: 175px;
    max-height: 70px;
}

.af-brand-logo:nth-child(3) img {
    min-width: 140px;
    max-width: 155px;
    max-height: 70px;
}

.af-brand-logo:nth-child(4) img {
    min-width: 140px;
    max-width: 165px;
    max-height: 82px;
}

.af-brand-logo:nth-child(5) img {
    min-width: 140px;
    max-width: 175px;
    max-height: 70px;
}

.af-brands-section__bottom {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

.af-brands-section__all {
    min-width: 150px;
    height: 38px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #64a34d;
    border-radius: 999px;
    background: #ffffff;
    color: #64a34d;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition:
            background-color 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.af-brands-section__all:hover {
    background: #8cc63f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(100, 163, 77, 0.22);
}

/* ============================================================
   ADAPTIVE
   ============================================================ */

@media (max-width: 1180px) {
    .af-brands-section {
        padding: 48px 0 38px;
    }

    .af-brands-section__container {
        width: min(100% - 64px, 1040px);
    }

    .af-brands-section__logos {
        gap: 30px;
    }

    .af-brand-logo {
        min-width: 120px;
        max-width: 190px;
        height: 76px;
    }

    .af-brand-logo img {
        min-width: 120px;
        max-height: 62px;
    }

    .af-brand-logo:nth-child(1) img,
    .af-brand-logo:nth-child(2) img,
    .af-brand-logo:nth-child(3) img,
    .af-brand-logo:nth-child(4) img,
    .af-brand-logo:nth-child(5) img {
        min-width: 120px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .af-brands-section {
        padding: 44px 0 36px;
    }

    .af-brands-section__container {
        width: min(100% - 28px, 100%);
    }

    .af-brands-section__logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px 24px;
    }

    .af-brand-logo {
        min-width: 0;
        max-width: 160px;
        height: 62px;
    }

    .af-brand-logo img {
        min-width: 0;
        max-width: 100%;
        max-height: 52px;
    }

    .af-brand-logo:nth-child(1) img,
    .af-brand-logo:nth-child(2) img,
    .af-brand-logo:nth-child(3) img,
    .af-brand-logo:nth-child(4) img,
    .af-brand-logo:nth-child(5) img {
        min-width: 0;
        max-width: 120px;
    }

    .af-brands-section__bottom {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .af-brands-section {
        padding: 36px 0 32px;
    }

    .af-brands-section__container {
        width: min(100% - 18px, 100%);
    }

    .af-brands-section__logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .af-brand-logo {
        max-width: 145px;
        height: 56px;
    }

    .af-brand-logo img {
        max-width: 105px;
        max-height: 46px;
    }

    .af-brand-logo:nth-child(5) {
        grid-column: 1 / -1;
    }

    .af-brands-section__all {
        min-width: 138px;
        height: 36px;
        font-size: 12px;
    }
}

/* ============================================================
   CLIENT BLOCKS — Опт / Розница
   ============================================================ */

.af-client-blocks,
.af-client-blocks * {
    box-sizing: border-box;
}

.af-client-blocks {
    width: 100%;
    padding: 56px 0 70px;
    background: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
}

.af-client-blocks__container {
    width: min(100% - 104px, 1680px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* Карточка */
.af-client-card {
    min-height: 350px;
    padding: 48px 34px 24px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    align-items: stretch;
    gap: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.08),
            0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Левая часть */
.af-client-card__content {
    min-width: 0;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.af-client-card__title {
    max-width: 430px;
    margin: 0 0 28px;
    color: #111111;
    font-size: clamp(26px, 1.7vw, 36px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* Список */
.af-client-card__list {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}


.af-client-card__list li {
    position: relative;
    padding-left: 34px;
    color: #555555;
    font-size: clamp(14px, 0.86vw, 17px);
    line-height: 1.35;
    font-weight: 500;
}

.af-client-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #8cc63f;
}

/* Кнопка — ниже и строго на одной линии */
.af-client-card__button {
    min-width: 206px;
    height: 48px;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border-radius: 9px;
    background: #8cc63f;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition:
            background-color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.af-client-card__button:hover {
    background: #7bb236;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(140, 198, 63, 0.28);
}

/* Правая часть с картинкой */
.af-client-card__image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.af-client-card__image img {
    width: 125%;
    max-width: none;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
}

/* Картинка опта */
.af-client-card:nth-child(1) .af-client-card__image img {
    transform: scale(1.18);
}

/* Картинка розницы */
.af-client-card:nth-child(2) .af-client-card__image img {
    transform: scale(1.28);
}

/* ============================================================
   ADAPTIVE
   ============================================================ */

@media (max-width: 1280px) {
    .af-client-blocks__container {
        width: min(100% - 72px, 1180px);
        gap: 24px;
    }

    .af-client-card {
        min-height: 340px;
        padding: 42px 28px 24px 42px;
        grid-template-columns: minmax(0, 1fr) 42%;
    }

    .af-client-card__image {
        min-height: 230px;
    }

    .af-client-card__image img {
        width: 130%;
        max-height: 260px;
    }
}

@media (max-width: 980px) {
    .af-client-blocks__container {
        grid-template-columns: 1fr;
    }

    .af-client-card {
        min-height: 320px;
        grid-template-columns: minmax(0, 1fr) 40%;
    }

    .af-client-card__image {
        min-height: 220px;
    }

    .af-client-card__image img {
        width: 120%;
        max-height: 240px;
    }

    .af-client-card:nth-child(1) .af-client-card__image img {
        transform: scale(1.1);
    }

    .af-client-card:nth-child(2) .af-client-card__image img {
        transform: scale(1.16);
    }
}

@media (max-width: 640px) {
    .af-client-blocks {
        padding: 36px 0 46px;
    }

    .af-client-blocks__container {
        width: min(100% - 28px, 100%);
        gap: 18px;
    }

    .af-client-card {
        min-height: auto;
        padding: 28px 24px 26px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 18px;
        align-items: stretch;
    }

    .af-client-card__title {
        max-width: 100%;
        margin-bottom: 22px;
        font-size: 24px;
    }

    .af-client-card__list {
        gap: 12px;
    }

    .af-client-card__list li {
        font-size: 14px;
    }


    .af-client-card__button {
        width: 100%;
        min-width: 0;
        height: 48px;
        margin-top: 24px;
        align-self: stretch;
    }

    .af-client-card__image {
        min-height: 180px;
    }

    .af-client-card__image img {
        width: 100%;
        max-width: 340px;
        max-height: 220px;
    }

    .af-client-card:nth-child(1) .af-client-card__image img,
    .af-client-card:nth-child(2) .af-client-card__image img {
        transform: scale(1.08);
    }
}

/* ============================================================
   RELIABILITY SECTION — Надёжность, производство и качество
   ============================================================ */

.af-reliability,
.af-reliability * {
    box-sizing: border-box;
}

.af-reliability {
    width: 100%;
    padding: 28px 0 38px;
    background: #070c12;
    font-family: "Montserrat", Arial, sans-serif;
}

.af-reliability__container {
    width: min(100% - 96px, 1680px);
    margin: 0 auto;
}

.af-reliability__title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(22px, 1.8vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.af-reliability__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

/* Карточка */
.af-reliability-card {
    min-height: 156px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #10161d;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.28),
            inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.af-reliability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 198, 63, 0.9);
    box-shadow:
            0 22px 44px rgba(0, 0, 0, 0.38),
            0 10px 26px rgba(140, 198, 63, 0.12);
}

/* Фото */
.af-reliability-card__image {
    width: 100%;
    height: 92px;
    position: relative;
    overflow: hidden;
    background: #141414;
}

.af-reliability-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0) 0%,
                    rgba(0, 0, 0, 0.18) 58%,
                    rgba(0, 0, 0, 0.5) 100%
            );
    pointer-events: none;
}

.af-reliability-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.af-reliability-card:hover .af-reliability-card__image img {
    transform: scale(1.04);
}

/* Текст */
.af-reliability-card__content {
    min-height: 64px;
    padding: 10px 12px 12px;
    background: #0b1118;
    position: relative;
    z-index: 2;
}

.af-reliability-card h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: clamp(13px, 0.78vw, 16px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.af-reliability-card p {
    max-width: 95%;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(10px, 0.62vw, 12px);
    line-height: 1.28;
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* ============================================================
   ADAPTIVE
   ============================================================ */

@media (max-width: 1280px) {
    .af-reliability__container {
        width: min(100% - 72px, 1180px);
    }

    .af-reliability__grid {
        gap: 8px;
    }

    .af-reliability-card {
        min-height: 148px;
    }

    .af-reliability-card__image {
        height: 86px;
    }

    .af-reliability-card__content {
        padding: 9px 10px 11px;
    }
}

@media (max-width: 980px) {
    .af-reliability {
        padding: 34px 0 44px;
    }

    .af-reliability__container {
        width: min(100% - 48px, 100%);
    }

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

    .af-reliability-card {
        min-height: 180px;
        border-radius: 12px;
    }

    .af-reliability-card__image {
        height: 112px;
    }

    .af-reliability-card__content {
        min-height: 68px;
        padding: 12px 14px 14px;
    }

    .af-reliability-card h3 {
        font-size: 16px;
    }

    .af-reliability-card p {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .af-reliability {
        padding: 30px 0 38px;
    }

    .af-reliability__container {
        width: min(100% - 28px, 100%);
    }

    .af-reliability__title {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .af-reliability__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .af-reliability-card {
        min-height: 176px;
        border-radius: 12px;
    }

    .af-reliability-card__image {
        height: 108px;
    }

    .af-reliability-card h3 {
        font-size: 16px;
    }

    .af-reliability-card p {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .af-reliability__container {
        width: min(100% - 18px, 100%);
    }

    .af-reliability__title {
        font-size: 20px;
    }

    .af-reliability-card__image {
        height: 100px;
    }
}

/* ============================================================
   MATERIALS SECTION — Полезные материалы
   ============================================================ */

.af-materials,
.af-materials * {
    box-sizing: border-box;
}

.af-materials {
    width: 100%;
    padding: 24px 0 58px;
    background: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
}

.af-materials__container {
    width: min(100% - 104px, 1680px);
    margin: 0 auto;
}

.af-materials__title {
    margin: 0 0 28px;
    color: #111111;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.af-materials__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.af-material-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #111111;
    text-decoration: none;
    background: #ffffff;
    border-radius: 10px;
    box-shadow:
            0 12px 26px rgba(0, 0, 0, 0.10),
            0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.af-material-card:hover,
.af-material-card:focus-visible {
    transform: translateY(-4px);
    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.14),
            0 8px 18px rgba(140, 198, 63, 0.14);
}

.af-material-card:focus-visible {
    outline: 3px solid rgba(140, 198, 63, 0.35);
    outline-offset: 5px;
}

.af-material-card__image {
    width: 100%;
    height: 202px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #111111;
}

.af-material-card__content {
    flex: 1;
    padding: 17px 16px 18px;
    display: flex;
    flex-direction: column;
}

.af-material-card__title {
    max-width: 250px;
    margin: 0 0 14px;
    color: #111111;
    font-size: 22px;
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.af-material-card__text {
    margin: 0 0 26px;
    color: #4b4b4b;
    font-size: 11.5px;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.af-material-card__date {
    display: block;
    margin-top: auto;
    color: #4b4b4b;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}

/* Adaptive */
@media (max-width: 1180px) {
    .af-materials__container {
        width: min(100% - 64px, 1040px);
    }

    .af-materials__grid {
        gap: 20px;
    }

    .af-material-card__title {
        font-size: 20px;
    }
}

@media (max-width: 980px) {
    .af-materials {
        padding: 34px 0 50px;
    }

    .af-materials__container {
        width: min(100% - 48px, 100%);
    }

    .af-materials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .af-materials {
        padding: 30px 0 44px;
    }

    .af-materials__container {
        width: min(100% - 28px, 100%);
    }

    .af-materials__title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .af-materials__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .af-material-card {
        min-height: auto;
        border-radius: 12px;
    }

    .af-material-card__image {
        height: 220px;
    }

    .af-material-card__title {
        max-width: 100%;
        font-size: 22px;
        line-height: 1;
    }

    .af-material-card__text {
        font-size: 12px;
        line-height: 1.18;
    }
}

@media (max-width: 420px) {
    .af-materials__container {
        width: min(100% - 18px, 100%);
    }

    .af-material-card__image {
        height: 200px;
    }

    .af-material-card__content {
        padding: 16px 15px 18px;
    }
}