* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #071c38;
    --navy-2: #0b2748;
    --blue-text: #10223d;
    --muted: #5f6b7a;
    --line: #e6ebf1;
    --soft: #f6f8fb;
    --white: #ffffff;
    --shadow: 0 10px 28px rgba(13, 34, 61, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--blue-text);
    background: #ffffff;
    line-height: 1.45;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, calc(100% - 90px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 70px;
    height: 60px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: transparent;
    font-size: 30px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.055em;
}

.logo-text small {
    margin-top: 5px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.21em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    font-size: 13px;
    color: #162740;
}

.main-nav a {
    position: relative;
    font-weight: 600;
}

.main-nav a:first-child::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background: var(--navy);
}

.header-btn {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(7, 28, 56, 0.18);
}

.header-btn span {
    font-size: 19px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
}


/* BUTTONS */

.btn {
    min-height: 44px;
    padding: 0 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn span {
    font-size: 19px;
    line-height: 1;
}

.btn-dark {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.btn-light {
    background: #ffffff;
    color: var(--navy);
    border-color: #aeb8c5;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    /* margin-bottom: 10px; */
}

.btn:hover,
.header-btn:hover {
    transform: translateY(-1px);
}


/* HERO */

.hero {
    min-height: 520px;
    padding: 72px 0 42px;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 38%, rgba(242, 246, 250, 0.64) 55%, #eef4f9 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    gap: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 10px;
}

.hero .eyebrow {
    display: none;
}

.hero h1 {
    max-width: 590px;
    /* max-width: 80%; */
    color: var(--navy);
    font-size: clamp(44px, 4.5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h2 {
    color: var(--navy);
    font-size: clamp(23px, 1.8vw, 32px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.hero-text {
    /* max-width: 500px; */
    max-width: 560px;
    color: #415066;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    width: 1030px;
    max-width: calc(100vw - 90px);
}

.feature-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    /* border: 2px solid var(--navy);
    border-radius: 50%; */
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
}

.feature-item strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 2px;
}

.feature-item p {
    color: #596779;
    font-size: 11px;
    line-height: 1.25;
}

.hero-image {
    position: relative;
    z-index: 1;
    min-height: 440px;
    margin-left: -30px;
}

.hero-image::before,
.hero-image::after {
    display: none;
}

.hero-image img {
    width: 112%;
    height: 470px;
    object-fit: cover;
    object-position: center;
}


/* CATEGORIES */

.categories {
    padding: 24px 0 32px;
    background: #ffffff;
    border-top: 1px solid #edf0f4;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading p {
    color: var(--navy);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--navy);
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    min-height: 220px;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.category-card::after {
    display: none;
}

.category-content {
    position: static;
    padding: 14px 14px 13px;
    color: var(--navy);

    display: flex;
    flex-direction: column;
    height: calc(100% - 112px);
}

.category-content h3 {
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 7px;
}

.category-content p {
    color: #5a687a;
    font-size: 11px;
    line-height: 1.35;
    min-height: 44px;
}

.category-content a {
    display: inline-flex;
    margin-top: auto;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
}


/* LOGISTICS */

.logistics {
    padding: 0;
    background: #ffffff;
    color: #ffffff;
}

.logistics .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.logistics-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 36% 64%;
    min-height: 250px;
    overflow: hidden;
    background: #f3f6fa;
}

.logistics-content {
    padding: 36px clamp(32px, 4vw, 68px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    background: #203f68;
}

.logistics-content h2 {
    max-width: 430px;
    margin-bottom: 14px;

    color: #ffffff;
    font-size: clamp(28px, 2.3vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.logistics-content p {
    max-width: 390px;
    margin-bottom: 22px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.logistics-content .btn {
    align-self: flex-start;
}

.map-area {
    position: relative;
    min-width: 0;
    min-height: 250px;
    overflow: hidden;

    background-image: url("../assets/images/map_with_points.webp");
    background-repeat: no-repeat;

    /* Картинка полностью заполняет правую колонку */
    background-size: cover;

    /* Сохраняем надпись Hong Kong справа */
    background-position: right center;

    background-color: #ffffff;
}

/* Плавное продолжение тёмного блока поверх левой части карты */
.map-area::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;

    width: 240px;
    pointer-events: none;

    background: linear-gradient(90deg,
            #203f68 0%,
            #28496f 12%,
            rgba(40, 73, 111, 0.92) 24%,
            rgba(40, 73, 111, 0.72) 40%,
            rgba(40, 73, 111, 0.46) 58%,
            rgba(40, 73, 111, 0.20) 78%,
            rgba(40, 73, 111, 0) 100%);
}

.stats {
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item {
    min-height: 112px;
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 18px;
    padding: 22px 14px;
    border-right: 1px solid #edf0f4;
}

.stat-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.stat-icon img {
    width: 54px;
    height: 54px;

    object-fit: contain;
    display: block;
}

.stat-item strong {
    display: block;
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat-item h3 {
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 4px;
    margin-bottom: 5px;
}

.stat-item p {
    color: #5b6878;
    font-size: 12px;
    line-height: 1.25;
}


/* RFQ SECTION */

.rfq-section {
    display: none;
}


/* FOOTER */

.footer {
    background: #ffffff;
    color: var(--navy);
}

.footer-grid {
    padding: 34px 0 28px;
    display: grid;
    grid-template-columns: 1.3fr 1.15fr 0.8fr 1.15fr;
    gap: 45px;
    border-bottom: 1px solid #edf0f4;
}

.footer .logo-mark {
    color: var(--navy);
}

.footer .logo-text span,
.footer .logo-text small {
    color: var(--navy);
}

.footer-brand p {
    max-width: 260px;
    color: #596779;
    font-size: 13px;
    line-height: 1.45;
    margin: 18px 0;
}

.socials {
    display: flex;
    gap: 9px;
}

.socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.footer-column h3 {
    color: var(--navy);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
    display: block;
    color: #596779;
    font-size: 13px;
    line-height: 1.42;
    margin-bottom: 7px;
}

.footer-column a:hover {
    color: var(--navy);
}

.footer-rfq .btn {
    margin-top: 15px;
}

.footer-bottom {
    background: #ffffff;
}

.footer-bottom-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #7b8695;
    font-size: 12px;
}

.footer-bottom-inner div {
    display: flex;
    gap: 24px;
}


/* MODAL FORM */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 17, 34, 0.72);
}

.modal-window {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 34px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 34px;
    height: 34px;
    border: 1px solid #d9e0e8;
    border-radius: 50%;
    background: #ffffff;
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
}

.modal-heading {
    margin-bottom: 24px;
    padding-right: 42px;
}

.modal-heading p {
    color: var(--navy);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}

.modal-heading h2 {
    color: var(--navy);
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 7px;
}

.modal-heading span {
    color: #5b6878;
    font-size: 14px;
}

.rfq-form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.rfq-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.rfq-form input,
.rfq-form textarea {
    width: 100%;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--blue-text);
    font-size: 14px;
    background: #ffffff;
    outline: none;
}

.rfq-form textarea {
    resize: vertical;
}

.rfq-form input:focus,
.rfq-form textarea:focus {
    border-color: var(--navy);
}

.form-submit {
    width: 100%;
    margin-top: 6px;
}

/* CONTACTS */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #596779;
    font-size: 13px;
    line-height: 1.45;
}

.contact-item img {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-address img {
    margin-top: 3px;
}

/* FORM EXTRAS */
.rfq-form select {
    width: 100%;
    height: 48px;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--blue-text);
    font-size: 14px;
    outline: none;
}

.rfq-form select:focus {
    border-color: var(--navy);
}

.form-note {
    display: block;
    margin-top: 7px;
    color: #6b7788;
    font-size: 12px;
    line-height: 1.45;
}

.mobile-hero-image {
    display: none;
}

/* FINAL DESKTOP HERO — keeps the approved desktop version */
.hero {
    min-height: 520px;
    padding: 72px 0 42px;
    background-image:
        linear-gradient(90deg,
            #ffffff 0%,
            #ffffff 34%,
            rgba(255, 255, 255, 0.92) 43%,
            rgba(255, 255, 255, 0.62) 52%,
            rgba(255, 255, 255, 0.08) 66%,
            rgba(255, 255, 255, 0) 100%),
        url("../assets/images/hero-engine.webp");
    background-repeat: no-repeat;
    background-position: center center, 300px center;
    background-size: 100% 100%, auto 103%;
    overflow: hidden;
}

.hero-inner {
    display: block;
    position: relative;
}

.hero-content {
    width: 67%;
    position: relative;
    z-index: 2;
}

.hero-image {
    display: none;
}

.hero-features {
    width: 100%;
    max-width: 1030px;
}

/* TABLET */
@media (max-width: 1120px) {
    .container {
        width: min(100% - 46px, 1160px);
    }

    .main-nav {
        gap: 20px;
    }

    .hero-content {
        width: 62%;
    }

    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .logistics-inner {
        grid-template-columns: 38% 62%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */
@media (max-width: 860px) {
    body {
        background: #f7f8fa;
    }

    .container {
        width: calc(100% - 28px);
    }

    .site-header {
        background: #ffffff;
        box-shadow: 0 7px 24px rgba(7, 28, 56, 0.06);
    }

    .header-inner {
        height: 78px;
    }

    .header-inner .logo {
        gap: 7px;
    }

    .logo-mark {
        width: 48px;
        height: 44px;
    }

    .logo-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .logo-text span {
        font-size: 18px;
        font-weight: 800;
    }

    .logo-text small {
        margin-top: 4px;
        font-size: 7px;
    }

    .nav-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        margin-left: auto;
        border: 0;
        border-radius: 0;
    }

    .nav-toggle span {
        width: 21px;
        height: 2px;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 13px 12px;
    }

    .main-nav a::after {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .hero {
        min-height: 0;
        padding: 26px 0 30px;
        background: #ffffff;
    }

    .hero-inner,
    .hero-content {
        width: 100%;
        display: block;
    }

    .hero h1 {
        max-width: 390px;
        margin-bottom: 14px;
        font-size: clamp(38px, 11.8vw, 56px);
        line-height: 1.02;
        letter-spacing: -0.05em;
        font-weight: 800;
    }

    .hero h2 {
        max-width: 340px;
        margin-bottom: 14px;
        font-size: 21px;
        line-height: 1.15;
        font-weight: 700;
    }

    .hero-text {
        max-width: 390px;
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.55;
    }

        .mobile-hero-image {
            position: relative;
            display: block;
            width: calc(100% + 28px);
            margin: 18px -14px 0;
            overflow: hidden;
        }
    
        .mobile-hero-image::before,
        .mobile-hero-image::after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 55px;
            z-index: 2;
            pointer-events: none;
        }
    
        .mobile-hero-image::before {
            top: 0;
            background: linear-gradient(to bottom,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0.86) 24%,
                    rgba(255, 255, 255, 0.42) 58%,
                    rgba(255, 255, 255, 0) 100%);
        }
    
        .mobile-hero-image::after {
            bottom: 0;
            background: linear-gradient(to top,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0.86) 5%,
                    rgba(255, 255, 255, 0.42) 58%,
                    rgba(255, 255, 255, 0) 100%);
        }
    
        .mobile-hero-image img {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 300px;
            object-fit: cover;
            object-position: 48% center;
        }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 0 30px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 0 22px;
        font-size: 14px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        grid-template-columns: 46px 1fr;
        gap: 14px;
        align-items: center;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .feature-item strong {
        font-size: 13px;
        font-weight: 700;
    }

    .feature-item p {
        max-width: 230px;
        font-size: 11px;
        line-height: 1.4;
    }

    .categories {
        padding: 38px 0 34px;
        border-top: 1px solid #edf0f4;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading p {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .section-heading h2 {
        max-width: 360px;
        margin: 0 auto;
        font-size: 25px;
        line-height: 1.15;
        font-weight: 800;
    }

    .category-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        min-height: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 18px rgba(13, 34, 61, 0.05);
    }

    .category-card:hover {
        transform: none;
    }

    .category-card img {
        height: 205px;
    }

    .category-content {
        min-height: 106px;
        height: auto;
        padding: 14px 16px 17px;
        position: relative;
    }

    .category-content h3 {
        padding-right: 34px;
        font-size: 14px;
        font-weight: 700;
    }

    .category-content p {
        max-width: 270px;
        min-height: 0;
        padding-right: 34px;
        font-size: 11px;
    }

    .category-content::after {
        /* content: "→"; */
        position: absolute;
        right: 16px;
        bottom: 18px;
        color: var(--navy);
        font-size: 22px;
    }

    .logistics {
        padding: 22px 14px 0;
        background: #f7f8fa;
    }

    .logistics .container {
        width: 100%;
    }

    .logistics-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 10px;
        overflow: hidden;
        background: #0a2445;
        box-shadow: 0 8px 24px rgba(7, 28, 56, 0.12);
    }

    .logistics-content {
        padding: 30px 20px 22px;
        background: linear-gradient(145deg, #0b2a50 0%, #061a34 100%);
    }

    .logistics-content h2 {
        max-width: 300px;
        margin-bottom: 12px;
        font-size: 28px;
        line-height: 1.08;
    }

    .logistics-content p {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .logistics-content .btn {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 0 18px;
    }

    .map-area {
        min-height: 135px;
        /* было 360px */
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: #ffffff;
    }

    .map-area::before {
        display: none;
    }

    .stats {
        padding: 18px 14px 26px;
        background: #f7f8fa;
        border: 0;
    }

    .stats .container {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid #e5eaf0;
        border-radius: 8px;
        overflow: hidden;
        background: #ffffff;
    }

    .stat-item {
        min-height: 190px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 20px 12px;
        text-align: center;
        border-right: 1px solid #edf0f4;
        border-bottom: 1px solid #edf0f4;
    }

    .stat-item:nth-child(2n) {
        border-right: 0;
    }

    .stat-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .stat-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 7px;
    }

    .stat-icon img {
        width: 50px;
        height: 50px;
    }

    .stat-item strong {
        font-size: 25px;
    }

    .stat-item h3 {
        max-width: 120px;
        margin: 0 auto 5px;
        font-size: 14px;
        line-height: 1.12;
    }

    .stat-item p {
        max-width: 130px;
        margin: 0 auto;
        font-size: 10px;
        line-height: 1.45;
    }

    .footer {
        padding: 0 14px 22px;
        background: #f7f8fa;
    }

    .footer .container {
        width: 100%;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 0;
        border: 0;
    }

    .footer-rfq {
        order: 1;
        padding: 24px 20px;
        border-radius: 10px;
        background: linear-gradient(145deg, #0b2a50 0%, #061a34 100%);
        color: #ffffff;
        box-shadow: 0 8px 24px rgba(7, 28, 56, 0.12);
    }

    .footer-rfq h3,
    .footer-rfq p {
        color: #ffffff;
    }

    .footer-rfq h3 {
        text-transform: none;
        font-size: 21px;
    }

    .footer-rfq p {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .footer-rfq .btn {
        width: 100%;
        min-height: 50px;
        margin-top: 0;
        justify-content: space-between;
        border-color: rgba(255, 255, 255, .85);
        background: transparent;
    }

    .footer-column:not(.footer-rfq) {
        padding: 24px 20px;
        border: 1px solid #e2e7ed;
        border-radius: 10px;
        background: #ffffff;
    }

    .footer-column:nth-of-type(2) {
        order: 2;
    }

    .footer-column:nth-of-type(3) {
        order: 3;
    }

    .footer-brand {
        order: 4;
        padding: 28px 22px;
        border: 1px solid #e2e7ed;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 280px;
        margin: 20px auto 0;
        font-size: 13px;
        line-height: 1.55;
    }

    .footer-column h3 {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .footer-column a {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .contact-item {
        gap: 14px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.55;
    }

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item img {
        width: 30px;
        height: 30px;
        margin-top: 0;
    }

    .footer-bottom {
        margin-top: 18px;
        border-radius: 8px;
        background: #0a2445;
        color: #ffffff;
    }

    .footer-bottom-inner {
        min-height: 0;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 20px 14px;
        color: rgba(255, 255, 255, .82);
        text-align: center;
        font-size: 11px;
    }

    .footer-bottom-inner div {
        gap: 18px;
    }

    .modal {
        padding: 10px;
    }

    .modal-window {
        max-height: calc(100vh - 20px);
        padding: 24px 18px;
        border-radius: 10px;
    }

    .modal-heading h2 {
        font-size: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 39px;
    }

    .mobile-hero-image img {
        height: 240px;
    }

    .category-card img {
        height: 180px;
    }

    .stat-item {
        min-height: 178px;
    }
    
}


/* IPHONE / SAFARI FORM FIX */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 860px) {
    .modal {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        overflow: hidden;
    }

    .modal-window {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 24px 18px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .rfq-form,
    .form-row,
    .rfq-form label {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .rfq-form input,
    .rfq-form textarea,
    .rfq-form select {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .rfq-form input[type="date"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-note {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }
}



/* MOBILE SAFE WIDTH — iPhone / Safari */

@media (max-width: 860px) {

    /* Общие боковые отступы сайта */
    .container {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    /* Модальное окно формы */
    .modal {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        overflow: hidden;
    }

    .modal-window {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 24px 18px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Все элементы формы не могут быть шире модального окна */
    .rfq-form,
    .form-row,
    .rfq-form label {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .rfq-form input,
    .rfq-form textarea,
    .rfq-form select {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Отдельная правка встроенных полей даты Safari */
    .rfq-form input[type="date"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Длинный текст под Delivery Destination */
    .form-note {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .mobile-hero-image {
        width: 100vw;
        max-width: 100vw;
        margin-top: 18px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        overflow: hidden;
    }

    .mobile-hero-image img {
        display: block;
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: 34% center;
    }
}