/* =========================================================================
   Konotop IT Cluster — Components
   Hero · About/Stats · Directions · Members · Events · Courses · News · Join
   plus single (CPT) & archive layouts.
   Ported from the index.html / design-system.html prototype.
   Content cards are SHARP (radius 0); pills are buttons only.
   ========================================================================= */

/* =========================================================================
   HERO (editorial)
   ========================================================================= */
.hero { position: relative; padding: 48px 0 80px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }

.hero h1 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(56px, 11vw, 180px); line-height: .92; letter-spacing: -.045em; margin: 16px 0 0; text-wrap: balance; }
.hero h1 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.hero h1 .underline { position: relative; }
.hero h1 .underline::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: 8%; height: 8px; background: var(--accent-2); z-index: -1; }
.hero h1 .serif-line { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: .66em; letter-spacing: -.02em; }

.hero-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--rule); margin-top: 56px; }
@media (max-width: 800px) { .hero-meta { grid-template-columns: 1fr; gap: 18px; } }
.meta-label { color: var(--muted); margin-bottom: 8px; }
.meta-value { font-size: 15px; line-height: 1.45; white-space: pre-line; }
.meta-value.big { font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1; color: var(--ink); }

/* =========================================================================
   ABOUT + STATS
   ========================================================================= */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.lead { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.lead .accent { color: var(--accent); }
.about-body { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.about-body p { margin: 0 0 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 80px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px 24px 24px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
@media (max-width: 900px) {
  .stat { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.stat-num { font-family: var(--font-sans); font-weight: 500; font-size: 64px; letter-spacing: -.04em; line-height: 1; }
.stat-num em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); }
.stat-label { margin-top: 14px; color: var(--muted); }

/* =========================================================================
   DIRECTIONS (12-col, one featured accent card)
   ========================================================================= */
.dirs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.dir { background: var(--bg); padding: 32px 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: background .25s ease, color .25s ease; }
.dir:hover { background: var(--ink); color: var(--bg); }
.dir:hover .dir-mark { color: var(--accent-2); }
.dir:hover .dir-meta { color: var(--bg); opacity: .8; }
.dir-mark { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; }
.dir h3 { font-family: var(--font-sans); font-weight: 500; font-size: 28px; letter-spacing: -.025em; line-height: 1; margin: 18px 0 0; text-wrap: balance; }
.dir h3 em { font-family: var(--font-display); font-style: italic; }
.dir-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 24px; }
.dir-meta .arrow { font-family: var(--font-display); font-style: italic; font-size: 18px; }

.dir-1 { grid-column: span 6; }
.dir-2 { grid-column: span 3; }
.dir-3 { grid-column: span 3; }
.dir-4 { grid-column: span 4; }
.dir-5 { grid-column: span 4; }
.dir-6 { grid-column: span 4; }
.dir-7 { grid-column: span 5; }
.dir-8 { grid-column: span 7; }
/* Mobile: 2-up grid with the featured card full-width (matches the .m-dirs
   mobile mockup), tighter so cards aren't overly tall. */
@media (max-width: 900px) {
	.dir { grid-column: span 6 !important; min-height: 150px; padding: 18px 16px; }
	.dir h3 { font-size: 20px; margin-top: 12px; }
	.dir-meta { margin-top: 14px; }
	.dir-1 { grid-column: span 12 !important; min-height: 200px; padding: 24px 20px; }
	.dir-1 h3 { font-size: 34px; }
}
@media (max-width: 420px) { .dir { grid-column: span 12 !important; } }

/* Featured (first) */
.dir-1 { background: var(--accent); color: #fff; min-height: 320px; }
.dir-1 .dir-mark { color: rgba(255, 255, 255, .7); }
.dir-1 .dir-meta { color: rgba(255, 255, 255, .7); }
.dir-1:hover { background: var(--ink); }
.dir-1 h3 { font-size: 56px; letter-spacing: -.035em; }
@media (max-width: 900px) { .dir-1 h3 { font-size: 40px; } }

/* =========================================================================
   MEMBERS (6-col logo grid)
   ========================================================================= */
.members { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .members { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .members { grid-template-columns: repeat(2, 1fr); } .member-logo { font-size: 26px; } }
.member { min-width: 0; background: var(--bg); aspect-ratio: 1.4 / 1; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; transition: background .25s ease; }
.member:hover { background: var(--bg-2); }
.member-logo { font-family: var(--font-display); font-style: italic; font-size: 32px; letter-spacing: -.02em; line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
.member-logo img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--transition), opacity var(--transition); }
.member:hover .member-logo img { filter: grayscale(0); opacity: 1; }
.member-name { font-size: 11px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; }

/* =========================================================================
   EVENTS (rows: date · title + tag · arrow)
   ========================================================================= */
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }
.event { border-bottom: 1px solid var(--rule); padding: 28px 16px; display: grid; grid-template-columns: 90px 1fr auto; gap: 32px; align-items: center; transition: background .2s ease; position: relative; }
.event:hover { background: var(--bg-2); }
.event:nth-child(odd) { border-right: 1px solid var(--rule); }
@media (max-width: 900px) { .event:nth-child(odd) { border-right: 0; } }
.event-date { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--muted); text-transform: uppercase; }
.event-date b { display: block; font-family: var(--font-sans); font-weight: 500; color: var(--ink); font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.event h4 { font-size: 18px; font-weight: 500; margin: 0 0 4px; letter-spacing: -.01em; }
.event h4 a { color: inherit; }
.event:hover h4 a { color: var(--accent); }
.event-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.event-arrow { font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.event:hover .event-arrow { transform: translateX(6px); color: var(--accent); }
/* full-card click target */
.event .stretch::after { content: ""; position: absolute; inset: 0; }

/* =========================================================================
   COURSES (3-col cards, sharp)
   ========================================================================= */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .courses { grid-template-columns: 1fr; } }
@media (min-width: 700px) and (max-width: 900px) { .courses { grid-template-columns: repeat(2, 1fr); } }
.course { background: var(--card); border: 1px solid var(--rule); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 360px; transition: transform .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
.course:hover { transform: translateY(-4px); border-color: var(--ink); }
.course-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.course h4 { font-family: var(--font-sans); font-weight: 500; font-size: 28px; letter-spacing: -.025em; margin: 0; line-height: 1.05; text-wrap: balance; }
.course h4 a { color: inherit; }
.course h4 em { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.course-body { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; }
.course-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.course-foot .price { color: var(--ink); font-size: 16px; font-family: var(--font-sans); letter-spacing: -.01em; text-transform: none; }
.course .ribbon { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 9px; padding: 4px 8px; background: var(--accent-2); color: var(--accent-2-ink); border-radius: var(--radius-pill); letter-spacing: .14em; text-transform: uppercase; }
/* course status dot */
.course-status { display: inline-flex; align-items: center; gap: 6px; }
.course-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-new    { color: var(--accent); }
.is-active { color: #0F7A55; }
.is-closed { color: var(--muted); }
.course .stretch::after { content: ""; position: absolute; inset: 0; }

/* =========================================================================
   TEAM / BOARD (homepage section 07)
   ========================================================================= */
.team { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.tm { background: var(--bg); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; gap: 20px; transition: background .25s ease; }
.tm:hover { background: var(--bg-2); }
.tm-ava { width: 54px; height: 54px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 15px; letter-spacing: .04em; color: var(--accent); }
.tm-ava.ghost { background: transparent; border: 1px dashed var(--rule); color: var(--muted); }
.tm-forming { border: 1px dashed var(--rule); background: transparent; }
.tm-forming:hover { background: transparent; }
/* Neutral card to complete the grid rectangle when the board is full. */
.tm-filler { align-items: center; justify-content: center; text-align: center; gap: 12px; opacity: .55; }
.tm-filler:hover { background: var(--bg); }
.tm-filler .tm-role { margin-top: 0; }
.tm-name { font-family: var(--font-sans); font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.05; }
.tm-role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 8px; }
.tm.chair { grid-row: span 2; position: relative; overflow: hidden; padding: 0; color: #fff; min-height: 420px; }
.tm.chair:hover { background: var(--bg); }
.tm-photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.tm-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,12,.9) 0%, rgba(10,10,12,.25) 52%, rgba(10,10,12,.05) 100%); }
.tm-chair-inner { position: relative; margin-top: auto; padding: 30px; }
.tm-role.light { color: var(--accent-2); }
.tm-name.big { font-size: 30px; letter-spacing: -.025em; margin-top: 8px; }
.tm-bio { font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.25; margin: 12px 0 0; color: rgba(255,255,255,.85); max-width: 92%; }
@media (max-width: 900px) { .tm.chair { grid-row: span 1; grid-column: span 2; min-height: 320px; } }
@media (max-width: 560px) { .tm.chair { grid-column: span 1; min-height: 540px; } }

/* =========================================================================
   NEWS (feature + list)
   ========================================================================= */
.news { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.news-feature { grid-column: span 7; }
.news-list { grid-column: span 5; display: flex; flex-direction: column; gap: 0; }
@media (max-width: 900px) { .news-feature, .news-list { grid-column: span 12; } }
.news-card { display: block; aspect-ratio: 16/10; background: var(--bg-2); position: relative; overflow: hidden; } /* block: it's an <a>, and aspect-ratio is ignored on inline boxes */
.news-card img { width: 100%; height: 100%; object-fit: cover; }
.news-card .placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, var(--bg-2) 0 12px, var(--rule-2) 12px 13px); }
.news-feature .meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 18px; }
.news-feature h3 { font-family: var(--font-sans); font-weight: 500; font-size: 36px; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 0; text-wrap: balance; }
.news-feature h3 a:hover { color: var(--accent); }
@media (max-width: 900px) { .news-feature h3 { font-size: 26px; } }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px 0; border-top: 1px solid var(--rule); align-items: start; }
.news-item:last-child { border-bottom: 1px solid var(--rule); }
.news-item h4 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.25; }
.news-item .meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.news-item:hover h4 { color: var(--accent); }
.news-item .serif { font-size: 22px; color: var(--muted); }

/* =========================================================================
   JOIN (dark CTA)
   ========================================================================= */
.join { background: var(--ink); color: var(--bg); padding: 120px 0; position: relative; overflow: hidden; }
[data-theme="dark"] .join { background: #000; color: var(--ink); } /* --bg is near-black in dark mode */
.join h2 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.join h2 em { font-family: var(--font-display); font-style: italic; color: var(--accent-2); }
.join-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; position: relative; z-index: 1; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; gap: 40px; } .join { padding: 80px 0; } }
.join-side { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.join-side p { margin: 0 0 16px; }
.join-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.join-hex { position: absolute; right: -120px; top: -60px; opacity: .12; pointer-events: none; z-index: 0; }

/* =========================================================================
   SINGLE — CPT detail pages (event / course / member / post)
   ========================================================================= */
.single-main { padding: 56px 0 80px; }
.entry-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 32px; }
.entry-back:hover { color: var(--ink); }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; gap: 40px; } }
.single-layout__aside { position: sticky; top: 88px; }
@media (max-width: 900px) { .single-layout__aside { position: static; } }

.entry-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 16px; }
.entry-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; margin: 0 0 24px; text-wrap: balance; }
.entry-title em { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }

.entry-featured { margin-bottom: 40px; }
.entry-featured img { width: 100%; height: auto; }

.entry-content { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * + * { margin-top: 24px; }
.entry-content h2 { font-family: var(--font-sans); font-weight: 500; font-size: 32px; letter-spacing: -.025em; color: var(--ink); margin-top: 48px; }
.entry-content h3 { font-family: var(--font-sans); font-weight: 500; font-size: 24px; letter-spacing: -.02em; color: var(--ink); margin-top: 32px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-top: 8px; }
.entry-content img { width: 100%; height: auto; }
/* [gallery] in posts and CPT pages (.dprose): sharp 3-col grid (2 on phones), uniform 3:2 crops. */
.entry-content .gallery, .dprose .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
@media (max-width: 700px) { .entry-content .gallery, .dprose .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.entry-content .gallery-item, .dprose .gallery-item { margin: 0; }
.entry-content .gallery-icon a, .dprose .gallery-icon a { display: block; }
.entry-content .gallery-item img, .dprose .gallery-item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.entry-content .gallery-caption, .dprose .gallery-caption { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.entry-content blockquote { border-left: 2px solid var(--accent); padding-left: 24px; margin-left: 0; font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--ink); }

/* Detail box (date / location / price …) — sharp */
.detail-box { background: var(--card); border: 1px solid var(--rule); padding: 28px; }
.detail-box + .detail-box { margin-top: 16px; }
.detail-box dl { display: grid; gap: 18px; margin: 0; }
.detail-box dt { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.detail-box dd { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.detail-box .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* =========================================================================
   ARCHIVE — listing pages
   ========================================================================= */
.archive-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.archive-hero .eyebrow { margin-bottom: 16px; }
.archive-hero h1 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; margin: 0; }
.archive-hero h1 em { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.archive-hero p { color: var(--muted); font-size: 15px; max-width: 560px; margin-top: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters a { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 16px; border: 1px solid var(--rule); border-radius: var(--radius-pill); color: var(--muted); }
.filters a:hover, .filters a.is-active { color: var(--ink); border-color: var(--ink); }

.archive-body { padding: 56px 0 80px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--rule); font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Empty state */
.empty-state { text-align: center; padding: 100px 20px; color: var(--muted); }
.empty-state__mark { opacity: .4; margin: 0 auto 24px; }
.empty-state > svg { display: block; margin: 0 auto 20px; opacity: .5; } /* the hex mark, centred above the heading */
.empty-state h3 { font-family: var(--font-sans); font-weight: 500; font-size: 24px; color: var(--ink); margin-bottom: 12px; }
/* Homepage sections: full row of their grid, less padding than an archive page. */
.empty-state--compact { grid-column: 1 / -1; padding: 56px 20px; }

/* =========================================================================
   DETAIL PAGES (single event / course / member) — editorial layout.
   Ported from detail-pages.jsx + index.html. Sharp corners, 1px rules.
   ========================================================================= */
.detail { padding: 8px 0 40px; }
.dback { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 22px 0; }
.dback:hover { color: var(--ink); }

.dhero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding: 12px 0 56px; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .dhero { grid-template-columns: 1fr; gap: 28px; } }
/* No featured image → single full-width column so the hero lines up with the
   facts / sections below. The title/lede get their own measure caps instead of
   shrinking the whole block (which left an empty right gutter = "shifted left"). */
.dhero--solo { grid-template-columns: 1fr; }
.dhero--solo .dtitle { max-width: 18ch; }
.dhero--solo .dlede { max-width: 52ch; }
@media (min-width: 901px) { .dhero--solo .dtitle { max-width: 720px; } }
.dhero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 22px; }
.dhero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dtitle { font-family: var(--font-sans); font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: .96; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.dtitle em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); }
.dlede { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.25; color: var(--ink-2); margin: 22px 0 0; max-width: 46ch; }
.dmedia { aspect-ratio: 4/3; background: var(--bg-2); position: relative; overflow: hidden; border: 1px solid var(--rule); }
.dmedia img { width: 100%; height: 100%; object-fit: cover; }
.dmedia .placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, var(--bg-2) 0 12px, var(--rule-2) 12px 13px); }
.dmedia .ph-label { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; background: var(--bg); padding: 5px 9px; }

.dfacts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .dfacts { grid-template-columns: 1fr 1fr; } }
.dfact { padding: 24px; border-right: 1px solid var(--rule); }
.dfact:last-child { border-right: 0; }
@media (max-width: 700px) { .dfact:nth-child(2) { border-right: 0; } }
.dfact .l { color: var(--muted); margin-bottom: 10px; }
.dfact .v { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

.dwrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .dwrap { grid-template-columns: 1fr; gap: 20px; } }
.dlabel { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.dprose { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.dprose > * + * { margin-top: 16px; }
.dprose p { margin: 0 0 16px; }
.dprose p:last-child { margin-bottom: 0; }

.agenda { display: flex; flex-direction: column; }
.agenda .row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.agenda .row:first-child { border-top: 0; padding-top: 0; }
.agenda .time { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.agenda .at { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 4px; }
.agenda .ad { font-size: 13px; color: var(--muted); line-height: 1.5; }

.modlist { display: flex; flex-direction: column; }
.modlist .m { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.modlist .m:first-child { border-top: 0; padding-top: 0; }
.modlist .m b { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.modlist .m .mt { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.modlist .m .mw { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.dchecks { list-style: none; margin: 0; padding: 0; }
.dchecks li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; display: flex; gap: 14px; align-items: baseline; }
.dchecks li:first-child { border-top: 0; padding-top: 0; }
.dchecks li::before { content: "\2192"; color: var(--accent); font-family: var(--font-display); font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); font-size: 13px; color: var(--ink-2); }

.dcta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }

.dperson { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: stretch; padding: 12px 0 56px; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .dperson { grid-template-columns: 1fr; gap: 28px; } }
.dportrait { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.dportrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.dportrait .mono-ava { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-size: 140px; color: var(--accent); }
.dperson-body { display: flex; flex-direction: column; justify-content: flex-end; }

/* =========================================================================
   JOIN PAGE — application form (ported from .m-form: sharp inputs, mono labels)
   ========================================================================= */
.join-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 8px 0 40px; }
@media (max-width: 900px) { .join-page { grid-template-columns: 1fr; gap: 40px; } }

.join-form { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.join-form .field { display: flex; flex-direction: column; gap: 6px; }
.join-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .join-form .field-row { grid-template-columns: 1fr; } }
.join-form label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.join-form input,
.join-form select,
.join-form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--rule);
	border-radius: 0;            /* sharp, per brand */
	background: var(--card);
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	transition: border-color var(--transition);
}
.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring, 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent)); }
.join-form textarea { resize: vertical; min-height: 110px; }
.join-form .btn--submit { align-self: flex-start; margin-top: 6px; }
.form-fineprint { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 52ch; }

/* Honeypot — visually hidden but present for bots. */
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status notes */
.form-note { padding: 16px 18px; border: 1px solid var(--rule); margin-bottom: 24px; font-size: 14px; }
.form-note--ok { border-color: #0F7A55; color: #0F7A55; background: color-mix(in srgb, #0F7A55 8%, transparent); }
.form-note--ok strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.form-note--err { border-color: #E04A1F; color: #E04A1F; background: color-mix(in srgb, #E04A1F 8%, transparent); }

/* Aside */
.join-aside { border-top: 1px solid var(--rule); padding-top: 24px; }
.join-contacts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.join-contacts a:hover { color: var(--accent); }

/* =========================================================================
   DIRECTIONS PAGE (/napryamki/) — full descriptions, sticky labels
   ========================================================================= */
.dirs-full { margin-top: 8px; }
.dir-full { display: grid; grid-template-columns: 320px 1fr; gap: 56px; padding: 48px 0; border-top: 1px solid var(--rule); align-items: start; }
.dir-full:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .dir-full { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; } }
.dir-full__head { position: sticky; top: 88px; }
@media (max-width: 900px) { .dir-full__head { position: static; } }
.dir-full__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.dir-full__name { font-family: var(--font-sans); font-weight: 500; font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.03em; line-height: 1; margin: 14px 0 0; }
.dir-full__tag { color: var(--muted); margin-top: 12px; }
.dir-full__lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.dir-full__lead > * + * { margin-top: 14px; }
.dir-full__lead p { margin: 0; }
.dir-full__body .dchecks { margin-top: 28px; }
.dir-full__cta { display: flex; gap: 12px; flex-wrap: wrap; padding: 48px 0 8px; }

/* =========================================================================
   MOBILE BOTTOM TAB BAR (floating pill, ≤900px) — ported from .m-tab
   ========================================================================= */
.bottom-nav { display: none; }
@media (max-width: 900px) {
	.bottom-nav {
		display: flex;
		position: fixed;
		left: 12px; right: 12px; bottom: 12px;
		z-index: var(--z-overlay);
		background: var(--ink);
		border-radius: 18px;
		padding: 6px;
		gap: 2px;
		box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
	}
	.bottom-nav__item {
		flex: 1 1 0;
		min-width: 0;            /* let items shrink below label width — no overflow */
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 9px 4px 7px;
		border-radius: 13px;
		font-family: var(--font-mono);
		font-size: 9px;
		text-transform: uppercase;
		letter-spacing: .04em;
		color: color-mix(in srgb, var(--bg) 60%, transparent);
		position: relative;
		transition: color var(--transition), background var(--transition);
	}
	.bottom-nav__item svg { width: 20px; height: 20px; flex: none; }
	.bottom-nav__item span {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.bottom-nav__item:hover { color: var(--bg); }
	.bottom-nav__item.is-active { color: var(--bg); background: rgba(255, 255, 255, .12); }
	.bottom-nav__item.is-active::after {
		content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
		width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2);
	}
	.bottom-nav__item.is-cta { color: var(--accent-2-ink); background: var(--accent-2); }
	.bottom-nav__item.is-cta:hover { color: #0E0E10; }

	/* Give content room so the floating bar never covers the footer. */
	body { padding-bottom: 84px; }
}

/* Mobile nav drawer (≤ 900px) */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; z-index: var(--z-overlay);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 16px var(--pad-mobile) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-links[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { font-size: 18px; padding: 10px 0; }
}
@media (min-width: 901px) { .nav-toggle { display: none; } }

/* ---- Press list (page-zmi) — rows: outlet · title · external arrow ------- */
.presslist { border-top: 1px solid var(--rule); margin-top: 48px; }
.press-row {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  transition: color var(--transition);
}
.press-outlet { color: var(--muted); }
.press-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; transition: color var(--transition); }
.press-arrow { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.press-row:hover .press-title { color: var(--accent); }
.press-row:hover .press-arrow { transform: translateX(5px); color: var(--accent); }
@media (max-width: 700px) {
  .press-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .press-outlet { grid-column: 1 / -1; }
}

/* ---- Design-system showcase (page-designsystem) -------------------------- */
.ds-section { padding: 56px 0; border-top: 1px solid var(--rule); }
.ds-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.ds-section__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.ds-section h2 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.03em; line-height: 1; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; }
.ds-swatch { border: 1px solid var(--rule); }
.ds-swatch__chip { height: 92px; }
.ds-swatch__meta { padding: 10px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ds-swatch__meta b { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 13px; letter-spacing: -.01em; color: var(--ink); }
.ds-chip-accent  { background: var(--accent); }
.ds-chip-accent2 { background: var(--accent-2); }
.ds-chip-ink     { background: var(--ink); }
.ds-chip-bg2     { background: var(--bg-2); }
.ds-chip-card    { background: var(--card); }
.ds-chip-muted   { background: var(--muted); }
.ds-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.ds-font { border: 1px solid var(--rule); padding: 22px; }
.ds-font__label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.ds-font__sample { font-size: 30px; line-height: 1.25; margin-top: 12px; letter-spacing: -.02em; }
.ds-font__sample.is-head { font-family: var(--font-sans); font-weight: 500; }
.ds-font__sample.is-body { font-family: var(--font-body); }
.ds-font__sample.is-display { font-family: var(--font-display); font-style: italic; }
.ds-font__sample.is-mono { font-family: var(--font-mono); font-size: 22px; }
.ds-scale { margin-top: 28px; display: grid; gap: 14px; }
.ds-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
