:root {
    --bg: #f7f5f0;
    --text: #1a1a1a;
    --accent: #a05924;
    --page-gutter: 40px;
    --header-height: 120px;
    --header-logo-width: 224px;
    --nav-gap: 15px;
    --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - (2 * var(--page-gutter))), var(--container)); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Mobile navigation must never participate in desktop layout. */
.mobile-menu { display: none; }

/* HEADER — desktop */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-height);
    color: #fff;
    pointer-events: none;
}
.site-header__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding-inline: var(--page-gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    pointer-events: auto;
}
.site-header__nav--left { justify-self: start; }
.site-header__nav--right { justify-self: end; }
.site-header__nav a { transition: opacity .2s ease; }
.site-header__nav a:hover { opacity: .62; }
.contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.contact-link__arrow {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    display: block;
    background-color: currentColor;
    -webkit-mask: url("../images/arrow-up-right.svg") center / contain no-repeat;
    mask: url("../images/arrow-up-right.svg") center / contain no-repeat;
}
.site-header__burger,
.site-header__close { display: none; }

.site-logo {
    width: var(--header-logo-width);
    height: auto;
    justify-self: center;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    transform-origin: 50% 50%;
    will-change: transform;
}
.site-logo__shape {
    display: block;
    width: 100%;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}
.site-logo__shape--desktop {
    aspect-ratio: 1360 / 197;
    -webkit-mask-image: url("../images/honnestat-logo.svg");
    mask-image: url("../images/honnestat-logo.svg");
}
.site-logo__shape--mobile {
    display: none;
    aspect-ratio: 435 / 138;
    -webkit-mask-image: url("../images/honnestat-mark.svg");
    mask-image: url("../images/honnestat-mark.svg");
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    background: #8d8d86;
}
.hero__media {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero__media--mobile { display: none; }
.hero__content { position: relative; height: 100%; }

/* Один и тот же логотип визуально стартует внизу hero. */
.js.home .site-logo { opacity: 0; }
.js.home.hero-logo-ready .site-logo { opacity: 1; }
.js.home.hero-logo-finished .site-logo { will-change: auto; }

.section { min-height: 70vh; padding: clamp(90px, 10vw, 160px) 0; }
.section--agents { min-height: 70vh; }
.eyebrow { margin: 0 0 28px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
h1,h2,h3,p { margin-top: 0; }
h2 { max-width: 900px; font-size: clamp(44px, 7vw, 112px); line-height: .95; font-weight: 500; letter-spacing: -.04em; }
.page-shell { padding-top: 140px; min-height: 70vh; }
/* Footer styling is defined in the dedicated v3.9 block at the end of this file. */

/* Tablet keeps desktop logo/navigation until mobile breakpoint. */
@media (max-width: 900px) and (min-width: 768px) {
    .site-header__nav { font-size: 11px; gap: 10px; }
}

/* MOBILE */
@media (max-width: 767px) {
    :root {
        --page-gutter: 20px;
        --header-height: 70px;
        --header-logo-width: 124px;
    }

    body.mobile-menu-open { overflow: hidden; }

    .site-header__inner {
        padding-inline: 20px;
        grid-template-columns: 1fr auto 1fr;
    }

    .site-header__nav { display: none; }

    .site-header__burger {
        display: flex;
        width: 32px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        flex-direction: column;
        justify-content: space-between;
        justify-self: start;
        align-self: center;
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 5;
    }
    .site-header__burger span {
        width: 32px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        display: block;
    }

    .site-header__close {
        display: block;
        justify-self: end;
        width: 32px;
        height: 32px;
        padding: 5px 6px;
        border: 0;
        background: transparent;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        transition: opacity .22s ease, visibility .22s ease;
        position: relative;
        z-index: 5;
    }
    .site-header__close img {
        width: 19px;
        height: 21px;
        margin-inline: auto;
    }
    .mobile-menu-open .site-header__close {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-logo__shape--desktop { display: none; }
    .site-logo__shape--mobile { display: block; }

    /* Стеклянная панель меню. Она включает область header, как в макете. */
    .mobile-menu {
        display: flex;
        position: fixed;
        z-index: 2;
        inset: 0 0 auto 0;
        padding: calc(var(--header-height) + 30px) 20px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        background:
            linear-gradient(rgba(160, 89, 36, .64), rgba(160, 89, 36, .64));
        -webkit-backdrop-filter: blur(30px) saturate(145%) brightness(1.03);
        backdrop-filter: blur(30px) saturate(145%) brightness(1.03);
        border-bottom: 1px solid rgba(255,255,255,.16);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.10),
            inset 0 -1px 0 rgba(255,255,255,.08),
            0 16px 40px rgba(63,31,11,.10);
        color: #fff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-14px);
        transition:
            opacity .32s ease,
            transform .38s cubic-bezier(.22,.61,.36,1),
            visibility .32s ease;
    }
    .mobile-menu a {
        display: block;
        width: max-content;
        max-width: 100%;
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 20px;
        line-height: 1;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0;
    }
    .mobile-menu .contact-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .mobile-menu .contact-link__arrow {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }
    .mobile-menu-open .mobile-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        min-height: 560px;
        height: 100svh;
    }
    .hero__media--desktop { display: none; }
    .hero__media--mobile {
        display: block;
        background-position: center center;
        background-size: cover;
    }

    .section { min-height: auto; padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-logo { transform: none !important; }
    .mobile-menu { transition: none !important; }
}

/* ----------------------------------------------------------
   HEADER ON LIGHT SECTIONS
   ---------------------------------------------------------- */
.site-header.is-on-light {
    color: #000;
}
.site-header.is-on-light .site-header__burger span {
    background: #000;
}
.mobile-menu-open .site-header {
    color: #fff;
}
.mobile-menu-open .site-header__burger span {
    background: #fff;
}

/* ----------------------------------------------------------
   ABOUT
   ---------------------------------------------------------- */
.about {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #fff;
    color: #454545;
    padding: clamp(160px, 25svh, 220px) 40px 0;
}
.about__top {
    display: flex;
    align-items: flex-start;
}
.about__title {
    width: 492px;
    flex: 0 0 492px;
    margin: 0;
    color: var(--accent);
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: .99;
    font-weight: 400;
    letter-spacing: 0;
}

.about__title-line {
    display: block;
    width: max-content;
    white-space: nowrap;
}

.about__copy {
    width: 340px;
    margin-left: 70px;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
}
.about__copy p {
    margin: 0;
}
.about__copy p + p {
    margin-top: 25px;
}
.about__brand {
    position: absolute;
    top: clamp(160px, 25svh, 220px);
    right: 40px;
    width: 174px;
    text-align: right;
}
.about__mark {
    width: 174px;
    height: auto;
    margin-left: auto;
}
.about__tagline {
    margin: 20px 0 0;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    text-align: right;
}
.about__cta {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 40px;
    width: 65px;
    height: 65px;
    transform: translateY(-50%);
    display: block;
    border-radius: 50%;
    transition: transform .25s ease, opacity .2s ease;
}
.about__cta img {
    width: 100%;
    height: 100%;
}
.about__cta:hover {
    transform: translateY(-50%) rotate(5deg) scale(1.04);
}
.about__visual {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 8px;
    width: min(72vw, 1030px);
    transform: translateX(-50%);
    pointer-events: none;
}
.about__visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Desktop/tablet bridge so the composition stays clean before mobile. */
@media (max-width: 1180px) and (min-width: 768px) {
    .about {
        padding-inline: 32px;
    }
    .about__title {
        width: 390px;
        flex-basis: 390px;
        font-size: 64px;
    }
    
.about__title-line {
    display: block;
    width: max-content;
    white-space: nowrap;
}

.about__copy {
        width: 280px;
        margin-left: 40px;
        font-size: 14px;
    }
    .about__brand {
        right: 32px;
        width: 140px;
    }
    .about__mark { width: 140px; }
    .about__tagline { font-size: 14px; }
    .about__cta { right: 32px; width: 58px; height: 58px; }
}

@media (max-width: 767px) {
    /* «Связаться ↗» всегда центрируется как единая кнопка меню. */
    .mobile-menu .contact-link {
        width: auto;
        margin-inline: auto;
        justify-content: center;
        align-self: center;
        line-height: 1;
    }
    .mobile-menu .contact-link__arrow {
        display: block;
        margin: 0;
        transform: none;
    }

    .about {
        min-height: 100svh;
        padding: 140px 20px 0;
        overflow: hidden;
    }
    .about__top {
        display: block;
    }
    .about__title {
        width: 255px;
        max-width: calc(100vw - 120px);
        margin: 0;
        font-size: 42px;
        line-height: 1.02;
    }
    
.about__title-line {
    display: block;
    width: max-content;
    white-space: nowrap;
}

.about__copy {
        width: min(270px, calc(100vw - 120px));
        margin: 45px 0 0;
        font-size: 12px;
        line-height: 1.22;
    }
    .about__copy p + p {
        margin-top: 15px;
    }
    .about__brand {
        top: auto;
        right: 20px;
        bottom: auto;
        width: auto;
        /* Нижний край подписи выравниваем по низу текстового блока. */
        margin: 0;
    }
    .about__mark {
        display: none;
    }
    .about__tagline {
        margin: 0;
        font-size: 12px;
        line-height: 1.22;
        text-align: right;
    }
    .about__cta {
        top: 140px;
        right: 20px;
        width: 71px;
        height: 71px;
        transform: none;
    }
    .about__cta:hover {
        transform: none;
    }
    .about__visual {
        left: 20px;
        right: 20px;
        bottom: 14px;
        width: auto;
        transform: none;
    }
}

/* ----------------------------------------------------------
   AGENTS
   ---------------------------------------------------------- */
.agents {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: var(--accent);
    color: #fff;
    padding: clamp(160px, 25svh, 220px) 40px 0;
}

.agents__title {
    margin: 0;
    color: #fff;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: .95;
    font-weight: 400;
    letter-spacing: 0;
}

.agents__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 480px;
    margin-top: 20px;
    overflow: visible;
}

.agent-card {
    position: relative;
    min-width: 0;
    height: 480px;
    padding: 34px 18px 0;
    color: #fff;
    background: transparent;
    overflow: visible;
    transition: background-color .28s ease, color .28s ease;
    outline: none;
}

.agent-card__number {
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 71px;
    line-height: .9;
    font-weight: 400;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
}

.agent-card__info {
    position: relative;
    z-index: 3;
    margin-top: 60px;
    width: min(190px, 100%);
}

.agent-card__name {
    margin: 0;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 31px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

.agent-card__description {
    margin: 5px 0 0;
    max-width: 185px;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 400;
}

.agent-card__button {
    width: 125px;
    height: 28px;
    margin-top: 25px;
    padding: 0 13px;
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    color: inherit;
    position: relative;
    z-index: 4;
    transition: opacity .2s ease, transform .2s ease;
}

.agent-card__button:hover {
    opacity: .68;
}

.agent-card__button-arrow {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background-color: currentColor;
    -webkit-mask: url("../images/arrow-up-right.svg") center / contain no-repeat;
    mask: url("../images/arrow-up-right.svg") center / contain no-repeat;
}

.agent-card__visual {
    position: absolute;
    z-index: 10;
    right: -40px;
    bottom: 0;
    width: 62%;
    height: 96%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, transform .32s cubic-bezier(.22,.61,.36,1), visibility .24s ease;
    transform: translateY(12px);
}

.agent-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

@media (hover: hover) and (pointer: fine) {
    .agent-card:hover,
    .agent-card:focus-within {
        background: #fff;
        color: #000;
    }

    .agent-card:hover .agent-card__visual,
    .agent-card:focus-within .agent-card__visual {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .agents {
        padding-inline: 32px;
    }
    .agents__title { font-size: 64px; }
    .agents__grid { height: 420px; }
    .agent-card {
        height: 420px;
        padding: 30px 14px 0;
    }
    .agent-card__number { font-size: 60px; }
    .agent-card__info { margin-top: 48px; }
    .agent-card__name { font-size: 27px; }
    .agent-card__description { font-size: 13px; }
    .agent-card__button { width: 116px; font-size: 12px; }
}

@media (max-width: 767px) {
    .agents {
        min-height: 100svh;
        overflow: visible;
        padding: 140px 20px 80px;
    }

    .agents__title {
        font-size: 42px;
        line-height: 1;
    }

    .agents__grid {
        display: flex;
        flex-direction: column;
        width: min(350px, calc(100vw - 40px));
        height: auto;
        margin-top: 45px;
        overflow: visible;
    }

    .agent-card {
        width: 100%;
        height: 90px;
        min-height: 90px;
        padding: 0 15px;
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        column-gap: 25px;
        align-items: start;
        color: #fff;
        background: transparent;
        overflow: visible;
        transition: height .34s cubic-bezier(.22,.61,.36,1), margin .34s cubic-bezier(.22,.61,.36,1), background-color .26s ease, color .26s ease;
    }

    .agent-card__number {
        font-size: 80px;
        line-height: .82;
    }

    .agent-card__info {
        width: 100%;
        margin: 2px 0 0;
        align-self: start;
    }

    .agent-card__name {
        font-size: 24px;
        line-height: 1;
    }

    .agent-card__description {
        margin-top: 7px;
        max-width: 195px;
        font-size: 12px;
        line-height: 1.22;
    }

    .agent-card__button {
        display: none;
        width: 125px;
        height: 28px;
        margin-top: 0;
        padding-inline: 12px;
        font-size: 12px;
        justify-content: center;
    }

    .agent-card__visual {
        right: -22px;
        bottom: 0;
        width: 58%;
        height: 155%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }

    .agent-card.is-active {
        height: 205px;
        min-height: 205px;
        background: #fff;
        color: #000;
        padding-top: 13px;
    }

    /* 18 px воздуха между открытым агентом и соседними закрытыми строками. */
    .agent-card.is-active:not(:first-child) { margin-top: 18px; }
    .agent-card.is-active:not(:last-child) { margin-bottom: 18px; }

    .agent-card.is-active .agent-card__info {
        margin-top: 0;
        min-height: 179px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-card.is-active .agent-card__button {
        display: inline-flex;
        margin-top: auto;
        margin-bottom: 17px;
    }

    .agent-card.is-active .agent-card__visual {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* ----------------------------------------------------------
   SERVICES — desktop
   ---------------------------------------------------------- */
.services {
    position: relative;
    height: calc(100svh + var(--services-scroll-extra, 336svh));
    min-height: 100svh;
    background: #000;
    color: #fff;
}
.services__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    padding: clamp(160px, 25svh, 220px) 40px 70px;
    background: #000;
    color: #fff;
}
.services__title {
    margin: 0;
    color: #fff;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: .95;
    font-weight: 400;
    letter-spacing: 0;
}
.services__counter {
    position: absolute;
    left: 40px;
    top: clamp(305px, 39svh, 340px);
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-weight: 400;
    line-height: 1;
}
.services__counter-current { font-size: 71px; }
.services__counter-separator,
.services__counter-total { font-size: 31px; }
.services__stage {
    position: absolute;
    left: 50%;
    top: clamp(238px, 29.5svh, 270px);
    width: min(29vw, 414px);
    transform: translateX(-50%);
}
.service-panel {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .28s ease, transform .32s cubic-bezier(.22,.61,.36,1), visibility .28s ease;
}
.service-panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.service-panel__meta {
    min-height: 20px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 400;
    white-space: nowrap;
}
.service-panel__media {
    width: 100%;
    aspect-ratio: 414 / 333;
    overflow: hidden;
    background: #111;
}
.service-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-panel__more {
    width: max-content;
    margin: 30px 0 0 auto;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    display: block;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    transition: opacity .2s ease;
}
.service-panel__more:hover { opacity: .58; }
.services__menu {
    position: absolute;
    top: clamp(190px, 24svh, 210px);
    right: 40px;
    width: min(420px, 31vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}
.service-menu-item {
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.22);
    text-align: right;
    cursor: pointer;
    transition: color .24s ease;
}
.service-menu-item:hover { color: rgba(255,255,255,.48); }
.service-menu-item.is-active { color: #fff; }
.service-menu-item__title {
    display: block;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 31px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}
.service-menu-item__details {
    display: block;
    width: 250px;
    max-width: 250px;
    max-height: 0;
    opacity: 0;
    margin: 0 0 0 auto;
    overflow: hidden;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.32;
    font-weight: 400;
    transition: max-height .32s ease, opacity .25s ease, margin-top .3s ease;
}
.service-menu-item.is-active .service-menu-item__details {
    max-height: 180px;
    opacity: 1;
    margin-top: 14px;
}

/* Catalog page for an active service */
.single-honnestat_service {
    background: #000;
    color: #fff;
}
.single-honnestat_service .site-header {
    color: #fff;
    background: #000;
}
.single-honnestat_service .site-footer {
    background: #000;
    color: #fff;
    border-color: rgba(255,255,255,.16);
}
.service-catalog {
    min-height: 100svh;
    padding: 120px 40px 100px;
    background: #000;
    color: #fff;
}

/* Service switcher stays under the fixed header while the catalog scrolls. */
.service-catalog__nav-shell {
    position: sticky;
    top: var(--header-height);
    z-index: 30;
    margin-inline: -40px;
    padding: 40px 40px 0;
    background: #000;
    isolation: isolate;
}
.service-catalog__nav {
    width: 60vw;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 10px;
    row-gap: 0;
    color: #696969;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
}
.service-catalog__nav-pair {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 10px;
}
.service-catalog__nav-link,
.service-catalog__nav-separator {
    display: inline-block;
    color: #696969;
}
.service-catalog__nav-link {
    transition: color .2s ease;
}
.service-catalog__nav-link:hover,
.service-catalog__nav-link:focus-visible,
.service-catalog__nav-link.is-active {
    color: #A05924;
}
.service-catalog__nav-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.service-catalog__intro {
    display: flex;
    align-items: flex-start;
    margin-top: 40px;
}
.service-catalog__title {
    width: max-content;
    max-width: calc(100% - 355px);
    margin: 0;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}
.service-catalog__copy {
    width: 300px;
    max-width: 300px;
    min-width: 0;
    flex: 0 0 300px;
    margin: 0 0 0 45px;
    overflow-wrap: anywhere;
    word-break: normal;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    text-wrap: balance;
}
.service-catalog__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 75px;
    margin-top: 40px;
}
.catalog-card { min-width: 0; }
.catalog-card__media {
    appearance: none;
    width: 100%;
    aspect-ratio: 224 / 168;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
    overflow: hidden;
    background: #111;
    cursor: zoom-in;
}
.catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}
.catalog-card__media:hover img { transform: scale(1.015); }
.catalog-card__media:focus-visible {
    outline: 1px solid #A05924;
    outline-offset: 4px;
}
.catalog-card__media--empty { cursor: default; }
.catalog-card__description {
    margin: 25px 0 0;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 400;
}
.catalog-card__more {
    width: max-content;
    margin-top: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    display: block;
    color: #696969;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1;
    transition: color .2s ease;
}
a.catalog-card__more:hover { color: #A05924; }
.service-catalog__empty { grid-column: 1 / -1; }

/* Fullscreen object-image viewer. Click the enlarged image again to close. */
body.catalog-lightbox-open { overflow: hidden; }
.catalog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    background: #000;
}
.catalog-lightbox.is-open { display: block; }
.catalog-lightbox__button {
    appearance: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
    background: #000;
    cursor: zoom-out;
}
.catalog-lightbox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__sticky { padding-inline: 32px; }
    .services__title { font-size: 64px; }
    .services__counter { left: 32px; }
    .services__stage { width: min(34vw, 380px); }
    .services__menu { right: 32px; width: 32vw; }
    .service-menu-item__title { font-size: 26px; }
    .service-menu-item__details, .service-panel__meta, .service-panel__more { font-size: 14px; }
    .service-catalog { padding-inline: 32px; }
    .service-catalog__nav-shell { margin-inline: -32px; padding: 40px 32px 0; }
    .service-catalog__nav { width: min(68vw, 760px); font-size: 14px; }
    .service-catalog__title { max-width: calc(100% - 335px); font-size: 64px; }
    .service-catalog__copy { width: 300px; max-width: 300px; flex-basis: 300px; margin-left: 35px; }
    .service-catalog__grid { column-gap: 36px; }
}


/* SERVICES MOBILE PLACEHOLDER — full mobile composition comes next. */
@media (max-width: 767px) {
    .services {
        height: auto;
        min-height: 360px;
    }
    .services__sticky {
        position: relative;
        height: auto;
        min-height: 360px;
        overflow: visible;
        padding: 140px 20px 80px;
    }
    .services__title { font-size: 42px; }
    .services__counter, .services__stage, .services__menu { display: none; }
    .service-catalog { padding: 140px 20px 80px; }
    .service-catalog__nav-shell { display: none; }
    .service-catalog__intro { display: block; margin-top: 0; }
    .service-catalog__title { max-width: 100%; font-size: 42px; white-space: normal; }
    .service-catalog__copy { width: 100%; max-width: 250px; margin: 24px 0 0; font-size: 12px; }
    .service-catalog__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 60px; }
    .catalog-card__description, .catalog-card__more { font-size: 12px; }
}


/* ==========================================================
   v2.2 — Catalog sticky air + finished mobile services/catalog
   ========================================================== */

/* Keep 40px of black breathing room below the sticky service switcher. */
.service-catalog__nav-shell {
    padding-bottom: 40px;
}
.service-catalog__intro {
    margin-top: 0;
}

/* Homepage mobile-only service UI is dormant on desktop. */
.services__mobile-catalog-link,
.services__mobile-list {
    display: none;
}

/* Catalog-only mobile scroll-to-top action. */
.site-header__catalog-up {
    display: none;
}

@media (max-width: 767px) {
    /* ---------------- Homepage: Services ---------------- */
    .services {
        height: auto;
        min-height: auto;
        position: relative;
    }
    .services__sticky {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 110px 20px 80px;
    }
    .services__title {
        margin: 0;
        font-size: 42px;
        line-height: 1;
    }
    .services__counter,
    .services__stage,
    .services__menu {
        display: none;
    }
    .services__mobile-catalog-link {
        position: absolute;
        top: 112px;
        right: 20px;
        width: 154px;
        min-height: 30px;
        padding: 0 13px;
        border: 1px solid rgba(255,255,255,.92);
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
    }
    .services__mobile-catalog-arrow {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        background: currentColor;
        -webkit-mask: url('../images/arrow-up-right.svg') center/contain no-repeat;
        mask: url('../images/arrow-up-right.svg') center/contain no-repeat;
    }
    .services__mobile-list {
        margin-top: 48px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .service-mobile-card {
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: clamp(14px, 8vw, 38px);
    }
    .service-mobile-card__media,
    .service-mobile-card__content {
        width: min(200px, calc((100vw - 58px) / 2));
        flex: 0 1 200px;
    }
    .service-mobile-card__media {
        aspect-ratio: 200 / 155;
        overflow: hidden;
        background: #111;
    }
    .service-mobile-card__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
    .service-mobile-card__title {
        margin: 0;
        font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
        font-size: 24px;
        line-height: 1;
        font-weight: 400;
        color: #fff;
    }
    .service-mobile-card__details {
        width: 100%;
        margin-top: 12px;
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 12px;
        line-height: 1.28;
        font-weight: 400;
        color: #fff;
    }
    .service-mobile-card__more {
        width: max-content;
        margin-top: 25px;
        padding-bottom: 4px;
        border-bottom: 1px solid currentColor;
        display: block;
        color: #696969;
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 12px;
        line-height: 1;
    }

    /* ---------------- Catalog page ---------------- */
    .single-honnestat_service .site-header {
        background: #000;
    }
    .single-honnestat_service .site-header__catalog-up {
        position: absolute;
        top: 50%;
        right: 20px;
        width: 23px;
        height: 23px;
        padding: 0;
        border: 0;
        display: block;
        background: transparent;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 4;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .single-honnestat_service .site-header__catalog-up img {
        width: 23px;
        height: 23px;
        display: block;
    }
    .mobile-menu-open.single-honnestat_service .site-header__catalog-up {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .service-catalog {
        min-height: 100svh;
        padding: calc(var(--header-height) + 25px) 20px 80px;
    }
    .service-catalog__nav-shell {
        position: static;
        z-index: auto;
        margin: 0;
        padding: 0;
        background: transparent;
    }
    .service-catalog__nav {
        width: 100%;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: baseline;
        column-gap: 10px;
        row-gap: 0;
        font-size: 12px;
        line-height: 1.7;
        text-align: left;
    }
    .service-catalog__nav-pair {
        gap: 10px;
    }

    .service-catalog__intro {
        width: 100%;
        margin-top: 25px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: clamp(14px, 8vw, 38px);
    }
    .service-catalog__title {
        width: min(200px, calc((100vw - 58px) / 2));
        max-width: min(200px, calc((100vw - 58px) / 2));
        flex: 0 1 200px;
        margin: 0;
        font-size: 31px;
        line-height: .98;
        white-space: normal;
    }
    .service-catalog__copy {
        width: min(200px, calc((100vw - 58px) / 2));
        max-width: min(200px, calc((100vw - 58px) / 2));
        flex: 0 1 200px;
        margin: 0;
        font-size: 12px;
        line-height: 1.28;
        overflow-wrap: normal;
        word-break: normal;
    }

    .service-catalog__grid {
        width: 100%;
        margin-top: 25px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 200px));
        justify-content: space-between;
        column-gap: clamp(14px, 8vw, 38px);
        row-gap: 25px;
    }
    .catalog-card {
        width: min(200px, calc((100vw - 58px) / 2));
        max-width: 200px;
    }
    .catalog-card__media {
        width: 100%;
        aspect-ratio: 200 / 155;
    }
    .catalog-card__description {
        width: 100%;
        max-width: 200px;
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.28;
    }
    .catalog-card__more {
        margin-top: 10px;
        font-size: 12px;
    }
}

/* ==========================================================
   v2.3 — Mobile catalog selector visibility + layout guard
   ========================================================== */
@media (max-width: 767px) {
    /* An older mobile placeholder rule hid this block. Re-enable it here. */
    .single-honnestat_service .service-catalog__nav-shell {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        position: static;
        background: transparent;
    }

    .single-honnestat_service .service-catalog__nav {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        column-gap: 10px;
        row-gap: 0;
    }

    .single-honnestat_service .service-catalog__intro {
        min-width: 0;
    }
    .single-honnestat_service .service-catalog__title,
    .single-honnestat_service .service-catalog__copy {
        min-width: 0;
    }
    .single-honnestat_service .service-catalog__copy {
        overflow-wrap: break-word;
    }

    /* Keep the catalog-only up button reliably visible above the black header. */
    .single-honnestat_service .site-header__catalog-up {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mobile-menu-open.single-honnestat_service .site-header__catalog-up {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ==========================================================
   v2.5 — Этапы работы / весь блок уезжает горизонтально
   ========================================================== */
.process {
    --process-left: 65vw;
    position: relative;
    width: 100%;
    background: #fff;
    color: #454545;
}
.process__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    background: #fff;
}
.process__rail {
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: hidden;
    background: #fff;
}
.process__track {
    position: relative;
    width: max-content;
    height: 100%;
    padding: 0 40px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    will-change: transform;
}
.process__visual {
    position: relative;
    width: var(--process-left);
    height: 100%;
    flex: 0 0 var(--process-left);
    margin-right: 10px;
    background-color: #b9cbd8;
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.process__title {
    position: absolute;
    top: 25%;
    left: 40px;
    margin: 0;
    max-width: calc(100% - 80px);
    color: #fff;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: .96;
    font-weight: 400;
    letter-spacing: 0;
}
.process-card {
    position: relative;
    top: var(--stage-y, 150px);
    width: 225px;
    flex: 0 0 225px;
}
.process-card:nth-of-type(6n + 1) { --stage-y: 150px; }
.process-card:nth-of-type(6n + 2) { --stage-y: 280px; }
.process-card:nth-of-type(6n + 3) { --stage-y: 175px; }
.process-card:nth-of-type(6n + 4) { --stage-y: 240px; }
.process-card:nth-of-type(6n + 5) { --stage-y: 280px; }
.process-card:nth-of-type(6n + 6) { --stage-y: 200px; }
.process-card__media {
    width: 225px;
    height: 225px;
    overflow: hidden;
    background: #ededed;
}
.process-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.process-card__media--placeholder {
    background: linear-gradient(135deg, #eeeeee 0%, #f8f8f8 50%, #e8e8e8 100%);
}
.process-card__title {
    margin: 14px 0 0;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 31px;
    line-height: 1;
    font-weight: 400;
    color: #454545;
}
.process-card__description {
    width: 225px;
    margin: 16px 0 0;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 400;
    color: #454545;
}
.process-cta {
    position: relative;
    align-self: flex-end;
    width: max-content;
    flex: 0 0 auto;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}
.process-cta__label {
    text-align: left;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 31px;
    line-height: 1;
    font-weight: 400;
    color: #454545;
}
.process-cta__button {
    width: 65px;
    height: 65px;
    display: block;
}
.process-cta__button img {
    width: 65px;
    height: 65px;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .process { --process-left: 52vw; }
    .process__title { font-size: 64px; left: 32px; }
    .process__track { gap: 44px; }
}

/* Temporary safe mobile layout; dedicated mobile art direction can be tuned later. */
@media (max-width: 767px) {
    .process {
        height: auto !important;
        background: #fff;
    }
    .process__sticky {
        position: relative;
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .process__visual {
        position: relative;
        width: 100%;
        height: 72svh;
        min-height: 520px;
    }
    .process__title {
        top: 140px;
        left: 20px;
        max-width: calc(100% - 40px);
        font-size: 42px;
    }
    .process__rail {
        position: relative;
        inset: auto;
        width: 100%;
        overflow: visible;
    }
    .process__track {
        width: 100%;
        height: auto;
        padding: 45px 20px 70px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 36px;
        transform: none !important;
    }
    .process-card,
    .process-card:nth-child(n) {
        top: auto;
        width: 225px;
        max-width: 100%;
        margin: 0;
    }
    .process-card:nth-child(even) { margin-left: auto; }
    .process-card__media { width: 225px; max-width: 100%; height: auto; aspect-ratio: 1; }
    .process-card__description { width: 225px; max-width: 100%; font-size: 12px; }
    .process-card__title { font-size: 24px; }
    .process-cta {
        top: auto;
        width: 225px;
        max-width: 100%;
        margin: 0 0 0 auto;
        align-self: auto;
        align-items: flex-start;
    }
    .process-cta__label { font-size: 24px; }
}


/* ==========================================================
   v2.8 — Этапы работы / mobile art direction + CTA alignment
   ========================================================== */
.process-cta {
    align-items: flex-start;
}

@media (max-width: 767px) {
    .process {
        width: 100%;
        overflow: hidden;
        background: #fff;
    }

    .process__sticky {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .process__rail {
        position: relative;
        inset: auto;
        width: 100%;
        overflow: visible;
    }

    .process__track {
        width: 100%;
        height: auto;
        padding: 0 0 40px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        transform: none !important;
    }

    .process__visual {
        position: relative;
        width: 100%;
        height: 70svh;
        min-height: 500px;
        margin: 0;
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
    }

    .process__title {
        top: 140px;
        left: 20px;
        max-width: calc(100% - 40px);
        font-size: 42px;
        line-height: .96;
    }

    .process-card,
    .process-card:nth-child(n) {
        position: relative;
        top: auto;
        width: 200px;
        max-width: calc(100vw - 40px);
        margin: 0 0 0 20px;
    }

    .process-card:nth-of-type(even) {
        margin-left: auto;
        margin-right: 20px;
    }

    .process-card:nth-of-type(odd) {
        margin-left: 20px;
        margin-right: 0;
    }

    .process-card__media {
        width: 200px;
        max-width: 100%;
        height: 200px;
        aspect-ratio: 1;
    }

    .process-card__title {
        margin-top: 12px;
        font-size: 24px;
        line-height: 1;
    }

    .process-card__description {
        width: 200px;
        max-width: 100%;
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.28;
    }

    .process-cta {
        width: 200px;
        max-width: calc(100vw - 40px);
        margin: 0 20px 0 auto;
        padding: 0;
        align-self: auto;
        align-items: flex-start;
        gap: 16px;
    }

    .process-cta__label {
        width: 100%;
        text-align: left;
        font-size: 24px;
        line-height: 1;
    }

    .process-cta__button {
        width: 65px;
        height: 65px;
        margin: 0;
        align-self: flex-start;
    }

    .process-cta__button img {
        width: 65px;
        height: 65px;
        display: block;
    }
}

/* ==========================================================
   v3.1 — Partners / path + depth modeled on the saved reference
   ========================================================== */
.partners {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 720px;
    overflow: hidden;
    background: #000;
    color: #fff;
    isolation: isolate;
}
.partners__center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.partners__title {
    width: min-content;
    margin: 0;
    color: #fff;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 100px;
    line-height: .94;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}
.partners__side {
    position: absolute;
    top: 25%;
    z-index: 4;
    margin: 0;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    color: #fff;
    pointer-events: none;
}
.partners__side--left { left: 40px; text-align: left; }
.partners__side--right { right: 40px; text-align: right; }
.partners__orbit {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.partner-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
    background: #f0f0f0;
    color: #111;
    transform: translate3d(-50%,-50%,0) scale(.7);
    transform-origin: center;
    will-change: transform, opacity;
    pointer-events: auto;
    cursor: default;
}
.partner-orb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(0,0,0,.24) inset;
    pointer-events: none;
}
a.partner-orb { cursor: pointer; }
.partner-orb--decorative { pointer-events: none; }
.partner-orb img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    pointer-events: none;
}
.partner-orb__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .partners__title { font-size: 82px; }
    .partners__side { font-size: 14px; }
}

@media (max-width: 767px) {
    .partners {
        height: 100svh;
        min-height: 620px;
        padding: 0;
        display: block;
        overflow: hidden;
    }
    .partners__center {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: grid;
        place-items: center;
    }
    .partners__title {
        font-size: 54px;
        line-height: .92;
    }
    .partners__side { display: none; }
    .partners__orbit {
        display: block;
        position: absolute;
        inset: 0;
        overflow: visible;
    }
    .partner-orb {
        width: 118px;
        height: 118px;
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-orb { will-change: auto; }
}

/* ==========================================================
   v3.8 — Pre-footer video inside the Honnestat arch mark
   ========================================================== */
.logo-video {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #000;
}
.logo-video__mask {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1600px;
    aspect-ratio: 326.38 / 103.1573;
    overflow: hidden;
    opacity: 0;
    transform: scale(.985);
    transition: opacity .75s cubic-bezier(.17,.84,.44,1), transform .9s cubic-bezier(.17,.84,.44,1);
    -webkit-mask-image: var(--logo-video-mask);
    mask-image: var(--logo-video-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.logo-video.is-visible .logo-video__mask {
    opacity: 1;
    transform: scale(1);
}
.logo-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: #000;
}

@media (max-width: 767px) {
    .logo-video {
        height: 72svh;
        min-height: 480px;
    }
    .logo-video__mask {
        width: calc(100% - 40px);
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-video__mask {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================================
   v4.3 — Footer: slightly smaller desktop action button
   ========================================================== */
.site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #fff;
    color: #454545;
    padding: 80px 40px 78px;
    border: 0;
}
.site-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) 170px 260px 112px;
    column-gap: clamp(48px, 4.85vw, 70px);
    align-items: start;
}
.site-footer__slogan {
    max-width: 520px;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 60px;
    line-height: .96;
    font-weight: 400;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.site-footer__heading {
    margin: 0 0 13px;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
    color: #454545;
}
.site-footer__contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}
.site-footer__contact-list a,
.site-footer__contact-list span {
    display: block;
    transition: color .2s ease, opacity .2s ease;
}
.site-footer__contact-list a:hover { color: var(--accent); }
.site-footer__social-list {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-footer__social-link {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: #454545;
    transition: color .2s ease, transform .2s ease;
}
.site-footer__social-link svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
a.site-footer__social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
.site-footer__social-link.is-disabled { opacity: .55; }
.site-footer__action-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.site-footer__action {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    position: relative;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.17,.84,.44,1), opacity .2s ease;
}
a.site-footer__action:hover { transform: scale(1.025); }
.site-footer__action.is-disabled { opacity: .55; }
.site-footer__action-glyph {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity .24s ease;
}
.site-footer__action-glyph--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}
a.site-footer__action:hover .site-footer__action-glyph--default,
a.site-footer__action:focus-visible .site-footer__action-glyph--default { opacity: 0; }
a.site-footer__action:hover .site-footer__action-glyph--hover,
a.site-footer__action:focus-visible .site-footer__action-glyph--hover { opacity: 1; }

@media (max-width: 1180px) and (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: minmax(330px, 1fr) 150px 205px 96px;
        column-gap: 30px;
    }
    .site-footer__slogan { font-size: 50px; max-width: 430px; }
    .site-footer__heading { font-size: 27px; }
    .site-footer__action { width: 96px; height: 96px; flex-basis: 96px; }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 40px 20px 42px;
        min-height: 0;
    }
    .site-footer__inner {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .96fr) 71px;
        grid-template-areas:
            "slogan slogan action"
            "contacts socials socials";
        column-gap: 14px;
        row-gap: 52px;
        align-items: start;
    }
    .site-footer__slogan {
        grid-area: slogan;
        max-width: 255px;
        font-size: 42px;
        line-height: .94;
        white-space: normal;
    }
    .site-footer__contacts { grid-area: contacts; min-width: 0; }
    .site-footer__socials { grid-area: socials; min-width: 0; }
    .site-footer__action-wrap {
        grid-area: action;
        justify-content: flex-end;
        align-self: start;
    }
    .site-footer__heading {
        margin-bottom: 10px;
        font-size: 20px;
        line-height: .95;
        white-space: normal;
    }
    .site-footer__contact-list {
        gap: 3px;
        font-size: 12px;
        line-height: 1.28;
    }
    .site-footer__contact-list a:first-child,
    .site-footer__contact-list a[href^="mailto:"] { white-space: nowrap; }
    .site-footer__social-list { gap: 7px; }
    .site-footer__social-link {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }
    .site-footer__action {
        width: 71px;
        height: 71px;
        flex-basis: 71px;
    }
}

@media (max-width: 390px) {
    .site-footer {
        padding-left: 19px;
        padding-right: 19px;
    }
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, .92fr) 71px;
        column-gap: 10px;
        row-gap: 48px;
    }
    .site-footer__slogan {
        max-width: 235px;
        font-size: 40px;
    }
    .site-footer__heading {
        font-size: 18px;
        margin-bottom: 9px;
    }
    .site-footer__contact-list { font-size: 11px; }
    .site-footer__social-link {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }
}

@media (max-width: 350px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, .88fr) 64px;
        column-gap: 8px;
        row-gap: 44px;
    }
    .site-footer__slogan { max-width: 210px; font-size: 36px; }
    .site-footer__heading { font-size: 17px; }
    .site-footer__contact-list { font-size: 11.5px; }
    .site-footer__action { width: 64px; height: 64px; flex-basis: 64px; }
}


/* ==========================================================
   v4.4 — 8 services + scroll-driven desktop sequence
   ========================================================== */
@media (min-width: 768px) {
    .services__menu {
        gap: 14px;
    }
    .service-menu-item__details {
        width: 250px;
        max-width: 250px;
        margin-left: auto;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: pretty;
    }
    .service-menu-item.is-active .service-menu-item__details {
        margin-top: 14px;
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__menu { gap: 11px; }
    .service-menu-item.is-active .service-menu-item__details { margin-top: 10px; }
    .service-menu-item__details { width: 230px; max-width: 230px; }
}

/* ==========================================================
   v4.5 — Prototype-style scroll rail for desktop services
   ========================================================== */
@media (min-width: 768px) {
    .services {
        height: calc(100svh + var(--services-scroll-extra, 476svh));
    }

    .services__sticky {
        padding-top: clamp(128px, 16svh, 156px);
        padding-bottom: 42px;
    }

    .services__title {
        position: relative;
        z-index: 6;
    }

    .services__counter {
        top: 50%;
        z-index: 6;
        transform: translateY(-50%);
    }

    .services__stage {
        left: 50%;
        top: 14svh;
        width: min(36vw, 520px);
        height: 72svh;
        max-height: 690px;
        min-height: 520px;
        overflow: hidden;
        transform: translateX(-50%);
        z-index: 2;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    }

    .services__track {
        position: relative;
        width: 100%;
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    .service-panel {
        position: relative;
        inset: auto;
        width: 100%;
        margin: 0 0 clamp(48px, 7svh, 72px);
        opacity: .12;
        visibility: visible;
        transform: scale(.92);
        transform-origin: center center;
        transition: opacity .24s linear, transform .32s cubic-bezier(.22,.61,.36,1);
        filter: saturate(.72);
    }

    .service-panel.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        filter: saturate(1);
    }

    .service-panel__meta {
        opacity: .36;
        transition: opacity .24s ease;
    }

    .service-panel__more {
        opacity: 0;
        pointer-events: none;
        transform: translateY(7px);
        transition: opacity .24s ease, transform .28s cubic-bezier(.22,.61,.36,1);
    }

    .service-panel.is-active .service-panel__meta {
        opacity: 1;
    }

    .service-panel.is-active .service-panel__more {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .service-panel__media {
        aspect-ratio: 414 / 333;
    }

    .services__menu {
        top: 50%;
        z-index: 6;
        transform: translateY(-50%);
    }

    .service-menu-item {
        transition: color .2s ease, transform .25s ease;
    }

    .service-menu-item.is-active {
        transform: translateX(-8px);
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__stage {
        width: min(37vw, 430px);
        height: 68svh;
        min-height: 500px;
    }
    .services__counter-current { font-size: 62px; }
    .services__counter-separator,
    .services__counter-total { font-size: 27px; }
    .service-menu-item__title { font-size: 25px; }
}

/* ==========================================================
   v4.6 — spread the service rail across the full viewport
   ========================================================== */
@media (min-width: 768px) {
    /* Prototype-style composition: the active card sits in the middle,
       while the neighbouring cards live at the top/bottom edges. */
    .services__stage {
        top: 0;
        height: 100svh;
        max-height: none;
        min-height: 700px;
        overflow: hidden;
        -webkit-mask-image: none;
        mask-image: none;
        pointer-events: none;
    }

    .services__track {
        height: auto;
        pointer-events: none;
    }

    .service-panel {
        margin-bottom: 0;
        pointer-events: none;
    }

    .service-panel.is-active {
        pointer-events: auto;
    }

    /* The reference uses a wider editorial frame. Besides looking closer
       to the reference, this leaves enough vertical air for three cards. */
    .service-panel__media {
        aspect-ratio: 16 / 9;
    }

    .service-panel__more {
        pointer-events: none;
    }

    .service-panel.is-active .service-panel__more {
        pointer-events: auto;
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__stage {
        height: 100svh;
        min-height: 700px;
    }
}

/* ==========================================================
   v4.7 — Prototype-style viewport spacing + scrub + snap
   ========================================================== */
@media (min-width: 768px) {
    /* Exactly half a viewport between neighbouring panel centres:
       previous = top edge, active = centre, next = bottom edge. */
    .services__stage {
        top: 0;
        height: 100svh;
        min-height: 700px;
    }

    .service-panel {
        transition: none;
        transform-origin: center center;
        will-change: transform, opacity, filter;
    }

    .service-menu-item {
        will-change: color, opacity;
    }

    /* The JS now interpolates visual strength continuously. Keep only
       the small positional nudge and description reveal on the nearest item. */
    .service-menu-item.is-active {
        color: inherit;
    }
}

/* ==========================================================
   v4.8 — full-height agent selection + founder swipe panel
   ========================================================== */
.agents {
    padding: 0;
    min-height: 100svh;
    overflow: hidden;
    background: var(--accent);
}

.agents__slides {
    display: flex;
    width: 200%;
    min-height: 100svh;
    transform: translate3d(0, 0, 0);
    transition: transform .78s cubic-bezier(.77, 0, .18, 1);
    will-change: transform;
}

.agents.is-founder-open .agents__slides {
    transform: translate3d(-50%, 0, 0);
}

.agents__panel {
    position: relative;
    width: 50%;
    flex: 0 0 50%;
    min-height: 100svh;
    box-sizing: border-box;
}

.agents__panel--list {
    --agents-side: 40px;
    --agent-strip-adjust: 16px;
    padding: clamp(160px, 25svh, 220px) var(--agents-side) 0;
    background: var(--accent);
    color: #fff;
    overflow: hidden;
}

.agents__active-strip {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: var(--agents-side);
    width: calc(20% - var(--agent-strip-adjust));
    background: #fff;
    transform: translate3d(0, 0, 0);
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
    pointer-events: none;
}

.agents__title,
.agents__founder-toggle,
.agents__grid {
    position: relative;
    z-index: 2;
}

.agents__title {
    transition: color .25s ease;
}

.agents[data-agent-active="0"] .agents__title {
    color: #000;
}
.agents[data-agent-active="4"] .agents__founder-toggle {
    color: #000;
}

.agents__founder-toggle {
    appearance: none;
    position: absolute;
    top: clamp(188px, 25svh, 226px);
    right: 40px;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #fff;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    transition: opacity .2s ease;
}

.agents__founder-toggle:hover,
.agents__founder-toggle:focus-visible,
.founder__return:hover,
.founder__return:focus-visible {
    opacity: .56;
}

@media (min-width: 768px) {
    .agent-card {
        background: transparent !important;
        transition: color .24s ease;
    }

    .agent-card.is-desktop-active {
        color: #000;
    }

    .agent-card.is-desktop-active .agent-card__visual {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .agent-card:hover,
    .agent-card:focus-within {
        background: transparent;
    }
}

/* Founder screen */
.agents__panel--founder {
    background: #fff;
    color: #000;
    overflow: hidden;
}

.founder__copy {
    position: absolute;
    z-index: 4;
    top: clamp(186px, 25svh, 224px);
    left: 40px;
    width: min(330px, 28vw);
}

.founder__name {
    margin: 0;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 80px;
    line-height: .95;
    font-weight: 400;
    letter-spacing: 0;
}

.founder__description {
    margin-top: 42px;
    max-width: 330px;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 400;
}

.founder__return {
    appearance: none;
    position: absolute;
    z-index: 6;
    top: clamp(224px, 29svh, 270px);
    right: 40px;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #696969;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    transition: opacity .2s ease;
}

.founder__visual {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: min(43vw, 680px);
    height: 84svh;
    transform: translateX(-50%);
    pointer-events: none;
}

.founder__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.founder__contact {
    position: absolute;
    z-index: 6;
    right: 40px;
    bottom: 84px;
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder__call {
    display: block;
    width: 190px;
    line-height: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.founder__call:hover,
.founder__call:focus-visible {
    opacity: .66;
    transform: translateY(-1px);
}

.founder__call img {
    display: block;
    width: 100%;
    height: auto;
}

.founder__caption {
    display: block;
    margin-top: 7px;
    color: #696969;
    font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

@media (max-width: 1180px) and (min-width: 768px) {
    .agents__panel--list { --agents-side: 32px; --agent-strip-adjust: 12.8px; }
    .agents__founder-toggle { right: 32px; font-size: 21px; }
    .founder__copy { left: 32px; width: 300px; }
    .founder__name { font-size: 64px; }
    .founder__description { max-width: 300px; font-size: 14px; margin-top: 34px; }
    .founder__return { right: 32px; font-size: 20px; }
    .founder__contact { right: 32px; bottom: 58px; }
    .founder__visual { width: min(46vw, 560px); }
}

@media (max-width: 767px) {
    .agents {
        min-height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .agents__slides,
    .agents__panel {
        min-height: 100svh;
    }

    .agents__panel--list {
        --agents-side: 20px;
        padding: 140px 20px 80px;
        overflow: visible;
    }

    .agents__active-strip { display: none; }
    .agents[data-agent-active="0"] .agents__title { color: #fff; }

    .agents__founder-toggle {
        top: 143px;
        right: 20px;
        font-size: 13px;
        padding-bottom: 2px;
    }

    .agent-card.is-desktop-active { color: #fff; }
    .agent-card.is-desktop-active .agent-card__visual {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }
    .agent-card.is-active { color: #000; }
    .agent-card.is-active .agent-card__visual {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .agents__panel--founder {
        min-height: max(100svh, 700px);
    }

    .founder__copy {
        top: 113px;
        left: 20px;
        width: min(205px, 54vw);
    }

    .founder__name {
        font-size: 42px;
        line-height: 1;
    }

    .founder__description {
        margin-top: 26px;
        max-width: 205px;
        font-size: 12px;
        line-height: 1.23;
    }

    .founder__return {
        top: 130px;
        right: 20px;
        font-size: 11px;
        padding-bottom: 1px;
    }

    .founder__visual {
        z-index: 2;
        left: auto;
        right: -38px;
        bottom: -2px;
        width: 76vw;
        max-width: 330px;
        height: 76%;
        transform: none;
    }

    .founder__visual img {
        object-position: right bottom;
    }

    .founder__contact {
        top: 53svh;
        right: auto;
        bottom: auto;
        left: 20px;
        width: 120px;
        align-items: center;
    }

    .founder__call {
        width: 120px;
    }

    .founder__caption {
        margin-top: 6px;
        font-size: 12px;
        white-space: nowrap;
    }
}


@media (min-width: 768px) {
    .site-header.is-agent-strip-left .site-header__nav--left,
    .site-header.is-agent-strip-center .site-logo,
    .site-header.is-agent-strip-right .site-header__nav--right {
        color: #000;
    }
}

/* Catalog intro width requested in v4.8. */
@media (min-width: 768px) {
    .service-catalog__copy {
        width: 300px;
        max-width: 300px;
        flex-basis: 300px;
    }
}


/* ==========================================================
   v4.9 — agent hover zone + reliable service line breaks
   ========================================================== */
@media (min-width: 768px) {
    .agents__panel--list {
        --agents-head-top: clamp(160px, 25svh, 220px);
        padding-top: var(--agents-head-top);
    }

    .agents__founder-toggle {
        /* 80px heading × .95 = 76px; 24px label => same bottom edge. */
        top: calc(var(--agents-head-top) + 52px);
    }

    .agents__active-strip {
        opacity: 0;
        transition: transform .18s cubic-bezier(.22,.61,.36,1), opacity .08s linear;
    }
    .agents.has-agent-hover .agents__active-strip { opacity: 1; }

    .agent-card { transition: color .10s linear !important; }
    .agent-card__visual {
        transition: opacity .10s linear, transform .16s cubic-bezier(.22,.61,.36,1), visibility .10s linear;
    }

    .agents:not(.has-agent-hover) .agent-card { color: #fff !important; }
    .agents:not(.has-agent-hover) .agent-card__visual {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
    }
    .agents:not(.has-agent-hover) .agents__title,
    .agents:not(.has-agent-hover) .agents__founder-toggle { color: #fff !important; }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .agents__founder-toggle {
        top: calc(var(--agents-head-top) + 39.8px);
    }
}

.service-menu-item__details,
.service-mobile-card__details {
    white-space: pre-line;
}


/* ==========================================================
   v5.0 — exact color inversion over the active agent strip
   ========================================================== */
@media (min-width: 768px) {
    /* Only the actual active card is inverted on the white strip. */
    .agents .agent-card { color: #fff; }
    .agents.has-agent-hover .agent-card.is-desktop-active { color: #000 !important; }

    /* Header/title controls invert only when their real rectangles
       overlap the white active strip (calculated in JS). */
    .site-header__nav.is-over-agent-strip,
    .site-logo.is-over-agent-strip,
    .agents__title.is-over-agent-strip,
    .agents__founder-toggle.is-over-agent-strip {
        color: #000 !important;
    }

    .agents:not(.has-agent-hover) .site-header__nav.is-over-agent-strip,
    .agents:not(.has-agent-hover) .site-logo.is-over-agent-strip,
    .agents:not(.has-agent-hover) .agents__title.is-over-agent-strip,
    .agents:not(.has-agent-hover) .agents__founder-toggle.is-over-agent-strip {
        color: inherit !important;
    }
}


/* ==========================================================
   v5.1 — precise agent-strip colour inversion
   ========================================================== */
@media (min-width: 768px) {
    /* The title must expose only its visible text width to the overlap check. */
    .agents__title {
        display: inline-block;
        width: max-content;
        max-width: 100%;
    }

    /* Reset the old container-level inversion completely. */
    .site-header__nav.is-over-agent-strip {
        color: inherit !important;
    }

    /* Only the exact header link / logo / label that crosses the white strip
       is allowed to turn black. */
    .site-header__nav > a.is-over-agent-strip,
    .site-logo.is-over-agent-strip,
    .agents__title.is-over-agent-strip,
    .agents__founder-toggle.is-over-agent-strip {
        color: #000 !important;
    }

    /* Everything else in the agents section keeps its normal white state. */
    .agents.has-agent-hover .site-header__nav > a:not(.is-over-agent-strip),
    .agents.has-agent-hover .agents__title:not(.is-over-agent-strip),
    .agents.has-agent-hover .agents__founder-toggle:not(.is-over-agent-strip) {
        color: #fff !important;
    }
}


/* ==========================================================
   v5.3 — 11 partner orbs + square service imagery
   ========================================================== */
@media (min-width: 768px) {
    .service-panel__media {
        aspect-ratio: 1 / 1 !important;
    }

    /* Two deliberate lines from wp-admin should stay visible without
       wrapping each sentence into extra lines. */
    .service-menu-item__details {
        width: 300px;
        max-width: 300px;
        white-space: pre-line;
    }
}

@media (max-width: 767px) {
    .service-mobile-card__media {
        aspect-ratio: 1 / 1;
    }
}

/* ==========================================================
   v5.4 — strict square service media + 300px catalog copy cap
   ========================================================== */
@media (min-width: 768px) {
    /* Keep the desktop service artwork genuinely square.  The explicit
       height prevents older 16:9 rules or browser layout timing from
       winning while the scroll rail is being measured. */
    .services__stage {
        width: min(34vw, 500px);
    }

    .service-panel__media {
        width: 100%;
        height: min(34vw, 500px) !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 auto;
    }

    .service-panel__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-catalog__copy {
        width: 300px;
        max-width: 300px;
        flex-basis: 300px;
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__stage {
        width: min(36vw, 420px);
    }

    .service-panel__media {
        height: min(36vw, 420px) !important;
    }
}

@media (max-width: 767px) {
    .service-mobile-card__media {
        aspect-ratio: 1 / 1 !important;
    }

    .service-catalog__copy {
        max-width: min(300px, calc((100vw - 58px) / 2));
    }
}

/* ==========================================================
   v5.6 — catalog intro: guaranteed 300px copy column
   ========================================================== */
@media (min-width: 768px) {
    .service-catalog__intro {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        column-gap: 45px !important;
        align-items: start !important;
        width: 100%;
    }

    .service-catalog__title {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .service-catalog__copy {
        width: 300px !important;
        max-width: 300px !important;
        min-width: 300px !important;
        margin-left: 0 !important;
        flex: none !important;
        text-wrap: wrap !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

/* ==========================================================
   v5.7 — catalog intro: fixed real 300px column
   Hard line breaks from wp-admin are normalized in PHP so CSS width controls wrapping.
   ========================================================== */
@media (min-width: 768px) {
    .single-honnestat_service .service-catalog__intro {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        column-gap: 45px !important;
        align-items: start !important;
        width: 100% !important;
    }

    .single-honnestat_service .service-catalog__copy {
        display: block !important;
        box-sizing: border-box !important;
        inline-size: 300px !important;
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        justify-self: end !important;
        margin: 0 !important;
        white-space: normal !important;
        text-wrap: wrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

/* ==========================================================
   v5.8 — catalog intro: 500px copy column on desktop
   ========================================================== */
@media (min-width: 1200px) {
    .single-honnestat_service .service-catalog__intro {
        grid-template-columns: minmax(0, 1fr) 500px !important;
        column-gap: 45px !important;
    }

    .single-honnestat_service .service-catalog__copy {
        inline-size: 500px !important;
        width: 500px !important;
        min-width: 500px !important;
        max-width: 500px !important;
    }
}

/* ==========================================================
   v5.9 — catalog title/copy 50px gap + smaller service artwork
   ========================================================== */
@media (min-width: 1200px) {
    .single-honnestat_service .service-catalog__intro {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        column-gap: 0 !important;
        gap: 50px !important;
    }

    .single-honnestat_service .service-catalog__title {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .single-honnestat_service .service-catalog__copy {
        flex: 0 0 500px !important;
        inline-size: 500px !important;
        width: 500px !important;
        min-width: 500px !important;
        max-width: 500px !important;
        margin: 0 !important;
        padding-top: 0 !important;
        align-self: flex-start !important;
    }
}

@media (min-width: 768px) {
    .services__stage {
        width: min(31vw, 450px) !important;
    }

    .service-panel__media {
        width: 100% !important;
        height: min(31vw, 450px) !important;
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .services__stage {
        width: min(33vw, 390px) !important;
    }

    .service-panel__media {
        height: min(33vw, 390px) !important;
    }
}

/* ==========================================================
   v6.0 — service intro 700px + mobile process sticky accordion
   ========================================================== */
.process-mobile {
    display: none;
}

@media (min-width: 1200px) {
    .single-honnestat_service .service-catalog__intro {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 700px !important;
        column-gap: 50px !important;
        row-gap: 0 !important;
        align-items: start !important;
        width: 100% !important;
    }

    .single-honnestat_service .service-catalog__title {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        white-space: normal !important;
        align-self: start !important;
    }

    .single-honnestat_service .service-catalog__copy {
        box-sizing: border-box !important;
        justify-self: start !important;
        align-self: start !important;
        flex: none !important;
        inline-size: 700px !important;
        width: 700px !important;
        min-width: 700px !important;
        max-width: 700px !important;
        margin: 0 !important;
        padding-top: 0 !important;
        text-wrap: pretty !important;
        white-space: normal !important;
    }
}

@media (max-width: 767px) {
    .process__sticky {
        display: none !important;
    }

    .process-mobile {
        display: block;
        position: relative;
        width: 100%;
        min-height: 100svh;
        background: #fff;
    }

    .process-mobile__sticky {
        position: sticky;
        top: 0;
        min-height: 100svh;
        padding: 120px 20px 28px;
        background: #fff;
        overflow: hidden;
    }

    .process-mobile__inner {
        width: 100%;
    }

    .process-mobile__title {
        margin: 0;
        color: #454545;
        font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
        font-size: 42px;
        line-height: .96;
        font-weight: 400;
        letter-spacing: 0;
    }

    .process-mobile__list {
        margin-top: 20px;
        border-top: 1px solid rgba(69,69,69,.14);
    }

    .process-mobile-step {
        border-bottom: 1px solid rgba(69,69,69,.14);
        background: #fff;
    }

    .process-mobile-step__summary {
        width: 100%;
        min-height: 58px;
        padding: 0;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 16px;
        background: transparent;
        border: 0;
        color: #454545;
        text-align: left;
    }

    .process-mobile-step__summary-number,
    .process-mobile-step__number {
        font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
        font-weight: 400;
        line-height: 1;
        letter-spacing: 0;
        color: #454545;
    }

    .process-mobile-step__summary-number {
        font-size: 28px;
    }

    .process-mobile-step__summary-title {
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 400;
        text-transform: uppercase;
        color: #454545;
    }

    .process-mobile-step__summary-state {
        position: relative;
        width: 18px;
        height: 18px;
        justify-self: end;
        color: #454545;
    }

    .process-mobile-step__summary-state::before {
        content: '↘';
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        line-height: 1;
        font-weight: 400;
    }

    .process-mobile-step.is-complete .process-mobile-step__summary-state::before {
        content: '✓';
        font-size: 18px;
        font-weight: 400;
    }

    .process-mobile-step.is-active .process-mobile-step__summary {
        display: none;
    }

    .process-mobile-step__body {
        display: none;
        padding: 18px 0 18px;
    }

    .process-mobile-step.is-active .process-mobile-step__body {
        display: block;
    }

    .process-mobile-step__headline {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
    }

    .process-mobile-step__number {
        font-size: 72px;
        color: #454545;
    }

    .process-mobile-step__lead {
        min-width: 0;
        padding-top: 8px;
    }

    .process-mobile-step__title {
        margin: 0;
        color: #454545;
        font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
        font-size: 40px;
        line-height: .95;
        font-weight: 400;
        letter-spacing: 0;
    }

    .process-mobile-step__description {
        margin: 10px 0 0;
        color: #454545;
        font-family: "Montserrat Local", "Montserrat", Arial, Helvetica, sans-serif;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 400;
    }

    .process-mobile-step__media {
        width: 100%;
        margin-top: 18px;
        overflow: hidden;
        aspect-ratio: 335 / 250;
        background: #ededed;
    }

    .process-mobile-step__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .process-mobile-step__media--placeholder {
        background: linear-gradient(135deg, #eeeeee 0%, #f8f8f8 50%, #e8e8e8 100%);
    }
}

/* ==========================================================
   v6.1 — mobile process: restore hero image + smoother sticky sequence
   ========================================================== */
@media (max-width: 767px) {
    .process-mobile {
        min-height: 0;
        overflow: visible;
    }

    .process-mobile__hero {
        position: relative;
        width: 100%;
        height: 68svh;
        min-height: 480px;
        background-color: #b9cbd8;
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .process-mobile__hero-title {
        position: absolute;
        top: 140px;
        left: 20px;
        max-width: calc(100% - 40px);
        margin: 0;
        color: #fff;
        font-family: "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
        font-size: 42px;
        line-height: .96;
        font-weight: 400;
        letter-spacing: 0;
    }

    .process-mobile__sequence {
        position: relative;
        width: 100%;
        background: #fff;
    }

    .process-mobile__sticky {
        position: sticky;
        top: 0;
        width: 100%;
        height: 100svh;
        min-height: 0;
        padding: 94px 20px 16px;
        background: #fff;
        overflow: hidden;
    }

    .process-mobile__title {
        font-size: 38px;
        line-height: .96;
    }

    .process-mobile__list {
        margin-top: 14px;
    }

    .process-mobile-step__summary {
        min-height: 46px;
        grid-template-columns: 34px minmax(0, 1fr) 18px;
        gap: 12px;
    }

    .process-mobile-step__summary-number {
        font-size: 24px;
    }

    .process-mobile-step__summary-title {
        font-size: 13px;
        line-height: 1.15;
    }

    .process-mobile-step__summary-state {
        width: 16px;
        height: 16px;
    }

    .process-mobile-step__summary-state::before {
        font-size: 16px;
    }

    .process-mobile-step.is-complete .process-mobile-step__summary-state::before {
        font-size: 15px;
    }

    .process-mobile-step__body {
        padding: 14px 0 14px;
    }

    .process-mobile-step__headline {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .process-mobile-step__number {
        font-size: 62px;
    }

    .process-mobile-step__lead {
        padding-top: 5px;
    }

    .process-mobile-step__title {
        font-size: 34px;
    }

    .process-mobile-step__description {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.32;
    }

    .process-mobile-step__media {
        height: clamp(165px, 24svh, 225px);
        margin-top: 14px;
        aspect-ratio: auto;
    }
}

/* ==========================================================
   v6.2 — mobile process sticky scroll fix
   The old mobile process wrapper had overflow:hidden, which made it the
   sticky containing block and prevented the sequence from following page scroll.
   ========================================================== */
@media (max-width: 767px) {
    .process {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        contain: none !important;
    }

    .process-mobile,
    .process-mobile__sequence {
        overflow: visible !important;
        contain: none !important;
    }

    .process-mobile__sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 2;
    }
}


/* ==========================================================
   v6.4 — catalog intro lockup + full mobile service names
   ========================================================== */
@media (min-width: 1200px) {
    .single-honnestat_service .service-catalog__intro {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 50px !important;
        width: 100% !important;
    }

    .single-honnestat_service .service-catalog__title {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        font-size: clamp(54px, 4.3vw, 80px) !important;
        line-height: 1 !important;
        align-self: flex-start !important;
    }

    .single-honnestat_service .service-catalog__copy {
        flex: 0 0 600px !important;
        inline-size: 600px !important;
        width: 600px !important;
        min-width: 600px !important;
        max-width: 600px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: flex-start !important;
        white-space: normal !important;
        text-wrap: pretty !important;
    }
}

@media (max-width: 767px) {
    .service-mobile-card__title {
        font-size: 22px;
        line-height: .98;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }
}


/* ==========================================================
   v6.5 — agent copy typography
   ========================================================== */
@media (min-width: 768px) {
    .agent-card__info {
        width: min(170px, 100%);
    }

    .agent-card__description {
        max-width: 165px;
    }
}

@media (max-width: 767px) {
    .agent-card__description {
        max-width: 170px;
    }
}

/* ==========================================================
   v6.6 — supplied mobile process icons + tighter mobile About
   ========================================================== */
@media (max-width: 767px) {
    /* ABOUT: tighter vertical composition, larger image, no small tagline. */
    .about {
        height: clamp(640px, 82svh, 760px) !important;
        min-height: clamp(640px, 82svh, 760px) !important;
        padding: 130px 20px 0 !important;
    }

    .about__copy {
        margin-top: 30px !important;
    }

    .about__brand {
        display: none !important;
    }

    .about__cta {
        top: 130px !important;
    }

    .about__visual {
        left: -20px !important;
        right: -20px !important;
        bottom: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    .about__visual img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        display: block;
    }

    /* PROCESS: use the supplied circular arrow/check artwork. */
    .process-mobile-step__summary {
        grid-template-columns: 34px minmax(0, 1fr) 30px !important;
    }

    .process-mobile-step__summary-state {
        width: 28px !important;
        height: 28px !important;
    }

    .process-mobile-step__summary-state::before {
        content: '' !important;
        position: absolute;
        inset: 0;
        display: block;
        background: url('../images/process-arrow.svg') center / contain no-repeat;
    }

    .process-mobile-step.is-complete .process-mobile-step__summary-state::before {
        content: '' !important;
        background-image: url('../images/process-check.svg');
    }
}

/* ==========================================================
   v6.7 — tighter mobile About + agent top alignment
   ========================================================== */
@media (max-width: 767px) {
    /* ABOUT: compress the section more and pull the image closer to copy. */
    .about {
        height: clamp(570px, 74svh, 660px) !important;
        min-height: clamp(570px, 74svh, 660px) !important;
        padding-top: 118px !important;
    }

    .about__title {
        margin: 0 !important;
    }

    .about__copy {
        margin-top: 22px !important;
    }

    .about__copy p + p {
        margin-top: 12px !important;
    }

    .about__cta {
        top: 118px !important;
    }

    .about__visual {
        left: -48px !important;
        right: -48px !important;
        bottom: -2px !important;
    }

    .about__visual img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }

    /* AGENTS: visually align the top of the name/copy block with the number. */
    .agent-card__info,
    .agent-card.is-active .agent-card__info {
        margin-top: -8px !important;
        align-self: start !important;
    }
}

/* ==========================================================
   v6.8 — footer spacing + simplified nav/map + founder control polish
   ========================================================== */

/* Give contacts and social networks more visual separation. */
@media (min-width: 1190px) {
    .site-footer__socials {
        margin-left: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1189px) {
    .site-footer__socials {
        margin-left: 24px;
    }
}

@media (max-width: 767px) {
    .site-footer__socials {
        margin-left: 18px;
    }
}

/* Founder trigger: align its lower edge with the lower edge of AGENTS. */
@media (min-width: 768px) {
    .agents__panel--list {
        --agents-title-line: 76px;
    }

    .agents__founder-toggle {
        top: calc(var(--agents-head-top) + var(--agents-title-line)) !important;
        transform: translateY(-100%);
        transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s, color .1s linear;
    }

    .agents.is-first-agent-active .agents__founder-toggle {
        opacity: 0 !important;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(-100% + 5px));
        transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s, color .1s linear;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .agents__panel--list {
        --agents-title-line: 60.8px;
    }
}

@media (max-width: 767px) {
    .agents__founder-toggle {
        top: 182px !important;
        transform: translateY(-100%);
        transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s;
    }

    .agents.is-first-agent-active .agents__founder-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(-100% + 4px));
        transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
    }
}

/* ==========================================================
   v7.0 — mobile About: v6.6 image scale, tighter copy-to-image gap
   ========================================================== */
@media (max-width: 767px) {
    .about {
        height: clamp(540px, 70svh, 620px) !important;
        min-height: clamp(540px, 70svh, 620px) !important;
        padding-top: 115px !important;
    }

    .about__copy {
        margin-top: 18px !important;
    }

    .about__copy p + p {
        margin-top: 10px !important;
    }

    .about__cta {
        top: 115px !important;
    }

    /* Restore the image scale from v6.6, but lift it closer to the text. */
    .about__visual {
        left: -20px !important;
        right: -20px !important;
        bottom: 18px !important;
        width: auto !important;
        max-width: none !important;
    }

    .about__visual img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        display: block;
    }
}

/* ==========================================================
   v7.1 — tighter mobile About + founder nav + agent spacing + accent partners
   ========================================================== */

/* Partners now use the Honnestat accent background. */
.partners {
    background: #A05924 !important;
}

/* Keep the founder anchor at the top of the agents section without affecting layout. */
.agents__founder-anchor {
    position: absolute;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Heading row gives us true visual bottom alignment between AGENTS and founder. */
.agents__heading {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.agents__heading .agents__title {
    margin: 0 !important;
}

.agents__heading .agents__founder-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 0 2px !important;
    transform: none !important;
}

.agents.is-first-agent-active .agents__heading .agents__founder-toggle {
    transform: translateY(4px) !important;
}

@media (max-width: 767px) {
    /* ABOUT: keep the v6.6 image scale, but bring it even closer to the copy. */
    .about {
        height: clamp(505px, 65svh, 575px) !important;
        min-height: clamp(505px, 65svh, 575px) !important;
        padding-top: 112px !important;
    }

    .about__copy {
        margin-top: 13px !important;
    }

    .about__copy p + p {
        margin-top: 8px !important;
    }

    .about__cta {
        top: 112px !important;
    }

    .about__visual {
        left: -20px !important;
        right: -20px !important;
        bottom: 34px !important;
        width: auto !important;
        max-width: none !important;
    }

    .about__visual img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }

    /* Mobile agents: 20px of breathing room between each text/card block. */
    .agents__grid {
        row-gap: 20px !important;
    }

    .agent-card.is-active:not(:first-child),
    .agent-card.is-active:not(:last-child) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Founder label sits on the exact bottom edge of AGENTS. */
    .agents__heading {
        align-items: flex-end;
    }

    .agents__heading .agents__founder-toggle {
        margin-bottom: 2px !important;
    }
}


/* ==========================================================
   v7.2 — mobile process: remove duplicated section heading
   ========================================================== */
@media (max-width: 767px) {
    .process-mobile__title {
        display: none !important;
    }

    .process-mobile__list {
        margin-top: 0 !important;
    }
}

/* ==========================================================
   v7.3 — founder trigger optical alignment with AGENTS title
   Match the visual bottom alignment used by “вернуться” + “ДАРЬЯ”.
   ========================================================== */
@media (min-width: 768px) {
    .agents__heading .agents__founder-toggle {
        align-self: flex-end !important;
        margin: 0 0 10px !important;
    }
}

@media (max-width: 767px) {
    .agents__heading .agents__founder-toggle {
        align-self: flex-end !important;
        margin: 0 0 11px !important;
    }
}


/* ==========================================================
   v7.6 — crisp header logo after hero flight
   Animate the CSS mask, then swap to a freshly rendered inline SVG.
   ========================================================== */
.site-logo__vector {
    display: block;
    width: 100%;
    line-height: 0;
    color: currentColor;
}
.site-logo__vector svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.site-logo__vector svg path,
.site-logo__vector svg rect {
    fill: currentColor;
}
.site-logo__vector--mobile { display: none; }

/* Static pages use the true vector immediately. */
body:not(.home) .site-logo__shape { display: none; }

/* On the homepage the mask is used only while the logo is enlarged/flying. */
.home .site-logo__vector { display: none; }
.home.hero-logo-finished .site-logo__shape { display: none; }
.home.hero-logo-finished .site-logo__vector--desktop { display: block; }

@media (max-width: 767px) {
    .site-logo__vector--desktop { display: none; }
    .site-logo__vector--mobile { display: block; }

    .home .site-logo__vector { display: none; }
    .home.hero-logo-finished .site-logo__vector--desktop { display: none; }
    .home.hero-logo-finished .site-logo__vector--mobile { display: block; }
}


/* ==========================================================
   v7.7 — smaller founder caption
   ========================================================== */
.founder__caption {
    font-size: 10px !important;
}

@media (max-width: 767px) {
    .founder__caption {
        font-size: 8px !important;
    }
}


/* ==========================================================
   v7.9 — restore founder WhatsApp caption + mobile vertical position
   ========================================================== */
@media (max-width: 767px) {
    .founder__caption {
        margin-top: 10px !important;
        font-size: 8px !important;
    }
}


/* ==========================================================
   v8.1 — founder mobile compaction + natural text wrapping
   ========================================================== */
.founder__description p {
    margin: 0;
}
.founder__description p + p {
    margin-top: 20px;
}

@media (max-width: 767px) {
    /* When the founder panel is open, make the whole slide shorter and denser. */
    .agents.is-founder-open,
    .agents.is-founder-open .agents__slides,
    .agents.is-founder-open .agents__panel {
        min-height: 92svh !important;
    }

    .agents.is-founder-open .agents__panel--founder {
        min-height: 92svh !important;
    }

    /* Give the copy enough real width so the browser can form natural Russian lines. */
    .founder__copy {
        width: min(245px, 63vw) !important;
    }

    .founder__description {
        max-width: none !important;
        width: 100% !important;
        margin-top: 24px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-wrap: pretty;
        overflow-wrap: normal;
        word-break: normal;
    }

    .founder__description p + p {
        margin-top: 18px !important;
    }

    /* Lift the cut-out portrait and let the shortened panel close underneath it. */
    .founder__visual {
        bottom: 30px !important;
        width: 74vw !important;
        max-width: 320px !important;
        height: 72% !important;
    }

    /* Keep the contact visually attached to the text after the panel becomes shorter. */
    .founder__contact {
        top: 50svh !important;
    }
}


/* ==========================================================
   v8.2 — founder mobile: tighter panel, grounded portrait, clean copy
   ========================================================== */
@media (max-width: 767px) {
    /* The white founder slide should end exactly where the portrait ends. */
    .agents.is-founder-open,
    .agents.is-founder-open .agents__slides,
    .agents.is-founder-open .agents__panel,
    .agents.is-founder-open .agents__panel--founder {
        min-height: 84svh !important;
        height: 84svh !important;
    }

    .agents__panel--founder {
        overflow: hidden !important;
    }

    /* Keep text readable and let the browser choose normal Russian line breaks. */
    .founder__copy {
        top: 113px !important;
        left: 20px !important;
        width: min(260px, 68vw) !important;
    }

    .founder__description {
        width: 100% !important;
        max-width: 260px !important;
        margin-top: 24px !important;
        font-size: 12px !important;
        line-height: 1.28 !important;
        white-space: normal !important;
        text-wrap: pretty !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .founder__description p {
        display: block !important;
        margin: 0 !important;
    }

    .founder__description p + p {
        margin-top: 20px !important;
    }

    /* Lower the CTA so it clearly belongs below the copy. */
    .founder__contact {
        top: 54svh !important;
        bottom: auto !important;
        left: 20px !important;
        right: auto !important;
    }

    /* Portrait stays grounded to the section bottom; extra height lifts the top. */
    .founder__visual {
        right: -34px !important;
        bottom: 0 !important;
        width: 74vw !important;
        max-width: 318px !important;
        height: 69% !important;
    }

    .founder__visual img {
        object-position: right bottom !important;
    }
}


/* ==========================================================
   v8.3 — founder mobile copy slightly narrower
   ========================================================== */
@media (max-width: 767px) {
    .founder__copy {
        width: min(240px, 64vw) !important;
    }

    .founder__description {
        max-width: 240px !important;
    }
}

/* ==========================================================
   v8.4 — founder mobile portrait slightly lower and further right
   ========================================================== */
@media (max-width: 767px) {
    .founder__visual {
        right: -46px !important;
        bottom: -10px !important;
    }

    .founder__visual img {
        object-position: right bottom !important;
    }
}

/* ==========================================================
   v8.8 — desktop agents: portraits + contact button only on real hover
   ========================================================== */
@media (min-width: 768px) {
    /* Old :hover / :focus-within rules must never reveal portraits on their own.
       JS is the single source of truth for the currently hovered agent. */
    .agents .agent-card__visual,
    .agents .agent-card:hover .agent-card__visual,
    .agents .agent-card:focus-within .agent-card__visual,
    .agents .agent-card.is-desktop-active .agent-card__visual {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
        pointer-events: none !important;
    }

    .agents.has-agent-hover .agent-card.is-desktop-active .agent-card__visual {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Contact CTA is also visible only for the agent under the pointer. */
    .agents .agent-card__button {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(5px) !important;
        pointer-events: none !important;
        transition: opacity .14s ease, transform .18s ease, visibility .14s ease !important;
    }

    .agents.has-agent-hover .agent-card.is-desktop-active .agent-card__button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================
   v8.9 — mobile header inherits the section colour as glass
   ========================================================== */
@media (max-width: 767px) {
    .site-header {
        --mobile-header-glass: rgba(0, 0, 0, .18);
        --mobile-header-edge: rgba(255, 255, 255, .14);
        isolation: isolate;
    }

    .site-header::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: var(--mobile-header-glass);
        -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.03);
        backdrop-filter: blur(22px) saturate(140%) brightness(1.03);
        border-bottom: 1px solid var(--mobile-header-edge);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 8px 24px rgba(0,0,0,.035);
        transition: background-color .28s ease, border-color .28s ease;
    }

    .site-header__inner {
        position: relative;
        z-index: 3;
    }

    /* While the menu is open, make the header part of the same brown glass sheet. */
    .mobile-menu-open .site-header {
        --mobile-header-glass: rgba(160, 89, 36, .64) !important;
        --mobile-header-edge: rgba(255, 255, 255, .16) !important;
    }
}


/* ==========================================================
   v9.0 — mobile glass header without click-blocking overlay
   ========================================================== */
@media (max-width: 767px) {
    /* Put the glass directly on the fixed header. On iOS/Safari a
       backdrop-filtered pseudo-element can create a bad hit-testing layer. */
    .site-header {
        background: var(--mobile-header-glass) !important;
        -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.03);
        backdrop-filter: blur(22px) saturate(140%) brightness(1.03);
        border-bottom: 1px solid var(--mobile-header-edge);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 8px 24px rgba(0,0,0,.035);
        transition: background-color .28s ease, border-color .28s ease;
    }

    .site-header::before {
        display: none !important;
        content: none !important;
    }

    .about__cta {
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==========================================================
   v9.1 — mobile About CTA: remove transformed logo hitbox interference
   ========================================================== */
@media (max-width: 767px) {
    /* The animated hero logo can keep a transformed hit-test box in Safari
       even after it visually lands in the header. On the home page it does
       not need to receive taps, so keep it fully transparent to pointer input. */
    body.home .site-logo {
        pointer-events: none !important;
    }

    .about {
        position: relative;
        isolation: isolate;
    }

    .about__cta {
        z-index: 200 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-user-select: none;
        user-select: none;
    }

    .about__cta img {
        pointer-events: none !important;
    }
}

/* ==========================================================
   v9.2 — agents: portrait + CTA only during live mouse hover
   ========================================================== */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    /* Always start hidden. Focus and stale JS state are deliberately ignored. */
    .agents .agent-card__visual,
    .agents .agent-card:hover .agent-card__visual,
    .agents .agent-card:focus-within .agent-card__visual,
    .agents .agent-card.is-desktop-active .agent-card__visual {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
        pointer-events: none !important;
    }

    .agents .agent-card__button,
    .agents .agent-card:hover .agent-card__button,
    .agents .agent-card:focus-within .agent-card__button,
    .agents .agent-card.is-desktop-active .agent-card__button {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(5px) !important;
        pointer-events: none !important;
    }

    /* A card is allowed to reveal UI only after an actual pointer event in
       this visit/focus cycle, and only while that exact card is hovered. */
    .agents.is-agent-pointer-live.has-agent-hover .agent-card.is-desktop-active:hover .agent-card__visual {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .agents.is-agent-pointer-live.has-agent-hover .agent-card.is-desktop-active:hover .agent-card__button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}


/* ==========================================================
   v9.4 — desktop agents: persistent founder CTA + live strip inversion
   ========================================================== */
@media (min-width: 768px) {
    /* On desktop the founder control must always remain available, including
       while the pointer is over agent 01. Mobile keeps the compact hide/show. */
    .agents.is-first-agent-active .agents__heading .agents__founder-toggle {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .agents.is-first-agent-active .agents__heading .agents__founder-toggle:hover,
    .agents.is-first-agent-active .agents__heading .agents__founder-toggle:focus-visible {
        opacity: .56 !important;
    }

    /* Colour itself is controlled by the live overlap class from JS.
       These resets prevent older data-agent rules from leaving stale black text. */
    .agents.has-agent-hover .agents__title:not(.is-over-agent-strip),
    .agents.has-agent-hover .agents__founder-toggle:not(.is-over-agent-strip),
    .agents.has-agent-hover .site-header__nav > a:not(.is-over-agent-strip),
    .agents.has-agent-hover .site-logo:not(.is-over-agent-strip) {
        color: #fff !important;
    }

    .agents.has-agent-hover .agents__title.is-over-agent-strip,
    .agents.has-agent-hover .agents__founder-toggle.is-over-agent-strip,
    .agents.has-agent-hover .site-header__nav > a.is-over-agent-strip,
    .agents.has-agent-hover .site-logo.is-over-agent-strip {
        color: #000 !important;
    }
}

/* ==========================================================
   v9.5 — partners title black + lower orbit passes over title
   ========================================================== */
.partners__title {
    color: #000 !important;
}

/* Do not trap the orbit in its own z-index layer: individual circles
   can now sit below (z1) or above (z3) the central title (z2). */
.partners__orbit {
    z-index: auto !important;
}


/* ==========================================================
   v9.6 — true-vector hero logo flight
   The homepage logo is now a real inline SVG at every stage.
   Its geometry (left/top/width) animates directly; there is no
   CSS mask, translate3d or scale enlargement, avoiding GPU
   rasterisation of the large hero artwork.
   ========================================================== */
.site-logo-slot {
    display: block;
    width: var(--header-logo-width);
    height: auto;
    justify-self: center;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    aspect-ratio: 1360 / 197;
}

.site-logo {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 4;
    transform: none !important;
    transform-origin: initial;
    will-change: auto !important;
}

.site-logo__shape {
    display: none !important;
}

.site-logo__vector {
    width: 100%;
    line-height: 0;
    color: currentColor;
}

.site-logo__vector svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    overflow: visible;
}

.site-logo__vector svg path,
.site-logo__vector svg rect {
    fill: currentColor;
}

.site-logo__vector--desktop {
    display: block !important;
}

.site-logo__vector--mobile {
    display: none !important;
}

body.home .site-logo {
    position: fixed;
    margin: 0;
    right: auto;
    bottom: auto;
}

/* Override the old homepage mask/vector switching rules. */
body.home .site-logo__vector--desktop,
body.home.hero-logo-finished .site-logo__vector--desktop {
    display: block !important;
}

body.home .site-logo__vector--mobile,
body.home.hero-logo-finished .site-logo__vector--mobile {
    display: none !important;
}

@media (max-width: 767px) {
    .site-logo-slot {
        aspect-ratio: 435 / 138;
    }

    .site-logo__vector--desktop,
    body.home .site-logo__vector--desktop,
    body.home.hero-logo-finished .site-logo__vector--desktop {
        display: none !important;
    }

    .site-logo__vector--mobile,
    body.home .site-logo__vector--mobile,
    body.home.hero-logo-finished .site-logo__vector--mobile {
        display: block !important;
    }
}

/* ==========================================================
   v9.8 — premium desktop agents interaction
   One state drives selector, copy, CTA and shared portrait stage.
   ========================================================== */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .agents__panel--list {
        isolation: isolate;
    }

    .agents__grid {
        position: relative;
        isolation: isolate;
    }

    /* One continuous selector; no disappearing between adjacent cards. */
    .agents__active-strip {
        opacity: 0 !important;
        transform: translate3d(calc(var(--active-agent-index, 0) * 100%), 0, 0) !important;
        transition:
            transform .52s cubic-bezier(.16, 1, .3, 1),
            opacity .18s ease !important;
        will-change: auto;
    }

    .agents.has-agent-hover .agents__active-strip {
        opacity: 1 !important;
    }

    /* Shared portrait canvas. Each person occupies the geometry of their column,
       but portraits crossfade on one stage rather than toggling independent cards. */
    .agents__portrait-stage {
        position: absolute;
        z-index: 10;
        inset: 0;
        pointer-events: none;
        overflow: visible;
    }

    .agents__portrait {
        position: absolute;
        left: calc(var(--agent-index) * 20%);
        bottom: 0;
        width: 20%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, 14px, 0) scale(.992);
        transform-origin: 50% 100%;
        transition:
            opacity .28s ease,
            transform .52s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .3s;
        pointer-events: none;
    }

    .agents__portrait img {
        position: absolute;
        right: -40px;
        bottom: 0;
        width: 62%;
        height: 96%;
        display: block;
        object-fit: contain;
        object-position: right bottom;
    }

    .agents__portrait.is-active {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0) scale(1);
        transition:
            opacity .30s ease,
            transform .52s cubic-bezier(.16, 1, .3, 1),
            visibility 0s;
    }

    /* Old per-card desktop portraits remain available for mobile only. */
    .agents .agent-card__visual,
    .agents .agent-card:hover .agent-card__visual,
    .agents .agent-card:focus-within .agent-card__visual,
    .agents .agent-card.is-desktop-active .agent-card__visual,
    .agents.is-agent-pointer-live.has-agent-hover .agent-card.is-desktop-active:hover .agent-card__visual {
        display: none !important;
    }

    .agents .agent-card {
        z-index: 12;
        color: #fff;
        background: transparent !important;
        transition: color .26s ease !important;
    }

    .agents.has-agent-hover .agent-card.is-desktop-active {
        color: #000 !important;
    }

    /* CTA follows the single active state, never raw :hover/focus-within. */
    .agents .agent-card__button,
    .agents .agent-card:hover .agent-card__button,
    .agents .agent-card:focus-within .agent-card__button,
    .agents .agent-card.is-desktop-active .agent-card__button {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate3d(0, 7px, 0) !important;
        pointer-events: none !important;
        transition:
            opacity .22s ease,
            transform .38s cubic-bezier(.16, 1, .3, 1),
            visibility 0s linear .24s !important;
    }

    .agents.has-agent-hover .agent-card.is-desktop-active .agent-card__button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate3d(0, 0, 0) !important;
        pointer-events: auto !important;
        transition:
            opacity .24s ease .05s,
            transform .42s cubic-bezier(.16, 1, .3, 1) .03s,
            visibility 0s !important;
    }

    .agents .agent-card__button:hover {
        opacity: .62 !important;
        transform: translate3d(0, -1px, 0) !important;
    }

    .agents__title,
    .agents__founder-toggle,
    .site-header__nav > a,
    .site-logo {
        transition: color .22s ease, opacity .2s ease;
    }

    .agents:not(.has-agent-hover) .agents__title,
    .agents:not(.has-agent-hover) .agents__founder-toggle,
    .agents:not(.has-agent-hover) .agent-card {
        color: #fff !important;
    }

    .agents.has-agent-hover .agents__title.is-over-agent-strip,
    .agents.has-agent-hover .agents__founder-toggle.is-over-agent-strip,
    .agents.has-agent-hover .site-header__nav > a.is-over-agent-strip,
    .agents.has-agent-hover .site-logo.is-over-agent-strip {
        color: #000 !important;
    }

    .agents.has-agent-hover .agents__title:not(.is-over-agent-strip),
    .agents.has-agent-hover .agents__founder-toggle:not(.is-over-agent-strip),
    .agents.has-agent-hover .site-header__nav > a:not(.is-over-agent-strip),
    .agents.has-agent-hover .site-logo:not(.is-over-agent-strip) {
        color: #fff !important;
    }
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .agents__portrait-stage {
        display: none !important;
    }
}

/* ==========================================================
   v9.9 — active agent portrait always on top
   Portraits visually sit above cards/copy/selector while remaining
   pointer-transparent so CTA links underneath stay clickable.
   ========================================================== */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .agents__portrait-stage {
        z-index: 50 !important;
        pointer-events: none !important;
    }

    .agents__portrait,
    .agents__portrait.is-active,
    .agents__portrait img {
        z-index: 51 !important;
        pointer-events: none !important;
    }
}

/* v10.2 — About: visually align copy with title; only a subtle optical offset. */
@media (min-width: 768px) {
    .about__copy {
        margin-top: 6px;
    }
}


/* ==========================================================
   v10.10 — desktop readability gate for About + Agents
   The normal transparent header stays untouched until real text
   reaches its fixed area. Then the header folds away and leaves
   a small reveal tab. Clicking the tab opens a solid header whose
   fill matches the current section.
   ========================================================== */
@media (min-width: 768px) {
    .site-header {
        --header-gate-bg: #fff;
        --header-gate-tab-bg: #A05924;
        --header-gate-tab-fg: #fff;
        isolation: isolate;
    }

    .site-header::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: var(--header-gate-bg);
        transform: translateY(-102%);
        opacity: 0;
        transition:
            transform .42s cubic-bezier(.16, 1, .3, 1),
            opacity .22s ease;
    }

    .site-header__inner {
        transition:
            transform .42s cubic-bezier(.16, 1, .3, 1),
            opacity .22s ease;
    }

    .site-header__reveal-toggle {
        position: absolute;
        z-index: 12;
        top: 0;
        left: 50%;
        width: 74px;
        height: 38px;
        padding: 0;
        margin: 0;
        border: 0;
        appearance: none;
        background: transparent;
        color: var(--header-gate-tab-fg);
        transform: translateX(-50%) translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        transition:
            opacity .2s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            visibility .2s step-end;
    }

    .site-header__reveal-toggle svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .site-header__reveal-shape {
        fill: var(--header-gate-tab-bg);
        transition: fill .25s ease;
    }

    .site-header__reveal-arrow {
        fill: none;
        stroke: currentColor;
        stroke-width: 2.25;
        stroke-linecap: round;
        stroke-linejoin: round;
        transform-box: fill-box;
        transform-origin: center;
        transition: transform .34s cubic-bezier(.16, 1, .3, 1), stroke .25s ease;
    }

    .site-header.has-readability-gate .site-header__reveal-toggle {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition:
            opacity .2s ease,
            transform .36s cubic-bezier(.16, 1, .3, 1),
            visibility 0s step-start;
    }

    /* Fold the normal header away while the text would otherwise run behind it. */
    .site-header.has-readability-gate:not(.is-readability-open) .site-header__inner {
        transform: translateY(-106%);
        opacity: 0;
        pointer-events: none;
    }

    /* On click, reveal the solid sheet and bring all header controls back. */
    .site-header.has-readability-gate.is-readability-open::after {
        transform: translateY(0);
        opacity: 1;
    }

    .site-header.has-readability-gate.is-readability-open .site-header__inner {
        transform: translateY(0);
        opacity: 1;
    }

    .site-header.has-readability-gate.is-readability-open .site-header__reveal-arrow {
        transform: rotate(180deg);
    }

    /* About: white surface, so the little tab is brown. */
    .site-header.header-gate-about {
        --header-gate-bg: #fff;
        --header-gate-tab-bg: #A05924;
        --header-gate-tab-fg: #fff;
    }

    /* Agents list: brown surface, matching the supplied reference. */
    .site-header.header-gate-agents {
        --header-gate-bg: #A05924;
        --header-gate-tab-bg: #fff;
        --header-gate-tab-fg: #A05924;
    }

    /* Founder panel is light, even though it lives inside Agents. */
    .site-header.header-gate-agents.header-gate-light-surface {
        --header-gate-bg: #fff;
        --header-gate-tab-bg: #A05924;
        --header-gate-tab-fg: #fff;
    }
}

@media (max-width: 767px) {
    .site-header__reveal-toggle { display: none !important; }
}

/* Mobile flight: fixed high-resolution SVG surface; no per-frame layout.
   Individual translate/scale leave the existing transform reset intact.
   On landing JS restores native SVG geometry and releases this layer. */
@media (max-width: 767px) {
    body.home .site-logo.is-mobile-logo-flight {
        transform-origin: 0 0 !important;
        will-change: translate, scale !important;
    }
}

/* v10.13: one backdrop surface for the open mobile menu.
   The parent header must not establish a backdrop root: the child
   menu needs to sample the page, not the transparent header surface. */
@media (max-width: 767px) {
    body.mobile-menu-open .site-header {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border-bottom-color: transparent;
        box-shadow: none;
        isolation: auto;
    }

    body.mobile-menu-open .mobile-menu {
        -webkit-backdrop-filter: blur(30px) saturate(145%) brightness(1.03);
        backdrop-filter: blur(30px) saturate(145%) brightness(1.03);
    }
}


/* v10.14 — HonneStat privacy + cookie UI. Dedicated selectors prevent regressions. */
.site-footer__legal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    width: 100%;
    margin-top: clamp(84px, 9vw, 142px);
}
.site-footer__legal a,
.site-footer__legal button {
    appearance: none;
    -webkit-appearance: none;
    padding: 6px 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: #777;
    font: 400 12px/1.5 "Montserrat Local", "Montserrat", Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color .2s ease;
}
.site-footer__legal a:hover,
.site-footer__legal button:hover { color: #a05924; }
.site-footer__legal a:focus-visible,
.site-footer__legal button:focus-visible,
.hn-cookie :is(a,button):focus-visible,
.hn-policy-dialog button:focus-visible,
.hn-policy-dialog a:focus-visible {
    outline: 2px solid #a05924;
    outline-offset: 4px;
}

.hn-cookie, .hn-cookie * , .hn-policy-dialog, .hn-policy-dialog * { box-sizing: border-box; }
.hn-cookie {
    position: fixed;
    z-index: 99990;
    left: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: min(438px, calc(100vw - 40px));
    padding: 25px 27px 24px;
    border: 1px solid #d7d2ca;
    border-radius: 18px;
    background: #f7f5f0;
    color: #292724;
    box-shadow: 0 18px 64px rgba(0,0,0,.18);
    font: 400 13px/1.62 "Montserrat Local", "Montserrat", Arial, sans-serif;
}
.hn-cookie[hidden] { display: none !important; }
.hn-cookie h2 {
    margin: 0 0 9px;
    max-width: none;
    color: #2e2a27;
    font: 400 32px/1 "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    letter-spacing: 0;
}
.hn-cookie p { margin: 0 0 19px; }
.hn-cookie__actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.hn-cookie__actions > a {
    color: #5c534c;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 12px;
}
.hn-cookie__dismiss {
    flex-shrink: 0;
    min-height: 42px;
    padding: 9px 24px;
    border: 1px solid #49433e;
    border-radius: 40px;
    color: #34302c;
    background: transparent;
    cursor: pointer;
    font: 500 12px/1.2 "Montserrat Local", "Montserrat", Arial, sans-serif;
    transition: background .2s ease, color .2s ease;
}
.hn-cookie__dismiss:hover { background: #34302c; color: #fff; }

/* Dialog container is clipped; its own scrollbar is never the outer browser scrollbar. */
.hn-policy-dialog {
    position: fixed;
    inset: 0;
    width: min(860px, calc(100% - 36px));
    height: min(780px, 86vh);
    max-width: none;
    max-height: 86vh;
    padding: 0;
    margin: auto;
    overflow: hidden;
    border: 1px solid #bfb8ac;
    border-radius: 18px;
    background: #f7f5f0;
    color: #292724;
    box-shadow: 0 28px 90px rgba(0,0,0,.3);
    font: 400 14px/1.75 "Montserrat Local", "Montserrat", Arial, sans-serif;
}
@supports (height: 86dvh) {
    .hn-policy-dialog { height: min(780px, 86dvh); max-height: 86dvh; }
}
.hn-policy-dialog[open] { display: flex; flex-direction: column; }
.hn-policy-dialog:not([open]) { display: none; }
.hn-policy-dialog::backdrop { background: rgba(17,15,13,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hn-policy-dialog__head {
    flex: 0 0 auto;
    min-height: 91px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 32px;
    border-bottom: 1px solid #d9d2ca;
}
.hn-policy-dialog__head h2 {
    min-width: 0;
    max-width: none;
    margin: 0;
    color: #38332e;
    font: 400 clamp(25px, 3.4vw, 39px)/1.04 "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.hn-policy-dialog .hn-policy-dialog__close {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid #635c55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #37322c;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.hn-policy-dialog__close svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.hn-policy-dialog .hn-policy-dialog__close:hover { background: #34302c; color: #fff; }
.hn-policy-dialog__scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 32px 32px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #a59b90 transparent;
}
.hn-policy-dialog__scroll::-webkit-scrollbar { width: 7px; }
.hn-policy-dialog__scroll::-webkit-scrollbar-track { background: transparent; }
.hn-policy-dialog__scroll::-webkit-scrollbar-thumb { border-radius: 12px; background: #a59b90; border: 1px solid #f7f5f0; }

.hn-privacy-copy { overflow-wrap: break-word; }
.hn-privacy-copy p { margin: 0 0 14px; line-height: 1.76; }
.hn-privacy-copy h3 {
    margin: 30px 0 12px;
    color: #302c29;
    font: 500 17px/1.35 "Montserrat Local", "Montserrat", Arial, sans-serif;
    letter-spacing: -.015em;
}
.hn-privacy-copy a { color: #8c4c22; text-decoration: underline; text-underline-offset: 3px; }
.hn-privacy-nowrap { white-space: nowrap; }

/* Readable, sharable, JS-free fallback for the privacy policy. */
.hn-privacy-page {
    min-height: 75vh;
    background: #f7f5f0;
    padding: 180px 40px 120px;
    color: #292724;
}
.hn-privacy-page__inner { width: min(100%, 820px); margin: 0 auto; }
.hn-privacy-page__eyebrow {
    margin: 0 0 21px;
    color: #a05924;
    font: 500 12px/1.3 "Montserrat Local", "Montserrat", Arial, sans-serif;
    letter-spacing: .07em;
}
.hn-privacy-page h1 {
    margin: 0 0 37px;
    max-width: 100%;
    font: 400 clamp(38px, 6vw, 80px)/.98 "Bebas Neue Cyrillic", "Bebas Neue", "Arial Narrow", sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.hn-privacy-page .hn-privacy-copy { font: 400 15px/1.75 "Montserrat Local", "Montserrat", Arial, sans-serif; }
.honnestat-policy-view .site-header { color: #34302c; }

@media (max-width: 767px) {
    .site-footer__legal { margin-top: 58px; gap: 6px 17px; }
    .site-footer__legal a, .site-footer__legal button { font-size: 11px; }
    .hn-cookie {
        left: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
        padding: 21px 21px 19px;
        border-radius: 15px;
    }
    .hn-policy-dialog { width: calc(100% - 24px); height: 88vh; max-height: 88vh; border-radius: 15px; }
    @supports (height: 88dvh) { .hn-policy-dialog { height: 88dvh; max-height: 88dvh; } }
    .hn-policy-dialog__head { min-height: 75px; padding: 15px 19px; gap: 9px; }
    .hn-policy-dialog__head h2 { font-size: clamp(18px, 5.4vw, 24px); overflow-wrap: normal; word-break: normal; }
    .hn-policy-dialog .hn-policy-dialog__close { flex-basis: 38px; width: 38px; height: 38px; }
    .hn-policy-dialog__close svg { width: 17px; height: 17px; flex-basis: 17px; }
    .hn-policy-dialog__scroll { padding: 9px 19px 25px; }
    .hn-privacy-copy { font-size: 13px; }
    .hn-privacy-copy h3 { font-size: 15px; margin-top: 25px; }
    .hn-privacy-page { padding: 112px 21px 90px; }
    .hn-privacy-page .hn-privacy-copy { font-size: 13px; }
}
@media (max-width: 355px) {
    .hn-policy-dialog__head h2 { font-size: 18px; }
    .hn-policy-dialog__head { padding-inline: 14px; }
    .hn-policy-dialog__scroll { padding-inline: 14px; }
    .hn-privacy-copy .hn-privacy-nowrap { font-size: .92em; }
    .site-footer__legal { justify-content: flex-end; }
}

/* Founder phone reveal — desktop only. */
.founder__phone { display: none; }
@media (min-width: 768px) {
    .founder__call.is-phone-revealed img { display: none; }
    .founder__call.is-phone-revealed .founder__phone {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        box-sizing: border-box; width: 100%; aspect-ratio: 187 / 45;
        border: 1.5px solid currentColor; border-radius: 999px;
        color: #000; font-family: "Montserrat Local", "Montserrat", Arial, sans-serif;
        font-size: 16px; font-weight: 400; line-height: 1; white-space: nowrap;
    }
    .founder__call.is-phone-revealed { opacity: 1; transform: none; }
}
