/* =========================================
   MEIJING UKRAINE
   Main stylesheet
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');
:root {
    --color-primary: #02008A;
    --color-primary-dark: #01005F;

    --color-accent: #18B84A;
    --color-accent-dark: #10943A;

    --color-dark: #172033;
    --color-text: #374151;
    --color-muted: #6B7280;

    --color-light: #F4F8FC;
    --color-white: #FFFFFF;
    --color-page: #EEF1F4;

    --color-border: #DCE5EF;

    --container-width: 1200px;

    --font-main: "Inter", Arial, Helvetica, sans-serif;
    --font-heading: "Manrope", Arial, Helvetica, sans-serif;

    --transition: 0.25s ease;
}


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-page);
    line-height: 1.6;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================
   GLOBAL
   ========================================= */

.container {
    width: min(100% - 48px, var(--container-width));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    margin-bottom: 26px;

    color: var(--color-accent);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading h2 {
    color: var(--color-dark);

    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 25px;

    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

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

.button-primary {
    color: var(--color-white);
    background: var(--color-accent);
}

.button-primary:hover {
    background: #941616;
}

.button-secondary {
    color: var(--color-dark);
    background: var(--color-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
    background: #f1f1f1;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    min-height: 98px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

} 
.logo img {
    display: block;

    width: 125px;
    height: auto;

    padding-top: 3px;
    padding-bottom: 3px;
}


/* NAVIGATION */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-navigation a {
    color: #172033;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.25s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}


/* HEADER ACTIONS */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.language {
    color: #172033;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.25s ease;
}

.language:hover {
    color: var(--color-accent);
}

.language-separator {
    color: #c7cbd1;
}


/* CONTACT BUTTON */

.button-header {
    min-height: 42px;

    margin-left: 18px;
    padding: 0 21px;

    color: #ffffff;
   background: var(--color-primary);
border: 1px solid var(--color-primary);
}

.button-header:hover {
    background: var(--color-primary-dark);
border-color: var(--color-primary-dark);
    color: #ffffff;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 760px;

    display: flex;
    align-items: center;

    position: relative;

    color: var(--color-white);

    background:
        linear-gradient(
            90deg,
            rgba(10, 20, 30, 0.88) 0%,
            rgba(10, 20, 30, 0.62) 48%,
            rgba(10, 20, 30, 0.25) 100%
        ),
        url("../images/hero.png") center center / cover no-repeat;
}
.hero-content {
    padding-top: 70px;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
    max-width: 850px;

    font-size: clamp(42px, 5vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-description {
    max-width: 650px;
    margin-top: 28px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;

    margin-top: 38px;
}


/* =========================================
   COMPANY
   ========================================= */

.company-section {
    background: var(--color-page);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 90px;
    align-items: center;
}

.company-text {
    max-width: 650px;
}

.company-text p {
    margin-bottom: 22px;

    font-size: 18px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--color-accent);

    font-size: 15px;
    font-weight: 700;

    transition: opacity var(--transition);
}

.text-link:hover {
    opacity: 0.7;
}

.company-document {
    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px;

    background: var(--color-light);
    border: 1px solid var(--color-border);
}

.document-placeholder {
    width: 75%;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;

    background: var(--color-white);
    border: 1px solid #d8dce1;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.document-placeholder span {
    margin-bottom: 15px;

    color: var(--color-accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.document-placeholder strong {
    color: var(--color-dark);

    font-size: 20px;
}

.document-placeholder small {
    max-width: 220px;
    margin-top: 10px;

    color: var(--color-muted);

    font-size: 13px;
}


/* =========================================
   SERVICES
   ========================================= */

.services-section {
    background: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;

    background: var(--color-border);
    border: 1px solid var(--color-border);
}

.service-card {
    min-height: 352px;

    padding: 7px 35px 63px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--color-white);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    position: relative;
    z-index: 2;

    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-number {
    display: none;
}

.service-card h3 {
    margin-bottom: 15px;

    color: var(--color-dark);

    font-size: 21px;
    line-height: 1.25;
}

.service-card p {
    color: var(--color-muted);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   EQUIPMENT
   ========================================= */

.equipment-section {
    background: var(--color-white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.equipment-card {
    overflow: hidden;
}

.equipment-image {
    aspect-ratio: 1.15 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background:
        linear-gradient(
            135deg,
            #d9dde1,
            #aeb5bd
        );

    color: rgba(17, 24, 39, 0.5);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.equipment-card h3 {
    margin-bottom: 7px;

    color: var(--color-dark);

    font-size: 19px;
}

.equipment-card p {
    color: var(--color-muted);

    font-size: 14px;
}


/* =========================================
   ADVANTAGES
   ========================================= */

.advantages-section {
    background: var(--color-dark);
    color: var(--color-white);
}

.advantages-section .section-heading h2 {
    color: var(--color-white);
}

.advantages-list {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.advantage {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;

    padding: 26px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.advantage span {
    width: 6px;
    height: 6px;
    display: block;
    background: var(--color-accent);
}

.advantage p {
    color: rgba(255, 255, 255, 0.9);

    font-size: 21px;
}


/* =========================================
   CONTACTS
   ========================================= */

.contacts-section {
    background: var(--color-page);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}
.contacts-intro {
    position: relative;
}
.contacts-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contacts-intro {
    position: relative;
}

.contacts-intro .eyebrow {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.contacts-intro h2 {
    max-width: 550px;
    color: var(--color-dark);
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.contacts-intro > p:last-child {
    max-width: 500px;
    margin-top: 25px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
}

.contacts-details {
    border-top: 1px solid var(--color-border);
}

.contact-item {
    padding: 24px 0;

    border-bottom: 1px solid var(--color-border);
}

.contact-item span {
    display: block;

    margin-bottom: 6px;

    color: var(--color-muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
    color: var(--color-dark);

    font-size: 17px;
}

.contact-item a {
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--color-accent);
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #111b2a 0%, #152235 55%, #101927 100%);
    color: #ffffff;
}

.site-footer::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -140px;
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg,
        transparent 0%, transparent 42%,
        rgba(255,255,255,0.025) 42%, rgba(255,255,255,0.025) 48%,
        transparent 48%, transparent 58%,
        rgba(255,255,255,0.018) 58%, rgba(255,255,255,0.018) 64%,
        transparent 64%);
    transform: rotate(-8deg);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: block;
    padding-top: 72px;
    padding-bottom: 56px;
}

.footer-brand {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.38em;
    white-space: nowrap;
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin: 44px 0 34px;
    background: rgba(190,205,225,0.35);
}

.footer-copyright {
    margin: 0;
    color: #91a1b7;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1000px) {

    .main-navigation {
        display: none;
    }

    .company-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

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

    .copyright {
        text-align: left;
    }
}


@media (max-width: 650px) {

    .container {
        width: min(100% - 32px, var(--container-width));
    }

    .section {
        padding: 75px 0;
    }

    .header-inner {
        min-height: 72px;
    }

    .header-actions .button-header {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 260px;
    }

    .services-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .advantage {
        grid-template-columns: 55px 1fr;
    }

    .advantage p {
        font-size: 17px;
    }

    .document-placeholder {
        width: 90%;
    }
}
.equipment-catalog-link {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
}

.equipment-catalog-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.equipment-catalog-link a:hover {
    text-decoration: none;
}
/* Footer mobile */
@media (max-width: 650px) {
    .footer-inner { padding-top: 48px; padding-bottom: 40px; }
    .footer-brand { font-size: 15px; letter-spacing: 0.28em; }
    .footer-divider { margin: 32px 0 26px; }
    .footer-copyright { font-size: 13px; }
}

/* =========================================
   MOBILE LAYOUT FIXES
   ========================================= */
@media (max-width: 650px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        position: relative;
    }

    /* Keep the header visually separate from the hero */
    .site-header {
        position: relative;
        top: auto;
        left: auto;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }

    .header-inner {
        min-height: 108px;
        gap: 14px;
    }

    .logo img {
        width: 92px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
        flex-shrink: 0;
    }

    .language {
        font-size: 13px;
    }

    .button-header {
        display: none;
    }

    /* Hero: no overlap with header or next section */
    .hero {
        min-height: auto;
        align-items: stretch;
        background-position: center center;
    }

    .hero-content {
        width: 100%;
        padding-top: 44px;
        padding-bottom: 42px;
    }

    .hero .eyebrow {
        margin-bottom: 18px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 42px);
        line-height: 1.08;
        letter-spacing: -0.025em;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero-description {
        max-width: 100%;
        margin-top: 26px;
        font-size: 17px;
        line-height: 1.55;
    }

    .hero-actions {
        width: 100%;
        max-width: none;
        margin-top: 32px;
        gap: 12px;
    }

    .hero-actions .button {
        width: 100%;
        min-height: 54px;
    }

    /* Give the next block clear breathing room */
    .company-section {
        padding-top: 82px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.12;
    }

    /* Prevent any long text from widening the page */
    .company-text,
    .company-text p,
    .contacts-grid,
    .contacts-details,
    .contact-item,
    .contact-item a,
    .equipment-catalog-link {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .equipment-catalog-link {
        white-space: normal;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Equipment cards and images must fit inside the viewport */
    .equipment-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .equipment-card {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .equipment-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1.15 / 1;
        margin-bottom: 18px;
        overflow: hidden;
    }

    .equipment-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }

    .equipment-card h3,
    .equipment-card p {
        max-width: 100%;
    }

    /* Safety against horizontal overflow from decorative elements */
    .site-footer::after {
        right: -260px;
    }
}

/* Mobile hero side spacing */
@media (max-width: 650px) {
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

/* Mobile hero compact left-aligned buttons */
@media (max-width: 650px) {
    .hero-actions {
        width: auto;
        max-width: none;
        align-items: flex-start;
    }

    .hero-actions .button {
        width: 225px;
        max-width: 100%;
        min-height: 54px;
    }
}

/* Mobile hero: dark Equipment button */
@media (max-width: 650px) {
    .hero-actions .button-secondary {
        background: rgba(13, 29, 45, 0.78);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.9);
    }

    .hero-actions .button-secondary:hover,
    .hero-actions .button-secondary:focus {
        background: rgba(13, 29, 45, 0.92);
        color: #ffffff;
    }
}

/* Mobile hero: Equipment button — lighter floor-tone */
@media (max-width: 650px) {
    .hero-actions .button-secondary {
        background: rgba(78, 94, 108, 0.82);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.90);
    }

    .hero-actions .button-secondary:hover,
    .hero-actions .button-secondary:focus {
        background: rgba(88, 104, 118, 0.92);
        color: #ffffff;
    }
}

/* Mobile hero: Equipment button without border */
@media (max-width: 650px) {
    .hero-actions .button-secondary,
    .hero-actions .button-secondary:hover,
    .hero-actions .button-secondary:focus {
        border: none;
        box-shadow: none;
    }
}

/* FINAL mobile Equipment button: darker floor-tone, no border */
@media (max-width: 650px) {
    .hero-actions .button-secondary {
        background: rgba(55, 72, 87, 0.90);
        color: #ffffff;
        border: none;
        box-shadow: none;
    }

    .hero-actions .button-secondary:hover,
    .hero-actions .button-secondary:focus {
        background: rgba(47, 64, 79, 0.96);
        color: #ffffff;
        border: none;
        box-shadow: none;
    }
}

/* Desktop hero Equipment button: match approved mobile style */
@media (min-width: 651px) {
    .hero-actions .button-secondary {
        background: rgba(55, 72, 87, 0.90);
        color: #ffffff;
        border: none;
        box-shadow: none;
    }

    .hero-actions .button-secondary:hover,
    .hero-actions .button-secondary:focus {
        background: rgba(47, 64, 79, 0.96);
        color: #ffffff;
        border: none;
        box-shadow: none;
    }
}

}

}

/* Manufacturer catalog link */
.mobile-catalog-break {
    display: none;
}

@media (max-width: 650px) {
    .equipment-catalog-link {
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .mobile-catalog-break {
        display: block;
    }

    .equipment-catalog-link .manufacturer-link {
        display: inline-block;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        font-size: 15px;
    }
}

/* =========================================================
   EQUIPMENT — CLEAN FINAL VERSION
   Original images shown normally; no blend modes or image effects.
   ========================================================= */

.equipment-section {
    background: #EEF3F8;
}

.equipment-grid {
    gap: 28px;
}

.equipment-card {
    overflow: hidden;
    background: #E1EEFB;
    padding: 24px;
}

.equipment-image {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.equipment-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    mix-blend-mode: normal;
    filter: none;
    opacity: 1;
}

@media (max-width: 650px) {
    .equipment-grid {
        gap: 22px;
    }

    .equipment-card {
        padding: 18px;
    }
}

/* FINAL mobile fix: keep the active Meijing Machinery link on one line */
@media (max-width: 650px) {
    .equipment-catalog-link a {
        display: inline-block !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: keep-all !important;
        font-size: 15px;
    }
}



/* FINAL mobile advantages fix: square marker only, no legacy numbering */
@media (max-width: 650px) {
    .advantage {
        grid-template-columns: 26px 1fr;
    }

    .advantage span {
        width: 6px;
        height: 6px;
        display: block;
        overflow: hidden;
        font-size: 0;
        line-height: 0;
        color: transparent;
        background: var(--color-accent);
    }
}


/* Equipment cards: one extra text line of space below description */
.equipment-card {
    padding-bottom: 48px;
}

@media (max-width: 650px) {
    .equipment-card {
        padding-bottom: 42px;
    }
}
