/* Authenticated role header and shared customer/executor home
 *
 * Breakpoint policy (Q.4, INPA-490 WF-11, contract INPA-457):
 *   mobile  : max-width: 768px  (single breakpoint)
 *   desktop : min-width: 769px (default + 1440 large-desktop fine-tune)
 * Header bg = --vp-color-bg-page (#f2f2f2, matches UI KIT color/bg).
 * Menu nav-points are per-variant (customer=4, executor=7) per INPA-462.
 * PROVIDER (Исполнитель) legacy path is DEPRECATED — use existing variants
 * only, do NOT introduce a new provider-specific variant.
 */
.app-header {
    position: relative;
    z-index: 20;
    background: var(--vp-color-bg-page, #f2f2f2);
    border-bottom: 1px solid var(--vp-color-border-muted, #D9D9D9); /* owner 2026-08-14: restore divider */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.app-header__container {
    width: min(1660px, calc(100% - 48px));
    min-height: 64px; /* owner 2026-08-03: app header height matches site header (64px) */
    margin: 0 auto;
    display: grid; /* owner 2026-08-03: меню строго по центру — равные боковые колонки */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.app-header__logo-link,
.app-header__actions {
    justify-self: start;
}

.app-header__actions {
    justify-self: end;
}

.app-header__logo {
    height: 40px; /* owner 2026-08-03: logo matches site header (40px high) */
    width: auto;
    max-width: calc(100vw - 96px);
}

/* Mobile (INPA-545): scale Logo to fit 320/375px viewport.
   Public-header `.logo-link img` already uses height-based scaling;
   mirror that for the app-header so the SVG never overflows past
   the burger/developer-icon row at the 768px breakpoint. */
@media (max-width: 768px) {
    .app-header__logo {
        width: auto;
        height: 40px;
        max-width: calc(100vw - 96px);
    }
}

.app-header__nav {
    justify-self: center;
    min-width: 0;
}

.app-header__nav-list,
.app-header__actions,
.app-header__developer,
.app-header__notification,
.app-header__logout {
    display: flex;
    align-items: center;
}

.app-header__nav-list {
    justify-content: center;
    gap: var(--vp-space-2xs, 4px);
}

.app-header__nav-link {
    width: auto; /* owner 2026-08-03: по контенту, без переноса подписи */
    padding: 0 8px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--vp-space-2xs, 4px);
    color: var(--vp-color-text-muted, #848484);
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    transition: color .2s ease, background-color .2s ease;
}

.app-header__nav-link:hover,
.app-header__nav-link:focus-visible,
.app-header__notification:hover,
.app-header__notification:focus-visible,
.app-header__logout:hover,
.app-header__logout:focus-visible {
    color: var(--vp-color-primary, #003677);
    background: rgba(0, 54, 119, 0.08);
}

/* POST logout (CSRF): форма с кнопкой вместо <a href="/logout"> — визуально идентична ссылке */
.app-header__logout-form {
    display: inline-flex;
    margin: 0;
}

.app-header__logout-form > button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.app-header__logout-form--drawer,
.app-header__logout-form--drawer > button {
    display: block;
    width: 100%;
    text-align: left;
}

.app-header__nav-icon {
    width: 20px; /* owner 2026-08-03: icons scaled to site-header proportions */
    height: 20px;
}

.app-header__nav-icon svg,
.app-header__actions svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7; /* owner 2026-08-03: тонкая обводка */
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Figma Menu (7855:10761): actions = два слота 40×40 с иконкой 24 внутри */
.app-header__notification,
.app-header__logout {
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 8px;
}

.app-header__notification svg,
.app-header__logout svg {
    width: 20px;
    height: 20px;
}

.app-header__actions {
    gap: 10px;
}

/* Visual notification badge: live red count over the bell and the
   mobile drawer События links. JS toggles the hidden attribute; scoped to
   the app header so ordinary header controls are untouched. */
.app-header__notification {
    position: relative;
}

.app-header__notification-badge,
.app-header__drawer-badge {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #cd2d3a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.app-header__notification-badge {
    top: -4px;
    right: -6px;
}

.app-header__notification-badge[hidden],
.app-header__drawer-badge[hidden] {
    display: none;
}

.app-header__developer {
    gap: var(--vp-space-xs, 8px);
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.app-header__developer:hover,
.app-header__developer:focus-visible {
    color: #111827;
}

.app-header__developer .shared-question-tooltip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: none;
}

.app-header__developer .shared-question-tooltip-icon path {
    stroke: none;
}

.app-header__developer .tooltip-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.app-header__developer .tooltip-icon-wrapper .tooltip-box {
    position: absolute;
    z-index: 100;
    width: 288px;
    padding: var(--vp-space-xs, 8px);
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-text, #000);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: var(--vp-space-2xs, 4px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.app-header__developer .tooltip-icon-wrapper .tooltip-box::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--vp-color-text, #000);
    transform: rotate(45deg);
    top: -var(--vp-space-2xs, 4px);
    left: 50%;
    margin-left: -var(--vp-space-2xs, 4px);
}

.app-header__developer .tooltip-icon-wrapper:hover .tooltip-box {
    opacity: 1;
}

.app-header__notification,
.app-header__logout {
    justify-content: center;
    color: var(--vp-color-text, #1a1a1a);
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease;
}

/*
   Q.4 mobile drawer — INPA-518 (WF-11.C legacy Thymeleaf header_* consolidation)
   Single breakpoint 768/769 — inline nav at >=769, mobile drawer at <=768.
   Source-of-truth: Figma 7871:7317 (App Header) + 7998:64843 (Mobile Menu contract).
   Toggle JS is wired by toggle.js (same pattern as .burger/.mobile-menu for
   site-header) — interaction deferred to follow-up; CSS shape mirrors the
   existing .burger/.mobile-menu pair for parity.
*/
.app-header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: var(--vp-space-xs, 8px);
    border-radius: var(--vp-radius-md, 8px);
    flex-direction: column;
    gap: var(--vp-space-2xs, 4px);
    transition: background-color .2s ease;
}

.app-header__burger:hover,
.app-header__burger:focus-visible {
    background: rgba(0, 54, 119, 0.08);
}

.app-header__burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--vp-color-text, #1a1a1a);
    border-radius: var(--vp-radius-full, 999px);
    transition: transform .3s ease, opacity .3s ease;
}

/* Open-state morph to an X (parity with the public .burger in header.css).
   Lines are flex-column + 4px gap (not absolutely positioned), so converge
   by translateY(±6px) — line centers sit 6px above/below the middle line. */
.app-header__burger.is-open .app-header__burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.app-header__burger.is-open .app-header__burger-line:nth-child(2) {
    opacity: 0;
}

.app-header__burger.is-open .app-header__burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.app-header__drawer {
    display: none;
    flex-direction: column;
    background: var(--vp-color-bg-surface, #fff);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: calc(100dvh - 83px);
    overflow-y: auto;
}

.app-header__drawer[hidden] {
    display: none !important;
}

.app-header__drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.app-header__drawer-body {
    padding: var(--vp-space-md, 16px) var(--vp-space-md, 16px);
    display: flex;
    flex-direction: column;
    gap: var(--vp-space-2xs, 4px);
}

.app-header__drawer-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: var(--vp-color-text-primary, #1a1a1a);
    padding: var(--vp-space-xs, 8px) var(--vp-space-sm, 12px);
    border-radius: var(--vp-radius-md, 8px);
    transition: background-color .2s ease, color .2s ease;
}

.app-header__drawer-badge {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.app-header__drawer-link:hover,
.app-header__drawer-link:focus-visible {
    color: var(--vp-color-primary, #003677);
    background: rgba(0, 54, 119, 0.08);
}

.app-header__drawer-link--logout {
    color: var(--vp-color-text-secondary, #6b6b6b);
    margin-top: var(--vp-space-xs, 8px);
    border-top: 1px solid var(--vp-color-border, #e0e0e0);
    padding-top: var(--vp-space-md, 16px);
}

@media (max-width: 768px) {
    .app-header__nav,
    .app-header__actions .app-header__developer-text,
    .app-header__actions .app-header__notification,
    .app-header__actions .app-header__logout {
        display: none;
    }

    .app-header__burger {
        display: flex;
    }

    /* owner 2026-08-13: бургер вправо — order:3 на nav сдвигал actions
       в центральную auto-колонку грида; nav на мобильном скрыт, поэтому
       возвращаем actions в правую 1fr-колонку (justify-self: end). */
    .app-header__actions {
        grid-column: 3;
        justify-self: end;
    }

    .app-header__drawer:not([hidden]) {
        display: flex;
    }

    .app-header__container {
        gap: var(--vp-space-sm, 12px);
        min-height: 64px;
    }
}

.modal-developer {
    background: rgba(121, 121, 121, 0.31);
    transform: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal-developer.is-active {
    background: rgba(121, 121, 121, 0.31);
    transform: none;
}

.modal-developer__wrapper {
    justify-content: center;
    align-items: center;
    padding: var(--vp-space-lg, 24px);
}

.modal-developer__overlay {
    background: transparent;
}

.modal-developer__content {
    width: min(384px, calc(100vw - 32px));
    max-width: 384px;
    padding: 0;
    background: transparent;
}

.modal-developer__container {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--vp-color-text-inverse, #fff);
    padding: var(--vp-space-lg, 24px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.modal-developer__close-btn {
    top: var(--vp-space-sm, 12px);
    right: var(--vp-space-sm, 12px);
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 6px;
    transform: none;
    transition: background-color .2s ease;
}

.modal-developer__close-btn svg path {
    fill: #6b7280;
}

.modal-developer__close-btn:hover:not(.focus-visible),
.modal-developer__close-btn.focus-visible:focus {
    background: #f3f4f6;
    transform: none;
}

.modal-developer__title {
    margin: 0 40px var(--vp-space-md, 16px) 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.modal-developer__form {
    max-width: none;
    margin: 0;
}

.role-home {
    overflow: hidden;
    background: var(--vp-color-bg-page, #f2f2f2);
    color: var(--vp-color-text, #1a1a1a);
    /* UI KIT typography ramp: body / h1-h5 / tag / btn / content-link
       inherit Inter via the .role-home scope (WF-7 / INPA-476). The
       category-strip nav below gets an explicit Helvetica reset to honor
       the UI KIT "Helvetica для nav" scope. */
    font-family: var(--vp-font-family-sans);
}

.role-home__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;
}

.role-home__hero {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    padding-top: 0; /* owner 2026-08-03: баннер вплотную к хедеру */
}

.role-home__hero-media {
    position: relative;
    width: 100%; /* owner 2026-08-03: full-bleed по ширине */
    height: clamp(120px, 18.23vw, 350px); /* owner 2026-08-03: формат 1920×350 */
    margin: 0;
    overflow: hidden;
    border-radius: 18px; /* owner 2026-08-03: скругление углов (в Figma радиуса нет — взят прежний сайтовый) */
}

.role-home__hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.role-home__hero-slide.is-active {
    opacity: 1;
}

/* Figma «нумерация баннеров»: 4 точки 12×12, gap 24 (owner: круглые, чуть ниже) */
.role-home__hero-dots {
    position: absolute;
    left: 50%;
    bottom: 9px; /* внутри 30px баннера */
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    z-index: 2;
}

.role-home__hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.role-home__hero-dots button.is-active {
    background: #fff;
}

.role-home__cover-placeholder {
    height: clamp(250px, 18vw, 354px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--vp-color-text-secondary, #6b6b6b);
    background: var(--vp-color-text-inverse, #fff);
    border-color: var(--vp-color-text-inverse, #fff);
    box-shadow: none;
    text-align: center;
}

.role-home__cover-placeholder span:last-child {
    width: min(220px, 100%);
    font-size: 18px;
    line-height: 1.15;
}

.role-home__hero-media img,
.role-home__project-card img,
.role-home__article-card img,
.role-home__event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-home__quick-card {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 48px));
    margin: -54px auto 0;
    padding: var(--vp-space-lg, 24px) var(--vp-space-xl, 32px);
    border-radius: 12px;
    background: rgba(242, 242, 242, 0.94);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
    text-align: center;
}

.role-home__quick-card h1 {
    margin: 0 0 10px;
    font-family: var(--vp-font-family-sans);
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
}

.role-home__quick-card p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.35;
}

.role-home__empty-profile {
    width: min(1660px, calc(100% - 48px));
    margin: -var(--vp-space-3xl, 64px) auto 84px;
    display: grid;
    grid-template-columns: minmax(300px, 407px) minmax(0, 1fr);
    gap: var(--vp-space-xl, 32px);
    align-items: start;
}

.role-home__empty-sidebar {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.role-home__avatar-placeholder {
    width: 100%;
    min-height: 469px;
    padding: var(--vp-space-xl, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--vp-color-text-secondary, #6b6b6b);
    background: var(--vp-color-text-inverse, #fff);
    border: 6px solid var(--vp-color-bg-page, #f2f2f2);
    border-radius: 20px;
    text-align: center;
}

.role-home__avatar-placeholder span:last-child {
    width: 180px;
    font-size: 18px;
    line-height: 1.15;
}

.role-home__upload-icon {
    display: inline-flex;
    color: #777;
}

.role-home__empty-bio {
    margin-top: var(--vp-space-lg, 24px);
}

.role-home__empty-bio h2 {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.role-home__empty-specialty {
    margin-bottom: 18px;
    color: var(--vp-color-primary, #003677);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.role-home__empty-location {
    width: 24px;
    height: 24px;
    margin-bottom: 18px;
    color: var(--vp-color-brand-red, #cd2d3a);
}

.role-home__empty-location::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: var(--vp-space-2xs, 4px) auto 0;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.role-home__empty-location::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: -var(--vp-space-2xs, 4px) auto 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.role-home__empty-rating {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: var(--vp-space-xs, 8px);
    font-size: 16px;
    line-height: 1.2;
}

.role-home__empty-rating span:first-child {
    font-weight: 700;
}

.role-home__stars {
    color: #8a8a8a;
    font-size: 15px;
    letter-spacing: 1px;
}

.role-home__empty-date {
    margin-bottom: 22px;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.role-home__profile-action {
    min-height: 60px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    border-radius: 33px;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.role-home__profile-action:hover,
.role-home__profile-action:focus-visible {
    background: #002b5f;
    box-shadow: 0 8px 20px rgba(0, 54, 119, 0.24);
}

.role-home__empty-tags {
    margin-top: var(--vp-space-lg, 24px);
    display: grid;
    gap: 18px;
}

.role-home__empty-tags li,
.role-home__empty-fields span {
    min-height: 41px;
    padding: 14px var(--vp-space-md, 16px);
    display: flex;
    align-items: center;
    color: var(--vp-color-brand-red, #cd2d3a);
    border: 1px solid var(--vp-color-primary, #003677);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.role-home__empty-main {
    min-width: 0;
    padding-top: 212px;
}

.role-home__empty-fields {
    width: min(830px, 100%);
    margin-bottom: 86px;
    display: grid;
    gap: 18px;
}

.role-home__executor-status-note {
    width: min(270px, 100%);
    margin: 0 100px 46px auto;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.role-home__empty-tabs {
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}

.role-home__empty-tabs a {
    position: relative;
    color: inherit;
}

.role-home__empty-tabs a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -15px;
    width: 1px;
    height: 13px;
    background: currentColor;
}

.role-home__empty-tabs .is-active {
    color: var(--vp-color-primary, #003677);
    font-weight: 700;
}

.role-home__empty-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 60px;
}

.role-home__empty-project-card {
    min-height: 400px;
    padding: var(--vp-space-xl, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--vp-color-primary, #003677);
    border: 2px dashed rgba(0, 54, 119, .45);
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: underline;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
}

.role-home__empty-project-card:hover,
.role-home__empty-project-card:focus-visible {
    border-color: var(--vp-color-primary, #003677);
    background: rgba(0, 54, 119, 0.04);
}

.role-home__empty-project-card--center {
    grid-column: 1 / -1;
    width: min(320px, 100%);
    min-height: 180px;
    justify-self: center;
    border-color: transparent;
}

.role-home__empty-plus {
    width: 85px;
    height: 85px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-color-text-inverse, #fff);
    background: #8a8a8a;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

.role-home__primary-action,
.role-home__ghost-action,
.role-home__project-action {
    min-height: 42px;
    padding: 0 var(--vp-space-lg, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 33px;
    color: var(--vp-color-text-inverse, #fff);
    background: linear-gradient(186deg, #255ece 10%, #193f8a 65%, #133068 116%);
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}

.role-home__primary-action:hover,
.role-home__primary-action:focus-visible,
.role-home__ghost-action:hover,
.role-home__ghost-action:focus-visible,
.role-home__project-card-link:hover .role-home__project-action,
.role-home__project-card-link:focus-visible .role-home__project-action {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 54, 119, 0.24);
}

.role-home__primary-action--center {
    margin: 28px auto 0;
}

.role-home__primary-action--right {
    margin: 26px 24px 0 auto;
    display: flex;
    width: fit-content;
}

.role-home__category-strip {
    height: 110px; /* owner 2026-08-03 */
    margin-top: 10px; /* owner 2026-08-03: отступ от баннера */
    padding: 0 6vw;
    display: flex; /* owner 2026-08-03: одинаковые промежутки между пунктами */
    justify-content: space-evenly;
    gap: 20px; /* минимальный промежуток */
    flex-wrap: wrap;
    align-items: center;
    background: var(--vp-color-text, #1a1a1a);
    color: var(--vp-color-text-inverse, #fff);
    /* UI KIT nav scope: category-strip is the role-home top-level nav.
       Reset to brand Helvetica stack per INPA-476 AC-2 ("legacy fallback
       preserved only where explicitly scoped"). */
    font-family: var(--vp-font-family-brand, "Helvetica Neue", Helvetica, Arial, sans-serif);
}

.role-home__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 1.72vw, 33px); /* owner 2026-08-03: 33px */
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.role-home__category small {
    margin-left: 10px; /* owner 2026-08-03: «Скоро» в один ряд с пунктом */
    color: #ff5757;
    font-size: 20px; /* owner 2026-08-03 */
    line-height: 1;
    text-transform: none;
}

/* owner 2026-08-03: «скоро»-пункты в один ряд, тёмные и слегка заблюренные */
.role-home__category--muted {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
}

.role-home__category--muted .role-home__category-label {
    color: rgba(255, 255, 255, 0.45);
    filter: blur(2px);
}

.role-home__section {
    width: min(1660px, calc(100% - 48px));
    margin: var(--vp-space-3xl, 64px) auto 72px;
}

.role-home__section-head {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vp-space-lg, 24px);
}

.role-home__section h2,
.role-home__accent-section h2,
.role-home__events h2 {
    font-family: var(--vp-font-family-sans);
    font-size: clamp(26px, 2.6vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
}

.role-home__section h2 {
    flex: 1 1 auto;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 400;
}

.role-home__ghost-action {
    flex-shrink: 0;
}

/* owner 2026-08-05: «Лучшие проекты» compacted proportionally by 20% */
.role-home__section--projects {
    margin-top: 26px;
    margin-bottom: 13px;
}

.role-home__section--projects .role-home__section-head {
    margin-bottom: 27px;
    justify-content: center;
}

.role-home__section--projects h2 {
    font-size: 26px;
    font-weight: 400;
    color: #191919;
    text-align: center;
}

.role-home__ghost-action--right {
    margin: 20px 0 0 auto;
    display: flex;
    width: fit-content;
}

/* owner 2026-08-05: 20% compact empty frame, 392×386 */
.role-home__project-placeholder {
    flex: 0 0 392px;
    width: 392px;
    height: 386px;
    border-radius: 14px;
    background: #d9d9d9;
}

.role-home__project-carousel {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    align-items: start;
    column-gap: 10px;
}

.role-home__project-viewport {
    overflow: hidden;
    padding: 0 12px;
}

.role-home__project-track {
    display: flex;
    gap: 29px;
    transition: transform .28s ease;
    will-change: transform;
}

.role-home__project-carousel-arrow {
    align-self: start;
    /* JS measures the rendered preview, preserving exact centering at every responsive width. */
    margin-top: var(--role-home-project-arrow-offset, 180px);
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #191919;
    border-radius: 50%;
    background: #fff;
    transition: opacity .2s ease, transform .2s ease;
}

.role-home__project-carousel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
}

.role-home__project-carousel-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.role-home__project-carousel-arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.role-home__project-carousel-arrow:not(:disabled):hover,
.role-home__project-carousel-arrow:not(:disabled):focus-visible {
    transform: translateY(-1px);
}

.role-home__project-carousel-arrow:disabled {
    cursor: not-allowed;
    opacity: .32;
}

.role-home__project-grid--empty {
    display: flex;
    justify-content: center;
    gap: 29px;
}

.role-home__project-grid,
.role-home__article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 29px;
}

.role-home__project-card {
    flex: 0 0 392px;
    width: 392px;
    min-width: 0;
    text-align: left;
}

.role-home__project-card-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.role-home__project-card-link:focus-visible {
    outline: 2px solid var(--vp-color-focus-ring, #0014a8);
    outline-offset: 8px;
    border-radius: 14px;
}

.role-home__project-card img {
    width: 392px;
    height: 386px;
    aspect-ratio: 392 / 386;
    object-fit: cover;
    border-radius: 14px;
}

.role-home__project-card h3 {
    margin-top: 14px;
    font-family: var(--vp-font-family-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 22px;
    line-height: 1.2;
    text-align: left;
    /* Long project title (Cyrillic word) не вылезает за card — AC-3 stable spacing */
    overflow-wrap: anywhere;
}

.role-home__project-card p {
    min-height: 38px;
    margin: 8px 0 14px;
    font-family: var(--vp-font-family-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* owner 2026-08-15 (главная исполнителя); owner 2026-08-16: стили применены к обоим
   вариантам (.role-home), главная заказчика = главная исполнителя по формату:
   1) весь контент страницы −10%, баннер не трогаем;
   3) «Лучшие проекты» — 5 превью в ряд, текст с троеточием, кнопки на одном уровне */
.role-home > :not(.role-home__hero):not(:has(> .site-footer)) {
    zoom: 0.9;
}

@media (min-width: 769px) {
    .role-home .role-home__project-card {
        flex-basis: calc((100% - 4 * 29px) / 5);
        width: calc((100% - 4 * 29px) / 5);
    }

    .role-home .role-home__project-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 392 / 386;
    }

    .role-home .role-home__project-card h3 {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
    }

    .role-home .role-home__project-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
    }

    /* «Свежее в блоге» и «Календарь событий» — карусели на всю ширину секции
       проектов, начало слева, карточки фиксированной ширины (в ряд помещается 6),
       карусель сама считает вместимость */
    .role-home .role-home__article-carousel,
    .role-home .role-home__event-carousel {
        width: min(1660px, calc(100% - 48px));
        justify-content: start;
    }

    .role-home .role-home__article-track .role-home__article-card,
    .role-home .role-home__event-card {
        flex: 0 0 236px;
        width: 236px;
    }

    .role-home .role-home__event-card img {
        width: 100%;
        height: auto;
    }

    .role-home .role-home__article-card strong {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
        min-height: 2.4em;
    }

    .role-home .role-home__event-card h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
    }

    .role-home .role-home__event-card p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
    }
}

/* «Лучшие проекты» −15px снизу, «Календарь событий» −25px снизу.
   «Свежее в блоге» вплотную к кнопке «Смотреть все проекты» —
   нижний отступ секции и верхний паддинг блог-блока обнулены */
.role-home .role-home__section--projects {
    margin-bottom: 0;
}

.role-home .role-home__accent-section {
    padding-top: 20px;
}

/* кнопку «Смотреть все проекты» опустить на 2px */
.role-home .role-home__section--projects .role-home__ghost-action--right {
    margin-top: 26px; /* 20 + 2 + 2 + 2 */
}

.role-home .role-home__events {
    padding-bottom: 55px; /* 80 − 25 */
}

/* чёрная строка меню −10px по высоте, контент ниже поднимается на эти же 10px */
.role-home .role-home__category-strip {
    height: 100px; /* 110 − 10 */
}

.role-home__project-action {
    min-height: 28px;
    padding: 0 16px;
}

.role-home__project-frame {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: clamp(var(--vp-space-lg, 24px), 5vh, 56px) var(--vp-space-lg, 24px);
}

.role-home__project-frame:target {
    display: grid;
    place-items: center;
}

.role-home__project-frame-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(2.6px);
}

.role-home__project-frame-card {
    position: relative;
    z-index: 1;
    width: min(1390px, calc(100vw - 64px));
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: clamp(22px, 2.4vw, 36px) clamp(18px, 3vw, 40px) clamp(var(--vp-space-lg, 24px), 2.2vw, var(--vp-space-xl, 32px));
    border-radius: 16px;
    background: var(--vp-color-border-muted, #d9d9d9);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.role-home__project-frame-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--vp-color-text, #1a1a1a);
    background: rgba(255, 255, 255, 0.72);
    font-size: 28px;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.role-home__project-frame-close:hover,
.role-home__project-frame-close:focus-visible {
    background: var(--vp-color-text-inverse, #fff);
    transform: translateY(-1px);
}

.role-home__project-frame-card h3 {
    margin: 0 44px var(--vp-space-lg, 24px);
    color: var(--vp-color-text, #1a1a1a);
    font-family: var(--vp-font-family-sans);
    font-size: clamp(20px, 1.5vw, 24px);
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.role-home__project-frame-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #c4c4c4;
}

.role-home__project-frame-media img {
    width: 100%;
    aspect-ratio: 1.86 / 1;
    min-height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

.role-home__project-frame-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    transform: translateY(-50%);
}

.role-home__project-frame-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--vp-color-primary, #003677);
    border-right: 2px solid var(--vp-color-primary, #003677);
}

.role-home__project-frame-arrow--prev {
    left: clamp(14px, 3vw, 42px);
}

.role-home__project-frame-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.role-home__project-frame-arrow--next {
    right: clamp(14px, 3vw, 42px);
}

.role-home__project-frame-arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.role-home__project-frame-description {
    margin: 28px 0 var(--vp-space-lg, 24px);
    color: var(--vp-color-text, #1a1a1a);
    font-size: 20px;
    line-height: 1.35;
}

.role-home__project-frame-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vp-space-lg, 24px);
}

.role-home__project-frame-author {
    display: flex;
    align-items: center;
    gap: var(--vp-space-md, 16px);
}

.role-home__project-frame-author img {
    width: 81px;
    height: 81px;
    flex: 0 0 81px;
    border-radius: 50%;
    object-fit: cover;
}

.role-home__project-frame-author span,
.role-home__project-frame-author strong,
.role-home__project-frame-author small {
    display: block;
    color: var(--vp-color-text, #1a1a1a);
    line-height: 1.2;
}

.role-home__project-frame-author span {
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
}

.role-home__project-frame-author strong {
    margin-bottom: var(--vp-space-2xs, 4px);
    font-size: 16px;
    font-weight: 700;
}

.role-home__project-frame-author small {
    font-size: 16px;
}

.role-home__project-frame-more {
    min-height: 35px;
    min-width: 247px;
    padding: 0 var(--vp-space-lg, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 33px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.role-home__project-frame-more:hover,
.role-home__project-frame-more:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 54, 119, 0.24);
}

/* Project preview dialog (Figma half-size card, INPA-416). */
.role-home__project-dialog {
    box-sizing: border-box;
    width: min(695px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 14px;
    border: 0;
    background: transparent;
    overflow: visible;
}

.role-home__project-dialog::backdrop {
    background: rgba(12, 22, 38, 0.42);
    backdrop-filter: blur(5px);
}

.role-home__project-dialog-card {
    position: relative;
    box-sizing: border-box;
    width: min(667px, 100%);
    max-height: calc(100vh - 64px);
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid rgba(0, 54, 119, 0.12);
    border-radius: 18px;
    background: var(--vp-color-text-inverse, #fff);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.role-home__project-dialog-card h3 {
    margin: 0 40px 18px 0;
    color: var(--vp-color-text, #1a1a1a);
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.role-home__project-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--vp-color-text, #1a1a1a);
    background: rgba(0, 54, 119, 0.08);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
}

.role-home__project-dialog-close::before,
.role-home__project-dialog-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform-origin: center;
}

.role-home__project-dialog-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.role-home__project-dialog-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.role-home__project-dialog-close:hover,
.role-home__project-dialog-close:focus-visible {
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
}

.role-home__project-dialog-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--vp-color-border-muted, #d9d9d9);
}

.role-home__project-dialog-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
    cursor: pointer;
    transform: translateY(-50%);
}

.role-home__project-dialog-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--vp-color-primary, #003677);
    border-right: 2px solid var(--vp-color-primary, #003677);
}

.role-home__project-dialog-arrow--prev {
    left: 14px;
}

.role-home__project-dialog-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.role-home__project-dialog-arrow--next {
    right: 14px;
}

.role-home__project-dialog-arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.role-home__project-dialog-arrow:disabled {
    display: none;
}

.role-home__project-dialog-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1334 / 716;
    object-fit: contain;
}

.role-home__project-dialog-description {
    margin: 18px 0 0;
    color: var(--vp-color-text, #1a1a1a);
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.role-home__project-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.role-home__project-dialog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--vp-color-text, #1a1a1a);
}

.role-home__project-dialog-author > img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
}

.role-home__project-dialog-author span,
.role-home__project-dialog-author strong,
.role-home__project-dialog-author small {
    display: block;
}

.role-home__project-dialog-author span {
    margin-bottom: 4px;
    color: var(--vp-color-text-muted, #6b7280);
    font-size: 13px;
}

.role-home__project-dialog-author strong {
    font-size: 16px;
}

.role-home__project-dialog-author small {
    margin-top: 3px;
    color: var(--vp-color-text-muted, #6b7280);
    font-size: 13px;
}

.role-home__project-dialog-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 22px;
    border-radius: 22px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.role-home__project-dialog-more:hover,
.role-home__project-dialog-more:focus-visible {
    color: var(--vp-color-text-inverse, #fff);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 54, 119, .24);
}

@media (max-width: 560px) {
    .role-home__project-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 8px;
    }

    .role-home__project-dialog-card {
        padding: 18px;
    }

    .role-home__project-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .role-home__project-dialog-more {
        width: 100%;
        box-sizing: border-box;
    }
}

.role-home__accent-section {
    padding: 34px 0 16px; /* owner 2026-08-03: «Календарь событий» ближе к «Все публикации» */
    background: var(--vp-color-bg-page, #f2f2f2);
    text-align: center;
}

.role-home__accent-section > h2,
.role-home__events > h2 {
    padding: var(--vp-space-xl, 32px) var(--vp-space-lg, 24px);
    color: var(--vp-color-text-inverse, #fff);
    background: #ff5757;
}

.role-home__accent-section > p {
    margin: 34px auto;
    font-size: 26px;
    line-height: 1.2;
}

.role-home__article-carousel {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    align-items: start;
    column-gap: 10px;
    width: min(1330px, calc(100% - 48px));
    margin: 0 auto;
}

.role-home__article-viewport {
    overflow: hidden;
    padding: 0 12px;
}

.role-home__article-track {
    display: flex;
    gap: 29px;
    transition: transform .28s ease;
    will-change: transform;
}

.role-home__article-carousel-arrow {
    align-self: start;
    margin-top: var(--role-home-article-arrow-offset, 180px);
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #191919;
    border-radius: 50%;
    color: #191919;
    background: #fff;
    transition: opacity .2s ease, transform .2s ease;
}

.role-home__article-carousel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
}

.role-home__article-carousel-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.role-home__article-carousel-arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.role-home__article-carousel-arrow:not(:disabled):hover,
.role-home__article-carousel-arrow:not(:disabled):focus-visible {
    transform: translateY(-1px);
}

.role-home__article-carousel-arrow:disabled {
    cursor: not-allowed;
    opacity: .32;
}

.role-home__article-grid {
    width: min(1660px, calc(100% - 48px));
    margin: 0 auto;
}

.role-home__article-card {
    flex: 0 0 392px;
    width: 392px;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: var(--vp-color-bg-page, #f2f2f2);
    text-align: left;
    min-width: 0;
}

.role-home__article-track .role-home__article-card {
    flex-basis: min(392px, calc((100% - 58px) / 3));
    width: min(392px, calc((100% - 58px) / 3));
}

.role-home__article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.role-home__article-card-link:focus-visible {
    outline: 2px solid var(--vp-color-focus-ring, #0014a8);
    outline-offset: 8px;
    border-radius: 12px;
}

.role-home__article-card img {
    display: block;
    width: 392px;
    height: 386px;
    aspect-ratio: 392 / 386;
    object-fit: cover;
    border-radius: 14px;
}

.role-home__article-track .role-home__article-card img {
    width: 100%;
    height: auto;
}

.role-home__article-card div {
    padding: 18px;
}

.role-home__article-card strong,
.role-home__article-card span {
    display: block;
}

.role-home__article-card strong {
    margin-bottom: 10px;
    font-family: var(--vp-font-family-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vp-color-text, #1a1a1a);
    overflow-wrap: anywhere;
}

.role-home__article-card span {
    margin-bottom: 6px;
    font-family: var(--vp-font-family-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--vp-color-text-secondary, #6b6b6b);
}

.role-home__article-card .role-home__article-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.role-home__article-card p {
    margin: 0;
    font-family: var(--vp-font-family-sans, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    line-height: 1.35;
    color: var(--vp-color-text-secondary, #6b6b6b);
    overflow-wrap: anywhere;
}

.role-home__events {
    padding-bottom: 80px;
    text-align: center;
}

/* owner 2026-08-06: event carousel mirrors the article carousel with 20% smaller frames */
.role-home__event-carousel {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    align-items: start;
    column-gap: 10px;
    width: min(1138px, calc(100% - 48px));
    margin: var(--vp-space-3xl, 64px) auto 0;
}

.role-home__event-viewport {
    overflow: hidden;
    padding: 0 12px;
}

.role-home__event-track {
    display: flex;
    gap: 29px;
    transition: transform .28s ease;
    will-change: transform;
}

.role-home__event-carousel-arrow {
    align-self: start;
    margin-top: var(--role-home-event-arrow-offset, 151px);
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #191919;
    border-radius: 50%;
    color: #191919;
    background: #fff;
    transition: opacity .2s ease, transform .2s ease;
}

.role-home__event-carousel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
}

.role-home__event-carousel-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.role-home__event-carousel-arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.role-home__event-carousel-arrow:not(:disabled):hover,
.role-home__event-carousel-arrow:not(:disabled):focus-visible {
    transform: translateY(-1px);
}

.role-home__event-carousel-arrow:disabled {
    cursor: not-allowed;
    opacity: .32;
}

.role-home__event-card {
    flex: 0 0 328px;
    width: 328px;
    min-width: 0;
    text-align: center;
}

.role-home__event-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.role-home__event-card-link:focus-visible {
    outline: 2px solid var(--vp-color-focus-ring, #0014a8);
    outline-offset: 8px;
    border-radius: 12px;
}

.role-home__event-card img {
    box-sizing: border-box;
    display: block;
    width: 328px;
    height: 328px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--vp-color-text-inverse, #fff);
    border-radius: 50%;
    /* owner 2026-08-06: no drop shadow behind event frames (same correction as blog frames) */
    box-shadow: none;
}

.role-home__event-description {
    box-sizing: border-box;
    width: 100%;
    min-height: 104px;
    margin: 28px auto 0;
    padding: 12px 14px 14px;
    border-radius: 6px;
    background: #f8f8f8;
    /* owner 2026-08-06: no shadow on event description cards either */
    box-shadow: none;
    text-align: center;
}

.role-home__event-card h3,
.role-home__event-card p {
    overflow-wrap: anywhere;
}

.role-home__event-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.role-home__event-card p {
    min-height: 72px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
}

.role-home__event-empty-grid {
    display: flex;
    justify-content: center;
    gap: 29px;
    width: min(1064px, calc(100% - 48px));
    margin: var(--vp-space-3xl, 64px) auto 0;
}

/* Empty-state frames use the same compact 328×328 geometry as real events. */
.role-home__event-placeholder {
    flex: 0 0 328px;
    width: 328px;
    height: 328px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #d9d9d9;
}

/* комментарий под фреймами по центру */
.role-home__events-empty-note {
    margin: 24px auto 0;
    font-size: 20px;
    color: var(--vp-color-text-muted, #666);
}

.role-home__ticker {
    padding: 14px 0;
    overflow: hidden;
    color: var(--vp-color-text, #1a1a1a);
    background: var(--vp-color-border, #e0e0e0);
    font-size: 31px;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
}

.role-home__footer {
    min-height: 420px;
    padding: 82px min(7vw, 130px);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 80px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-text, #1a1a1a);
}

.role-home__footer img {
    width: 250px;
    height: auto;
    margin-bottom: 18px;
}

.role-home__footer p,
.role-home__footer a,
.role-home__footer strong {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.2;
}

.role-home__empty-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.role-home__all-projects-action {
    min-width: 180px;
}

.executor-projects {
    min-height: calc(100vh - 83px);
}

/* owner 2026-08-16 (проекты исполнителей): контент −10%, хедер и футер не трогаем */
.executor-projects > :not(.site-footer) {
    zoom: 0.9;
}

.executor-projects__hero {
    position: relative;
    /* owner 2026-08-16 (2): баннер во всю ширину экрана, вплотную к хедеру */
    margin: 0;
    padding-top: 0;
}

.executor-projects__hero-media {
    position: relative;
    /* owner 2026-08-16 (2): высота баннера −10% (было clamp(320px, 27vw, 520px)) */
    height: clamp(288px, 24.3vw, 468px);
}

.executor-projects__hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 25, 0.34), rgba(8, 15, 25, 0.58));
    pointer-events: none;
}

.executor-projects__hero-title {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1180px, calc(100% - 48px));
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 1.3vw, var(--vp-space-lg, 24px));
    color: var(--vp-color-text-inverse, #fff);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
    text-transform: uppercase;
    transform: translate(-50%, -52%);
}

.executor-projects__hero-title span {
    display: block;
    max-width: 100%;
}

.executor-projects__hero-title span:first-child {
    font-size: clamp(38px, 4vw, 76px);
}

.executor-projects__hero-title span:last-child {
    font-size: clamp(22px, 1.9vw, 34px);
}

.executor-projects__section {
    /* owner 2026-08-16 (2): видимые поля по краям страницы, как в макете
       (≈180px на 1920 с учётом zoom 0.9 контента) */
    width: min(1733px, calc(100% - 48px));
    min-height: 720px;
    margin: 52px auto 72px;
    text-align: center;
}

.executor-projects__section h2 {
    /* owner 2026-08-16: фрейм-меню фильтров удалено; отступ под заголовком =
       отступу от баннера до заголовка (52px, как margin-top секции) */
    margin: 0 0 52px;
    font-size: clamp(24px, 2vw, 36px);
    line-height: 1.1;
    font-weight: 700;
}

.executor-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* owner 2026-08-16 (4): отступы между фреймами проектов — 40px */
    gap: 40px;
    text-align: left;
}

.executor-projects__card {
    min-width: 0;
    /* owner 2026-08-16 (3): фреймы проектов −20% — бокс 80% колонки,
       zoom масштабирует текст/отступы внутри карточки */
    width: 80%;
    zoom: 0.8;
    justify-self: center; /* owner 2026-08-16 (4): карточки по центру колонки */
}

.executor-projects__card img {
    width: 100%;
    aspect-ratio: 1 / 0.98;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.executor-projects__card h3 {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 400;
}

.executor-projects__card p {
    min-height: 42px;
    margin: var(--vp-space-2xs, 4px) 0 var(--vp-space-md, 16px);
    font-size: 20px;
    line-height: 1.15;
}

.executor-projects__card button {
    min-height: 35px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 33px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.executor-projects__card button:hover,
.executor-projects__card button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 54, 119, 0.24);
}

.executor-projects__empty {
    min-height: 520px;
    display: grid;
    place-items: center;
    color: var(--vp-color-text-muted, #848484);
    font-size: 20px;
    line-height: 1.3;
}

.executor-projects__more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.executor-projects__more {
    min-height: 42px;
    min-width: 253px;
    margin-top: 62px;
    padding: 0 var(--vp-space-xl, 32px);
    border-radius: 33px;
    color: var(--vp-color-text-inverse, #fff);
    background: #a8a6a6;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.executor-projects__more:hover:not(:disabled),
.executor-projects__more:focus-visible:not(:disabled) {
    background: #8f8d8d;
}

.executor-projects__more:disabled {
    opacity: .65;
    cursor: default;
}

.executor-projects__more-error {
    color: var(--vp-color-text-muted, #848484);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.executor-projects__detail {
    position: fixed;
    inset: 0; /* owner 2026-08-16 (5): центрирование по всему вьюпорту */
    z-index: 100;
    /* owner 2026-08-16 (5): симметричный padding — иначе центрирование уезжает вниз */
    padding: var(--vp-space-lg, 24px);
    overflow-y: auto;
    display: flex;
    align-items: center; /* owner 2026-08-16 (5): диалог проекта отцентрован со всех сторон */
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.executor-projects__detail-panel {
    position: relative;
    box-sizing: border-box;
    zoom: 0.76; /* owner 2026-08-17: фрейм просмотра проекта +10% (0.69×1.1≈0.76) */
    width: min(1390px, 100%);
    /* owner 2026-08-17: диалог всегда влезает во вьюпорт без скролла
       (vh не масштабируется zoom'ом -> делим на 0.76; overflow — страховка) */
    min-height: 0;
    max-height: calc((100vh - 48px) / 0.76);
    overflow-y: auto;
    padding: var(--vp-space-lg, 24px) 28px 42px;
    border-radius: 16px;
    background: var(--vp-color-border-muted, #d9d9d9);
    color: var(--vp-color-text, #1a1a1a);
    text-align: left;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.executor-projects__detail-close {
    position: absolute;
    right: 28px;
    top: var(--vp-space-lg, 24px);
    /* owner 2026-08-17: крестик на уровне названия проекта, размером со шрифт заголовка, цвет CD2D3A */
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #CD2D3A;
    background: transparent;
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 700;
    line-height: 1.18;
    cursor: pointer;
}

.executor-projects__detail-panel h3 {
    margin: 0 44px var(--vp-space-lg, 24px);
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.18;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.executor-projects__detail-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #cfcfcf;
}

.executor-projects__detail-media img {
    display: block;
    width: 100%;
    /* owner 2026-08-17: фото целиком и без скролла — вписываем по высоте,
       остаток высоты панели: заголовок+описание+футер (~340 CSS-px) */
    max-height: calc((100vh - 48px) / 0.76 - 340px);
    object-fit: contain;
}

.executor-projects__detail-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--vp-color-text-inverse, #fff);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    cursor: pointer;
}

.executor-projects__detail-arrow::before {
    content: "";
    position: absolute;
    /* owner 2026-08-17: шеврон строго по центру кружка — бокс в центре,
       компенсация −3.5px в сторону, противоположную острию (визуальная масса
       шеврона смещена на 3.5px от центра бокса). */
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--vp-color-primary, #003677);
    border-right: 3px solid var(--vp-color-primary, #003677);
    transform: translate(calc(-50% - 3.5px), -50%) rotate(45deg);
}

.executor-projects__detail-arrow--previous {
    left: var(--vp-space-lg, 24px);
}

.executor-projects__detail-arrow--previous::before {
    left: 50%;
    transform: translate(calc(-50% + 3.5px), -50%) rotate(225deg);
}

.executor-projects__detail-arrow--next {
    right: var(--vp-space-lg, 24px);
}

.executor-projects__detail-arrow:disabled {
    opacity: 0.55;
    cursor: default;
}

.executor-projects__detail-description {
    margin: 26px 0 28px;
    /* owner 2026-08-16 (8): описание 16px на экране (26 css-px × zoom 0.9 × 0.69 ≈ 16) */
    font-size: 26px;
    line-height: 1.28;
}

.executor-projects__detail-footer {
    display: flex;
    /* owner 2026-08-16 (9): кнопка на уровне строки роли автора (низ блока) */
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--vp-space-lg, 24px);
}

.executor-projects__detail-author {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.executor-projects__detail-author > img,
.executor-projects__detail-author > span {
    /* owner 2026-08-16 (6): иконка автора увеличена (было 81px) */
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.executor-projects__detail-author > span {
    display: grid;
    place-items: center;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 36px;
    font-weight: 700;
}

.executor-projects__detail-author div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.executor-projects__detail-author div > span {
    margin-bottom: 10px;
    /* owner 2026-08-16 (8): подпись «Автор проекта» тоже 16px на экране */
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
}

.executor-projects__detail-author strong {
    margin-bottom: 6px;
    /* owner 2026-08-16 (8): шрифт автора 16px на экране */
    font-size: 26px;
    line-height: 1.2;
}

.executor-projects__detail-author small {
    /* owner 2026-08-16 (8): шрифт роли автора 16px на экране */
    font-size: 26px;
    line-height: 1.2;
}

.executor-projects__detail-more {
    box-sizing: border-box;
    /* owner 2026-08-16 (10): кнопка ровно 255×45 */
    height: 45px;
    width: 255px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 33px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    /* owner 2026-08-17: шрифт +2px на экране (zoom 0.9×0.69 → CSS +3px) */
    font-size: 17px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.executor-feed {
    position: relative;
    min-height: calc(100vh - 83px);
    background: var(--vp-color-bg-page, #f2f2f2);
    color: var(--vp-color-text, #1a1a1a);
    /* UI KIT typography ramp: body / h1-h5 / tag / btn / content-link
       inherit Inter via the .executor-feed scope (WF-7 / INPA-476). The
       scope contains no nav element so no Helvetica reset is required
       (header is rendered outside the .executor-feed block). */
    font-family: var(--vp-font-family-sans);
}

.executor-feed__panel {
    width: min(700px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 76px;
}

.executor-feed__title {
    margin: 0 0 var(--vp-space-lg, 24px);
    color: var(--vp-color-primary, #003677);
    font-family: var(--vp-font-family-sans);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
}

.executor-feed__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px 40px;
    gap: var(--vp-space-sm, 12px);
    align-items: center;
    margin-bottom: 18px;
}

.executor-feed__search-input {
    width: 100%;
    height: 28px;
    padding: 0 var(--vp-space-md, 16px);
    border: 0;
    border-radius: 12px;
    color: var(--vp-color-text, #1a1a1a);
    background: var(--vp-color-border, #e0e0e0);
    box-shadow: 0 5px 4px -5px rgba(0, 20, 168, 0.08);
    font-size: 12px;
    line-height: 1;
}

.executor-feed__search-input::placeholder {
    color: rgba(100, 100, 100, 0.5);
}

.executor-feed__search-button {
    height: 28px;
    border-radius: 25px;
    color: var(--vp-color-border, #e0e0e0);
    background: var(--vp-color-primary, #003677);
    font-size: 15px;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.executor-feed__filter-link {
    width: 38px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--vp-color-text, #1a1a1a);
    background: var(--vp-color-border, #e0e0e0);
    transition: color .2s ease, background-color .2s ease;
}

.executor-feed__search-button:hover,
.executor-feed__search-button:focus-visible {
    background: #002f66;
    transform: translateY(-1px);
}

.executor-feed__filter-link:hover,
.executor-feed__filter-link:focus-visible {
    color: var(--vp-color-primary, #003677);
    background: rgba(0, 54, 119, 0.1);
}

.executor-feed__cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.executor-feed__card {
    min-height: 101px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 18px;
    padding: 10px 13px var(--vp-space-sm, 12px);
    border: 1px solid var(--vp-color-primary, #003677);
    border-radius: 20px;
    background: var(--vp-color-bg-page, #f2f2f2);
    cursor: pointer;
}

.executor-feed__card:focus-visible {
    outline: 2px solid var(--vp-color-primary, #003677);
    outline-offset: 2px;
}

.executor-feed__card-main,
.executor-feed__card-side {
    min-width: 0;
}

.executor-feed__date {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;
    margin: 0 0 var(--vp-space-xs, 8px);
    font-size: 15px;
    line-height: 1.15;
}

.executor-feed__date span:first-child,
.executor-feed__price span {
    font-weight: 400;
}

.executor-feed__price {
    margin: 0 0 var(--vp-space-xs, 8px);
    font-size: 15px;
    line-height: 1.15;
}

.executor-feed__description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--vp-color-text, #1a1a1a);
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.executor-feed__card-side {
    display: grid;
    grid-template-columns: 62px 32px;
    grid-template-rows: auto 1fr;
    gap: var(--vp-space-xs, 8px) 10px;
    align-items: start;
}

.executor-feed__card-title {
    margin: 0;
    color: var(--vp-color-primary, #003677);
    font-family: var(--vp-font-family-sans);
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
}

.executor-feed__number {
    color: var(--vp-color-primary, #003677);
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.executor-feed__favorite {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-color-text, #1a1a1a);
}

.executor-feed__favorite.is-active {
    color: var(--vp-color-danger, #ca505a);
}

.executor-feed__favorite.is-active svg path {
    fill: rgba(202, 80, 90, 0.12);
}

.executor-feed__responded {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: end;
    color: var(--vp-color-text-muted, #848484);
    font-size: 11px;
    line-height: 1.15;
}

.executor-feed__notice {
    max-width: 100%;
    margin: 18px 0 0;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    /* PD-4 (ui-audit 2026-07-25): длинные неразрывные строки не растягивают страницу. */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* E-5: полноценное пустое состояние ленты — заголовок + подсказка + CTA */
.executor-feed__empty {
    margin: 32px 0 0;
    padding: 40px var(--vp-space-lg, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--vp-space-sm, 12px);
    border: 1px dashed var(--vp-color-border-muted, #d9d9d9);
    border-radius: 20px;
    background: var(--vp-color-bg-surface, #fff);
    text-align: center;
}

.executor-feed__empty-title {
    margin: 0;
    color: var(--vp-color-text, #1a1a1a);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.executor-feed__empty-text {
    max-width: 420px;
    margin: 0;
    color: var(--vp-color-text-secondary, #6b6b6b);
    font-size: 15px;
    line-height: 1.4;
}

.executor-feed__empty-action {
    min-height: 40px;
    margin-top: var(--vp-space-xs, 8px);
    padding: 0 var(--vp-space-lg, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.executor-feed__empty-action:hover,
.executor-feed__empty-action:focus-visible {
    background: #002f66;
    transform: translateY(-1px);
}

.executor-feed__more {
    min-height: 34px;
    min-width: 150px;
    margin: 22px auto 0;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    color: var(--vp-color-text-inverse, #fff);
    background: var(--vp-color-primary, #003677);
    font-size: 14px;
    line-height: 1;
}

.executor-feed__more:disabled {
    background: var(--vp-color-text-muted, #848484);
}

.executor-feed__profile-prompt-backdrop {
    position: fixed;
    z-index: 90;
    inset: 83px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--vp-space-xl, 32px) var(--vp-space-md, 16px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2.6px);
}

.executor-feed__profile-prompt {
    width: min(733px, calc(100vw - 32px));
    min-height: 522px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px var(--vp-space-xl, 32px) 44px;
    border-radius: 42px;
    background: var(--vp-color-text-inverse, #fff);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: var(--vp-color-text, #000);
    text-align: center;
    transform: scale(0.8); /* Owner update 2026-08-15: shrink prompt banner+content by 20% */
}

.executor-feed__profile-prompt-title {
    margin: 0 0 34px;
    color: var(--vp-color-brand-red, #cd2d3a);
    font-family: var(--vp-font-family-sans);
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
}

.executor-feed__profile-prompt-text {
    max-width: 668px;
    margin: 0 0 30px;
    font-size: 24px;
    line-height: 1.2;
}

.executor-feed__profile-prompt-subtitle {
    max-width: 420px;
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.executor-feed__profile-prompt-list {
    width: min(657px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vp-space-xs, 8px) 52px;
    margin: 0 0 34px;
    color: var(--vp-color-text, #000);
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
}

.executor-feed__profile-prompt-list li:nth-child(1),
.executor-feed__profile-prompt-list li:nth-child(3) {
    transform: translateX(40px);
}

.executor-feed__profile-prompt-action {
    min-height: 63px;
    width: min(350px, 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--vp-space-xl, 32px);
    border-radius: 33px;
    background: var(--vp-color-primary, #003677);
    color: var(--vp-color-text-inverse, #fff);
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
}

.executor-feed__profile-prompt-action:hover,
.executor-feed__profile-prompt-action:focus-visible {
    background: #002f66;
    transform: translateY(-1px);
}

@media (max-width: 1439px) {
    .app-header__container {
        width: calc(100% - 32px);
        gap: 18px;
    }

    .app-header__nav-link {
        width: auto; /* owner 2026-08-03: по контенту, без переноса */
    }

    .app-header__developer-text {
        display: none;
    }
}

/*
   INPA-569 — /executor_projects Logo «впроекте» overflow at viewport ≤1280px
   (analog F-INPA-539-002/F-007, Figma frame 7855:9784).
   - Header Logo (.app-header__logo) is the same variant 7737:89 shared by
     header_2 fragment across /executor_lk, /customer_lk and
     /executor_projects. The 190px logo + 6 nav-links @ 88px + actions +
     gaps clips the leading «В» at 1279px container (calc(100% - 32px)).
     170px keeps ~322px of slack, mirroring INPA-549 verdict.
   - Footer Logo (.role-home__footer img, INSTANCE 7737:341) is the
     separate 250px «впроекте» rendered on /executor_projects inside the
     three-column footer grid with 80px gap + min(7vw, 130px) horizontal
     padding. At 1280px viewport the inner column has calc(7vw)=89.6px so
     padding alone is 179.2px; 250px logo + adjacent block overflows the
     1.2fr column. 200px keeps the logo visible at the standard 1920px
     desktop and stops the horizontal overflow between 1280–769px.
   Placed BEFORE the 575px / 375px rules so source order preserves the
   narrower breakpoints.
*/
@media (max-width: 1279px) {
    .role-home__footer img {
        width: 200px;
        max-width: calc(100vw - 96px);
    }
}

/* Q.4 breakpoint: mobile <= 768px. Desktop >= 769px is the default. */
@media (max-width: 768px) {
    .app-header__container {
        min-height: 72px;
        flex-wrap: wrap;
        padding: var(--vp-space-sm, 12px) 0;
    }

    .app-header__nav {
        order: 3;
        width: 100%;
        flex: 1 0 100%;
        overflow-x: auto;
        padding-bottom: var(--vp-space-2xs, 4px);
    }

    .app-header__nav-list {
        justify-content: flex-start;
    }

    .role-home__category-strip,
    .role-home__project-grid,
    .executor-projects__grid,
    .role-home__article-grid,
    .role-home__footer {
        grid-template-columns: 1fr;
    }

    .role-home__category-strip {
        min-height: 0;
        gap: 10px;
    }

    .role-home__category {
        min-height: 52px;
    }

    .role-home__section-head {
        flex-direction: column;
    }

    .role-home__empty-profile {
        margin-top: -40px;
        grid-template-columns: 1fr;
    }

    .role-home__empty-main {
        padding-top: 0;
    }

    .role-home__avatar-placeholder {
        min-height: 360px;
    }

    .role-home__empty-fields,
    .role-home__executor-status-note {
        width: 100%;
    }

    .role-home__executor-status-note {
        margin: 0 auto 34px;
    }

    .role-home__empty-projects {
        gap: var(--vp-space-lg, 24px);
    }

    .role-home__empty-project-card {
        min-height: 300px;
    }

    .role-home__project-carousel {
        grid-template-columns: 26px minmax(0, 1fr) 26px;
        column-gap: 8px;
    }

    .role-home__project-viewport {
        padding: 0;
    }

    .role-home__article-carousel {
        width: calc(100% - 24px);
        grid-template-columns: 20px minmax(0, 1fr) 20px;
        column-gap: 6px;
    }

    .role-home__article-carousel-arrow {
        width: 20px;
        height: 20px;
    }

    .role-home__article-viewport {
        padding: 0;
    }

    .role-home__event-carousel {
        width: calc(100% - 28px);
        grid-template-columns: 26px minmax(0, 1fr) 26px;
        column-gap: 8px;
    }

    .role-home__event-viewport {
        padding: 0;
    }

    .role-home__event-card {
        flex-basis: min(328px, calc(100vw - 124px));
        width: min(328px, calc(100vw - 124px));
    }

    .role-home__event-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .role-home__event-empty-grid {
        align-items: center;
        flex-direction: column;
        width: calc(100% - 28px);
        gap: 24px;
    }

    .role-home__event-placeholder {
        flex-basis: min(328px, calc(100vw - 28px));
        width: min(328px, calc(100vw - 28px));
        height: auto;
    }

    /* tech-debt 2026-09-01: the desktop track rule
       `.role-home__article-track .role-home__article-card` (flex-basis
       (100% - 58px)/3) out-specifies any 1-class mobile override and kept three
       ~90px columns on phones; re-assert at equal specificity: one card plus a
       peek of the next */
    .role-home__article-track .role-home__article-card {
        flex-basis: min(392px, calc(100vw - 96px));
        width: min(392px, calc(100vw - 96px));
    }

    .role-home__article-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 392 / 386;
    }

    /* tech-debt 2026-09-01: titles wrap at word boundaries, never mid-word
       (desktop overflow-wrap: anywhere broke «подготовиться» into letters) */
    .role-home__article-card strong,
    .role-home__article-card p {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .role-home__article-card strong {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        /* same clamp pattern as the min-width: 769px block (2 lines + min-height) */
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: 2.4em;
        font-size: 16px;
    }

    .role-home__article-card .role-home__article-tag {
        max-width: 100%;
    }

    /* tech-debt 2026-09-01: right-anchored CTAs («Все публикации», «Смотреть все
       проекты») left dead space on the left on mobile — center both inside the
       section padding, matching the section's symmetric card layout */
    .role-home__primary-action--right,
    .role-home__ghost-action--right {
        margin: 20px auto 0;
    }

    /* tech-debt 2026-09-01: categories line «СТАТЬИ x ЛАЙФХАКИ x ИДЕИ x ЛЮДИ» —
       14px across the whole ≤768px range: at the base 26px it wrapped «ЛЮДИ»
       onto its own row at ~375px, and a 575/576 boundary split (14px vs 26px)
       read as a typo glitch one pixel apart */
    .role-home__accent-section > p {
        margin: 20px auto;
        font-size: 14px;
    }

    /* tech-debt 2026-09-01: sibling carousels on the same page (projects, events)
       had the same mid-word breaks on mobile — mirror the min-width: 769px clamps */
    .role-home__project-card h3 {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .role-home__event-card h3,
    .role-home__event-card p {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .role-home__event-card h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .role-home__event-card p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .role-home__project-card,
    .role-home__project-placeholder {
        flex-basis: min(392px, calc(100vw - 124px));
        width: min(392px, calc(100vw - 124px));
    }

    .role-home__project-card img,
    .role-home__project-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 392 / 386;
    }

    .role-home__project-grid--empty {
        align-items: center;
        flex-direction: column;
    }

    .role-home__project-card p,
    .executor-projects__card p,
    .role-home__event-card p {
        min-height: 0;
    }

    .role-home__project-frame-card {
        width: min(860px, calc(100vw - 40px));
    }

    .role-home__project-frame-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .executor-projects__detail-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .executor-feed__panel {
        width: min(700px, calc(100% - 32px));
    }
}

@media (max-width: 575px) {
    .app-header__logo {
        height: 34px;
        max-width: calc(100vw - 64px);
    }

    .role-home__footer img {
        width: 160px;
        max-width: calc(100vw - 64px);
    }

    .app-header__actions {
        gap: var(--vp-space-xs, 8px);
    }

    .role-home__hero {
        padding-top: 0; /* owner 2026-08-03: баннер вплотную к хедеру */
    }

    .role-home__section,
    .executor-projects__section,
    .role-home__article-grid,
    .role-home__empty-profile {
        width: calc(100% - 28px);
    }

    .role-home__cover-placeholder {
        height: 240px;
    }

    .role-home__cover-placeholder span:last-child,
    .role-home__avatar-placeholder span:last-child {
        font-size: 15px;
    }

    .role-home__empty-profile {
        margin-top: -var(--vp-space-lg, 24px);
        margin-bottom: 56px;
        gap: var(--vp-space-lg, 24px);
    }

    .role-home__avatar-placeholder {
        min-height: 280px;
        padding: var(--vp-space-lg, 24px);
    }

    .role-home__empty-bio h2 {
        font-size: 22px;
    }

    .role-home__empty-specialty {
        font-size: 24px;
    }

    .role-home__empty-date,
    .role-home__executor-status-note {
        font-size: 16px;
    }

    .role-home__empty-tabs {
        gap: 18px;
        font-size: 13px;
    }

    .role-home__empty-tabs a:not(:last-child)::after {
        right: -10px;
    }

    .role-home__empty-projects {
        grid-template-columns: 1fr;
    }

    .role-home__empty-project-card {
        min-height: 220px;
    }

    .role-home__empty-project-card--center {
        width: 100%;
        min-height: 160px;
    }

    .role-home__empty-plus {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .role-home__project-frame {
        padding: 14px;
    }

    .role-home__project-frame-card {
        width: 100%;
        max-height: calc(100vh - 28px);
        padding: 20px 14px 22px;
        border-radius: 12px;
    }

    .role-home__project-frame-card h3 {
        margin: var(--vp-space-xs, 8px) 38px 18px;
        font-size: 17px;
    }

    .role-home__project-frame-media,
    .role-home__project-frame-media img {
        border-radius: 12px;
    }

    .role-home__project-frame-media img {
        min-height: 220px;
    }

    .role-home__project-frame-description {
        margin: 18px 0;
        font-size: 16px;
    }

    .role-home__project-frame-author img {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .role-home__project-frame-author span,
    .role-home__project-frame-author strong,
    .role-home__project-frame-author small {
        font-size: 14px;
    }

    .role-home__project-frame-more {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .role-home__quick-card {
        width: calc(100% - 28px);
        padding: 20px var(--vp-space-md, 16px);
    }

    .role-home__quick-card p {
        font-size: 16px;
    }

    .role-home__category-strip {
        padding: var(--vp-space-lg, 24px) 14px;
    }

    .role-home__ticker {
        font-size: 20px;
    }

    .role-home__footer {
        padding: 56px var(--vp-space-lg, 24px);
        gap: var(--vp-space-xl, 32px);
    }

    .executor-projects__hero-title {
        width: calc(100% - 28px);
        gap: var(--vp-space-xs, 8px);
    }

    .executor-projects__hero-title span:first-child {
        font-size: 24px;
    }

    .executor-projects__hero-title span:last-child {
        font-size: 18px;
    }

    .executor-projects__section {
        min-height: 520px;
        margin-top: 36px;
    }

    /* owner 2026-08-16: мобильный отступ под заголовком = отступу от баннера (36px) */
    .executor-projects__section h2 {
        margin-bottom: 36px;
    }

    .executor-projects__empty {
        min-height: 320px;
    }

    .executor-projects__detail {
        inset: 83px 0 0;
        padding: 18px 14px 28px;
    }

    .executor-projects__detail-panel {
        min-height: auto;
        padding: 18px 14px var(--vp-space-lg, 24px);
        border-radius: 12px;
    }

    .executor-projects__detail-panel h3 {
        margin: var(--vp-space-xs, 8px) 38px 18px;
        font-size: 17px;
    }

    .executor-projects__detail-media,
    .executor-projects__detail-media img {
        border-radius: 12px;
    }

    .executor-projects__detail-media img {
        /* owner 2026-08-17: фото в полный рост и на мобильном */
        height: auto;
    }

    .executor-projects__detail-arrow--previous {
        left: var(--vp-space-sm, 12px);
    }

    .executor-projects__detail-arrow--next {
        right: var(--vp-space-sm, 12px);
    }

    .executor-projects__detail-description {
        margin: 18px 0;
        font-size: 16px;
    }

    .executor-projects__detail-author > img,
    .executor-projects__detail-author > span {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .executor-projects__detail-author div > span,
    .executor-projects__detail-author strong,
    .executor-projects__detail-author small {
        font-size: 14px;
    }

    .executor-projects__detail-more {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .executor-feed__panel {
        width: calc(100% - 28px);
        padding-top: 28px;
    }

    .executor-feed__title {
        font-size: 26px;
    }

    .executor-feed__search {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .executor-feed__search-button {
        grid-column: 1 / -1;
        width: 122px;
        justify-self: center;
    }

    .executor-feed__card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: var(--vp-space-sm, 12px);
    }

    .executor-feed__card-title {
        text-align: left;
    }

    .executor-feed__date,
    .executor-feed__price {
        font-size: 14px;
    }

    .executor-feed__card-side {
        grid-template-columns: 64px 32px;
    }

    .executor-feed__profile-prompt-backdrop {
        top: 83px;
        padding: 20px 14px;
    }

    .executor-feed__profile-prompt {
        min-height: auto;
        padding: var(--vp-space-xl, 32px) var(--vp-space-lg, 24px);
        border-radius: 28px;
    }

    .executor-feed__profile-prompt-title {
        margin-bottom: 22px;
        font-size: 28px;
    }

    .executor-feed__profile-prompt-text {
        margin-bottom: 22px;
        font-size: 17px;
    }

    .executor-feed__profile-prompt-subtitle {
        margin-bottom: var(--vp-space-md, 16px);
        font-size: 18px;
    }

    .executor-feed__profile-prompt-list {
        grid-template-columns: 1fr;
        gap: var(--vp-space-xs, 8px);
        margin-bottom: var(--vp-space-lg, 24px);
        font-size: 14px;
        text-align: center;
    }

    .executor-feed__profile-prompt-action {
        min-height: 52px;
        font-size: 16px;
    }
}

/*
   INPA-545 — very narrow viewports (iPhone SE 320×640 and below).
   Logo 150px + actions (40px burger + 8px gap) at 320px viewport leaves
   only ~78px of slack in a 288px container; shrinking the logo gives
   the burger cluster more breathing room and prevents future overflow
   if the actions block gains another icon.

   INPA-569 — /executor_projects footer Logo at 320–375px viewports:
   footer grid switches to a single column at 768px and the «впроекте»
   160px logo + body paragraph + 24px side padding leaves no slack.
   Hide the footer Logo on mobile (per INPA-569 fix scope) — the brand
   is already present in the app-header so the footer is decorative on
   narrow viewports.
*/
@media (max-width: 375px) {
    .app-header__logo {
        height: 28px;
        max-width: calc(100vw - 64px);
    }

    .role-home__footer img {
        display: none;
    }
}

/* Owner update 2026-08-15: feed filter opens as in-page modal instead of /search_order page */
.executor-feed__filter-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 32px var(--vp-space-xl, 32px);
    border-radius: 24px;
    background: var(--vp-color-text-inverse, #fff);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: var(--vp-color-text, #000);
    position: fixed;
    z-index: 91;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
}

.executor-feed__filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.executor-feed__filter-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.executor-feed__filter-modal-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--vp-color-text, #000);
}

.executor-feed__filter-modal .primary-form {
    max-width: 100%;
}

.executor-feed__filter-backdrop {
    position: fixed;
    z-index: 90;
    inset: 83px 0 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2.6px);
}

/* Owner update 2026-08-15: filter modal polish (lift 5px, centered titles, brand #003677, 160px category frame, E1E1E1 date frames, 130px submit) */
.executor-feed__filter-modal {
    padding-top: 27px; /* 1) content lifted 5px */
}

/* 2) title centered, close stays on the right */
.executor-feed__filter-modal-head {
    position: relative;
    justify-content: center;
}

.executor-feed__filter-modal-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 3) all blue accents -> brand #003677 */
.executor-feed__filter-modal .category-modal-btn,
.executor-feed__filter-modal .primary-form__btn {
    background: #003677;
    border-color: #003677;
}

.executor-feed__filter-modal .select-categories,
.executor-feed__filter-modal .primary-form__date-input {
    border-color: #003677;
}

/* 4) «Категория заказа» heading centered */
.executor-feed__filter-modal .primary-form__second-title {
    text-align: center;
}

/* 5) remove the (?) tooltip next to «Добавить категорию» */
.executor-feed__filter-modal .tooltip {
    display: none;
}

.executor-feed__filter-modal .tooltip-container {
    justify-content: center;
}

/* 6) date frames: E1E1E1 fill; empty state shows only the calendar icon */
.executor-feed__filter-modal .primary-form__date-input {
    background: #E1E1E1;
}

.executor-feed__filter-modal .primary-form__date-input:not(.primary-form__date-input--filled) {
    color: transparent;
}

.executor-feed__filter-modal .primary-form__date-input:not(.primary-form__date-input--filled)::-webkit-datetime-edit {
    color: transparent;
}

/* 7) submit button 130px wide, centered */
.executor-feed__filter-modal .primary-form__bottom-panel {
    display: flex;
    justify-content: center;
}

.executor-feed__filter-modal .primary-form__btn {
    width: 130px;
    min-width: 130px;
}

/* 8) category frame: 160px, centered text, custom arrow shifted 5px left, delete X right of the frame */
.executor-feed__filter-modal .select-categories__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.executor-feed__filter-modal .select-categories {
    width: 160px;
    min-width: 160px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background: #E1E1E1 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%23003677" stroke-width="1.5"/></svg>') no-repeat right 17px center;
    padding-right: 36px;
}

.executor-feed__filter-modal .select-categories__option {
    text-align: center;
}

.executor-feed__filter-modal .select-categories__delete-btn {
    position: static;
    flex: 0 0 auto;
}

.executor-feed__filter-modal .select-block {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.executor-feed__filter-modal .select-categories__checkbox-container {
    justify-content: center;
}

/* Owner update 2026-08-15 (pass 2): modal frame up 10px, category frame 220px, execution-date block down 5px */
.executor-feed__filter-modal {
    top: 100px;
}

.executor-feed__filter-modal .select-categories {
    width: 220px;
    min-width: 220px;
}

.executor-feed__filter-modal .primary-form__input-block--execution {
    margin-top: 5px;
}
