/* ==========================================================================
   AlpProm Vertical — design system for alpprom.by
   Tokens come from frontend/design-dna.json
   ========================================================================== */

:root {
    --c-yellow: #f6df41;
    --c-yellow-hi: #fff07a;
    --c-glass: #6686b7;
    --c-glass-hi: #8fa9d1;
    --c-orange: #ff4f00;

    --c-success: #3ddc97;
    --c-error: #ff5a4e;

    --n-0: #ffffff;
    --n-50: #f3f1ec;
    --n-200: #c9ccd2;
    --n-400: #8f96a3;
    /* text-grade grey: ≥4.5:1 on --n-800 and darker (was #5c6370, 2.9:1) */
    --n-500: #8b93a1;
    --n-700: #2a313b;
    --n-800: #161b22;
    --n-900: #0b0e13;

    --surface-bg: #0b0e13;
    --surface-card: #161b22;
    --surface-elevated: #1e252f;
    --hairline: rgba(243, 241, 236, 0.10);
    --hairline-strong: rgba(243, 241, 236, 0.18);

    --font-heading: 'Exo 2', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10: 128px;

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;
    --r-pill: 999px;

    --shadow-low: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
    --shadow-med: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    --shadow-high: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(246, 223, 65, 0.25), 0 0 80px -30px rgba(246, 223, 65, 0.45);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --d-micro: 180ms;
    --d-normal: 420ms;
    --d-macro: 1100ms;

    --wrap: 1280px;
    --gutter: 64px;
    --hdr-h: 72px;
}

/* ---------- base ---------- */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--surface-bg);
    color: var(--n-200);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--c-yellow);
    color: var(--n-900);
}

a {
    color: var(--c-yellow);
    text-decoration: none;
    transition: color var(--d-micro) var(--ease);
}

a:hover,
a:focus {
    color: var(--n-0);
    text-decoration: none;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--c-yellow);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--n-0);
    font-family: var(--font-heading);
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: left;
}

h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin: 0 0 var(--s-4);
}

strong, b {
    color: var(--n-50);
    font-weight: 800;
}

em {
    font-style: normal;
}

hr {
    position: relative;
    margin: var(--s-6) 0;
    border: 0;
    border-top: 1px dashed var(--hairline-strong);
}

img {
    max-width: 100%;
}

ul, ol {
    padding-left: 1.3em;
}

/* legacy centring helpers used across service pages */
.row-centered {
    text-align: center;
}

.col-centered {
    display: inline-block;
    float: none;
    vertical-align: middle;
    text-align: left;
    margin-right: -4px;
}

@media (max-width: 750px) {
    .col-centered {
        margin-right: 0;
    }
}

.wrap {
    position: relative;
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.overline {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin: 0 0 var(--s-5);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--n-400);
}

.crumbs {
    flex-wrap: wrap;
}

.crumbs a {
    padding: 5px 0; /* 2.5.8: the 11px overline text alone gives a 14px-tall target */
    color: var(--n-0);
    text-decoration: none;
    transition: color var(--d-micro) var(--ease);
}

.crumbs a:hover {
    color: var(--c-yellow);
}

.overline .num {
    color: var(--c-yellow);
}

.overline .bar {
    width: 40px;
    height: 1px;
    background: var(--hairline-strong);
}

.overline .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 0 0 rgba(246, 223, 65, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 223, 65, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(246, 223, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 223, 65, 0); }
}

.hl {
    color: var(--c-yellow);
}

/* ---------- background layers ---------- */

.topo {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
    position: relative;
    z-index: 2;
    overflow-x: clip;
}

/* ---------- rope + altimeter ---------- */

.rope {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 22px;
    z-index: 40;
    width: 2px;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(243, 241, 236, 0.16) 0 6px, transparent 6px 10px);
}

/* the climber descends along the rope; its travel stops above the altimeter */
.rope {
    --travel: calc(var(--progress, 0) * (100% - 200px));
}

.rope-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: calc(var(--travel) + 31px);
    background: var(--c-yellow);
    box-shadow: 0 0 10px rgba(246, 223, 65, 0.6);
}

.climber {
    position: absolute;
    left: -17px;
    top: var(--travel);
    width: 44px;
    height: 60px;
    color: var(--c-yellow);
    filter: drop-shadow(0 0 8px rgba(246, 223, 65, 0.55));
    transform-origin: 18px 0;
    animation: swing 3.6s ease-in-out infinite;
}

.climber svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.climber-legs {
    transform-origin: 21px 33px;
    animation: push 3.6s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes push {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-6deg); }
}

.altimeter {
    position: fixed;
    left: 8px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-radius: var(--r-md);
    background: rgba(11, 14, 19, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hairline);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--n-400);
    pointer-events: none;
}

.altimeter-value {
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--c-yellow);
}

/* ---------- buttons ---------- */

.btn,
.btn-y,
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    height: 56px;
    padding: 0 var(--s-6);
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--d-micro) var(--ease), background var(--d-micro) var(--ease), box-shadow var(--d-normal) var(--ease), color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease);
}

.btn svg,
.btn-y svg,
.btn-glass svg {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform var(--d-normal) var(--ease);
}

.btn:hover svg,
.btn-y:hover svg,
.btn-glass:hover svg {
    transform: translateX(4px);
}

.btn-y,
.redButtonHover,
.btn.redButtonHover {
    background: var(--c-yellow);
    color: var(--n-900);
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 0 rgba(246, 223, 65, 0), 0 16px 40px -16px rgba(246, 223, 65, 0.7);
}

.btn-y:hover,
.btn-y:focus,
.redButtonHover:hover,
.redButtonHover:focus,
.btn.redButtonHover:hover,
.btn.redButtonHover:focus {
    background: var(--c-yellow-hi);
    color: var(--n-900);
    border-color: var(--c-yellow-hi);
    transform: translateY(-2px);
    box-shadow: 0 0 0 6px rgba(246, 223, 65, 0.16), 0 22px 50px -16px rgba(246, 223, 65, 0.85);
}

.btn-glass,
.greenButtonHover,
.btn.greenButtonHover,
.btn-default {
    background: rgba(243, 241, 236, 0.06);
    color: var(--n-0);
    border-color: var(--hairline-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-glass:hover,
.btn-glass:focus,
.greenButtonHover:hover,
.greenButtonHover:focus,
.btn.greenButtonHover:hover,
.btn.greenButtonHover:focus,
.btn-default:hover,
.btn-default:focus {
    background: rgba(243, 241, 236, 0.12);
    color: var(--n-0);
    border-color: var(--n-0);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--c-yellow);
    color: var(--n-900);
    border-color: var(--c-yellow);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--c-yellow-hi);
    color: var(--n-900);
    border-color: var(--c-yellow-hi);
}

.btn:active,
.btn-y:active {
    transform: translateY(0);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.btn-lg {
    height: 56px;
    padding: 0 var(--s-6);
    font-size: 13px;
    border-radius: var(--r-md);
}

/* ---------- forms ---------- */

.form-control {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 var(--s-5);
    border-radius: var(--r-md);
    border: 1px solid var(--hairline-strong);
    background: rgba(11, 14, 19, 0.8);
    color: var(--n-0);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color var(--d-micro) var(--ease), box-shadow var(--d-micro) var(--ease);
}

textarea.form-control {
    height: auto;
    min-height: 140px;
    padding: var(--s-4) var(--s-5);
}

.form-control::placeholder {
    color: var(--n-400);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.form-control:hover {
    border-color: rgba(243, 241, 236, 0.32);
}

.form-control:focus {
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 4px rgba(246, 223, 65, 0.25);
    outline: none;
}

.modalFormInputError,
.modalFormInputError:focus,
.has-error .form-control {
    border-color: var(--c-error);
    box-shadow: 0 0 0 4px rgba(255, 90, 78, 0.2);
}

.control-label,
label {
    margin-bottom: var(--s-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--n-200);
}

.help-block {
    color: var(--n-400);
}

.has-error .help-block,
.has-error .control-label {
    color: var(--c-error);
}

.modalFormResult {
    font-weight: 700;
    font-size: 15px;
}

.modalFormResult.error {
    color: var(--c-error);
}

.modalFormResult.success {
    color: var(--c-success);
}

.lead-form {
    display: grid;
    gap: var(--s-3);
}

.lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--s-3);
}

.lead-form .note {
    margin: var(--s-2) 0 0;
    font-size: 13px;
    color: var(--n-400);
}

/* ---------- header ---------- */

.hdr {
    position: fixed;
    top: 16px;
    left: 56px;
    right: 24px;
    z-index: 50;
    transition: transform var(--d-normal) var(--ease);
}

.hdr-bar {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    max-width: calc(var(--wrap) + 48px);
    height: var(--hdr-h);
    margin: 0 auto;
    padding: 0 var(--s-2) 0 var(--s-5);
    border-radius: var(--r-lg);
    background: rgba(11, 14, 19, 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-med);
    transition: background var(--d-normal) var(--ease);
}

.is-scrolled .hdr-bar {
    background: rgba(11, 14, 19, 0.86);
}

.hdr-logo {
    display: block;
    flex: none;
}

.hdr-logo img {
    display: block;
    height: 46px;
    width: auto;
}

.hdr-nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    margin-left: var(--s-4);
}

.hdr-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    height: 44px;
    padding: 0 var(--s-4);
    border: 0;
    border-radius: var(--r-md);
    background: none;
    color: var(--n-50);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}

.hdr-link:hover,
.hdr-link:focus,
.dd.is-open .hdr-link {
    color: var(--n-0);
    background: rgba(243, 241, 236, 0.08);
}

.hdr-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--d-normal) var(--ease);
}

.dd {
    position: relative;
}

.dd:hover .hdr-link svg,
.dd.is-open .hdr-link svg {
    transform: rotate(180deg);
}

.dd-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -24px;
    width: min(720px, 80vw);
    padding: var(--s-4);
    border-radius: var(--r-lg);
    background: rgba(22, 27, 34, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hairline-strong);
    box-shadow: var(--shadow-high);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--d-micro) var(--ease), transform var(--d-normal) var(--ease), visibility var(--d-micro);
}

.dd-panel::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.dd:hover .dd-panel,
.dd:focus-within .dd-panel,
.dd.is-open .dd-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dd-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dd-list a {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    color: var(--n-50);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.dd-list a:hover,
.dd-list a:focus {
    background: rgba(246, 223, 65, 0.1);
    color: var(--c-yellow);
}

.dd-list .num {
    flex: none;
    width: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--n-500);
}

.dd-list a:hover .num {
    color: var(--c-yellow);
}

.dd-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-3);
    padding: var(--s-4) var(--s-4) var(--s-2);
    border-top: 1px dashed var(--hairline-strong);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--n-400);
}

.hdr-cta {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-left: auto;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    height: 52px;
    padding: 0 var(--s-5);
    border-radius: var(--r-md);
    color: var(--n-0);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.phone-pill:hover {
    color: var(--c-yellow);
}

.phone-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    animation: pulse-g 2s infinite;
}

@keyframes pulse-g {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.hdr-cta .btn-y {
    height: 52px;
    padding: 0 var(--s-5);
}

.burger,
.hdr-call {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-md);
    background: rgba(243, 241, 236, 0.06);
    color: var(--n-0);
    place-items: center;
    cursor: pointer;
}

.burger svg,
.hdr-call svg {
    width: 22px;
    height: 22px;
}

.hdr-call {
    color: var(--c-yellow);
}

.hdr-call:hover {
    color: var(--c-yellow-hi);
}

/* mobile menu */
.mnav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 96px var(--s-5) var(--s-5);
    background: rgba(11, 14, 19, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--d-normal) var(--ease), visibility var(--d-normal);
}

.nav-open .mnav {
    opacity: 1;
    visibility: visible;
}

.nav-open {
    overflow: hidden;
}

.mnav-close {
    position: absolute;
    top: 26px;
    right: 26px;
}

.mnav .dd-list {
    grid-template-columns: 1fr;
}

.mnav .dd-list a {
    font-size: 17px;
    padding: var(--s-4) var(--s-2);
    border-bottom: 1px dashed var(--hairline);
    border-radius: 0;
}

.mnav-actions {
    display: grid;
    gap: var(--s-3);
    margin-top: var(--s-6);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: max(720px, 100vh);
    padding: 160px 0 var(--s-8);
    overflow: hidden;
    isolation: isolate;
}

.is-inner .hero {
    min-height: 0;
    padding: 180px 0 var(--s-8);
}

.hero-media {
    position: absolute;
    inset: -10% 0 0;
    z-index: -2;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 28% 30%;
    will-change: transform;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 14, 19, 0.92) 0%, rgba(11, 14, 19, 0.7) 36%, rgba(11, 14, 19, 0.05) 66%, rgba(11, 14, 19, 0) 100%),
        linear-gradient(0deg, var(--surface-bg) 0%, rgba(11, 14, 19, 0) 30%);
}

.is-inner .hero::before {
    background:
        linear-gradient(90deg, rgba(11, 14, 19, 0.95) 0%, rgba(11, 14, 19, 0.8) 50%, rgba(11, 14, 19, 0.45) 100%),
        linear-gradient(0deg, var(--surface-bg) 0%, rgba(11, 14, 19, 0) 70%);
}

/* glass mullions drawn over the photo */
.mullions {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    pointer-events: none;
}

.mullions i {
    display: block;
    border-left: 1px solid rgba(243, 241, 236, 0.07);
    transform-origin: top;
    transform: scaleY(0);
    animation: mullion var(--d-macro) var(--ease) forwards;
    animation-delay: calc(var(--i) * 90ms + 200ms);
}

.mullions i:last-child {
    border-right: 1px solid rgba(243, 241, 236, 0.07);
}

@keyframes mullion {
    to { transform: scaleY(1); }
}

.hero-inner {
    position: relative;
}

.display {
    max-width: 14ch;
    margin: 0 0 var(--s-6);
    font-family: var(--font-heading);
    font-size: clamp(44px, 7.2vw, 120px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.88;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: var(--n-0);
    text-shadow: 0 2px 24px rgba(11, 14, 19, 0.55);
}

.display .l2 {
    display: block;
    color: var(--c-yellow);
}

.display .l3 {
    display: block;
    margin-top: 0.25em;
    font-size: 0.34em;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--n-50);
}

.is-inner .display {
    max-width: 22ch;
    font-size: clamp(36px, 4.6vw, 68px);
}

.hero-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-5);
    margin-bottom: var(--s-7);
}

.hero-quote {
    margin: 0;
    padding-left: var(--s-4);
    border-left: 3px solid var(--c-yellow);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 22px;
    font-weight: 700;
    color: var(--n-50);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--s-8);
    border-top: 1px solid var(--hairline-strong);
}

.fact {
    padding: var(--s-5) var(--s-5) 0 0;
}

.fact + .fact {
    padding-left: var(--s-5);
    border-left: 1px solid var(--hairline);
}

.fact-value {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--n-0);
}

.fact-value small {
    font-size: 0.45em;
    color: var(--c-yellow);
    letter-spacing: 0;
    margin-left: 4px;
}

.fact-label {
    display: block;
    margin-top: var(--s-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--n-400);
}

/* split-word rise */
.split .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.04em 0.06em 0.08em 0;
    margin: -0.04em 0 -0.08em;
}

.split .w > span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: rise 900ms var(--ease) forwards;
    animation-delay: calc(var(--i) * 60ms + 150ms);
}

@keyframes rise {
    to { transform: none; opacity: 1; }
}

/* ---------- marquee ---------- */

.marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    padding: 18px 0;
    background: var(--c-yellow);
    color: var(--n-900);
    transform: rotate(-1.2deg);
    margin: -10px -20px 0;
    box-shadow: 0 20px 60px -20px rgba(246, 223, 65, 0.5);
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--n-900) 0 10px, transparent 10px 20px);
    opacity: 0.85;
}

.marquee::before {
    top: 0;
}

.marquee::after {
    bottom: 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-track span::after {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--n-900);
    transform: rotate(45deg);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.sec {
    position: relative;
    padding: var(--s-10) 0;
}

.sec-alt {
    background: rgba(22, 27, 34, 0.55);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-5);
    margin-bottom: var(--s-7);
}

.sec-title {
    margin: 0;
    max-width: 16ch;
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.4vw, 80px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--n-0);
}

.sec-lead {
    max-width: 44ch;
    margin: 0;
    font-size: 17px;
    color: var(--n-400);
}

.sec-nav {
    display: flex;
    gap: var(--s-2);
}

.round-btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: rgba(243, 241, 236, 0.04);
    color: var(--n-0);
    cursor: pointer;
    transition: all var(--d-micro) var(--ease);
}

.round-btn:hover {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
    color: var(--n-900);
}

.round-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.round-btn svg {
    width: 20px;
    height: 20px;
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* spotlight */
.spot {
    position: relative;
    isolation: isolate;
}

.spot::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 223, 65, 0.14), transparent 70%);
    transition: opacity var(--d-normal) var(--ease);
}

.spot:hover::after {
    opacity: 1;
}

/* ---------- services grid (home) ---------- */

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
}

.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: var(--s-5);
    border-radius: var(--r-lg);
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    color: inherit;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--d-normal) var(--ease), border-color var(--d-normal) var(--ease), box-shadow var(--d-normal) var(--ease), background var(--d-normal) var(--ease);
}

.svc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d-normal) var(--ease);
}

.svc:hover,
.svc:focus {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(246, 223, 65, 0.35);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-high);
}

.svc:hover::before,
.svc:focus::before {
    transform: scaleX(1);
}

.svc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: auto;
}

.svc-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--n-500);
    transition: color var(--d-micro) var(--ease);
}

.svc:hover .svc-num {
    color: var(--c-yellow);
}

.pict {
    display: block;
    width: 56px;
    height: 56px;
    background: var(--c-yellow);
    -webkit-mask: var(--src) center / contain no-repeat;
    mask: var(--src) center / contain no-repeat;
    transition: transform var(--d-normal) var(--ease);
}

.svc:hover .pict {
    transform: scale(1.12) rotate(-4deg);
}

.svc h3 {
    margin: var(--s-6) 0 var(--s-2);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--n-0);
}

.svc p {
    margin: 0 0 var(--s-5);
    font-size: 15px;
    line-height: 1.5;
    color: var(--n-400);
}

.svc-more {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--n-50);
}

.svc-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--d-normal) var(--ease);
}

.svc:hover .svc-more {
    color: var(--c-yellow);
}

.svc:hover .svc-more svg {
    transform: translateX(6px);
}

.svc-feature {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
    min-height: 576px;
    padding: var(--s-6);
    background: #10141a;
}

.svc-feature .svc-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.svc-feature .svc-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.95);
    transition: transform var(--d-macro) var(--ease), filter var(--d-normal) var(--ease);
}

.svc-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(11, 14, 19, 0.95) 10%, rgba(11, 14, 19, 0) 70%);
}

.svc-cta {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
    color: var(--n-900);
}

.svc-cta::before {
    background: var(--n-900);
}

.svc-cta:hover,
.svc-cta:focus {
    background: var(--c-yellow-hi);
    border-color: var(--c-yellow-hi);
    color: var(--n-900);
}

.svc-cta .svc-num,
.svc-cta:hover .svc-num,
.svc-cta h3,
.svc-cta .svc-more,
.svc-cta:hover .svc-more {
    color: var(--n-900);
}

.svc-cta p {
    color: rgba(11, 14, 19, 0.75);
}

.svc-feature:hover .svc-bg img {
    transform: scale(1.05);
    filter: brightness(0.75) saturate(1.05);
}

.svc-feature .svc-top {
    position: absolute;
    top: var(--s-6);
    left: var(--s-6);
    right: var(--s-6);
}

.svc-feature h3 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.svc-feature p {
    font-size: 17px;
    color: var(--n-200);
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 var(--s-3);
    border-radius: var(--r-pill);
    background: var(--c-orange);
    color: var(--n-900); /* white on orange is 3.3:1, dark is 5.9:1 */
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- gallery ---------- */

.gallery-swiper {
    overflow: visible !important;
}

.gallery-swiper .swiper-slide {
    height: auto;
}

.gal-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    color: inherit;
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.9);
    transition: transform var(--d-macro) var(--ease), filter var(--d-normal) var(--ease);
}

.gal-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 14, 19, 0.92) 0%, rgba(11, 14, 19, 0) 55%);
    transition: opacity var(--d-normal) var(--ease);
}

.gal-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.05);
}

.gal-item:hover::after {
    opacity: 0.8;
}

.gal-cap {
    position: absolute;
    left: var(--s-5);
    right: var(--s-5);
    bottom: var(--s-5);
    z-index: 2;
    transform: translateY(8px);
    transition: transform var(--d-normal) var(--ease);
}

.gal-item:hover .gal-cap {
    transform: none;
}

.gal-cap .title {
    margin: 0 0 var(--s-1);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--n-0);
}

.gal-cap .company {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--c-yellow);
}

.gal-arrow {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--n-900);
    opacity: 0;
    transform: scale(0.6) rotate(-45deg);
    transition: all var(--d-normal) var(--ease);
}

.gal-arrow svg {
    width: 20px;
    height: 20px;
}

.gal-item:hover .gal-arrow {
    opacity: 1;
    transform: rotate(-45deg);
}

/* ---------- advantages ---------- */

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
}

.adv {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    transition: transform var(--d-normal) var(--ease), border-color var(--d-normal) var(--ease);
}

.adv:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 223, 65, 0.3);
}

.adv-big {
    display: block;
    margin-bottom: auto;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(72px, 7vw, 112px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--c-yellow);
}

.adv-big .unit {
    font-size: 0.4em;
    letter-spacing: 0;
    color: var(--n-0);
}

.adv-ico {
    display: block;
    width: 88px;
    height: 88px;
    margin-bottom: auto;
    color: var(--c-yellow);
}

.adv-ico svg {
    display: block;
    width: 100%;
    height: 100%;
}

.adv h3 {
    margin: var(--s-6) 0 var(--s-2);
    font-family: var(--font-body);
    font-style: normal;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--n-0);
}

.adv h3 .redInteger {
    color: var(--c-yellow);
}

.adv p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--n-400);
}

.adv-hot {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
}

.adv-hot .adv-big,
.adv-hot .adv-big .unit,
.adv-hot h3,
.adv-hot h3 .redInteger {
    color: var(--n-900);
}

.adv-hot p {
    color: rgba(11, 14, 19, 0.75);
}

/* ---------- callback band ---------- */

.callback {
    position: relative;
    overflow: hidden;
    padding: var(--s-8);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(11, 14, 19, 0.9) 0%, rgba(11, 14, 19, 0.65) 55%, rgba(11, 14, 19, 0.3) 100%),
        url("/img/formBackground.png") center / cover no-repeat;
    border: 1px solid var(--hairline-strong);
    box-shadow: var(--shadow-med);
}

.callback-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--s-7);
    align-items: center;
}

.callback .h2_to_p {
    margin: 0 0 var(--s-3);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--n-0);
}

.callback .sub {
    margin: 0;
    color: var(--n-200);
}

/* ---------- director quote ---------- */

.quote {
    position: relative;
    padding: var(--s-9) 0;
    text-align: left;
}

.quote .directorTitle {
    max-width: 22ch;
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(36px, 5vw, 76px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--n-0);
}

.quote .directorTitle .hl {
    color: var(--c-yellow);
}

.quote-mark {
    display: block;
    height: 0.6em;
    margin-bottom: var(--s-4);
    font-family: var(--font-heading);
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    color: var(--c-yellow);
}

/* ---------- geography ---------- */

.geo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: center;
}

.geo-stat .h4_to_p {
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(80px, 9vw, 140px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--c-yellow);
}

.geo-stat p:not(.h4_to_p) {
    max-width: 22ch;
    margin: var(--s-4) 0 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--n-50);
}

.geo-stat-right {
    text-align: right;
}

.geo-stat-right p:not(.h4_to_p) {
    margin-left: auto;
}

.geo-map {
    position: relative;
    aspect-ratio: 720 / 620;
}

.geo-map .map-shape {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(102, 134, 183, 0.55), rgba(102, 134, 183, 0.18));
    -webkit-mask: url("/img/new_map.png") center / contain no-repeat;
    mask: url("/img/new_map.png") center / contain no-repeat;
}

.geo-map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 0 0 rgba(246, 223, 65, 0.6);
    animation: pulse 2.4s infinite;
    animation-delay: calc(var(--d, 0) * 400ms);
}

.pin-home {
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    background: var(--c-orange);
    animation-name: pulse-o;
}

.pin-label {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(16px, -50%);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: var(--c-orange);
    color: var(--n-900);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes pulse-o {
    0% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(255, 79, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0); }
}

/* ---------- FAQ accordion (bootstrap panels) ---------- */

.panel-group {
    margin-bottom: 0;
}

.panel-group .panel,
.panel-default {
    margin: 0 0 var(--s-2);
    border-radius: var(--r-lg) !important;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    box-shadow: none;
    overflow: hidden;
    transition: border-color var(--d-normal) var(--ease);
}

.panel-group .panel + .panel {
    margin-top: var(--s-2);
}

.panel-group .panel:hover {
    border-color: var(--hairline-strong);
}

.panel-default > .panel-heading {
    padding: 0;
    background: none;
    border: 0;
}

.panel-title {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.panel-title > a {
    position: relative;
    display: block;
    padding: var(--s-5) 88px var(--s-5) var(--s-5);
    color: var(--n-0);
}

.panel-title > a:hover {
    color: var(--c-yellow);
}

.panel-title > a .fa {
    position: absolute;
    top: 50%;
    right: var(--s-5);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    font-size: 0;
    transition: all var(--d-normal) var(--ease);
}

.panel-title > a .fa::before,
.panel-title > a .fa::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    background: currentColor;
    transition: transform var(--d-normal) var(--ease);
}

.panel-title > a .fa::after {
    transform: rotate(90deg);
}

.panel-title > a .fa-minus-circle {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
    color: var(--n-900);
    transform: rotate(180deg);
}

.panel-title > a .fa-minus-circle::after {
    transform: rotate(0deg);
}

.panel-default > .panel-heading + .panel-collapse > .panel-body {
    padding: 0 var(--s-5) var(--s-5);
    border-top: 0;
    color: var(--n-200);
    font-size: 16px;
}

.panel-body span[style],
.panel-body p[style] {
    font-size: inherit !important;
    text-align: left !important;
}

/* ---------- multiple forms ---------- */

.choices {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--hairline-strong);
}

.multipleFormsControls .title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    width: 100%;
    margin: 0;
    padding: var(--s-6) var(--s-2);
    border: 0;
    border-bottom: 1px solid var(--hairline-strong);
    background: transparent;
    text-align: left;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(22px, 3vw, 44px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--n-50);
    cursor: pointer;
    transition: color var(--d-micro) var(--ease), padding var(--d-normal) var(--ease), background var(--d-normal) var(--ease);
}

.multipleFormsControls .title:hover,
.multipleFormsControls .title:focus-visible {
    padding-left: var(--s-5);
    color: var(--n-900);
    background: var(--c-yellow);
}

.multipleFormsControls .title .fa {
    flex: none;
    font-size: 28px;
    transition: transform var(--d-normal) var(--ease);
}

.multipleFormsControls .title:hover .fa {
    transform: translateX(-8px);
}

.multipleFormBlock {
    display: none;
    max-width: 560px;
    margin: 0 auto;
}

.multipleFormBlock .multipleFormTitle {
    margin-bottom: var(--s-5);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--n-0);
}

.multipleFormBack {
    width: auto !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    justify-self: start;
    min-height: 32px;
    margin-top: var(--s-4);
    border: 0;
    background: none;
    color: var(--n-400);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.multipleFormBack:hover {
    color: var(--c-yellow);
}

.stack {
    display: grid;
    gap: var(--s-3);
}

/* ---------- footer ---------- */

.footer {
    position: relative;
    padding: var(--s-9) 0 var(--s-6);
    background: #07090c;
    border-top: 1px solid var(--hairline);
}

.footer-cta {
    margin: 0 0 var(--s-7);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(44px, 7vw, 112px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: var(--n-0);
}

.footer-cta a {
    color: var(--c-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--s-6);
}

.footer-map {
    position: relative;
    min-height: 440px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
    isolation: isolate;
}

/* own objects map (Leaflet + OSM), see js/objects-map.js */
.objects-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0d1117;
    font-family: var(--font-body);
}

.objects-map.is-failed::after {
    content: "Карта не загрузилась";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--n-500);
}

.objects-map.leaflet-container {
    background: #0d1117;
    font-family: var(--font-body);
}

.objects-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.88) saturate(0.35);
}

.objects-map.leaflet-container .leaflet-bar {
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-low);
}

.objects-map.leaflet-container .leaflet-bar a,
.objects-map.leaflet-container .leaflet-bar a:hover {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(22, 27, 34, 0.92);
    border-bottom-color: var(--hairline);
    color: var(--n-0);
}

.objects-map.leaflet-container .leaflet-bar a:hover {
    background: var(--c-yellow);
    color: var(--n-900);
}

.objects-map.leaflet-container .leaflet-control-attribution {
    background: rgba(11, 14, 19, 0.75);
    color: var(--n-400);
    font-size: 10px;
}

.objects-map.leaflet-container .leaflet-control-attribution a {
    color: var(--n-200);
}

.obj-pin span {
    display: block;
    width: 14px;
    height: 14px;
    margin: 4px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(11, 14, 19, 0.85), 0 0 14px rgba(246, 223, 65, 0.8);
    transition: transform var(--d-micro) var(--ease);
}

.obj-pin:hover span {
    transform: scale(1.35);
}

.obj-cluster {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(246, 223, 65, 0.22);
    box-shadow: 0 0 0 1px rgba(246, 223, 65, 0.5);
}

.obj-cluster span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--n-900);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.obj-popup .leaflet-popup-content-wrapper,
.obj-popup .leaflet-popup-tip {
    background: var(--surface-elevated);
    color: var(--n-200);
    box-shadow: var(--shadow-high);
}

.obj-popup .leaflet-popup-content-wrapper {
    border-radius: var(--r-md);
    border: 1px solid var(--hairline-strong);
}

.obj-popup .leaflet-popup-content {
    margin: 14px 16px;
}

.obj-pop {
    display: grid;
    gap: 4px;
    font-family: var(--font-body);
}

.obj-pop strong {
    color: var(--n-0);
    font-size: 15px;
    line-height: 1.3;
}

.obj-kind {
    font-size: 13px;
    color: var(--n-400);
}

.obj-addr {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-yellow);
}

.leaflet-tooltip.obj-tip {
    padding: 4px 10px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-sm);
    background: rgba(11, 14, 19, 0.92);
    color: var(--n-0);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.leaflet-tooltip-top.obj-tip::before {
    border-top-color: rgba(11, 14, 19, 0.92);
}

.map-count {
    position: absolute;
    top: var(--s-4);
    left: var(--s-4);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    height: 34px;
    padding: 0 var(--s-3);
    border-radius: var(--r-pill);
    background: rgba(11, 14, 19, 0.8);
    border: 1px solid var(--hairline-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--n-50);
    pointer-events: none;
}

.map-count .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-yellow);
}

.btn-glass.map-open {
    position: absolute;
    left: var(--s-4);
    bottom: var(--s-4);
    z-index: 2;
    height: 48px;
    padding: 0 var(--s-5);
    font-size: 12px;
    background: rgba(11, 14, 19, 0.8);
}

.contacts {
    display: grid;
    gap: 0;
    margin: 0;
}

.contact-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--s-4);
    padding: var(--s-4) 0;
    border-bottom: 1px dashed var(--hairline-strong);
}

.contact-row dt {
    padding-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--n-500);
}

.contact-row dd {
    margin: 0;
    color: var(--n-50);
    font-size: 17px;
    font-weight: 600;
}

.contact-row dd a {
    display: inline-block;
    padding: 4px 0; /* 2.5.8: keeps the email link at ≥24px tall */
    color: var(--n-0);
}

.contact-row dd a:hover {
    color: var(--c-yellow);
}

.contact-row .big {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin-top: var(--s-5);
    height: 52px;
    padding: 0 var(--s-5) 0 var(--s-2);
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline-strong);
    color: var(--n-0);
    font-weight: 700;
    font-size: 15px;
}

.social .ic {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.social svg {
    width: 20px;
    height: 20px;
}

.social:hover {
    border-color: var(--n-0);
    color: var(--n-0);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-8);
    padding-top: var(--s-5);
    border-top: 1px solid var(--hairline);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--n-500);
}

/* ---------- modals (magnific popup) ---------- */

.mfp-bg {
    background: var(--surface-bg);
    opacity: 0.88;
}

.mfp-content .modalForm,
.mfp-content .FormContact,
.mfp-content .modalSuccess {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    margin: 0 auto;
    padding: var(--s-7) var(--s-6) var(--s-6);
    border-radius: 24px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    box-shadow: var(--shadow-high);
    text-align: left;
}

.mfp-content .modalForm::before,
.mfp-content .modalSuccess::before,
.mfp-content .FormContact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--c-yellow);
}

.modal-title {
    margin: 0 0 var(--s-3);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--n-0);
}

.modal-lead {
    margin: 0 0 var(--s-5);
    font-size: 15px;
    color: var(--n-400);
}

.mfp-close-btn-in .mfp-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--n-0);
    opacity: 0.7;
    font-family: var(--font-body);
    line-height: 44px;
}

.mfp-close-btn-in .mfp-close:hover {
    opacity: 1;
    background: rgba(243, 241, 236, 0.08);
}

.modalSuccess .ok {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--s-5);
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--n-900);
}

.modalSuccess .ok svg {
    width: 30px;
    height: 30px;
}

/* ---------- service pages ---------- */

.svc-page {
    padding: var(--s-8) 0 var(--s-9);
}

.svc-page .content > .container,
.svc-page .container {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    padding: 0 var(--gutter);
}

.svc-page .row {
    margin-left: 0;
    margin-right: 0;
}

.svc-page .clearfix > .column {
    padding-left: 0;
    padding-right: 0;
}

.svc-page .row.clearfix {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* bootstrap clearfix pseudo-elements would become empty flex items and eat a gap */
.svc-page .clearfix::before,
.svc-page .clearfix::after {
    display: none;
}

.svc-page .content > .container > .row.clearfix {
    gap: var(--s-6);
    flex-wrap: nowrap;
    align-items: flex-start;
}

.servicesControls {
    position: sticky;
    top: calc(var(--hdr-h) + 40px);
    flex: 0 0 300px;
    width: 300px !important;
}

.svc-page .content > .container > .row.clearfix > .tab-content {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

.nav-tabs.tabs-left {
    display: grid;
    gap: 4px;
    padding: var(--s-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    background: var(--surface-card);
}

.nav-tabs.tabs-left::before,
.nav-tabs.tabs-left::after {
    display: none;
}

.nav-tabs.tabs-left > li {
    float: none;
    margin: 0;
}

.nav-tabs.tabs-left > li > a {
    position: relative;
    display: block;
    margin: 0;
    padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
    border: 0;
    border-radius: var(--r-md);
    color: var(--n-200);
    transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}

.nav-tabs.tabs-left > li > a .tab-title {
    display: block;
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.nav-tabs.tabs-left > li > a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 2px;
    background: var(--c-yellow);
    transform: translateY(-50%);
    transition: height var(--d-normal) var(--ease);
}

.nav-tabs.tabs-left > li > a:hover,
.nav-tabs.tabs-left > li > a:focus {
    background: rgba(243, 241, 236, 0.05);
    color: var(--n-0);
    border: 0;
}

.nav-tabs.tabs-left > li.active > a,
.nav-tabs.tabs-left > li.active > a:hover,
.nav-tabs.tabs-left > li.active > a:focus {
    background: rgba(246, 223, 65, 0.1);
    color: var(--c-yellow);
    border: 0;
}

.nav-tabs.tabs-left > li.active > a::before {
    height: 24px;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
    animation: pane-in var(--d-normal) var(--ease);
}

@keyframes pane-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.servicesBlock > .row.clearfix:first-child {
    gap: var(--s-5);
    flex-wrap: nowrap;
}

.serviceDescBlock {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding: var(--s-7) !important;
    border-radius: var(--r-lg);
    background: rgba(22, 27, 34, 0.86);
    border: 1px solid var(--hairline);
    color: var(--n-200);
    font-size: 17px;
}

.serviceDescBlock + .column {
    flex: 0 0 auto;
    width: auto !important;
}

.serviceDescBlock + .column:not(:has(img)) {
    display: none;
}

.serviceDescBlock h2 {
    margin: 0 0 var(--s-5) !important;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-align: left;
    color: var(--n-0);
}

.serviceDescBlock h3,
.serviceDescBlock h4 {
    margin: var(--s-6) 0 var(--s-3);
    color: var(--n-0);
}

.serviceDescBlock p {
    margin-bottom: var(--s-4);
}

.serviceDescBlock [style*="text-align:center"],
.serviceDescBlock [style*="text-align: center"] {
    text-align: left !important;
}

.serviceDescBlock span[style*="font-size:20px"],
.serviceDescBlock span[style*="font-size: 20px"] {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(246, 223, 65, 0.1);
    border: 1px solid rgba(246, 223, 65, 0.3);
    color: var(--c-yellow);
    font-family: var(--font-mono);
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.serviceDescBlock [style*="font-family"] {
    font-family: inherit !important;
}

.serviceDescBlock [style*="font-size:16px"],
.serviceDescBlock [style*="font-size: 16px"],
.serviceDescBlock [style*="font-size:14px"] {
    font-size: inherit !important;
}

.serviceDescBlock [style*="color:#000"],
.serviceDescBlock [style*="color: #000"],
.panel-body [style*="color:#000"],
.panel-body [style*="color: #000"] {
    color: var(--n-50) !important;
}

[style*="color:#ff4f00"],
[style*="color: #ff4f00"] {
    color: var(--c-yellow) !important;
}

.serviceDescBlock ul,
.serviceDescBlock ol {
    margin: 0 0 var(--s-5);
    padding: 0;
    list-style: none;
    counter-reset: li;
}

.serviceDescBlock ul > li,
.serviceDescBlock ol > li {
    position: relative;
    margin-bottom: var(--s-3);
    padding-left: 40px;
}

.serviceDescBlock ul > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--c-yellow);
    transform: rotate(45deg);
}

.serviceDescBlock ol > li::before {
    counter-increment: li;
    content: counter(li, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-yellow);
}

.serviceDescBlock table {
    width: 100%;
    margin-bottom: var(--s-5);
    border-collapse: collapse;
    font-size: 15px;
}

.serviceDescBlock table td,
.serviceDescBlock table th {
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--hairline-strong);
}

.serviceDescBlock .row.clearfix,
.serviceDescBlock .row-centered.clearfix {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-6);
}

.serviceDescBlock .row-centered.clearfix > .column {
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.serviceDescBlock .btn {
    width: auto;
}

.serviceGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--s-3);
    height: auto !important;
    margin: var(--s-5) 0 0 !important;
    overflow: visible;
}

.serviceGallery:not(:has(img)) {
    display: none;
}

.serviceGallery > div {
    width: auto !important;
    float: none;
    padding: 0;
}

.serviceGallery a {
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 3 / 2;
}

.serviceGallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform var(--d-macro) var(--ease), filter var(--d-normal) var(--ease);
}

.serviceGallery a:hover img {
    transform: scale(1.06);
    filter: none;
}

.FAQsBlock {
    width: 100% !important;
    margin-top: var(--s-3);
}

.FAQsBlock .panel-title {
    font-size: 17px;
}

/* generic Yii pages (contact, login, error…) */
.svc-page > [class^="site-"] {
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: var(--s-8) var(--gutter) var(--s-9);
}

.svc-page > [class^="site-"] h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    text-transform: uppercase;
}

.svc-page .alert-danger {
    border-radius: var(--r-md);
    background: rgba(255, 90, 78, 0.1);
    border: 1px solid rgba(255, 90, 78, 0.35);
    color: var(--n-0);
}

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
    .services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .svc-feature {
        grid-column: span 3;
        grid-row: auto;
        min-height: 440px;
    }

    .phone-pill {
        display: none;
    }

    .hdr-call {
        display: grid;
    }
}

@media (max-width: 1100px) {
    .hdr-nav,
    .hdr-cta .btn-y {
        display: none;
    }

    /* the callback button is gone here, so the call icon becomes the primary action */
    .hdr-call {
        border-color: var(--c-yellow);
        background: var(--c-yellow);
        color: var(--n-900);
    }

    .hdr-call:hover {
        color: var(--n-900);
        background: var(--c-yellow-hi);
    }

    .burger {
        display: grid;
    }

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

    .fact:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

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

    .callback-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .geo {
        grid-template-columns: 1fr 1fr;
    }

    .geo-map {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 991px) {
    .svc-page .content > .container > .row.clearfix,
    .servicesBlock > .row.clearfix:first-child {
        flex-wrap: wrap;
    }

    .servicesControls {
        position: static;
        flex: 1 1 100%;
        width: 100% !important;
    }

    .nav-tabs.tabs-left {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .nav-tabs.tabs-left > li {
        flex: none;
        scroll-snap-align: start;
    }

    .nav-tabs.tabs-left > li > a {
        white-space: nowrap;
    }

    .svc-page .content > .container > .row.clearfix > .tab-content {
        flex: 1 1 100%;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 16px;
        --hdr-h: 64px;
    }

    body {
        font-size: 16px;
    }

    .rope,
    .altimeter {
        display: none;
    }

    .hdr {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .hdr-bar {
        padding-left: var(--s-4);
    }

    .hdr-logo img {
        height: 36px;
    }

    .hero {
        min-height: 0;
        padding: 130px 0 var(--s-7);
    }

    .is-inner .hero {
        padding: 120px 0 var(--s-6);
    }

    .hero-img {
        object-position: 70% 30%;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(11, 14, 19, 0.55) 0%, rgba(11, 14, 19, 0.8) 60%, var(--surface-bg) 100%);
    }

    .display {
        font-size: 10vw;
    }

    /* service names like «металлоконструкций» must fit a 320px screen */
    .is-inner .display {
        font-size: 7.4vw;
        overflow-wrap: anywhere;
    }

    .display .l3 {
        font-size: 0.48em;
    }

    .sec-title {
        font-size: 9.4vw;
    }

    .serviceDescBlock h2 {
        font-size: 28px;
    }

    .svc-feature h3 {
        font-size: 30px;
    }

    .hero-actions .btn-y,
    .hero-actions .btn-glass {
        flex: 1 1 100%;
    }

    .facts {
        margin-top: var(--s-6);
    }

    .fact {
        padding-right: var(--s-3);
    }

    .fact + .fact {
        padding-left: var(--s-3);
    }

    .fact:nth-child(3) {
        padding-left: 0;
    }

    .marquee-track span {
        font-size: 18px;
    }

    .sec {
        padding: var(--s-8) 0;
    }

    .sec-head {
        margin-bottom: var(--s-6);
    }

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

    .svc-feature {
        grid-column: auto;
        min-height: 400px;
        padding: var(--s-5);
    }

    .svc-feature .svc-top {
        top: var(--s-5);
        left: var(--s-5);
        right: var(--s-5);
    }

    .svc {
        min-height: 0;
        padding: var(--s-5) var(--s-5) var(--s-4);
    }

    .svc h3 {
        margin-top: var(--s-4);
    }

    .svc p {
        margin-bottom: var(--s-3);
    }

    .pict {
        width: 44px;
        height: 44px;
    }

    .adv {
        min-height: 220px;
        padding: var(--s-5);
    }

    .callback {
        padding: var(--s-6) var(--s-5);
        border-radius: var(--r-lg);
    }

    .lead-form .form-row {
        grid-template-columns: 1fr;
    }

    .lead-form .btn-y {
        width: 100%;
    }

    .geo {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .geo-stat-right {
        text-align: left;
    }

    .geo-stat-right p:not(.h4_to_p) {
        margin-left: 0;
    }

    .pin-label {
        display: none;
    }

    .panel-title > a {
        padding: var(--s-4) 72px var(--s-4) var(--s-4);
        font-size: 16px;
    }

    .panel-title > a .fa {
        right: var(--s-4);
    }

    .panel-default > .panel-heading + .panel-collapse > .panel-body {
        padding: 0 var(--s-4) var(--s-4);
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: var(--s-1);
    }

    .serviceDescBlock {
        padding: var(--s-5) !important;
    }

    .serviceDescBlock .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .serviceDescBlock .row-centered.clearfix > .column {
        flex: 1 1 100%;
    }

    .mfp-content .modalForm,
    .mfp-content .FormContact,
    .mfp-content .modalSuccess {
        padding: var(--s-6) var(--s-4) var(--s-4);
    }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
    }

    .reveal,
    .split .w > span {
        opacity: 1;
        transform: none;
    }

    .mullions i {
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}
