html[data-ui-mode="desktop"] .container {
    max-width: min(1520px, 94vw);
}

html[data-ui-mode="desktop"] main > section:not(#hero) {
    padding-top: clamp(74px, 8.5vw, 106px);
    padding-bottom: clamp(62px, 7.4vw, 88px);
}

html[data-ui-mode="desktop"] .section-title {
    max-width: none;
    line-height: 1.04;
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(2.12rem, 3.38vw, 3.72rem);
    letter-spacing: clamp(0.02em, 0.05vw, 0.035em);
}

html[data-ui-mode="desktop"] .section-subtitle {
    max-width: min(68ch, 100%);
    font-size: clamp(1.08rem, 1.14vw, 1.24rem);
    line-height: 1.68;
    letter-spacing: 0.004em;
    color: rgba(244, 241, 234, 0.76);
}

html[data-ui-mode="desktop"] #stories .story-text,
html[data-ui-mode="desktop"] #events .event-card p,
html[data-ui-mode="desktop"] #activities .activity-card p,
html[data-ui-mode="desktop"] #team .team-role,
html[data-ui-mode="desktop"] #founders .founder-role,
html[data-ui-mode="desktop"] .modal-bio-text,
html[data-ui-mode="desktop"] .event-modal-text {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    text-wrap: pretty;
}

html[data-ui-mode="desktop"] #site-header.site-header {
    height: 74px;
    background: rgba(9, 10, 9, 0.94);
    border-bottom-color: rgba(179, 135, 40, 0.24);
}

html[data-ui-mode="desktop"] #site-header .header-brand {
    max-width: min(600px, 44vw);
}

html[data-ui-mode="desktop"] #site-header .nav-list {
    gap: clamp(22px, 2.15vw, 34px);
}

html[data-ui-mode="desktop"] #site-header .nav-link {
    font-size: 0.92rem;
    letter-spacing: 0.055em;
    color: rgba(255, 255, 255, 0.78);
    padding: 5px 10px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
}

/* Active section pill — soft amber background instead of underline only */
html[data-ui-mode="desktop"] #site-header .nav-link.active {
    color: var(--color-gold-light);
    background: rgba(179, 135, 40, 0.14);
    box-shadow: inset 0 0 0 1px rgba(179, 135, 40, 0.26);
}

html[data-ui-mode="desktop"] #site-header .nav-link.active::after {
    display: none;
}

/* Segmented-control lang switcher */
html[data-ui-mode="desktop"] #site-header .header-lang {
    gap: 0;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(179, 135, 40, 0.22);
    border-radius: 22px;
}

html[data-ui-mode="desktop"] #site-header .lang-switch-btn {
    min-width: 38px;
    padding: 5px 13px;
    border: none;
    background: transparent;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.18s, color 0.18s;
    box-shadow: none;
}

html[data-ui-mode="desktop"] #site-header .lang-switch-btn:hover:not(.is-active) {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.07);
}

html[data-ui-mode="desktop"] #site-header .lang-switch-btn.is-active {
    background: rgba(179, 135, 40, 0.28);
    color: var(--color-gold-light);
    box-shadow: none;
    border-color: transparent;
}

html[data-ui-mode="desktop"] #hero .hero-content {
    max-width: min(1100px, 64vw);
    gap: 12px;
    position: relative;
}

html[data-ui-mode="desktop"] #hero .hero-main-title {
    font-size: clamp(3.25rem, 8.7vw, 6.1rem);
    line-height: 0.94;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72), 0 6px 18px rgba(0, 0, 0, 0.48), 0 0 1px rgba(0, 0, 0, 0.86);
    -webkit-text-stroke: 0.82px rgba(0, 0, 0, 0.78);
}

html[lang="en"][data-ui-mode="desktop"] #hero .hero-main-title {
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(2.9rem, 7.6vw, 5.45rem);
    letter-spacing: clamp(0.006em, 0.11vw, 0.02em);
}

html[data-ui-mode="desktop"] #hero .hero-gold-subtitle {
    max-width: fit-content;
    margin-bottom: 10px;
    letter-spacing: clamp(0.11em, 0.15vw, 0.17em);
    font-size: clamp(1.12rem, 1.16vw, 1.34rem);
    line-height: 1.16;
}

html[data-ui-mode="desktop"] #hero .hero-desc-content {
    max-width: none;
}

html[data-ui-mode="desktop"] #hero .hero-desc-text {
    max-width: none;
    font-size: clamp(1.24rem, 1.98vw, 2.16rem);
    line-height: 1.28;
    letter-spacing: 0.01em;
    white-space: normal;
    text-wrap: balance;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.46), 0 10px 30px rgba(0, 0, 0, 0.36), 0 0 20px rgba(0, 0, 0, 0.16);
    -webkit-text-stroke: 0.22px rgba(0, 0, 0, 0.25);
}

html[data-ui-mode="desktop"] #hero .hero-footer-text {
    max-width: none;
    font-size: clamp(0.98rem, 1.06vw, 1.24rem);
    line-height: 1.46;
    white-space: nowrap;
    text-wrap: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.48), 0 10px 24px rgba(0, 0, 0, 0.34), 0 0 18px rgba(0, 0, 0, 0.16);
    -webkit-text-stroke: 0.24px rgba(0, 0, 0, 0.27);
}

/* М'який halo позаду тексту без прямокутної плашки */
html[data-ui-mode="desktop"] #hero .hero-content::before {
    content: '';
    position: absolute;
    left: -130px;
    top: -72px;
    width: min(860px, 64vw);
    height: min(560px, 56vh);
    background: radial-gradient(
        ellipse at 32% 48%,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.28) 44%,
        rgba(0, 0, 0, 0.12) 68%,
        transparent 100%
    );
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

html[data-ui-mode="desktop"] #hero .mobile-break {
    display: none;
}

html[data-ui-mode="desktop"] #hero .btn-hero-activity {
    margin-top: 34px;
    min-height: 56px;
    padding-inline: 36px;
}

html[data-ui-mode="desktop"] #activities .activities-header,
html[data-ui-mode="desktop"] #stories .stories-header,
html[data-ui-mode="desktop"] #events .events-header-box,
html[data-ui-mode="desktop"] #team .team-header,
html[data-ui-mode="desktop"] #founders .founders-header,
html[data-ui-mode="desktop"] #partners .partners-header {
    margin-bottom: 56px;
}

html[data-ui-mode="desktop"] #activities .activities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    counter-reset: activity-index;
}

html[data-ui-mode="desktop"] #activities .activity-card {
    min-height: 320px;
    height: 100%;
    padding: 38px 30px 30px;
    border-radius: 20px;
    border-color: rgba(179, 135, 40, 0.24);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    counter-increment: activity-index;
    position: relative;
}

html[data-ui-mode="desktop"] #activities .activity-card:hover {
    transform: translateY(-8px) scale(1.006);
    border-color: rgba(252, 246, 186, 0.5);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
}

/* Мікро-індекс 01 / 02 / 03 … */
html[data-ui-mode="desktop"] #activities .activity-card::before {
    content: counter(activity-index, decimal-leading-zero);
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-family-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(179, 135, 40, 0.44);
    line-height: 1;
    pointer-events: none;
}

html[data-ui-mode="desktop"] #activities .activity-card h3 {
    font-size: clamp(1.3rem, 1.52vw, 1.62rem);
    line-height: 1.22;
    margin-bottom: 12px;
}

html[data-ui-mode="desktop"] #activities .activity-card p {
    font-size: clamp(1rem, 1.04vw, 1.08rem);
    line-height: 1.74;
    color: rgba(244, 241, 234, 0.8);
    flex: 1;
}

html[data-ui-mode="desktop"] #activities .activity-card-more {
    margin-top: auto;
    padding-top: 14px;
    align-self: flex-start;
}

html[data-ui-mode="desktop"] #activities .consult-banner {
    margin-top: 46px;
    min-height: 58px;
    max-width: 620px;
}

html[data-ui-mode="desktop"] #stats .stats-title-main {
    font-family: var(--font-family-display);
    font-size: clamp(2.12rem, 3.4vw, 3.52rem);
    letter-spacing: clamp(0.02em, 0.045vw, 0.034em);
}

html[data-ui-mode="desktop"] #stats .stats-dashboard {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-ui-mode="desktop"] #stats .stats-grid {
    max-width: 1320px;
    gap: clamp(14px, 1.8vw, 24px);
}

html[data-ui-mode="desktop"] #stats .stat-item {
    min-height: 158px;
    padding: 12px 10px;
}

/* Перші 2 — провідні метрики: більше число */
html[data-ui-mode="desktop"] #stats .stat-item:nth-child(1),
html[data-ui-mode="desktop"] #stats .stat-item:nth-child(2) {
    min-height: 188px;
}

html[data-ui-mode="desktop"] #stats .stat-item:nth-child(1) .stat-number,
html[data-ui-mode="desktop"] #stats .stat-item:nth-child(2) .stat-number {
    font-size: clamp(2.8rem, 4.4vw, 4.6rem);
    color: var(--color-gold-light);
}

html[data-ui-mode="desktop"] #stats .stat-item:nth-child(1) .stat-label,
html[data-ui-mode="desktop"] #stats .stat-item:nth-child(2) .stat-label {
    font-size: clamp(0.98rem, 1.02vw, 1.08rem);
    color: rgba(244, 241, 234, 0.86);
}

html[data-ui-mode="desktop"] #stats .stat-number {
    font-size: clamp(2.08rem, 3.25vw, 3.34rem);
    margin-bottom: 14px;
}

html[data-ui-mode="desktop"] #stats .stat-label {
    font-size: clamp(0.92rem, 0.95vw, 1.02rem);
    letter-spacing: 0.028em;
    line-height: 1.38;
    color: rgba(244, 241, 234, 0.74);
    min-height: 4.1em;
}

/* Підпис під блоком */
html[data-ui-mode="desktop"] #stats .stats-caption {
    text-align: center;
    margin-top: 28px;
    font-family: var(--font-family-ui);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.28);
}

html[data-ui-mode="desktop"] #stories .stories-container {
    max-width: 1080px;
    gap: 0;
}

/* hairline між подяками */
html[data-ui-mode="desktop"] #stories .story-bubble {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(179, 135, 40, 0.14);
}

html[data-ui-mode="desktop"] #stories .story-bubble:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

html[data-ui-mode="desktop"] #stories .story-text {
    font-family: 'Caveat', 'Segoe Script', cursive;
    font-size: clamp(1.72rem, 3vw, 2.28rem);
    line-height: 1.46;
    letter-spacing: 0.007em;
}

/* Чіткіший підпис автора */
html[data-ui-mode="desktop"] #stories .story-author {
    font-size: clamp(1.08rem, 1.24vw, 1.3rem);
    color: rgba(252, 246, 186, 0.92);
    font-weight: 700;
    letter-spacing: 0.02em;
}

html[data-ui-mode="desktop"] #stories .story-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

/* Signature-риска перед іменем автора */
html[data-ui-mode="desktop"] #stories .story-footer::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: rgba(179, 135, 40, 0.55);
    flex-shrink: 0;
}

html[data-ui-mode="desktop"] #stories .stories-action-area {
    margin-top: 54px;
    gap: 16px;
}

html[data-ui-mode="desktop"] #stories .btn-primary-gold,
html[data-ui-mode="desktop"] #stories .btn-archive {
    min-height: 54px;
    padding-inline: 34px;
}

html[data-ui-mode="desktop"] #team .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

html[data-ui-mode="desktop"] #team .team-card {
    max-width: none;
}

html[data-ui-mode="desktop"] #team .team-photo-wrap {
    width: 230px;
    max-width: 230px;
    height: 230px;
    border-radius: 50%;
    padding: 8px;
    border-width: 3px;
    border-color: var(--color-gold);
}

html[data-ui-mode="desktop"] #team .team-photo-wrap img {
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0.5);
}

html[data-ui-mode="desktop"] #team .team-card:hover {
    transform: translateY(-6px);
}

html[data-ui-mode="desktop"] #team .team-card:hover .team-photo-wrap {
    transform: scale(1.03);
}

/* Обмеження ширини ролей — не рвуть сітку */
html[data-ui-mode="desktop"] #team .team-role {
    max-width: 18ch;
    margin-inline: auto;
    overflow-wrap: break-word;
    hyphens: auto;
}

html[data-ui-mode="desktop"] #team .team-name,
html[data-ui-mode="desktop"] #founders .founder-name {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

html[data-ui-mode="desktop"] #events .events-header-box {
    max-width: min(1140px, 100%);
    margin-left: auto;
    margin-right: auto;
}

html[data-ui-mode="desktop"] #events .events-main-title {
    max-width: none;
    margin-inline: auto;
    white-space: nowrap;
    text-wrap: nowrap;
}

/* Featured + secondary layout: перша картка займає всю ширину першого ряду */
html[data-ui-mode="desktop"] #events .events-grid {
    max-width: 1320px;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
}

/* Чітка геометрія карток, щоб межі добре читались */
html[data-ui-mode="desktop"] #events .event-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(179, 135, 40, 0.2);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    align-content: start;
    row-gap: 10px;
    column-gap: 28px;
    min-height: 318px;
    padding: 24px 28px;
    text-align: left;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(1) .event-card-cover {
    grid-row: 1 / 4;
    grid-column: 1;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 12px;
    aspect-ratio: 16/9;
    padding: 0;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(1) .event-date-tag {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: clamp(0.8rem, 0.88vw, 0.94rem);
    color: var(--color-gold-light);
    opacity: 0.82;
    margin: 0;
    letter-spacing: 0.045em;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(1) h3 {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    font-size: clamp(1.52rem, 2.02vw, 2.1rem);
    line-height: 1.16;
    color: rgba(244, 241, 234, 1);
    margin: 0;
    max-width: 22ch;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(1) p {
    grid-column: 2;
    grid-row: 3;
    text-align: left;
    font-size: clamp(0.96rem, 1.01vw, 1.06rem);
    line-height: 1.58;
    color: rgba(244, 241, 234, 0.74);
    margin: 0;
    max-width: 50ch;
}

/* Secondary картки (2, 3) — стандартний розмір, приглушеніший title */
html[data-ui-mode="desktop"] #events .event-card:nth-child(n+2) {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(210px, 42%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    align-content: start;
    column-gap: 18px;
    row-gap: 8px;
    padding: 14px;
    text-align: left;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(n+2) .event-card-cover {
    object-fit: contain;
    object-position: center center;
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100%;
    min-height: 168px;
    padding: 6px;
    border-radius: 10px;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(n+2) h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(1.16rem, 1.44vw, 1.54rem);
    line-height: 1.2;
    color: rgba(244, 241, 234, 0.88);
    max-inline-size: none;
    margin: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: pretty;
    max-width: 18ch;
    text-align: left;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(n+2) .event-date-tag {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(0.74rem, 0.8vw, 0.86rem);
    color: rgba(252, 246, 186, 0.66);
    letter-spacing: 0.04em;
    margin: 0;
    text-align: left;
}

html[data-ui-mode="desktop"] #events .event-card:nth-child(n+2) p {
    grid-column: 2;
    grid-row: 3;
    max-inline-size: none;
    margin: 0;
    line-height: 1.58;
    color: rgba(244, 241, 234, 0.62);
    max-width: 28ch;
    text-align: left;
}

html[data-ui-mode="desktop"] #events .event-date-tag {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

html[data-ui-mode="desktop"] #events .event-card h3.event-title--date-range {
    font-size: clamp(1.18rem, 1.4vw, 1.38rem);
    line-height: 1.12;
    max-inline-size: none;
}

html[data-ui-mode="desktop"] #btn-load-more-events.btn-live-gold {
    min-height: 52px;
    padding-inline: 34px;
}

html[data-ui-mode="desktop"] #partners .partners-carousel-wrap,
html[data-ui-mode="desktop"] .global-ticker {
    width: 100%;
}

html[data-ui-mode="desktop"] #partners .partners-track {
    --partners-duration: 52s;
}

html[data-ui-mode="desktop"] #partners .partner-card {
    width: 300px;
    height: 172px;
    border-radius: 22px;
    margin-inline: 18px;
    position: relative;
    overflow: visible;
}

/* Оптичне вирівнювання — логотип з padding для балансу */
html[data-ui-mode="desktop"] #partners .partner-card img {
    padding: 20px 26px;
    object-fit: contain;
}

html[data-ui-mode="desktop"] #partners .partner-card:hover {
    transform: translateY(-6px) scale(1.015);
}

html[data-ui-mode="desktop"] #founders .founders-grid {
    gap: 28px;
    align-items: start;
}

html[data-ui-mode="desktop"] #founders .founders-title {
    animation: none;
    background: none;
    color: #f4f1ea;
}

html[data-ui-mode="desktop"] #founders .founder-card:hover {
    transform: translateY(-8px);
}

html[data-ui-mode="desktop"] #founders .founder-photo-wrap {
    border-width: 1px;
    border-color: rgba(179, 135, 40, 0.3);
}

/* Крупніше ім'я */
html[data-ui-mode="desktop"] #founders .founder-name {
    font-size: clamp(1.18rem, 1.35vw, 1.46rem);
    line-height: 1.22;
    letter-spacing: 0.005em;
    color: rgba(244, 241, 234, 1);
}

/* Спокійніший role */
html[data-ui-mode="desktop"] #founders .founder-role {
    font-size: clamp(0.82rem, 0.86vw, 0.94rem);
    color: rgba(179, 135, 40, 0.72);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

/* One-line principle */
html[data-ui-mode="desktop"] #founders .founder-principle {
    font-family: var(--font-family-text);
    font-size: clamp(0.78rem, 0.82vw, 0.88rem);
    line-height: 1.46;
    color: rgba(244, 241, 234, 0.44);
    margin-top: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    padding-inline: 4px;
}

html[data-ui-mode="desktop"] #founders .founder-card:hover .founder-photo-wrap {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(179, 135, 40, 0.26);
}

html[data-ui-mode="desktop"] #founders .founder-role {
    letter-spacing: 0.06em;
}

html[data-ui-mode="desktop"] .modal-overlay .modal-content {
    max-width: var(--modal-max-width);
}

/* ─── §10 PREMIUM LAYER: єдина hover/active/focus система ─── */

/* Усі кнопки та інтерактивні картки — спільний focus-visible ring */
html[data-ui-mode="desktop"] button:focus-visible,
html[data-ui-mode="desktop"] a:focus-visible,
html[data-ui-mode="desktop"] [tabindex="0"]:focus-visible {
    outline: 2px solid rgba(252, 246, 186, 0.82);
    outline-offset: 3px;
    border-radius: 6px;
}

html[data-ui-mode="desktop"] .team-card:focus-visible,
html[data-ui-mode="desktop"] .founder-card:focus-visible,
html[data-ui-mode="desktop"] .event-card:focus-visible,
html[data-ui-mode="desktop"] .activity-card:focus-visible {
    outline-offset: 4px;
    border-radius: 18px;
}

/* Active-стан — легке заглиблення для кнопок */
html[data-ui-mode="desktop"] button:active,
html[data-ui-mode="desktop"] .btn-primary-gold:active,
html[data-ui-mode="desktop"] .btn-archive:active,
html[data-ui-mode="desktop"] .btn-live-gold:active {
    transform: translateY(1px) scale(0.994);
    transition-duration: 0.06s;
}

/* Плавний hover-transition для карток (уніфікований) */
html[data-ui-mode="desktop"] .activity-card,
html[data-ui-mode="desktop"] .team-card,
html[data-ui-mode="desktop"] .founder-card,
html[data-ui-mode="desktop"] .event-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}