/* ═══════════════════════════════════════════
   БИЙИК — стиль
   Цвета войлока, солнца и неба. Орнаменты:
   кочкор мүйүз (рога архара), тундук, мотивы шырдака.
   ═══════════════════════════════════════════ */

:root {
  --felt: #fff6e5;        /* светлый войлок */
  --felt-2: #ffe9c2;
  --paper: #ffffff;
  --ink: #1b1830;
  --ink-soft: #57516b;
  --red: #d4141b;         /* красный флага */
  --red-deep: #9e0e14;
  --sun: #ffb400;         /* солнце флага */
  --sky: #0a7cc4;         /* яркое небо */
  --sky-2: #19a7ea;
  --lake: #0b9aa8;        /* Иссык-Куль */
  --line: rgba(27, 24, 48, .12);
  --shadow: 0 1px 0 rgba(27,24,48,.05), 0 12px 30px -14px rgba(27,24,48,.28);
  --radius: 18px;
  --font-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--felt);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.kg { font-family: var(--font-head); color: var(--red); font-weight: 600; }

/* ── Орнаментальная лента (кочкор мүйүз) ── */
.band {
  height: 26px;
  background-color: var(--red);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='26' viewBox='0 0 60 26'%3E%3Cg fill='none' stroke='%23f5b21a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M30 25V15C30 7 20 3 14 6C8 9 9 17 15 17C19 17 20 12 17 10'/%3E%3Cpath d='M30 15C30 7 40 3 46 6C52 9 51 17 45 17C41 17 40 12 43 10'/%3E%3Cpath d='M0 1V8C0 14 -6 18 -10 18M60 1V8C60 14 66 18 70 18'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}
.band.thin { height: 14px; background-size: 32px 14px; }
.band.sky { background-color: var(--sky); }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--felt) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.logo svg { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.nav-links a:hover { background: var(--felt-2); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--felt); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.burger svg { width: 28px; height: 28px; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--felt); padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  background: var(--ink); color: var(--felt);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Герой ── */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 30%, #ff4a2e 0%, var(--red) 45%, #b80f16 100%); color: #fff; }
.hero::before { /* лучи солнца */
  content: ""; position: absolute; inset: -50%; opacity: .12;
  background: repeating-conic-gradient(from 0deg at 75% 45%, #ffd25a 0deg 4deg, transparent 4deg 9deg);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 20px 140px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffd44d; }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: #fff3e6; }
.hero .kg { color: #ffd44d; font-size: 1.05rem; letter-spacing: .02em; display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1.5px solid currentColor; border-radius: 999px; }
.hero .btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.hero .btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.hero .btn:hover { box-shadow: 0 6px 0 var(--red-deep); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.tunduk-wrap { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.tunduk-wrap svg { width: 100%; height: 100%; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tunduk-wrap svg { animation: none; } }
.mountains { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; display: block; width: 100%; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 120px; }
  .tunduk-wrap { max-width: 240px; order: -1; }
}

/* ── Страничный заголовок ── */
.page-head { background: linear-gradient(135deg, var(--sky-2), var(--sky)); color: #fff; padding: 56px 0 96px; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.2rem); }
.page-head p { color: #eaf6ff; font-size: 1.15rem; max-width: 40em; margin: 0; }
.page-head .kg { color: #ffd44d; }
.page-head .deco { position: absolute; right: -40px; top: -50px; width: 300px; opacity: .9; }
@media (max-width: 700px) { .page-head .deco { width: 180px; right: -50px; top: -40px; } }

/* ── Секции ── */
section { padding: 72px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title p { max-width: 36em; margin: 0; }
.eyebrow { font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'%3E%3Cg fill='none' stroke='%23c4161c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M22 19V12C22 6 15 2 10 4C5 6 6 13 11 13C14 13 15 9 12 8'/%3E%3Cpath d='M22 12C22 6 29 2 34 4C39 6 38 13 33 13C30 13 29 9 32 8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.alt { background: var(--paper); }
.pattern-bg {
  background-color: var(--felt-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c4161c' stroke-opacity='.10' stroke-width='3' stroke-linecap='round'%3E%3Cg id='h'%3E%3Cpath d='M60 60V44C60 32 46 26 38 31C30 36 33 47 41 47C46 47 47 41 43 39'/%3E%3Cpath d='M60 44C60 32 74 26 82 31C90 36 87 47 79 47C74 47 73 41 77 39'/%3E%3C/g%3E%3Cuse href='%23h' transform='rotate(90 60 60)'/%3E%3Cuse href='%23h' transform='rotate(180 60 60)'/%3E%3Cuse href='%23h' transform='rotate(270 60 60)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Три пути ── */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .2s;
  border-top: 6px solid var(--c, var(--red));
}
.path:hover { transform: translateY(-4px); }
.path .num { font: 700 3rem/1 var(--font-head); color: var(--c, var(--red)); opacity: .9; }
.path h3 { margin-top: 14px; font-size: 1.3rem; }
.path p { color: var(--ink-soft); margin: 0; }
.path .go { margin-top: 18px; font-weight: 700; display: inline-flex; gap: 6px; color: var(--c, var(--red)); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* ── Цифры ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(1.9rem, 4vw, 2.6rem)/1 var(--font-head); color: var(--red); margin-bottom: 8px; }
.stat span { font-size: .95rem; color: var(--ink-soft); }
.stat a { font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ── Карточки ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; position: relative; border: 1px solid var(--line);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--felt-2); color: var(--ink); }
.tag.red { background: var(--red); color: #fff; }
.tag.sun { background: var(--sun); color: #1d1a2b; }
.tag.lake { background: var(--lake); color: #fff; }
.kg-result { background: color-mix(in srgb, var(--sun) 18%, transparent); border-left: 4px solid var(--sun); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: .93rem; }
.kg-result strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-deep); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.card .foot a.more { font-weight: 700; text-decoration: none; color: var(--red); }
.src { font-size: .78rem; color: var(--ink-soft); text-decoration: underline dotted; }
.card.hot { border: 2px solid var(--red); }
.hot-badge { position: absolute; top: -12px; right: 18px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
dl.facts dt { color: var(--ink-soft); font-weight: 600; }
dl.facts dd { margin: 0; }

/* ── Фильтры ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 999px; font: 600 .9rem var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--felt); border-color: var(--ink); }
.search { flex: 1 1 220px; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 1rem var(--font-body); }
.empty { padding: 30px; text-align: center; color: var(--ink-soft); }

/* ── Истории ── */
.story { border-top: 6px solid var(--red); }
.story:nth-child(3n+2) { border-top-color: var(--sun); }
.story:nth-child(3n) { border-top-color: var(--lake); }
.story .who { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.story .big { font: 700 1.6rem var(--font-head); color: var(--red); }
.quote { font-size: 1.4rem; font-family: var(--font-head); line-height: 1.35; max-width: 30em; }

/* ── Дорожная карта ── */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: g; }
.roadmap::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 4px; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 22px); }
.rm { padding: 0 12px; position: relative; }
.rm .dot { width: 70px; height: 70px; border-radius: 50%; background: var(--sky); color: var(--sun); display: grid; place-items: center; font: 700 1.5rem var(--font-head); margin: 0 auto 16px; border: 4px solid var(--felt); position: relative; z-index: 1; }
.rm h3 { text-align: center; margin-bottom: 2px; }
.rm .sub { text-align: center; color: var(--red); font-weight: 700; margin-bottom: 12px; }
.rm ul { margin: 0; padding-left: 18px; font-size: .95rem; color: var(--ink-soft); }
.rm li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .roadmap { grid-template-columns: 1fr; gap: 24px; }
  .roadmap::before { display: none; }
  .rm { display: grid; grid-template-columns: 70px 1fr; gap: 0 16px; }
  .rm .dot { margin: 0; grid-row: span 3; }
  .rm h3, .rm .sub { text-align: left; }
}

/* ── Пошагово ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 20px 20px 20px 76px; position: relative; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 1.2rem var(--font-head); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Словарь / FAQ ── */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 1.4rem var(--font-head); color: var(--red); transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 20px 18px; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ── Мифы ── */
.myth { display: grid; gap: 8px; }
.myth .no { font-weight: 700; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.myth .yes { color: var(--ink-soft); }
.myth .yes::before { content: "На самом деле: "; font-weight: 800; color: var(--lake); }

/* ── Страны ── */
.country .flag { font-size: 2rem; line-height: 1; }

/* ── Тундук-карточка (CTA) ── */
.cta { background: var(--red); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: #ffe9d6; }
.cta .btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.cta .deco { position: absolute; right: -50px; bottom: -50px; width: 220px; opacity: .18; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ── Доска проектов ── */
.board-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; background: var(--paper); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 24px; }
.board-form input, .board-form textarea, .board-form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--felt); color: var(--ink); font: 500 1rem var(--font-body); }
.board-form textarea { grid-column: 1 / -1; min-height: 90px; resize: vertical; }
.board-form .row-full { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .board-form { grid-template-columns: 1fr; } }
.note { font-size: .85rem; color: var(--ink-soft); }

/* ── Подвал ── */
.site-footer { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #ffe6d6; padding: 48px 0 32px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-size: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

.theme-toggle { background: none; border: 1.5px solid var(--line); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }


/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ═════════════ ДОБАВЛЕНО: пословицы, цитаты, план, формы, автор ═════════════ */

/* Разделитель-орнамент */
.divider { display: block; width: 240px; max-width: 70%; height: auto; margin: 0 auto 14px; }
.orn-divider { padding: 8px 0 0; }

/* Пословица */
.proverb { text-align: center; max-width: 760px; margin: 0 auto; padding: 8px 20px; }
.pv-label { font: 700 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.pv-text { font: 600 clamp(1.3rem, 3.4vw, 2rem)/1.3 var(--font-head); color: var(--ink); margin: 0 0 14px; transition: opacity .3s; }
.pv-text.dim { opacity: .45; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.pv-text.ru { color: var(--red); }
.pv-lit { color: var(--ink-soft); font-size: .95rem; margin: -6px 0 14px; }
.pv-btn { margin-top: 4px; }
.proverb-band { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }

/* Цитаты */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.quote-card { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 28px 24px 22px; position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.quote-card::before { content: "“"; position: absolute; right: 16px; top: -18px; font: 700 7rem/1 var(--font-head); color: var(--sun); opacity: .35; }
.q-orn { width: 44px; height: 44px; }
.q-orn svg { width: 100%; height: 100%; }
.quote-card blockquote { margin: 0; font: 600 1.08rem/1.5 var(--font-body); color: var(--ink); }
.quote-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; border-top: 2px dashed var(--line); padding-top: 12px; }
.quote-card figcaption span { color: var(--red); font-weight: 600; }
.mini-quote { margin: 4px 0 0; padding: 10px 14px; border-left: 4px solid var(--red); background: var(--felt); border-radius: 0 10px 10px 0; font-style: italic; }

/* План поступления (таймлайн) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 172px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(180deg, var(--red) 0 10px, transparent 10px 16px); }
.tl-item { display: grid; grid-template-columns: 150px 44px 1fr; align-items: start; margin-bottom: 14px; }
.tl-date { text-align: right; padding-top: 14px; }
.tl-date b { display: block; font: 600 1rem var(--font-head); }
.tl-date span { font-size: .8rem; color: var(--ink-soft); }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--red); margin: 18px auto 0; position: relative; z-index: 1; }
.tl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.tl-card h3 { margin: 0; font-size: 1.05rem; }
.tl-card .more { font-weight: 700; color: var(--red); text-decoration: none; font-size: .92rem; }
.tl-res { margin: 0; font-weight: 600; color: var(--lake); }
.tl-note { margin: 0; font-size: .85rem; }
.st { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.st.past { background: var(--felt-2); color: var(--ink-soft); }
.st.open { background: var(--red); color: #fff; }
.st.soon { background: var(--sun); color: #1d1a2b; }
.tl-item.past .tl-card { opacity: .62; box-shadow: none; }
.tl-item.past .tl-dot { background: var(--ink-soft); border-color: var(--ink-soft); }
.tl-item.open .tl-card { border: 2px solid var(--red); }
.tl-item.open .tl-dot { background: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 25%, transparent); }
.tl-now { display: grid; grid-template-columns: 150px 44px 1fr; margin: 6px 0 16px; align-items: center; }
.tl-now span { grid-column: 2 / 4; justify-self: start; background: var(--ink); color: var(--felt); font: 700 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; position: relative; z-index: 1; margin-left: 4px; }
.ghost-chip { margin-left: auto; }
@media (max-width: 700px) {
  .timeline::before { left: 9px; }
  .tl-item, .tl-now { grid-template-columns: 22px 1fr; gap: 0 12px; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin: 6px 0 0; }
  .tl-date { grid-column: 2; text-align: left; padding: 0 0 6px; }
  .tl-date b { display: inline; margin-right: 8px; }
  .tl-card { grid-column: 2; }
  .tl-now span { grid-column: 1 / 3; margin-left: 0; }
  .ghost-chip { margin-left: 0; }
}

/* Кнопка «добавить» и пометки */
.add-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 2px dashed color-mix(in srgb, var(--red) 45%, transparent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.add-row p { margin: 0; color: var(--ink-soft); max-width: 40em; }
.add-row b { color: var(--ink); }
.tag.pending { background: transparent; border: 1.5px dashed var(--ink-soft); color: var(--ink-soft); }
.tag.community { background: var(--sky); color: #fbf3e4; }
.card.user { border-style: dashed; }

/* Окно добавления */
.add-dialog { border: 0; padding: 0; border-radius: 22px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.add-dialog::backdrop { background: rgba(14, 20, 48, .6); backdrop-filter: blur(3px); }
.add-form { padding: 0 0 22px; }
.add-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--sky); color: #fff; position: sticky; top: 0; z-index: 1; }
.add-head h3 { margin: 0; color: #fff; flex: 1; }
.add-orn { width: 40px; height: 40px; flex-shrink: 0; }
.add-head .x { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 22px 6px; }
.add-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 700; }
.add-grid label.full { grid-column: 1 / -1; }
.add-grid input, .add-grid textarea, .add-grid select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--felt); color: var(--ink); font: 500 1rem var(--font-body); }
.add-grid textarea { min-height: 84px; resize: vertical; }
.add-grid input:focus, .add-grid textarea:focus, .add-grid select:focus { outline: 2px solid var(--sun); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 22px; font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--red); }
.add-form .note { padding: 0 22px; margin: 6px 0 0; }
.add-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 0; }
@media (max-width: 560px) { .add-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--felt); padding: 14px 22px; border-radius: 999px; font-weight: 700; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }

/* Об авторе */
.author { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.author-photo { position: relative; aspect-ratio: 1; width: 100%; max-width: 300px; margin: 0 auto; }
.author-ring { position: absolute; inset: 0; }
.author-ring svg { width: 100%; height: 100%; animation: spin 120s linear infinite; }
.author-photo img, .author-photo > span { position: absolute; inset: 22%; width: 56%; height: 56%; border-radius: 50%; object-fit: cover; }
.author-photo > span { display: grid; place-items: center; background: var(--sky); color: var(--sun); font: 700 3rem var(--font-head); }
.author-role { color: var(--red); font-weight: 700; }
.fill-hint { border: 2px dashed var(--sun); border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.fill-hint code { background: var(--felt-2); padding: 1px 6px; border-radius: 6px; }
.how { counter-reset: h; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.how .card { padding-top: 28px; }
.how .card .ico { width: 54px; height: 54px; }
.how .card .ico svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; gap: 24px; } .author-photo { max-width: 220px; } .how { grid-template-columns: 1fr; } }
.tag, .st { white-space: nowrap; }


/* ═════════════ ЯРКАЯ ВЕРСИЯ: логотип, язык, автор ═════════════ */
.logo svg { width: 46px; height: 46px; }
.logo span { display: flex; flex-direction: column; line-height: 1; }
.logo small { font: 700 .62rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-top: 4px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo small { color: #ffd44d; }
.foot-motto { color: #ffd44d !important; }
.lang-switch { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { background: transparent; border: 0; padding: 7px 12px; font: 800 .8rem var(--font-body); color: var(--ink); cursor: pointer; letter-spacing: .04em; }
.lang-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }
@media (max-width: 1080px) { .lang-switch { margin-left: 4px; } }
.hero-logo { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; filter: drop-shadow(0 20px 40px rgba(120, 0, 0, .35)); }
.hero-logo svg { width: 100%; height: 100%; }
.hero-logo { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
@media (max-width: 820px) { .hero-logo { max-width: 240px; order: -1; } }
.mountains path:first-child { fill: #ffd44d; opacity: .45; }
.page-head .mountains path:first-child { fill: #fff; opacity: .35; }
.pv-sub { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.pv-sub b { color: var(--red); font-weight: 700; }
.quote-card .note { font-style: normal; font-size: .78rem; }
:lang(ky) .myth .yes::before { content: "Чындыгында: "; }

/* Автор — мощный блок */
.author-hero { background: radial-gradient(120% 100% at 20% 30%, #ff4a2e 0%, var(--red) 50%, #a50e15 100%); color: #fff; position: relative; overflow: hidden; padding: 64px 0 120px; }
.author-hero::before { content: ""; position: absolute; inset: -50%; opacity: .12; background: repeating-conic-gradient(from 0deg at 30% 45%, #ffd25a 0deg 4deg, transparent 4deg 9deg); }
.author { position: relative; display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.author-photo { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; margin: 0 auto; }
.author-photo .ap-rays { position: absolute; inset: 0; }
.author-photo .ap-rays svg { width: 100%; height: 100%; animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .author-photo .ap-rays svg { animation: none; } }
.author-photo .ap-ring { position: absolute; inset: 15%; border-radius: 50%; background: conic-gradient(var(--sun), #fff3c4, var(--sun), #ff8a00, var(--sun)); box-shadow: 0 20px 50px rgba(80, 0, 0, .45); }
.author-photo img, .author-photo > span { position: absolute; inset: 19%; width: 62%; height: 62%; border-radius: 50%; object-fit: cover; border: 5px solid var(--red); }
.author-photo > span { display: grid; place-items: center; background: var(--sky); color: #fff; font: 700 3rem var(--font-head); }
.author-photo.sm { max-width: 240px; }
.author-text h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 6px; }
.author-full { font-weight: 700; color: #ffe1c7; margin: 0 0 14px; letter-spacing: .02em; }
.author-role { display: inline-block; font-weight: 800; color: var(--ink); background: #ffd44d; padding: 8px 16px; border-radius: 999px; margin: 0 0 22px; }
.author-motto { margin: 0; font: 600 clamp(1.15rem, 2.4vw, 1.5rem)/1.4 var(--font-head); border-left: 5px solid #ffd44d; padding: 4px 0 4px 20px; max-width: 26em; }
.author-motto.dark { color: var(--ink); border-left-color: var(--red); font-size: 1.1rem; }
.eyebrow.light { color: #ffd44d; }
.eyebrow.light::before { filter: brightness(0) saturate(100%) invert(84%) sepia(56%) saturate(800%) hue-rotate(345deg); }
.author-about { max-width: 760px; margin: 0 auto; font-size: 1.12rem; }
.author-about p:first-child::first-letter { font: 700 3.4rem/0.9 var(--font-head); float: left; color: var(--red); margin: 6px 10px 0 0; }
.author-home { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.author-home .author-role { margin-bottom: 14px; }
.author-home h2 { margin-bottom: 8px; }
@media (max-width: 820px) {
  .author { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .author-photo { max-width: 280px; }
  .author-motto { border-left: 0; padding: 0; margin: 0 auto; }
  .author-text .eyebrow { justify-content: center; }
  .author-home { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .author-home .eyebrow { justify-content: center; }
  .author-motto.dark { border-left: 0; padding: 0; }
}
.nav-links a, .logo small { white-space: nowrap; }
.tl-card, .tl-date { min-width: 0; }
@media (max-width: 700px) { .tl-item, .tl-now { grid-template-columns: 22px minmax(0, 1fr); } }
.about-why .section-title { max-width: 760px; margin: 0 auto 24px; }
@media (max-width: 1320px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--felt); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.logo svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .nav { gap: 8px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo svg { width: 38px; height: 38px; }
  .logo small { font-size: .55rem; }
  .lang-switch button { padding: 6px 9px; }
  .burger { padding: 4px; }
}
.views b { color: #ffd44d; font-weight: 800; }

/* ═════════════ ЛЕНТА ═════════════ */
.feed-page { background: #1b1830; }
.feed-page .site-footer, .feed-page .band, .feed-page #site-footer { display: none; }
.feed-wrap { position: relative; max-width: 500px; margin: 0 auto; }
.feed-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.feed-chips::-webkit-scrollbar { display: none; }
.feed-chips .chip { flex-shrink: 0; background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.feed-chips .chip[aria-pressed="true"] { background: #ffd44d; color: #1b1830; }
.feed { height: calc(100dvh - 68px - 62px); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 0 12px; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; scroll-snap-stop: always; height: calc(100dvh - 68px - 62px - 12px); margin-bottom: 12px; border-radius: 28px; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: 22px 76px 26px 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.t-news { background: linear-gradient(160deg, #ff5a36, #d4141b 55%, #8f0f14); }
.t-opp  { background: linear-gradient(160deg, #ffc93c, #ff8a00 55%, #d4570b); }
.t-uni  { background: linear-gradient(160deg, #2bb3f0, #0a7cc4 55%, #064e85); }
.t-fact { background: linear-gradient(160deg, #23c4b6, #0b9aa8 55%, #066b75); }
.slide-orn { position: absolute; width: 360px; height: 360px; right: -110px; bottom: -110px; opacity: .22; pointer-events: none; }
.slide-orn svg { width: 100%; height: 100%; }
.slide-top { display: flex; justify-content: space-between; align-items: center; position: relative; margin-right: -52px; }
.slide-type { font: 800 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.slide-count { font-weight: 700; font-size: .85rem; opacity: .85; }
.slide-body { margin-top: auto; position: relative; }
.slide-emoji { font-size: clamp(3.5rem, 12vh, 6rem); line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.slide h2 { color: #fff; font-size: clamp(1.45rem, 4.2vh, 2.1rem); line-height: 1.15; margin-bottom: 12px; text-wrap: balance; }
.slide p { font-size: clamp(1rem, 2.2vh, 1.12rem); line-height: 1.5; margin: 0 0 16px; color: rgba(255,255,255,.95); }
.slide-deadline { display: inline-block; background: #1b1830; color: #ffd44d; font-weight: 800; font-size: .88rem; padding: 7px 12px; border-radius: 999px; margin-bottom: 12px; }
.slide-meta { font-size: .85rem; opacity: .9; }
.slide-meta a { color: #fff; font-weight: 700; }
.slide-actions { position: absolute; right: 14px; bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.sa { width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.4rem; cursor: pointer; backdrop-filter: blur(4px); display: grid; place-items: center; transition: transform .15s; }
.sa:hover { transform: scale(1.08); }
.sa.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.slide-end { scroll-snap-align: start; height: 40vh; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.7); }
.slide-end .divider { width: 180px; }
.feed .empty { color: #fff; }
.feed-hint { position: absolute; right: -150px; top: 50%; color: rgba(255,255,255,.6); font-weight: 700; writing-mode: vertical-rl; }
@media (max-width: 900px) { .feed-hint { display: none; } }
@media (max-width: 480px) { .feed { padding: 0 8px; } .slide { border-radius: 22px; padding: 18px 70px 22px 18px; } }

/* Превью ленты на главной */
.fp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fp-card { aspect-ratio: 9 / 13; border-radius: 22px; color: #fff; text-decoration: none; padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.fp-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.fp-card .slide-type { align-self: flex-start; font-size: .65rem; }
.fp-emoji { font-size: 2.6rem; margin-top: auto; }
.fp-card b { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.fp-card small { opacity: .9; font-weight: 700; }
@media (max-width: 900px) { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .fp-card { aspect-ratio: auto; min-height: 230px; } .fp-card b { font-size: .95rem; } }
