/* Стили темы Института. Значения перенесены из утверждённого макета без изменений. */

:root {
    --green: #055649;
    --green-deep: #03453b;
    --ink: #111111;
    --soft: #5c5c5c;
    --rule: #e4e4ea;
    --tint: #F5F5F9;
    --paper: #ffffff;
    --wm: #1D5C4A0F;
    --gold: #B79A4B;
    --gold-soft: #E6DCBE;
    --band: #F5F5F9;
    --band-ink: #055649;
    --band-ink-text: #D6E5DE;
    --band-ink-head: #F3F7F5;
    --band-ink-rule: #2C5648;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'GothamPro-Light', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.ink-defs {
    position: absolute;
}

/* ШАПКА */
header {
    position: sticky;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    z-index: 10;
}

.head-in {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    transition: padding .2s;
}

header.tight .head-in {
    padding: 6px 20px;
}

header.tight .mark-text {
    display: none;
}

.head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-inst {
    display: block;
    width: auto;
    height: auto;
}

.logo-inst--h {
    height: 44px;
    width: auto;
}

.logo-inst--v {
    width: min(340px, 100%);
    height: auto;
}

.mark-tree {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mark-tree--on-dark {
    filter: brightness(0) invert(1);
}

.mark--institute .mark-tree {
    width: 36px;
    height: 36px;
}

.mark-text {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    line-height: 1.08;
    font-size: 10.5px;
    letter-spacing: .26em;
}

.mark-text b {
    display: block;
    font-size: 13px;
    letter-spacing: .06em;
    font-weight: 700;
}

.mark-text-sub {
    letter-spacing: .1em;
    font-size: 10px;
}

.mark-ext {
    font-family: 'GothamPro-Medium', Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--green);
    padding: 8px 16px;
    line-height: 1.2;
}

.mark-ext:hover,
.mark-ext:focus-visible {
    background: var(--green);
    color: #fff;
    outline: none;
}

nav {
    display: flex;
    gap: 22px;
}

nav a {
    color: #111;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

nav a:hover,
nav a:focus-visible {
    border-bottom: 1px solid var(--green);
    outline: none;
}

@media(max-width:640px) {
    nav {
        display: none;
    }
}

/* ОБЩЕЕ */
main {
    max-width: none;
    margin: 0;
    padding: 0;
}

section {
    padding: 72px max(24px, calc(50% - 700px)) 56px;
    position: relative;
}

.tone-paper {
    background: var(--paper);
}

.tone-tint {
    background: var(--band);
    box-shadow: inset 0 1px 0 rgba(29, 92, 74, .06);
}

.tone-ink {
    background-color: var(--band-ink);
    color: var(--band-ink-text);
    overflow: hidden;
}

.tone-ink::after {
    content: "";
    position: absolute;
    right: max(-80px, calc(50% - 520px));
    bottom: -90px;
    width: 380px;
    height: 380px;
    background: url("../img/tree-mark.png") center / contain no-repeat;
    opacity: .07;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.tone-ink h2 {
    color: var(--band-ink-head);
}

.tone-ink .eyebrow {
    color: #8AA89A;
}

.tone-ink .eyebrow::after {
    background: var(--band-ink-rule);
}

.tone-ink p {
    color: var(--band-ink-text);
}

.tone-ink a,
.tone-ink .link-green {
    color: var(--gold-soft);
}

.tone-ink .charter {
    background: var(--paper);
    position: relative;
    z-index: 1;
}

.tone-ink .doc {
    border-color: var(--band-ink-rule);
}

.tone-ink .doc i {
    color: #C5D6CC;
}

.tone-ink .doc span {
    color: var(--band-ink-head);
}

.tone-ink .stamp-box {
    z-index: 1;
}

.eyebrow {
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.eyebrow--spaced {
    margin-top: 40px;
}

h2 {
    font-family: 'GothamPro-Medium', Arial, sans-serif;
    font-weight: 500;
    color: var(--green);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    margin-bottom: 18px;
}

p {
    margin-bottom: 16px;
    max-width: none;
}

.link-green {
    color: var(--green);
}

/* ГЕРОЙ: дерево из логотипа за локапом */
.hero {
    padding: 72px max(24px, calc(50% - 700px)) 48px;
    overflow: visible;
}

.hero-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

@media (max-width: 900px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .logo-inst--v {
        width: min(260px, 72%);
    }
}

.hero-tree {
    position: absolute;
    right: -80px;
    top: -70px;
    width: 520px;
    height: 520px;
    pointer-events: none;
    z-index: 0;
}

.hero-tree__img,
.hero-tree .mark-tree {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media(max-width:760px) {
    .hero-tree {
        width: 280px;
        height: 280px;
        right: -40px;
        top: -20px;
    }
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.split:has(.split-photo) {
    grid-template-columns: 1.15fr .85fr;
}

.split-photo {
    margin: 8px 0 14px;
}

.split-photo img,
.main .split-photo img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--rule);
    box-shadow: 4px 4px 0 var(--rule);
}

@media(max-width:700px) {
    .split:has(.split-photo) {
        grid-template-columns: 1fr;
    }
}

.hero-lockup {
    position: relative;
    z-index: 1;
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    line-height: 1.04;
    margin-bottom: 30px;
    /* Локап — это h1, поэтому жирность сбрасывается: её задают сами строки. */
    font-weight: 400;
}

.hero-lockup .l1 {
    font-size: clamp(15px,2.6vw,20px);
    letter-spacing: .44em;
    display: block;
}

.hero-lockup .l2 {
    font-size: clamp(46px,9.5vw,88px);
    font-weight: 700;
    display: block;
    margin: 6px 0 2px;
}

.hero-lockup .l3 {
    font-size: clamp(21px,4.3vw,40px);
    letter-spacing: .12em;
    display: block;
}

.hero-rule {
    height: 1px;
    background: var(--green);
    max-width: 540px;
    margin: 22px 0 26px;
    position: relative;
    z-index: 1;
}

.hero-h2 {
    font-size: clamp(21px, 3.6vw, 27px);
    margin-bottom: 14px;
}

.hero p {
    position: relative;
    z-index: 1;
}

.hero .lead {
    font-size: 19px;
    max-width: 56ch;
}

.hero .fact {
    font-size: 15px;
    color: var(--soft);
    font-style: italic;
}

.est {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11.5px;
    letter-spacing: .22em;
    color: var(--soft);
    margin-top: 26px;
    position: relative;
    z-index: 1;
}

/* ПРОБЛЕМА: словарные статьи — у слова несколько значений, настоящее одно */
.dict {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: 6px 0 26px;
}

.entry {
    padding: 18px 0;
}

.entry + .entry {
    border-top: 1px dotted var(--rule);
}

.entry .word {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    font-size: clamp(19px, 3.4vw, 26px);
    color: var(--green);
    letter-spacing: .04em;
    display: block;
    margin-bottom: 6px;
}

.entry .word i {
    font-style: italic;
    font-weight: 400;
    font-size: .6em;
    color: #9FB4AB;
    letter-spacing: 0;
}

.entry .m {
    font-size: 15.5px;
    color: #93A69D;
    display: block;
    padding-left: 26px;
    position: relative;
    line-height: 1.6;
}

.entry .m i {
    font-style: italic;
    font-family: 'Old Standard TT',serif;
    position: absolute;
    left: 0;
    color: #B5C5BD;
}

.entry .m.true {
    color: var(--green);
    font-weight: 700;
}

.entry .m.true i {
    color: var(--green);
    font-weight: 400;
}

/* ИНСТИТУТ: пять оттисков */
.seals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
    margin: 22px 0 18px;
}

.seal {
    width: 156px;
    height: 156px;
    flex: 0 0 156px;
    border: 1.5px solid var(--green);
    background: #fff;
    filter: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
}

.seal b {
    font-family: 'GothamPro-Medium', Arial, sans-serif;
    color: var(--green);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .04em;
}

.seal span {
    font-size: 13px;
    color: #3d3d3d;
    text-align: center;
    line-height: 1.25;
}

@media(max-width:440px) {
    .seals {
        gap: 12px;
    }

    .seal {
        width: calc(50% - 8px);
        height: auto;
        aspect-ratio: 1;
        flex: 0 0 calc(50% - 8px);
    }
}

/* МЕТОД: таблица на всю ширину, шрифт не масштабируется */
.plate-frame {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 28px 48px;
    align-items: center;
    border: 1px solid #C4D6CD;
    padding: 28px 32px 18px;
    margin: 26px 0 8px;
}

.plate-caption {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 18px;
}

.plate-tree {
    width: 148px;
    height: 148px;
    object-fit: contain;
    display: block;
    margin-bottom: 18px;
}

.plate-result {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--ink);
}

.plate-frame .plate {
    display: block;
    margin: 0;
}

.plate-footer {
    text-align: right;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9AA8A1;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .plate-frame {
        grid-template-columns: 1fr;
        padding: 22px 18px 16px;
    }

    .plate-tree {
        width: 96px;
        height: 96px;
    }
}

.plate-svg {
    display: none;
}

.plate {
    position: relative;
    margin: 30px 0 22px;
    padding-left: 34px;
}

.plate::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: var(--green);
}

.pl-item {
    position: relative;
    padding: 12px 0 12px 26px;
}

.pl-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 26px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--green);
}

.pl-item::after {
    content: "";
    position: absolute;
    left: -16px;
    top: 30px;
    width: 40px;
    height: 1px;
    background: var(--rule);
}

.pl-item .rn {
    font-family: 'Old Standard TT',serif;
    color: #9FB4AB;
    font-size: 14px;
    letter-spacing: .1em;
    display: block;
}

.pl-item b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.pl-item span {
    font-size: 14.5px;
    color: var(--soft);
}

.canon {
    border: 1px solid var(--green);
    outline: 1px solid var(--rule);
    outline-offset: 3px;
    padding: 20px 22px;
    margin: 26px 0 14px;
    position: relative;
}

.canon .stamp {
    position: absolute;
    top: -11px;
    right: 16px;
    background: var(--paper);
    padding: 0 10px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--green);
}

.tone-tint .canon .stamp {
    background: var(--band);
}

.canon p {
    margin: 0;
    font-size: 15.5px;
}

/* ПРИНЦИПЫ: римские инициалы */
.prin {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    margin-bottom: 26px;
    align-items: start;
}

.prin .num {
    font-family: 'Old Standard TT',serif;
    font-size: 52px;
    line-height: 1;
    color: #D7E4DD;
    font-weight: 700;
    text-align: center;
}

.prin b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 19px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.prin p {
    margin: 0;
    font-size: 16px;
}


/* ПРОФЕССИЯ: четыре грани */
.facets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--rule);
    margin: 8px 0 18px;
}

.facet {
    padding: 20px 22px;
}

.facet:nth-child(2) {
    border-left: 1px solid var(--rule);
}

.facet:nth-child(3) {
    border-top: 1px solid var(--rule);
}

.facet:nth-child(4) {
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.facet b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.facet p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink);
}

@media(max-width:600px) {
    .facets {
        grid-template-columns: 1fr;
    }

    .facet {
        border-left: none !important;
    }

    .facet:nth-child(n+2) {
        border-top: 1px solid var(--rule);
    }
}

/* СХЕМА ДЛИТЕЛЬНОСТИ ПРОГРАММЫ */
.tl {
    margin: 26px 0 10px;
}

.tl-ruler {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--soft);
    margin-bottom: 6px;
}

.tl-track {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.tl-stage {
    display: flex;
    flex-direction: column;
}

.tl-stage.s1 {
    flex: 6;
}

.tl-stage.s2 {
    flex: 15;
}

.tl-stage-label {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 8px;
    white-space: nowrap;
}

.tl-stage-label i {
    font-family: 'IBM Plex Mono',monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    color: var(--soft);
    letter-spacing: .08em;
    margin-left: 8px;
}

.tl-blocks {
    display: flex;
    gap: 4px;
    flex: 1;
}

.tl-block {
    flex: 1;
    border: 1px solid var(--green);
    background: var(--tint);
    padding: 10px 8px 8px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tl-block b {
    font-family: 'PT Sans',sans-serif;
    font-size: 12.5px;
    color: var(--green);
    line-height: 1.25;
    display: block;
}

.tl-block i {
    font-family: 'IBM Plex Mono',monospace;
    font-style: normal;
    font-size: 11px;
    color: var(--soft);
    display: block;
    margin-top: 8px;
}

.tl-block .n {
    font-family: 'Old Standard TT',serif;
    font-size: 12px;
    color: #9FB4AB;
    display: block;
    margin-bottom: 3px;
}

.tl-exam {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--green);
}

.tl-exam::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex: 0 0 10px;
}

.tl-legend {
    margin-top: 18px;
    font-size: 14px;
    color: var(--soft);
}

.tl-legend b {
    color: var(--green);
    font-weight: 700;
}

@media(max-width:760px) {
    .tl-ruler {
        display: none;
    }

    .tl-track {
        flex-direction: column;
        gap: 18px;
    }

    .tl-stage-label {
        white-space: normal;
    }

    .tl-blocks {
        flex-direction: column;
        gap: 6px;
    }

    .tl-block {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .tl-block i {
        margin-top: 0;
        white-space: nowrap;
    }

    .tl-block .n {
        display: inline;
        margin: 0 8px 0 0;
    }
}

/* Золотая обводка финальной ступени */
.tl-block.gold {
    border: 1.5px solid var(--gold);
    outline: 1px solid var(--gold-soft);
    outline-offset: 2px;
    background: #FBF8EE;
}

.tl-block.gold .n,
.tl-block.gold b {
    color: #8A7230;
}

/* Раскрытие содержания блока */
.tl-block {
    position: relative;
    cursor: pointer;
}

.tl-block:hover {
    background: #E9F0EC;
}

.tl-detail {
    display: none;
    background: var(--paper);
    border: 1px solid var(--green);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    text-align: left;
}

.tl-detail b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.tl-detail ul {
    margin: 0 0 8px 16px;
    padding: 0;
}

.tl-detail li {
    margin: 2px 0;
}

.tl-detail .pass {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    color: var(--green);
    letter-spacing: .04em;
    border-top: 1px dotted var(--rule);
    padding-top: 6px;
}

.tl-block.open .tl-detail {
    display: block;
}

@media(hover:hover) and (min-width:761px) {
    .tl-detail {
        position: absolute;
        left: 0;
        top: calc(100% + 6px);
        width: 300px;
        z-index: 20;
        box-shadow: 4px 4px 0 var(--rule);
    }

    .tl-block:hover .tl-detail {
        display: block;
    }

    .tl-stage.s2 .tl-block:nth-last-child(-n+2) .tl-detail {
        left: auto;
        right: 0;
    }
}

@media(max-width:760px) {
    .tl-block {
        flex-wrap: wrap;
    }

    .tl-detail {
        flex-basis: 100%;
        margin-top: 10px;
        border: none;
        border-top: 1px solid var(--rule);
        padding: 10px 0 0;
    }
}

.tl-hint {
    font-family: 'GothamPro-Light', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--soft);
    margin-bottom: 10px;
}


/* ВЫГОДЫ */
.lead-in {
    font-family: 'GothamPro-Medium', Arial, sans-serif;
    font-size: clamp(19px, 3.4vw, 25px);
    color: var(--green);
    line-height: 1.35;
    max-width: 32ch;
    margin-bottom: 26px;
}

.seals button {
    font: inherit;
    cursor: pointer;
}

.seal.active {
    background: var(--green);
}

.seal.active b,
.seal.active span {
    color: #fff;
}

.seal:hover:not(.active) {
    background: #fff;
}

.spanel {
    display: none;
    padding: 6px 0 4px;
}

.spanel.active {
    display: block;
}

.spanel .fn {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 60ch;
}

.spanel ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.spanel li {
    margin: 6px 0;
    font-size: 15.5px;
    max-width: 64ch;
}

.spanel .dev {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--soft);
    margin-left: 6px;
}

/* ПРОГРАММА: две ступени коротко */
.stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 14px 0 26px;
}

@media(max-width:600px) {
    .stages {
        grid-template-columns: 1fr;
    }
}

.stage {
    border: 1px solid var(--green);
    background: var(--tint);
    padding: 18px 20px;
}

.stage b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
}

.stage p {
    margin: 0;
    font-size: 15px;
}

/* КАК ПОПАСТЬ: единственный инвертированный блок страницы */
.apply {
    background: var(--green-deep);
    color: #EAF2EE;
    padding: 36px 40px;
    margin-top: 44px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    column-gap: 48px;
    align-items: start;
}

.apply .wm {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 240px;
    height: 240px;
    object-fit: contain;
    opacity: .10;
}

.apply>*:not(.wm) {
    position: relative;
}

.apply h3 {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    font-size: clamp(21px,3.6vw,27px);
    color: #fff;
    margin-bottom: 14px;
}

.apply p {
    color: #D6E5DE;
    font-size: 16px;
    margin-bottom: 12px;
    max-width: 60ch;
}

.apply p b {
    color: #fff;
}

.apply .mail {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 16px;
    display: block;
    margin-top: 16px;
}

.apply .mail a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #5E8A7B;
}

/* КОДЕКС: грамота */
.charter-seal {
    text-align: center;
    margin: -4px 0 14px;
    opacity: .85;
}

.charter-seal .mark-tree {
    margin: 0 auto;
    width: 46px;
    height: 46px;
}

.charter {
    border: 1px solid var(--green);
    outline: 1px solid var(--rule);
    outline-offset: 4px;
    padding: 26px 26px 20px;
    margin: 10px 0 14px;
}

.charter ol {
    list-style: none;
    margin: 0 0 12px;
}

.charter li {
    padding: 10px 0 10px 44px;
    position: relative;
    border-top: 1px dotted var(--rule);
}

.charter li:first-child {
    border-top: none;
}

.charter li i {
    position: absolute;
    left: 0;
    top: 10px;
    font-family: 'Old Standard TT',serif;
    font-style: normal;
    color: var(--green);
    font-size: 16px;
    width: 34px;
}

.charter li b {
    display: block;
    font-size: 15.5px;
    color: var(--green);
    font-family: 'PT Sans',sans-serif;
}

.charter li span {
    font-size: 14px;
    color: var(--soft);
}

.charter .more {
    font-size: 14px;
    color: var(--soft);
    font-style: italic;
}

.charter .foot {
    border-top: 1px solid var(--rule);
    margin-top: 12px;
    padding-top: 12px;
    font-size: 14px;
    color: var(--ink);
}

/* РЕЕСТР */
.reg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 10px 0 14px;
}

@media(max-width:600px) {
    .reg {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.card .wm {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: .12;
}

.photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--tint);
    border: 1px solid var(--rule);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9AA8A1;
    text-align: center;
    overflow: hidden;
}

.card b {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 17px;
    display: block;
    position: relative;
}

.card .role {
    font-size: 14px;
    color: var(--soft);
    margin: 2px 0 8px;
    position: relative;
}

.card .status {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    color: var(--green);
    position: relative;
}

.registry-note {
    font-size: 14.5px;
    color: var(--soft);
}

/* ИССЛЕДОВАНИЯ: мокап выпуска */
.research {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--tint);
    padding: 24px;
    margin: 8px 0 14px;
}

.issue {
    flex: 0 0 120px;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 3px 3px 0 var(--rule);
    padding: 12px 10px;
    font-family: 'Old Standard TT',serif;
    color: var(--green);
}

.issue .it {
    font-size: 8.5px;
    letter-spacing: .2em;
    line-height: 1.3;
}

.issue .ib {
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
    line-height: 1.2;
}

.issue .no {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 9px;
    color: var(--soft);
    margin-top: 16px;
}

.research p {
    margin-bottom: 8px;
    font-size: 15.5px;
}

.research .where {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12.5px;
    color: var(--green);
}

@media(max-width:560px) {
    .research {
        flex-direction: column;
    }
}

/* ДЛЯ КОМПАНИЙ */
.zone .dict {
    border-color: #D6E3DC;
}

/* ДОКУМЕНТЫ */
.stamp-box {
    position: absolute;
    right: 0;
    top: -18px;
    transform: rotate(-6deg);
    border: 1.5px solid var(--green);
    color: var(--green);
    font-family: 'IBM Plex Mono',monospace;
    font-size: 10.5px;
    letter-spacing: .18em;
    padding: 5px 10px;
    opacity: .7;
    filter: url(#ink);
    background: var(--paper);
}

.docs {
    margin: 10px 0 14px;
    position: relative;
}

.doc {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    align-items: baseline;
}

.doc:last-child {
    border-bottom: 1px solid var(--rule);
}

.doc i {
    font-family: 'IBM Plex Mono',monospace;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--green);
}

.doc span {
    font-size: 15px;
}

@media(max-width:560px) {
    .doc {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* КНИГА / ОСНОВАТЕЛЬ */
.book {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    margin: 8px 0 14px;
}

.cover {
    flex: 0 0 148px;
    height: 228px;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 4px 4px 0 var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9AA8A1;
    text-align: center;
    padding: 8px;
    overflow: hidden;
}

.founder {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 8px 0 14px;
}

.fphoto {
    flex: 0 0 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--tint);
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9AA8A1;
    text-align: center;
}

/* ПОДВАЛ */
footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    margin-top: 0;
    padding: 28px max(24px, calc(50% - 700px)) 44px;
    position: relative;
    overflow: hidden;
}

.foot-in {
    max-width: none;
    margin: 0;
    font-family: 'GothamPro-Light', Arial, sans-serif;
    font-size: 15px;
    color: var(--soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    position: relative;
}

.foot-in a {
    color: var(--green);
    text-decoration: none;
}

/* СЛУЖЕБНЫЕ СТРАНИЦЫ */
.main--page {
    padding-bottom: 80px;
}

.page-title {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    color: var(--green);
    font-size: clamp(26px,5vw,36px);
    line-height: 1.2;
    margin-bottom: 18px;
}

.page-content {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
}

.page-content h2,
.page-content h3 {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    color: var(--green);
}

.page-content h2 {
    margin-bottom: 18px;
}

.page-content h3 {
    font-size: clamp(21px,3.6vw,27px);
    margin-bottom: 14px;
}

.page-content p {
    margin-bottom: 16px;
    max-width: 64ch;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.page-content li {
    margin: 6px 0;
}

.page-content a {
    color: var(--green);
    text-decoration: underline;
}

.page-content strong {
    font-weight: 700;
}

.page-content table {
    border-collapse: collapse;
    border: 1px solid var(--rule);
    margin-bottom: 16px;
}

.page-content th,
.page-content td {
    border: 1px solid var(--rule);
    padding: 8px 12px;
}

.link-arrow {
    color: var(--green);
    text-decoration: none;
}

.link-arrow:hover {
    border-bottom: 1px solid var(--green);
}

/* ─────────────────────────────────────────────────────────────────────
   ДОБАВЛЕННОЕ СВЕРХ МАКЕТА
   Этих элементов в прототипе не было: мобильное меню, попап с формой,
   плашка cookies, виджет мессенджеров, расширенный подвал. Оформление
   держится языка макета: тонкие линии, прямые углы, служебный текст
   моноширинным в верхнем регистре, палитра только из :root.
   ───────────────────────────────────────────────────────────────────── */

/* Попап, плашка cookies и список мессенджеров скрыты атрибутом hidden, а их
   собственный display:flex этот атрибут перебивает. Возвращаем ему силу. */
[hidden] {
    display: none !important;
}

/* Дерево первого экрана выходит за колонку. На узких экранах лишнее
   обрезается по краю окна, чтобы не было горизонтальной прокрутки.
   clip, в отличие от hidden, не ломает липкую шапку. */
html {
    overflow-x: clip;
}

/* Липкая шапка перекрывает якоря, поэтому цели отступают под неё. */
section[id],
main[id] {
    scroll-margin-top: 86px;
}

/* ── Кнопка ── */
.btn-outline {
    display: inline-block;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: transparent;
    border: 1px solid var(--green);
    padding: 12px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--green);
    color: var(--paper);
    outline: none;
}

/* ── Бургер ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 1.5px;
    width: 22px;
    margin: 0 auto;
    background: var(--green);
    transition: transform .2s, opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Мобильное меню ── */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,69,55,.4);
    z-index: 40;
}

.mmenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px,86vw);
    background: var(--paper);
    border-left: 1px solid var(--rule);
    z-index: 50;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateX(100%);
    transition: transform .24s ease;
    overflow-y: auto;
}

.mmenu.open {
    transform: translateX(0);
}

.mmenu__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mmenu__title {
    font-family: 'Old Standard TT',serif;
    color: var(--green);
    font-size: 15px;
    line-height: 1.2;
    max-width: 22ch;
}

.mmenu__close {
    background: transparent;
    border: none;
    color: var(--soft);
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}

.mmenu__nav {
    display: flex;
    flex-direction: column;
}

.mmenu__nav a {
    color: var(--green);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 13px 0;
    border-bottom: 1px dotted var(--rule);
}

.mmenu__rule {
    border-top: 1px solid var(--rule);
}

.mmenu__ext,
.mmenu__mail {
    font-family: 'GothamPro-Medium', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--green);
    text-decoration: none;
}

.mmenu__mail {
    color: var(--green);
}

.mmenu__cta {
    margin-top: auto;
    text-align: center;
}

/* ── Попап с формой ── */
.popup {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,69,55,.45);
}

.popup__box {
    position: relative;
    width: min(480px,100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--green);
    outline: 1px solid var(--rule);
    outline-offset: 4px;
    padding: 30px 28px 26px;
}

.popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--soft);
    font-size: 17px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
}

.popup__title {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    color: var(--green);
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
    padding-right: 24px;
}

.popup__subtitle {
    font-size: 15px;
    color: var(--soft);
    margin-bottom: 18px;
}

.popup__stub {
    font-size: 14px;
    color: var(--soft);
    font-style: italic;
}

/* ── Плашка cookies ── */
.cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie__text {
    font-size: 14px;
    color: var(--soft);
    max-width: 62ch;
    margin: 0;
}

.cookie__text a {
    color: var(--green);
}

.cookie__accept {
    padding: 9px 18px;
    font-size: 11px;
    flex: 0 0 auto;
}

/* ── Виджет мессенджеров ── */
.wgt {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

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

.wgt__item,
.wgt__toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    background: var(--paper);
    color: var(--green);
    cursor: pointer;
    transition: background .18s, color .18s;
}

.wgt__toggle {
    background: var(--green);
    color: var(--paper);
}

.wgt__item svg,
.wgt__toggle svg {
    width: 21px;
    height: 21px;
}

.wgt__item:hover,
.wgt__item:focus-visible {
    background: var(--green);
    color: var(--paper);
    outline: none;
}

.wgt__toggle:hover,
.wgt__toggle:focus-visible {
    background: var(--green-deep);
    outline: none;
}

/* Плашка cookies стоит внизу, виджет уходит выше, чтобы не перекрывались. */
body.has-cookie .wgt {
    bottom: 104px;
}

/* ── Подвал: строки ── */
.foot-row {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.foot-row--main {
    justify-content: space-between;
    align-items: baseline;
}

.foot-row--legal {
    border-top: 1px dotted var(--rule);
    padding-top: 12px;
    gap: 8px 18px;
}

.foot-row--legal a {
    color: var(--soft);
}

.foot-row--legal a:hover {
    color: var(--green);
}

.foot-row--copy {
    color: #9AA8A1;
    font-size: 13px;
}

/* ── Снимки в кружках и обложка книги ── */
.photo img,
.fphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* ── Форма Contact Form 7 ── */
.wpcf7 form .wpcf7-response-output {
    border: 1px solid var(--rule);
    padding: 10px 14px;
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--ink);
}

.wpcf7-form p {
    margin-bottom: 12px;
}

.wpcf7-form label {
    display: block;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    font-family: 'PT Sans',system-ui,sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 11px 13px;
    transition: border-color .18s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--green);
    outline: none;
}

.wpcf7-form textarea {
    min-height: 96px;
    resize: vertical;
}

.wpcf7-form .wpcf7-submit {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--green);
    border: 1px solid var(--green);
    padding: 13px 24px;
    cursor: pointer;
    transition: background .18s;
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--green-deep);
}

.wpcf7-form .wpcf7-list-item {
    margin: 0;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-family: 'PT Sans',system-ui,sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--soft);
}

.wpcf7-form .wpcf7-acceptance a {
    color: var(--green);
}

.wpcf7-form .wpcf7-not-valid-tip {
    font-size: 12.5px;
    color: #A6453B;
    margin-top: 4px;
}

/* ── Та же форма на тёмном блоке «Как попасть» ── */
.apply-copy {
    min-width: 0;
}

.apply-form {
    border-top: none;
    border-left: 1px solid #3C6B5C;
    margin-top: 0;
    padding-top: 0;
    padding-left: 40px;
    max-width: none;
}

@media (max-width: 860px) {
    .apply {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .apply-form {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #3C6B5C;
        margin-top: 8px;
        padding-top: 22px;
    }
}

.apply-form-title {
    font-family: 'Old Standard TT',serif;
    font-weight: 700;
    font-size: 19px;
    color: #fff;
    margin-bottom: 4px;
}

.apply-form-sub {
    font-size: 14.5px;
    color: #D6E5DE;
    margin-bottom: 16px;
}

.apply-form .wpcf7-form label {
    color: #A9C4B9;
}

.apply-form .wpcf7-form input[type="text"],
.apply-form .wpcf7-form input[type="email"],
.apply-form .wpcf7-form input[type="tel"],
.apply-form .wpcf7-form textarea {
    background: transparent;
    border-color: #3C6B5C;
    color: #EAF2EE;
}

.apply-form .wpcf7-form input::placeholder,
.apply-form .wpcf7-form textarea::placeholder {
    color: #7F9E92;
}

.apply-form .wpcf7-form input[type="text"]:focus,
.apply-form .wpcf7-form input[type="email"]:focus,
.apply-form .wpcf7-form input[type="tel"]:focus,
.apply-form .wpcf7-form textarea:focus {
    border-color: #A9C4B9;
}

.apply-form .wpcf7-form .wpcf7-submit {
    background: transparent;
    border-color: #A9C4B9;
    color: #fff;
}

.apply-form .wpcf7-form .wpcf7-submit:hover {
    background: #fff;
    color: var(--green-deep);
}

.apply-form .wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    color: #A9C4B9;
}

.apply-form .wpcf7-form .wpcf7-acceptance a {
    color: #fff;
}

.apply-form .wpcf7 form .wpcf7-response-output {
    border-color: #3C6B5C;
    color: #EAF2EE;
}

/* ── Точки перелома добавленных элементов ── */
@media (max-width: 760px) {
    header nav {
        display: none;
    }

    .head-in .mark-ext,
    .mark--institute .mark-text {
        display: none;
    }

    .burger {
        display: flex;
    }

    section[id],
    main[id] {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 560px) {
    .cookie {
        justify-content: flex-start;
        gap: 12px;
    }

    .popup__box {
        padding: 26px 20px 22px;
    }

    .wgt {
        right: 14px;
        bottom: 14px;
    }
}

/* Как на основном сайте: Gotham, белый и серый, широкая колонка */
body,
body * {
    font-family: 'GothamPro-Light', Arial, sans-serif !important;
}

h1, h2, h3, h4, b, strong,
.hero-h2, nav a, .btn-outline, .eyebrow, .mark-ext, button, .apply h3 {
    font-family: 'GothamPro-Medium', Arial, sans-serif !important;
}

.why .split {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.why-photo {
    margin: 0;
}

.why-photo img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: 42% 32%;
    border-radius: 16px;
    border: none;
    box-shadow: none;
    display: block;
}

@media (max-width: 900px) {
    .why .split {
        grid-template-columns: 1fr;
    }

    .why-photo img {
        height: 280px;
    }

    .logo-inst--h {
        height: 36px;
    }
}
