.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: 740px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.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: 120%;
    color: #fff;
}

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

.team {
    padding: 80px 0;
    background: #f7f4ee;
}

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

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

.team__text p {
    max-width: 560px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 170%;
    color: rgba(40, 40, 40, 0.65);
}

.director__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 24px;
    margin-top: 48px;
}

.director__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(26, 87, 61, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.director__card:hover {
    border-color: rgba(26, 87, 61, 0.25);
    box-shadow: 0 12px 28px rgba(26, 87, 61, 0.1);
}

.director__img {
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.director__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s ease;
}

.director__card:hover .director__img img {
    transform: scale(1.05);
}

.director__card--content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.director__card--tag {
    border-radius: 33554400px;
    padding: 6px 12px;
    background: #ede8de;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 11px;
    line-height: 100%;
    letter-spacing: 0.06em;
    color: #1a573d;
}

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

.director__card--text h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    color: #000;
}

.director__card--text h3 span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #c6a65e;
}

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

.director__card--info {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 165%;
    color: #282828;
}

.director__card--edu {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.55);
}

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

.director__card--quote {
    margin-top: 4px;
    border-left: 3px solid #c6a65e;
    padding-left: 20px;
}

.director__card--quote p {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    color: rgba(40, 40, 40, 0.7);
}

.expert {
    padding: 80px 0;
    background: #fff;
}

.expert__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

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

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

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

.team__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    background: #f7f4ee;
    width: 100%;
    height: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.team__card--img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.team__card--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.team__card:hover .team__card--img img {
    transform: scale(1.06);
}

.team__card--content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

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

.team__card--text h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #1a573d;
}

.team__card--text h3 span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    color: #c6a65e;
}

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

.team__card--btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1a573d;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: gap 0.3s ease;
}

.team__card--btn:hover {
    gap: 14px;
}

.team__card--btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.team__card--btn:hover svg {
    transform: scale(1.15);
}

.team__card--btn span {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    color: #1a573d;
}

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

.benefits__list {
    max-width: 768px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.benefit__item {
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: start;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit__img {
    padding-top: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.benefit__img img {
    width: 100%;
    height: 100%;
}

.benefit__item p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 165%;
    color: #282828;
}

.numbers {
    padding: 60px 0;
    background: #262626;
}

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

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

.number__card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 30px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.number__card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(198, 166, 94, 0.4);
}

.number__card p {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 44px;
    line-height: 100%;
    text-align: center;
    color: #c6a65e;
}

.number__card span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.cta {
    padding: 80px 0;
    background: #fff;
}

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

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

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

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

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

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

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

.cta__form--row input:focus {
    border: 1px solid #c6a65e;
}

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

.cta__form button {
    border-radius: 14px;
    padding: 16px 32px;
    background: #c6a65e;
    border: 1px solid #c6a65e;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    line-height: 150%;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    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);
}


/* ==========================================================================
   991px — планшет: эксперты 3→2, цифры 4→2, форма записи 3→2 (третье
   поле — на всю ширину), паддинги у карточек поменьше
   ========================================================================== */
@media (max-width: 991px) {

    .hero__content {
        padding: 110px 0 36px;
        max-width: 600px;
    }

    .team,
    .expert {
        padding: 56px 0;
    }

    /* DIRECTOR (основатели) — паддинг и высота фото поменьше */
    .director__card--content {
        padding: 32px;
    }

    .director__img {
        height: 300px;
    }

    /* EXPERT — эксперты 3 → 2 колонки */
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    /* CTA-форма — Имя/Телефон в ряд, Сфера бизнеса на всю ширину */
    .cta__content {
        padding: 40px 32px;
    }

    .cta__form--row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta__form--row .cta__form--field:nth-child(3) {
        grid-column: 1 / -1;
    }
}


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

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

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

    .team__text h2,
    .expert__text h2,
    .benefits__title,
    .number__title {
        font-size: 30px;
    }

    /* DIRECTOR — 2 → 1 колонка */
    .director__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    /* EXPERT — 2 → 1 колонка */
    .team__grid {
        grid-template-columns: 1fr;
    }

    /* CTA — форма полностью в 1 колонку раньше 575px */
    .cta__content {
        padding: 32px 24px;
    }

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

    .cta__form--row .cta__form--field:nth-child(3) {
        grid-column: auto;
    }

    .team__card--img {
        height: 280px;
    }
}


@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;
    }

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

    /* ===== TEAM (Семейное дело — директора) ===== */
    .team {
        padding: 40px 0;
    }

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

    .team__text p {
        font-size: 14px;
        max-width: 100%;
    }

    .director__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .director__img {
        height: 220px;
    }

    .director__card--content {
        padding: 24px;
        gap: 14px;
    }

    .director__card--text {
        gap: 12px;
    }

    .director__card--text h3 {
        font-size: 19px;
    }

    .director__card--text h3 span {
        font-size: 13px;
    }

    .director__card--info,
    .director__card--edu,
    .director__card--spec {
        font-size: 13px;
    }

    .director__card--quote {
        padding-left: 16px;
    }

    .director__card--quote p {
        font-size: 13px;
    }

    /* ===== EXPERT (Наши эксперты) ===== */
    .expert {
        padding: 40px 0;
    }

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

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

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

    .team__card--img {
        height: 220px;
    }

    .team__card--content {
        padding: 20px;
    }

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

    .team__card--text p {
        font-size: 12px;
    }

    /* ===== BENEFITS (Почему нам доверяют) ===== */
    .benefits__title {
        font-size: 22px;
    }

    .benefits__list {
        margin-top: 20px;
        gap: 10px;
    }

    .benefit__item {
        padding: 14px;
        gap: 10px;
    }

    .benefit__item p {
        font-size: 13px;
    }

    /* ===== NUMBERS (Наш путь в цифрах) ===== */
    .numbers {
        padding: 40px 0;
    }

    .number__title {
        font-size: 22px;
    }

    .number__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .number__card {
        padding: 20px 16px;
    }

    .number__card p {
        font-size: 28px;
    }

    .number__card span {
        font-size: 12px;
    }

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

    .cta__content {
        padding: 24px 20px;
        gap: 20px;
    }

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

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

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

    .cta__form--row .cta__form--field:nth-child(3) {
        grid-column: auto;
    }

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

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