/* ── Первый экран: плакатная композиция ───────────────────────────
   Тёмно-лесной фон с сеткой чертежа, огромное жёлтое «РЕМОНТ» уходит
   за мастера, за ним светящийся зелёный диск. Цвета сайта: лес, трава,
   солнце, крем. */

.topbar {
    background: rgba(9, 36, 21, 0.86);
    border-bottom-color: rgba(244, 239, 225, 0.10);
}
.topbar .brand { color: var(--cream); }
.topbar .navlinks a { color: rgba(244, 239, 225, 0.70); }
.topbar .navlinks a:hover { color: var(--sun); }
.topbar .phone { color: var(--cream); }
.topbar .nav-cta { background: var(--sun); border-color: var(--sun); color: var(--green-deep); }
.topbar .nav-cta:hover { background: var(--cream); border-color: var(--cream); }
.topbar .burger { background: transparent; border-color: rgba(244, 239, 225, 0.24); }
.topbar .burger span { background: var(--cream); }

.hx {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--cream);
    background: #0A2B18;
    min-height: min(calc(100vh - 72px), 880px);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.hx-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
        radial-gradient(46% 64% at 78% 40%, rgba(122, 193, 67, 0.30), rgba(28, 122, 62, 0.10) 55%, transparent 75%),
        radial-gradient(40% 50% at 8% 100%, rgba(246, 193, 43, 0.10), transparent 70%),
        linear-gradient(rgba(244, 239, 225, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(244, 239, 225, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(180deg, #0E3A20 0%, #0A2B18 60%, #072014 100%);
}

.hx-stage {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 52px 0 112px;
}

.hx-copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgba(244, 239, 225, 0.18);
    border-radius: 999px;
    color: rgba(244, 239, 225, 0.82);
    background: rgba(244, 239, 225, 0.04);
}
.hx-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 5px rgba(246, 193, 43, 0.18);
}

.hx-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}
.hx-l1, .hx-l3 {
    font-size: clamp(22px, 3.1vw, 44px);
    color: var(--cream);
}
.hx-big {
    font-weight: 900;
    font-size: clamp(60px, 9.6vw, 140px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: var(--sun);
    white-space: nowrap;
    margin: 6px 0 8px -0.04em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}
.hx-l3 em {
    font-style: normal;
    position: relative;
    white-space: nowrap;
}
.hx-l3 em::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0.02em;
    height: 0.32em;
    background: var(--green-bright);
    opacity: 0.55;
    z-index: -1;
    border-radius: 3px;
}

.hx-lead {
    margin: 30px 0 0;
    max-width: 470px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(244, 239, 225, 0.78);
}

.hx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px;
    padding: 0 30px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn-sun {
    background: var(--sun);
    color: var(--green-deep);
    box-shadow: 0 16px 40px rgba(246, 193, 43, 0.28);
}
.hx-btn-sun span { font-size: 18px; }
.hx-btn-ghost {
    border: 1.5px solid rgba(244, 239, 225, 0.36);
    color: var(--cream);
}
.hx-btn-ghost:hover { background: var(--cream); color: var(--green-deep); }

/* мастер, диск и кольцо */
.hx-visual {
    position: absolute;
    right: -60px;
    bottom: 0;
    width: 640px;
    height: 100%;
    margin: 0;
    pointer-events: none;
}
.hx-disc {
    position: absolute;
    left: 44%;
    top: 47%;
    width: 580px;
    height: 580px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #6CC46F 0%, #2E9A4C 38%, #1C7A3E 62%, #125A2D 100%);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.38), inset 0 -40px 90px rgba(7, 32, 20, 0.45), inset 0 20px 60px rgba(255, 255, 255, 0.10);
    z-index: -1;
}
.hx-ring {
    position: absolute;
    left: 44%;
    top: 47%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px dashed rgba(244, 239, 225, 0.22);
    z-index: -2;
}
.hx-master {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 96%;
    width: auto;
    max-width: none;
    z-index: 3;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.hx-badge {
    position: absolute;
    left: -34px;
    top: 56%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--green-deep);
    display: grid;
    place-items: center;
    transform: rotate(-12deg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    z-index: 4;
}
.hx-badge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    fill: var(--green-deep);
}
.hx-badge b {
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    margin-top: -8px;
}
.hx-badge small {
    position: absolute;
    top: 64%;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hx-card {
    position: absolute;
    right: 110px;
    bottom: 104px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 16px 16px;
    border-radius: 18px;
    background: rgba(10, 43, 24, 0.55);
    border: 1px solid rgba(244, 239, 225, 0.22);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    font-size: 13.5px;
    line-height: 1.35;
    color: rgba(244, 239, 225, 0.82);
    z-index: 4;
}
.hx-card i {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sun);
    color: var(--green-deep);
    font-style: normal;
    font-weight: 900;
    font-size: 18px;
}
.hx-card b {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--cream);
}

/* жёлтая лента с этапами внизу экрана */
.hx-rail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 58px;
    overflow: hidden;
    background: var(--sun);
    color: var(--green-deep);
    display: flex;
    align-items: center;
}
.hx-rail-track {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    padding-left: 22px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: hx-rail 38s linear infinite;
}
.hx-rail-track i { font-style: normal; font-size: 11px; opacity: 0.55; }
@keyframes hx-rail { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hx-rail-track { animation: none; } }

@media (max-width: 1180px) {
    .hx-visual { width: 520px; right: -40px; }
    .hx-disc { width: 460px; height: 460px; }
    .hx-ring { width: 580px; height: 580px; }
}

/* телефон: текст сверху, мастер с диском ниже */
@media (max-width: 880px) {
    .hx { min-height: 0; }
    .hx-stage { display: block; padding: 26px 0 0; }
    .hx-kicker { margin-bottom: 20px; font-size: 10px; padding: 7px 12px 7px 10px; }
    .hx-big { font-size: 15.6vw; margin: 4px 0 6px -0.04em; }
    .hx-lead { margin-top: 18px; font-size: 15px; }
    .hx-actions { margin-top: 20px; gap: 10px; }
    .hx-btn { height: 52px; padding: 0 22px; font-size: 12px; flex: 1 1 auto; }
    .hx-visual { position: relative; right: auto; width: auto; height: 340px; margin: 8px -24px 0; }
    .hx-disc { width: 320px; height: 320px; left: 60%; top: 52%; }
    .hx-ring { width: 400px; height: 400px; left: 60%; top: 52%; }
    .hx-master { height: 100%; right: -6px; }
    .hx-badge { width: 108px; height: 108px; left: 22px; top: 36px; }
    .hx-badge svg { font-size: 16px; }
    .hx-badge b { font-size: 38px; }
    .hx-badge small { font-size: 10px; }
    .hx-card { display: none; }
    .hx-card i { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
    .hx-card b { font-size: 13px; }
    .hx-rail { position: relative; height: 48px; margin-top: -48px; }
    .hx-rail-track { font-size: 13px; gap: 16px; }
}
