/* ═══════════════════════════════════════════════════════════════
   HOME.CSS — landing page sections (index.html)
   Loaded after tabs.css, which provides the shared header,
   buttons, .container / .sec / .sec-title and the palette:
   #E53935 red | #1F2A2E graphite | #F5F5F5 gray | #FFF5F5 tint
═══════════════════════════════════════════════════════════════ */

/* ── Shared section head (centred title + subtitle) ── */
.hm-sec-head {
    text-align: center;
    margin-bottom: 44px;
}
.hm-sec-head .sec-title {
    margin-bottom: 10px;
}
.hm-sec-sub {
    font-size: 13.5px;
    color: #7c868b;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.hm-sec-title-left {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.7vw, 32px);
    color: #1f2a2e;
    line-height: 1.2;
    margin-bottom: 34px;
}
.hm-bg-soft {
    background: #f7f9f9;
}
.hm-sec-compact {
    padding: 54px 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — copy left, photo bleeding to the right edge
═══════════════════════════════════════════════════════════════ */
.hm-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}
.hm-hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56%;
    z-index: 1;
}
.hm-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
/* Fade the photo into the white copy area */
.hm-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #fff 0%,
        rgba(255, 255, 255, 0.82) 14%,
        rgba(255, 255, 255, 0.18) 42%,
        rgba(255, 255, 255, 0) 62%
    );
}

.hm-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 28px 130px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hm-hero-copy {
    max-width: 490px;
}
.hm-hero-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.015em;
    color: #1f2a2e;
    margin-bottom: 22px;
}
.hm-hero-sub {
    font-size: 14px;
    color: #667176;
    line-height: 1.7;
    max-width: 430px;
    margin-bottom: 30px;
}
.hm-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
/* Sits outside .hm-hero-copy so the four items stay on one row,
   reaching into the white fade of the photo. */
.hm-hero-trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 40px;
    max-width: 640px;
}
.hm-hero-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 146px;
    font-size: 11.5px;
    color: #6d777c;
    line-height: 1.4;
}
.hm-hero-trust-item svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Process chips floating over the hero photo */
.hm-flow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.hm-flow-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid #e53935;
    box-shadow: 0 6px 22px rgba(31, 42, 46, 0.16);
    padding: 9px 16px 9px 11px;
    white-space: nowrap;
}
/* dashed connector running to the plant */
.hm-flow-item::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 38px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #e53935 0 5px,
        transparent 5px 10px
    );
    opacity: 0.65;
}
.hm-flow-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hm-flow-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    color: #1f2a2e;
    letter-spacing: 0.01em;
}
.hm-flow-item:nth-child(1) {
    top: 12%;
    left: 6%;
}
.hm-flow-item:nth-child(2) {
    top: 29%;
    left: 1%;
}
.hm-flow-item:nth-child(3) {
    top: 46%;
    left: 5%;
}
.hm-flow-item:nth-child(4) {
    top: 63%;
    left: 11%;
}
.hm-flow-item:nth-child(5) {
    top: 80%;
    left: 20%;
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP — white card overlapping the hero
═══════════════════════════════════════════════════════════════ */
.hm-stats-wrap {
    position: relative;
    z-index: 5;
    margin-top: -76px;
}
.hm-stats {
    background: #fff;
    border: 1px solid #eef1f2;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(31, 42, 46, 0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.hm-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
    border-right: 1px solid #f1f3f4;
}
.hm-stat:last-child {
    border-right: none;
}
.hm-stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-stat-num {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #1f2a2e;
    line-height: 1.15;
}
.hm-stat-label {
    font-size: 11.5px;
    color: #8b9499;
    line-height: 1.4;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES — full project cycle, 6 cards
═══════════════════════════════════════════════════════════════ */
.hm-serv-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.hm-serv-card {
    background: #fff;
    border: 1px solid #eceff0;
    border-radius: 10px;
    padding: 26px 14px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transition:
        box-shadow 0.25s,
        transform 0.2s,
        border-color 0.25s;
}
.hm-serv-card:hover {
    box-shadow: 0 8px 26px rgba(31, 42, 46, 0.1);
    transform: translateY(-3px);
    border-color: #ffd0cf;
}
.hm-serv-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-serv-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    color: #1f2a2e;
    line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════
   SCENARIO CARDS — "Хочу построить …" (open the request modal)
   .scenario-card is the hook modal.js listens on.
═══════════════════════════════════════════════════════════════ */
.hm-scen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hm-scen {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceff0;
    border-radius: 10px;
    min-height: 116px;
    display: flex;
    align-items: stretch;
    cursor: pointer;
    transition:
        box-shadow 0.25s,
        transform 0.2s,
        border-color 0.25s;
}
.hm-scen:hover {
    box-shadow: 0 8px 26px rgba(31, 42, 46, 0.13);
    transform: translateY(-3px);
    border-color: #ffd0cf;
}
.hm-scen-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background-size: cover;
    background-position: center;
}
.hm-scen-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #fff 0%,
        rgba(255, 255, 255, 0.9) 34%,
        rgba(255, 255, 255, 0.1) 100%
    );
}
.hm-scen-body {
    position: relative;
    z-index: 2;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    width: 72%;
}
.hm-scen-top {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.hm-scen-top svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.hm-scen-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    color: #1f2a2e;
    line-height: 1.35;
}
.hm-scen-arrow {
    display: flex;
    color: #e53935;
    transition: transform 0.2s;
}
.hm-scen:hover .hm-scen-arrow {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS — map + filterable cards
═══════════════════════════════════════════════════════════════ */
.hm-proj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hm-proj-head .hm-sec-title-left {
    margin-bottom: 0;
}
.hm-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.hm-filter-btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #6d777c;
    background: #f2f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    transition:
        background 0.18s,
        color 0.18s;
}
.hm-filter-btn:hover {
    color: #e53935;
    background: #fff5f5;
}
.hm-filter-btn.is-active {
    background: #fff5f5;
    color: #e53935;
    font-weight: 700;
}

.hm-proj-body {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 32px;
    align-items: start;
}
.hm-map-img {
    width: 100%;
    height: auto;
}
.hm-map-legend {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #6d777c;
    line-height: 1.45;
    margin-top: 10px;
}
.hm-map-legend::before {
    content: "";
    width: 22px;
    height: 2.5px;
    background: #e53935;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 7px;
}

.hm-proj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hm-proj-card {
    background: #fff;
    border: 1px solid #e8ebec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s,
        transform 0.2s;
}
.hm-proj-card:hover {
    box-shadow: 0 8px 28px rgba(31, 42, 46, 0.12);
    transform: translateY(-3px);
}
.hm-proj-card.is-hidden {
    display: none;
}
.hm-proj-img {
    height: 152px;
    background-size: cover;
    background-position: center;
}
.hm-proj-in {
    padding: 16px 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}
.hm-proj-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1f2a2e;
    line-height: 1.3;
}
.hm-proj-region {
    font-size: 11.5px;
    color: #8b9499;
    margin-top: 4px;
}
.hm-proj-spec-label {
    font-size: 10px;
    color: #a3acb1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.hm-proj-spec-val {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1f2a2e;
    margin-top: 3px;
}
.hm-proj-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #e53935;
    transition: gap 0.2s;
}
.hm-proj-link:hover {
    gap: 10px;
}
.hm-proj-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: #8b9499;
}

/* ═══════════════════════════════════════════════════════════════
   OWN PRODUCTION — dark band
═══════════════════════════════════════════════════════════════ */
.hm-prod {
    background: #1f2a2e;
    overflow: hidden;
}
.hm-prod-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.92fr;
}
.hm-prod-left {
    position: relative;
    padding: 54px 40px 54px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* photo + overlay, bled out to the left viewport edge */
.hm-prod-left::before,
.hm-prod-left::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: calc(-50vw + 50%);
}
.hm-prod-left::before {
    background-image: url("../assets/images/home/production-shop.webp");
    background-size: cover;
    background-position: center;
}
.hm-prod-left::after {
    background: linear-gradient(
        90deg,
        rgba(22, 30, 34, 0.9) 0%,
        rgba(22, 30, 34, 0.74) 50%,
        rgba(31, 42, 46, 0.96) 100%
    );
}
.hm-prod-left > * {
    position: relative;
    z-index: 2;
}
.hm-prod-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 29px);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hm-prod-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 30px;
}
.hm-prod-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.hm-prod-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.86);
}
.hm-prod-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.24);
    flex-shrink: 0;
}

.hm-prod-mid,
.hm-prod-right {
    position: relative;
    z-index: 2;
    background: #1f2a2e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.hm-prod-mid {
    padding: 54px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}
.hm-prod-feat {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.hm-prod-feat-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: rgba(229, 57, 53, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-prod-feat-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    line-height: 1.3;
}
.hm-prod-feat-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.45;
    margin-top: 3px;
}

.hm-prod-right {
    padding: 54px 0 54px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hm-partners-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}
.hm-partners-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    flex: 1;
}
.hm-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}
.hm-partner img {
    max-width: 138px;
    height: auto;
}
.hm-partner-sub {
    font-size: 10.5px;
    color: #8b9499;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM — one wide photo + stats strip
═══════════════════════════════════════════════════════════════ */
.hm-team {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 36px;
    align-items: center;
}
.hm-team-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: #edf0f1;
}
.hm-team-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding-left: 8px;
}
.hm-tstat {
    display: flex;
    align-items: center;
    gap: 13px;
}
.hm-tstat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-tstat-num {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: #1f2a2e;
    line-height: 1.1;
}
.hm-tstat-label {
    font-size: 11.5px;
    color: #8b9499;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT — form + details
═══════════════════════════════════════════════════════════════ */
.hm-contact {
    position: relative;
    background: #fff;
    border-top: 1px solid #f0f2f3;
    overflow: hidden;
}
.hm-contact-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 66px 28px;
}
/* Contacts hug their content on the right so the form fills the rest */
.hm-contact-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    align-items: start;
}
.hm-contact-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(21px, 2.6vw, 30px);
    color: #1f2a2e;
    line-height: 1.2;
    margin-bottom: 12px;
}
.hm-contact-sub {
    font-size: 13px;
    color: #7c868b;
    line-height: 1.65;
    max-width: 400px;
}

.hm-form {
    margin-top: 26px;
}
.hm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hm-field-full {
    grid-column: 1 / -1;
}
.hm-input,
.hm-textarea {
    width: 100%;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 13px;
    color: #1f2a2e;
    background: #fff;
    border: 1px solid #e1e6e8;
    border-radius: 8px;
    padding: 13px 15px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.hm-input::placeholder,
.hm-textarea::placeholder {
    color: #a8b1b5;
}
.hm-input:focus,
.hm-textarea:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}
.hm-input.is-invalid,
.hm-textarea.is-invalid {
    border-color: #e53935;
    background: #fff8f8;
}
.hm-textarea {
    resize: vertical;
    min-height: 94px;
}
.hm-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hm-file {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 190px;
    font-size: 12px;
    color: #8b9499;
    border: 1px dashed #d8dee1;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition:
        border-color 0.18s,
        color 0.18s;
}
.hm-file:hover {
    border-color: #e53935;
    color: #e53935;
}
.hm-file svg {
    flex-shrink: 0;
}
.hm-file input {
    display: none;
}
.hm-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hm-form-error {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #b71c1c;
    background: #ffebee;
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.45;
}
.hm-form-note {
    font-size: 11.5px;
    color: #9aa3a8;
    margin-top: 16px;
    line-height: 1.5;
}
.hm-form-note a {
    color: #7c868b;
    border-bottom: 1px solid #d7dcde;
}
.hm-form-note a:hover {
    color: #e53935;
    border-bottom-color: #e53935;
}
/* `display: flex` below would otherwise defeat the `hidden` attribute */
.hm-form-success[hidden],
.hm-form-error[hidden],
.hm-proj-empty[hidden] {
    display: none;
}
.hm-form-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 26px;
    padding: 22px 24px;
    background: #f7f9f9;
    border-left: 4px solid #e53935;
    border-radius: 10px;
}
.hm-form-success-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1f2a2e;
    margin-bottom: 6px;
}
.hm-form-success-text {
    font-size: 12.5px;
    color: #6d777c;
    line-height: 1.6;
}

.hm-contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.hm-ci {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.hm-ci-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-ci-body {
    display: flex;
    flex-direction: column;
}
.hm-ci-main {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1f2a2e;
    line-height: 1.4;
    transition: color 0.15s;
}
a.hm-ci:hover .hm-ci-main {
    color: #e53935;
}
.hm-ci-sub {
    font-size: 11.5px;
    color: #9aa3a8;
    margin-top: 4px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — matches tabs.css breakpoints (1100 / 900 / 600)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hm-hero-visual {
        width: 50%;
    }
    .hm-flow-item:nth-child(2),
    .hm-flow-item:nth-child(4) {
        display: none;
    }
    .hm-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .hm-stat:nth-child(3) {
        border-right: none;
    }
    .hm-stat:nth-child(n + 4) {
        border-top: 1px solid #f1f3f4;
    }
    .hm-serv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hm-scen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hm-proj-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hm-map {
        max-width: 420px;
    }
    .hm-proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hm-prod-inner {
        grid-template-columns: 1fr 1fr;
    }
    .hm-prod-left {
        grid-column: 1 / -1;
        padding: 48px 0;
    }
    .hm-prod-left::before,
    .hm-prod-left::after {
        right: calc(-50vw + 50%);
    }
    .hm-prod-mid {
        padding: 44px 32px 44px 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .hm-prod-right {
        padding: 44px 0 44px 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .hm-team {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hm-team-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 22px 28px;
        padding-left: 0;
    }
    .hm-tstat {
        flex: 1 1 40%;
    }
    .hm-contact-cols {
        gap: 44px;
    }
}

@media (max-width: 900px) {
    /* Hero: photo becomes a banner above the copy */
    .hm-hero-inner {
        min-height: 0;
        padding: 40px 28px 110px;
    }
    .hm-hero-copy {
        max-width: none;
    }
    .hm-hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
    }
    .hm-hero-visual::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(255, 255, 255, 0) 45%
        );
    }
    .hm-flow-item:nth-child(1) {
        top: 12%;
        left: 4%;
    }
    .hm-flow-item:nth-child(3) {
        top: 44%;
        left: 4%;
    }
    .hm-flow-item:nth-child(5) {
        top: 74%;
        left: 4%;
    }
    .hm-hero-sub {
        max-width: none;
    }
    .hm-stats-wrap {
        margin-top: -66px;
    }
    .hm-serv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hm-proj-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .hm-prod-inner {
        grid-template-columns: 1fr;
    }
    .hm-prod-mid,
    .hm-prod-right {
        padding: 40px 0;
    }
    .hm-contact-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hm-hero-inner {
        padding: 32px 16px 100px;
    }
    .hm-hero-btns .btn {
        width: 100%;
        text-align: center;
    }
    .hm-hero-trust {
        gap: 16px 22px;
    }
    .hm-flow-item {
        padding: 7px 12px 7px 9px;
    }
    .hm-flow-item::after {
        display: none;
    }
    .hm-stats {
        grid-template-columns: 1fr 1fr;
    }
    .hm-stat {
        border-right: none;
        border-top: 1px solid #f1f3f4;
        padding: 18px 16px;
    }
    .hm-stat:nth-child(-n + 2) {
        border-top: none;
    }
    .hm-stat:nth-child(odd) {
        border-right: 1px solid #f1f3f4;
    }
    .hm-serv-grid,
    .hm-scen-grid,
    .hm-proj-grid {
        grid-template-columns: 1fr;
    }
    .hm-form-grid {
        grid-template-columns: 1fr;
    }
    .hm-prod-inner {
        padding: 0 16px;
    }
    .hm-contact-inner {
        padding: 48px 16px;
    }
    .hm-client {
        flex: 0 0 calc((100% - 18px) / 2);
    }
    .hm-tstat {
        flex: 1 1 100%;
    }
}
