.hec-footer {
    background: #fff;
    color: #202020;
    font-family: var(--hec-font-body);
}

.hec-footer__inner {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.55fr) minmax(160px, 1fr) minmax(150px, 0.85fr) minmax(220px, 1fr) minmax(160px, 0.75fr);
    gap: clamp(40px, 5vw, 90px);
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 62px 0 34px;
}

.hec-footer__brand {
    max-width: 330px;
}

.hec-footer__logo-link {
    display: inline-block;
    margin-bottom: 10px;
}

.hec-footer__logo {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

.hec-footer__tagline {
    margin: 0 0 8px;
    font-family: var(--hec-font-header);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: #252525;
}

.hec-footer__description {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.16;
    color: #252525;
}

.hec-footer__title {
    margin: 0 0 14px;
    font-family: var(--hec-font-header);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    color: #202020;
}

.hec-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hec-footer__menu li {
    margin: 0 0 7px;
    padding: 0;
    list-style: none;
}

.hec-footer__menu a {
    position: relative;
    display: inline-block;
    color: #252525;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.22s ease;
}

.hec-footer__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--hec-header-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.22s ease;
}

.hec-footer__menu a:hover,
.hec-footer__menu a:focus-visible {
    color: var(--hec-header-accent);
}

.hec-footer__menu a:hover::after,
.hec-footer__menu a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hec-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hec-footer__contact-link {
    display: inline-block;
    margin-bottom: 5px;
    color: #252525;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.22s ease;
}

.hec-footer__contact-link:hover,
.hec-footer__contact-link:focus-visible {
    color: var(--hec-header-accent);
}

.hec-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hec-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #cfcdc4;
    color: var(--hec-header-accent);
    font-family: var(--hec-font-header);
    font-size: 23px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.hec-footer__social:hover,
.hec-footer__social:focus-visible {
    background: var(--hec-header-accent);
    color: #fff;
    transform: translateY(-3px);
}

.hec-footer__social img {
    width: 30px;
    height: 30px;
}

.hec-footer__social:hover img,
.hec-footer__social:focus-visible img {
    filter: brightness(0) invert(1);
}

.hec-footer__partners {
    min-width: 150px;
}

.hec-footer__partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hec-footer__partner-logos img {
    display: block;
    width: auto;
    max-width: 72px;
    max-height: 40px;
    object-fit: contain;
}

.hec-footer__bottom {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 10px 0 34px;
    text-align: center;
}

.hec-footer__bottom p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: #333;
}


.hec-newsletter {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background-color: #e3e2db;
    background-image: url('../images/texture-road.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hec-newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(227, 226, 219, 0.35);
    pointer-events: none;
}

.hec-newsletter__inner {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 54px;
    text-align: center;
}

.hec-newsletter__eyebrow {
    margin: 0 0 8px;
    color: var(--hec-header-accent);
    font-family: var(--hec-font-header);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hec-newsletter__title {
    margin: 0;
    color: #2a2a28;
    font-family: var(--hec-font-body);
    font-size: clamp(28px, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1.05;
}

.hec-newsletter__description {
    max-width: 760px;
    margin: 18px auto 24px;
    color: #292927;
    font-family: var(--hec-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.1;
}

/* WPForms */
.hec-newsletter .wpforms-container {
    margin: 0;
}

.hec-newsletter .wpforms-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hec-newsletter .wpforms-field-container {
    width: min(630px, 100%);
}

.hec-newsletter .wpforms-field {
    padding: 0 !important;
}

.hec-newsletter .wpforms-field-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hec-newsletter input[type="email"] {
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #2f2f2d !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    font-family: var(--hec-font-body) !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.hec-newsletter input[type="email"]:focus {
    border-color: var(--hec-header-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(215, 53, 22, 0.12) !important;
}

.hec-newsletter .wpforms-submit-container {
    margin-top: 18px !important;
    padding: 0 !important;
}

.hec-newsletter button[type="submit"].wpforms-submit {
    min-width: 205px !important;
    height: 44px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--hec-header-accent) !important;
    color: #fff !important;
    font-family: var(--hec-font-header) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition:
        background-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .hec-newsletter button[type="submit"].wpforms-submit:hover {
        background: #b92d13 !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
    }
}

.hec-newsletter .wpforms-error {
    margin-top: 6px !important;
    color: #b42318 !important;
    font-size: 12px !important;
}

.hec-newsletter .wpforms-confirmation-container-full {
    margin: 0 auto !important;
    padding: 14px 20px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: #252525 !important;
}

@media (max-width: 1024px) {
    .hec-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hec-footer__brand {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hec-newsletter__inner {
        width: min(100% - 32px, 780px);
        padding: 42px 0;
    }

    .hec-newsletter__title {
        font-size: 28px;
    }

    .hec-newsletter__description {
        font-size: 15px;
        line-height: 1.25;
    }

    .hec-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        width: min(100% - 32px, 1200px);
        padding-top: 44px;
    }

    .hec-footer__brand {
        max-width: 100%;
    }

    .hec-footer__bottom {
        width: min(100% - 32px, 1200px);
        padding-bottom: 24px;
        text-align: left;
    }
}