/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Убираем зазор между хедером и первым экраном только на главной */
body.home .main-page-wrapper {
    padding-top: 0 !important;
}

/* Полноширинный первый экран */
.mesa-home-hero,
.mesa-home-hero * {
    box-sizing: border-box;
}

.mesa-home-hero {
    position: relative;
    width: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(24, 10, 6, 0.94) 0%,
            rgba(13, 13, 16, 0.82) 52%,
            rgba(13, 13, 16, 0.34) 100%
        ),
        url("/wp-content/uploads/2026/05/opalubka-mesaltd.webp")
        center center / cover no-repeat;
}

.mesa-home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5a2b, #ff941f, transparent);
}

.mesa-home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 5% 50%,
            rgba(255, 90, 43, 0.24),
            transparent 42%
        );
    pointer-events: none;
}

.mesa-home-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 86px 0;
}

.mesa-home-hero__content {
    max-width: 1060px;
}

.mesa-home-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 90, 43, 0.6);
    border-radius: 999px;
    background: rgba(255, 90, 43, 0.1);
    color: #ffc0a5;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mesa-home-hero__label span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #ff5a2b;
    box-shadow: 0 0 16px rgba(255, 90, 43, 0.9);
}

.mesa-home-hero h1 {
    max-width: 1160px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(45px, 4.5vw, 76px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.mesa-home-hero h1 strong {
    color: #ff5a2b;
    font-weight: 700;
}

.mesa-home-hero__description {
    max-width: 700px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.62;
}

.mesa-home-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    max-width: 890px;
    margin-top: 31px;
}

.mesa-home-hero__benefits span {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(9px);
}

.mesa-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.mesa-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 27px;
    border-radius: 14px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.mesa-home-hero__button:hover {
    transform: translateY(-2px);
}

.mesa-home-hero__button--primary {
    background: linear-gradient(135deg, #ff5a2b, #ff941f);
    box-shadow: 0 17px 40px rgba(255, 90, 43, 0.3);
}

.mesa-home-hero__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 16, 20, 0.58);
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .mesa-home-hero {
        min-height: auto;
        background-position: 60% center;
    }

    .mesa-home-hero__inner {
        padding: 75px 0;
    }

    .mesa-home-hero__content {
        max-width: 760px;
    }
}

@media (max-width: 620px) {
    .mesa-home-hero {
        background-position: 62% center;
    }

    .mesa-home-hero__inner {
        width: min(100% - 28px, 1320px);
        padding: 58px 0;
    }

    .mesa-home-hero h1 {
        font-size: 37px;
        line-height: 1.02;
    }

    .mesa-home-hero__description {
        margin-top: 21px;
        font-size: 16px;
    }

    .mesa-home-hero__benefits span {
        width: 100%;
    }

    .mesa-home-hero__actions {
        flex-direction: column;
    }

    .mesa-home-hero__button {
        width: 100%;
    }
}

/* Скрываем неиспользуемые платёжные логотипы в футере */
.copyrights-wrapper img[src*="/woodmart/images/payments.png"],
.copyrights-wrapper img[alt="payments"] {
    display: none !important;
}

/* MESA migration repair 2026-09-19: keep desktop navigation inside its row. */
@media (min-width: 1025px) and (max-width: 1399px) {
  .whb-header-bottom .whb-2m39tji5k3aygdx4tjtv { display: none; }
  .whb-header-bottom .wd-nav-main { flex-wrap: nowrap; }
}
