.hero__wrapper {
    width: 100%;
    height: 100%;
}

.hero__bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero__bg--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: .2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 1);
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 2;
}

.hero__content {
    padding: 120px 0 40px;
    max-width: 627px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.hero__text h1 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 39px;
    line-height: 185%;
    color: #fff;
}

.hero__desc {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero__desc h4 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 140%;
    color: rgba(255, 255, 255, 0.9);
}

.hero__desc p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 170%;
    color: rgba(255, 255, 255, 0.7);
}

.hero__btns {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
}

.hero__btn {
    border-radius: 14px;
    padding: 16px 20px;
    background: #c6a65e;
    border: 1px solid #c6a65e;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(198, 166, 94, 0.4);
    background: #d4b571;
}

.hero__btn span {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    line-height: 150%;
    text-transform: uppercase;
}

.services {
    padding: 64px 0;
    background: #f7f4ee;
}

.services__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.services__top h2 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    line-height: 150%;
    color: #000;
}

.services__search {
    width: 256px;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.services__search:focus-within {
    border-color: rgba(26, 87, 61, 0.35);
}

.services__search button {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.services__search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 16px;
    color: #000;
}

.services__search input::placeholder {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 16px;
    color: #000;
    opacity: 0.5;
}

.service__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 12px;
    margin: 16px 0 12px;
}

.service__card {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 12px;
    padding: 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 87, 61, 0.1);
    border-color: rgba(26, 87, 61, 0.18);
}

.service__card--text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.service__card--text h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000;
}

.service__card--text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: rgba(40, 40, 40, 0.7);
}

.service__card--btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a573d;
}

.service__card--btn span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
}

.service__card--btn svg {
    transition: transform 0.3s ease;
}

.service__card:hover .service__card--btn svg {
    transform: translateX(4px);
}

.service__card--disabled {
    cursor: default;
}

.service__cta {
    border-radius: 12px;
    padding: 32px;
    background: #ede8de;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service__cta p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #282828;
}

.service__cta--btn {
    border-radius: 14px;
    background: #1a573d;
    border: 1px solid #1a573d;
    padding: 16px 28px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service__cta--btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 87, 61, 0.15);
}

.service__cta--btn:active {
    transform: translateY(-1px);
}

.problem {
    padding-bottom: 64px;
    background: #f7f4ee;
}

.problem__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 38px;
    line-height: 150%;
    color: #000;
}

.problem__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.65);
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 20px;
    margin-top: 32px;
}

.problem__card {
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 12px;
    padding: 32px 31px;
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.problem__card:hover {
    border-color: rgba(26, 87, 61, 0.35);
    box-shadow: 0 12px 28px rgba(26, 87, 61, 0.15);
}

.problem__card--line {
    width: 32px;
    height: 2px;
    background: #c6a65e;
    transition: width 0.3s ease;
}

.problem__card:hover .problem__card--line {
    width: 48px;
}

.problem__card--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.problem__card--text h3 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 150%;
    color: #000;
}

.problem__card--text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 165%;
    color: rgba(40, 40, 40, 0.7);
}

.why {
    background: #f7f4ee;
}

.why__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: #1a573d;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    height: 100%;
}

.why__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.title.white {
    color: #fff;
}

.why__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.75);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 32px;
}

.why__item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.why__item p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #c6a65e;
}

.why__item span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 165%;
    color: rgba(255, 255, 255, 0.8);
}

.why__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    padding: 16px 32px;
    background: #c6a65e;
    color: #fff;
    border: 1px solid #c6a65e;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.why__btn:hover {
    background: transparent;
    color: #c6a65e;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(198, 166, 94, 0.35);
}

.why__btn:active {
    transform: translateY(-1px);
}

.why__btn span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 150%;
    text-align: center;
}

.adv {
    padding: 64px 0;
    background: #f7f4ee;
}

.adv__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 20px;
    margin: 32px 0 64px;
}

.adv__grid.second {
    margin: 32px 0 0;
    grid-template-columns: repeat(3, 1fr);
}

.adv__card {
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    padding: 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    height: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.adv__card:hover {
    border-color: rgba(26, 87, 61, 0.35);
    box-shadow: 0 12px 28px rgba(26, 87, 61, 0.15);
}

.adv__card span {
    border-radius: 33554400px;
    padding: 5px 12px;
    background: #ede8de;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 11px;
    line-height: 100%;
    letter-spacing: 0.08em;
    color: #1a573d;
}

.adv__card--desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 165%;
    color: #282828;
}

.adv__card--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.adv__card--text h3 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #000;
}

.adv__card--text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: rgba(40, 40, 40, 0.7);
}

.cta {
    padding-bottom: 64px;
    background: #f7f4ee;
}

.cta__content {
    border-radius: 16px;
    padding: 48px;
    background: #1a573d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.cta__text {
    max-width: 565px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta__text h2 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 36px;
    line-height: 150%;
    text-align: center;
    color: #fff;
}

.cta__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 160%;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.cta__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 672px;
}

.cta__form input {
    border-radius: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #fff;
    width: 100%;
    outline: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    color: rgba(40, 40, 40, 0.9);
}

.cta__form input:focus {
    border: 1px solid #d4b571;
}

.cta__form input::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    color: rgba(40, 40, 40, 0.5);
}

.cta__form--row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
}

.cta__form button {
    border-radius: 14px;
    background: #c6a65e;
    border: 1px solid #c6a65e;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cta__form button:hover {
    background: transparent;
    color: #c6a65e;
    box-shadow: 0 10px 24px rgba(198, 166, 94, 0.35);
}

.cta__form button:active {
    transform: translateY(-1px);
}

.cta__socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.cta__socials p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.06em;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.cta__social--list {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cta__social--item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    padding: 12px 24px;
    background: #fff;
    width: 100%;
    color: #1a573d;
    text-decoration: none;
    border: 1px solid #fff;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.cta__social--item:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.cta__social--item span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
}

.cta__form--field {
    width: 100%;
}


/* ==========================================================================
   991px — планшет: гриды 3→2, поиск услуг больше не жмётся к заголовку
   ========================================================================== */
@media (max-width: 991px) {

    .hero__content {
        padding: 110px 0 36px;
    }

    /* SERVICES — карточки услуг 3 → 2 колонки */
    .service__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* PROBLEM — 3 → 2 колонки */
    .problem__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* WHY (зелёный блок) — 3 → 2 колонки, меньше паддинг */
    .why__content {
        padding: 40px 32px;
    }

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

    /* ADV — второй грид 3 → 2 колонки */
    .adv__grid.second {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   768px — узкий планшет: всё в 1 колонку, поиск на всю ширину
   ========================================================================== */
@media (max-width: 768px) {

    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
    }

    .hero__text h1 {
        font-size: 32px;
    }

    /* SERVICES — заголовок + поиск друг под другом */
    .services__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services__top h2 {
        font-size: 20px;
    }

    .services__search {
        width: 100%;
    }

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

    /* PROBLEM — 2 → 1 колонка */
    .problem__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .title {
        font-size: 30px;
    }

    /* WHY — 2 → 1 колонка */
    .why__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* ADV — оба грида в 1 колонку */
    .adv__grid,
    .adv__grid.second {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA-форма — поля друг под другом раньше, чем на 575px */
    .cta__content {
        padding: 36px 28px;
    }

    .cta__form--row {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 575px) {

    /* ===== HERO ===== */
    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
        gap: 24px;
    }

    .hero__text {
        gap: 14px;
    }

    .hero__text h1 {
        font-size: 24px;
        line-height: 140%;
    }

    .hero__desc {
        max-width: 100%;
        gap: 10px;
    }

    .hero__desc h4 {
        font-size: 16px;
    }

    .hero__desc h4 br, .hero__desc p br {
        display: none;
    }

    .hero__desc p {
        font-size: 14px;
    }

    .hero__btns {
        width: 100%;
    }

    .hero__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
    }

    .hero__btn span {
        font-size: 14px;
    }

    /* ===== SERVICES ===== */
    .services {
        padding: 40px 0;
    }

    .services__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services__top h2 {
        font-size: 19px;
    }

    .services__search {
        width: 100%;
    }

    .service__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px 0 12px;
    }

    .service__card {
        padding: 24px;
    }

    .service__card--text h3 {
        font-size: 16px;
    }

    .service__card--text p {
        font-size: 14px;
    }

    .service__cta {
        padding: 24px;
        gap: 12px;
    }

    .service__cta p {
        font-size: 14px;
    }

    .service__cta--btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* ===== PROBLEM ===== */
    .problem {
        padding-bottom: 40px;
    }

    .title {
        font-size: 24px;
    }

    .problem__text p {
        font-size: 14px;
    }

    .problem__grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .problem__card {
        padding: 24px;
        gap: 14px;
    }

    .problem__card--text h3 {
        font-size: 18px;
    }

    .problem__card--text p {
        font-size: 13px;
    }

    /* ===== WHY ===== */
    .why__content {
        padding: 28px 20px;
        gap: 28px;
        border-radius: 12px;
    }

    .why__text p {
        font-size: 14px;
    }

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

    .why__item p {
        font-size: 16px;
    }

    .why__item span {
        font-size: 13px;
    }

    .why__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* ===== ADV ===== */
    .adv {
        padding: 40px 0;
    }

    .adv__grid,
    .adv__grid.second {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 24px 0 40px;
    }

    .adv__grid.second {
        margin: 24px 0 0;
    }

    .adv__card {
        padding: 24px;
        gap: 12px;
    }

    .adv__card--desc {
        font-size: 14px;
    }

    .adv__card--text h3 {
        font-size: 16px;
    }

    .adv__card--text p {
        font-size: 13px;
    }

    /* ===== CTA ===== */
    .cta {
        padding-bottom: 40px;
    }

    .cta__content {
        padding: 28px 20px;
        border-radius: 12px;
        gap: 16px;
    }

    .cta__text {
        max-width: 100%;
        gap: 8px;
    }

    .cta__text h2 {
        font-size: 22px;
    }

    .cta__text p {
        font-size: 15px;
    }

    .cta__form {
        width: 100%;
        gap: 12px;
    }

    .cta__form--row {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cta__form input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .cta__form button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .cta__socials {
        margin-top: 12px;
        gap: 12px;
    }

    .cta__social--list {
        width: 100%;
        gap: 10px;
    }

    .cta__social--item {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .cta__social--list {
        flex-direction: column;
    }
}