/* Палитра — цвета татарской вышивки, ичигов и калфаков */
:root {
  --crimson: #c8102e;
  --rose: #e8487a;
  --rose-soft: #ffe4ec;
  --saffron: #f2a900;
  --saffron-soft: #fff1c9;
  --emerald: #0f7a55;
  --emerald-deep: #0a5a3f;
  --teal: #12a4a8;
  --plum: #6b2d5c;
  --gold: #d99a00;

  --bg: #fff8ec;
  --bg-tint: #fdf0e1;
  --surface: #ffffff;
  --ink: #2b1622;
  --muted: #6e5662;
  --line: #f0dccb;
  --shadow: 0 2px 4px rgb(107 45 92 / .06), 0 14px 34px rgb(107 45 92 / .10);
  --radius: 20px;
  --display: "Yeseva One", "Georgia", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 24C20 6 60 6 80 24s60 18 80 0' fill='none' stroke='%230f7a55' stroke-width='3'/%3E%3Cpath d='M40 20c-7-2-10-9-8-17 4 3 6 6 8 10 2-4 4-7 8-10 2 8-1 15-8 17z' fill='%23c8102e'/%3E%3Cpath d='M40 18c-3-5-3-10 0-15 3 5 3 10 0 15z' fill='%23f2a900'/%3E%3Cpath d='M120 28c7 2 10 9 8 17-4-3-6-6-8-10-2 4-4 7-8 10-2-8 1-15 8-17z' fill='%23e8487a'/%3E%3Cpath d='M120 30c3 5 3 10 0 15-3-5-3-10 0-15z' fill='%23f2a900'/%3E%3Cellipse cx='18' cy='12' rx='7' ry='3.5' transform='rotate(-35 18 12)' fill='%2312a4a8'/%3E%3Cellipse cx='62' cy='12' rx='7' ry='3.5' transform='rotate(35 62 12)' fill='%2312a4a8'/%3E%3Cellipse cx='98' cy='36' rx='7' ry='3.5' transform='rotate(35 98 36)' fill='%230f7a55'/%3E%3Cellipse cx='142' cy='36' rx='7' ry='3.5' transform='rotate(-35 142 36)' fill='%230f7a55'/%3E%3Ccircle cx='80' cy='24' r='4' fill='%23f2a900'/%3E%3Ccircle cx='0' cy='24' r='4' fill='%23f2a900'/%3E%3Ccircle cx='160' cy='24' r='4' fill='%23f2a900'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c0f17; --bg-tint: #26141f; --surface: #2d1825; --ink: #fbeee6; --muted: #cdb3bf;
    --line: #47283a; --rose-soft: #3b1826; --saffron-soft: #3a2c10; --shadow: 0 10px 30px rgb(0 0 0 / .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c0f17; --bg-tint: #26141f; --surface: #2d1825; --ink: #fbeee6; --muted: #cdb3bf;
  --line: #47283a; --rose-soft: #3b1826; --saffron-soft: #3a2c10; --shadow: 0 10px 30px rgb(0 0 0 / .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--crimson); }
a:hover { color: var(--plum); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--plum); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--emerald), var(--teal), var(--saffron), var(--rose), var(--crimson), var(--plum)) 1; }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo__mark { width: 34px; height: 38px; }
.logo b { font: 1.5rem/1 var(--display); display: block; color: var(--crimson); white-space: nowrap; }
@media (max-width: 420px) { .logo { gap: 6px; } .langs a { padding: 6px 5px; } .logo b { font-size: 1.05rem; } .logo small { font-size: .66rem; } .logo__mark { width: 28px; height: 32px; } }
.logo small { color: var(--emerald); font-weight: 800; font-size: .74rem; letter-spacing: .04em; }
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 11px; border-radius: 999px; font-size: .95rem; font-weight: 600; }
.nav a:hover { background: var(--rose-soft); color: var(--crimson); }
.nav .nav__cta { background: var(--crimson); color: #fff; margin-left: 4px; }
.nav .nav__cta:hover { background: var(--plum); color: #fff; }
/* Переключатель языков — справа в шапке */
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--rose-soft); margin-left: 6px; flex: none; }
.langs a { font: 800 .8rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; color: var(--plum); padding: 7px 9px; border-radius: 999px; }
.langs a:hover { color: var(--crimson); background: rgb(255 255 255 / .6); }
.langs a[aria-current="true"] { background: var(--crimson); color: #fff; }
@media (max-width: 600px) {
  .top__in { gap: 8px; }
  .logo small { display: none; }
  .menu-btn { padding: 7px 12px; font-size: 1rem; line-height: 1; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .langs { margin-left: 0; }
  .langs a { padding: 6px 7px; font-size: .74rem; }
}
.menu-btn__icon { display: none; }
@media (max-width: 600px) { .menu-btn__icon { display: inline; } }
.menu-btn { display: none; font: 700 .95rem var(--sans); background: var(--rose-soft); border: 0; border-radius: 999px; padding: 8px 16px; color: var(--crimson); }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 3px solid var(--rose); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
}

/* Первый экран */
.hero { position: relative; overflow: hidden; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 72px 0 96px; background: linear-gradient(120deg, var(--plum), var(--crimson) 55%, var(--rose)); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(74 20 60 / .94) 0%, rgb(160 10 40 / .78) 42%, rgb(200 16 46 / .25) 72%, rgb(0 0 0 / .05) 100%); }
.hero__in { display: grid; gap: 40px; align-items: end; z-index: 2; width: 100%; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.55fr 1fr; } }
.hero__text { max-width: 44rem; }
.hero__hello { font: 1.6rem var(--display); color: var(--saffron); margin: 0 0 .3em; text-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.hero h1 { text-shadow: 0 3px 18px rgb(0 0 0 / .25); }
.lead { font-size: 1.2rem; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__bouquet { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .25)); }
.hero__bouquet--l { width: 230px; left: -60px; bottom: -40px; transform: rotate(18deg); }
.hero__bouquet--r { width: 300px; right: -40px; top: -30px; transform: rotate(200deg); opacity: .9; }
@media (max-width: 720px) { .hero__bouquet--r { width: 180px; right: -60px; } .hero__bouquet--l { width: 150px; left: -50px; } }
.hero__credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .7rem; opacity: .75; z-index: 2; }
.hero__credit a { color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.stats div { background: rgb(58 12 42 / .55); border: 1px solid rgb(255 255 255 / .28); backdrop-filter: blur(10px); border-radius: 18px; padding: 16px 18px; }
.stats dt { font-size: .86rem; opacity: .9; }
.stats dd { margin: 0; font: 2.3rem/1.1 var(--display); color: var(--saffron); font-variant-numeric: tabular-nums; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--crimson); color: var(--crimson); text-decoration: none; font: 800 1rem var(--sans); background: transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--main { background: var(--crimson); color: #fff; }
.btn--main:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn--gold { background: var(--saffron); border-color: var(--saffron); color: #2b1622; box-shadow: 0 8px 20px rgb(242 169 0 / .35); }
.btn--gold:hover { background: #ffc12e; color: #2b1622; }
.btn--ghost { border-color: rgb(255 255 255 / .8); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .15); color: #fff; }

/* Орнаментальный бордюр */
.vine { height: 48px; background: var(--vine) repeat-x center / auto 48px; }

/* Для каждого */
.band { padding: 36px 0 16px; }
.center-title { text-align: center; margin-bottom: 24px; }
.center-title span { color: var(--crimson); }
.audiences { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.aud { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; text-decoration: none; color: #fff; border-radius: var(--radius); padding: 18px; background: var(--c1); background-size: cover; background-position: center; box-shadow: var(--shadow); transition: transform .2s; isolation: isolate; }
.aud::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 28%, color-mix(in srgb, var(--c1) 80%, transparent) 46%, var(--c1) 60%); z-index: -1; }
.aud:hover { transform: translateY(-4px) rotate(-.5deg); color: #fff; }
.aud__icon { position: absolute; top: 12px; right: 14px; font-size: 1.9rem; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .3)); }
.aud b { display: block; font: 1.3rem/1.15 var(--display); margin-bottom: 4px; text-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.aud span { font-size: .88rem; line-height: 1.35; }

/* Секции */
.section { padding: 76px 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section--rose { background: linear-gradient(180deg, var(--rose-soft), var(--bg)); }
.section--saffron { background: linear-gradient(160deg, var(--saffron-soft), var(--bg) 70%); }
.section--crimson { background: radial-gradient(circle at 15% 10%, #e0304e, var(--crimson) 40%, #8f0b26); color: #fff; }
.section--crimson h2, .section--crimson .eyebrow { color: #fff; }
.section--crimson .section__head p { color: rgb(255 255 255 / .85) !important; }
.section--emerald { background: radial-gradient(circle at 85% 0%, #149468, var(--emerald) 45%, var(--emerald-deep)); color: #fff; }
.section--emerald h2 { color: #fff; }
.section--emerald .eyebrow { color: var(--saffron); }
.section--emerald .section__head p, .section--emerald .note { color: rgb(255 255 255 / .85) !important; }
.section--emerald .note a { color: var(--saffron); }
.section--deep { background: radial-gradient(circle at 80% 20%, #8a3c77, var(--plum) 50%, #3f1636); color: #fbeee6; overflow: hidden; }
.section--deep h2 { color: #fff; }
.section--deep a { color: var(--saffron); }
.section--deep .eyebrow { color: var(--saffron); }
.section__head { max-width: 46em; margin: 0 auto 36px; text-align: center; }
.section__head p:last-child { color: var(--muted); }
.head-flower { width: 54px; height: 54px; display: block; margin: 0 auto 6px; }
.eyebrow { font: 1.15rem var(--display); color: var(--crimson); margin: 0 0 .2em; }
.sub { font: 800 .82rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--emerald); margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.sub::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--saffron), transparent); }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; text-align: center; }
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } }
.ticks { padding: 0; list-style: none; margin: 0 0 26px; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 130'%3E%3Cpath d='M60 126C44 120 30 104 26 82 22 60 26 38 34 24c10 14 18 30 26 50 8-20 16-36 26-50 8 14 12 36 8 58-4 22-18 38-34 44z' fill='%23c8102e'/%3E%3Cpath d='M60 104c-8-10-10-26-8-42 2-12 4-22 8-30 4 8 6 18 8 30 2 16 0 32-8 42z' fill='%23f2a900'/%3E%3C/svg%3E") no-repeat center / contain; }

/* Карточки */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cards--small { grid-template-columns: 1fr; }
.card { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--accent, var(--crimson)); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 74px; height: 74px; opacity: .13; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='%23c8102e'%3E%3Cpath id='p' d='M0-46C12-40 16-26 10-14 6-8 2-6 0-6s-6-2-10-8C-16-26-12-40 0-46z'/%3E%3Cuse href='%23p' transform='rotate(45)'/%3E%3Cuse href='%23p' transform='rotate(90)'/%3E%3Cuse href='%23p' transform='rotate(135)'/%3E%3Cuse href='%23p' transform='rotate(180)'/%3E%3Cuse href='%23p' transform='rotate(225)'/%3E%3Cuse href='%23p' transform='rotate(270)'/%3E%3Cuse href='%23p' transform='rotate(315)'/%3E%3C/g%3E%3Ccircle r='11' fill='%23f2a900'/%3E%3C/svg%3E") no-repeat center / contain; }
.cards > .card:nth-child(6n+1) { --accent: var(--crimson); }
.cards > .card:nth-child(6n+2) { --accent: var(--emerald); }
.cards > .card:nth-child(6n+3) { --accent: var(--saffron); }
.cards > .card:nth-child(6n+4) { --accent: var(--teal); }
.cards > .card:nth-child(6n+5) { --accent: var(--rose); }
.cards > .card:nth-child(6n+6) { --accent: var(--plum); }
.card h3 { margin: 0; color: var(--plum); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card__meta { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .94rem; text-decoration: none; color: var(--accent, var(--crimson)); }
.card__link::after { content: " →"; }
.card--idea { border: 2px dashed var(--rose); border-top-width: 6px; background: var(--rose-soft); box-shadow: none; }
.card__icon { font-size: 2rem; line-height: 1; }
.card__photo { margin: -22px -22px 6px; height: 170px; background-size: cover; background-position: center; }
.pill { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--saffron-soft); color: #7a5200; }
.pill--red { background: var(--rose-soft); color: var(--crimson); }
.section--crimson .card, .section--emerald .card { box-shadow: 0 16px 40px rgb(0 0 0 / .22); }

/* Афиша */
.cards--events { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.event { flex-direction: row; gap: 18px; align-items: flex-start; }
.event__badge { flex: none; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--rose), var(--crimson) 70%); box-shadow: 0 0 0 5px var(--saffron-soft), 0 0 0 7px var(--saffron); }
.event__day { font: 2rem/1 var(--display); }
.event__month { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.event__body { display: flex; flex-direction: column; gap: 6px; }
.empty { background: var(--rose-soft); border: 2px dashed var(--rose); border-radius: var(--radius); padding: 22px; color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.tl { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); align-items: start; }
.tl__flag { font-size: 1.6rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--saffron-soft); }
.tl b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--plum); }
.tl small { display: block; color: var(--emerald); font-weight: 800; }
.tl p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* Галерея */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.mosaic figure:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(7n+4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-weight: 700; font-size: .92rem; background: linear-gradient(transparent, rgb(43 22 34 / .85)); }
.mosaic figcaption small { display: block; font-weight: 400; font-size: .68rem; opacity: .8; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

/* Рецепты */
.recipes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.recipe { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.recipe__photo { height: 230px; background: var(--rc) center / cover; position: relative; }
.recipe__photo--art { display: grid; place-items: center; }
.recipe__photo--art svg { width: 150px; height: 150px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .2)); }
.recipe__tt { position: absolute; left: 16px; bottom: -22px; background: var(--rc); color: #fff; font: 1.5rem var(--display); padding: 6px 18px 8px; border-radius: 999px; box-shadow: 0 6px 16px rgb(0 0 0 / .2); }
.recipe__body { padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.recipe h3 { margin: 0; color: var(--plum); }
.recipe__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe__meta span { font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); }
.recipe p { margin: 0; color: var(--muted); }
.recipe details { margin-top: auto; }
.recipe summary { cursor: pointer; display: inline-flex; font: 800 .95rem var(--sans); color: #fff; background: var(--rc); padding: 9px 18px; border-radius: 999px; list-style: none; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe details[open] summary { margin-bottom: 12px; }
.recipe h4 { margin: 12px 0 6px; font: 800 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--emerald); }
.recipe ul, .recipe ol { margin: 0; padding-left: 20px; font-size: .95rem; }
.recipe li { margin-bottom: 4px; }
.rc-saffron { --rc: #e09a00; } .rc-gold { --rc: #c98a00; } .rc-rose { --rc: var(--rose); } .rc-plum { --rc: var(--plum); } .rc-emerald { --rc: var(--emerald); } .rc-crimson { --rc: var(--crimson); }

/* Фильтры */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; justify-content: center; }
.chip { font: 800 .9rem var(--sans); border: 2px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 15px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.chip:hover { border-color: var(--crimson); }
.chips--light .chip { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .35); color: #fff; }
.chips--light .chip[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: #2b1622; }

/* Новости NL */
.news-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 2fr 1fr; } }
.nlnews { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nlnews li { background: var(--surface); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); }
.nlnews a { text-decoration: none; color: var(--plum); font: 1.15rem/1.3 var(--display); }
.nlnews a:hover { color: var(--crimson); }
.nlnews p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.sources { background: var(--surface); border-radius: var(--radius); padding: 20px; align-self: start; box-shadow: var(--shadow); border-top: 6px solid var(--saffron); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.sources li:first-child { border-top: 0; }
.sources a { font-weight: 800; }

/* Лента мира */
.feed { columns: 300px; column-gap: 18px; }
.post { break-inside: avoid; background: var(--surface); border-radius: 18px; padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--pc, var(--teal)); }
.post__head { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.post__ch { font-weight: 800; color: var(--plum); }
.post p { margin: 0 0 10px; white-space: pre-line; font-size: .96rem; }
.post a { font-weight: 800; font-size: .9rem; text-decoration: none; }
.more { margin: 8px auto 0; display: flex; }

/* Сообщества */
.search { text-align: center; }
.search input { width: 100%; max-width: 460px; font: inherit; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); margin-bottom: 18px; }
.search input:focus { border-color: var(--crimson); outline: none; }
.communities { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.comm { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; background: var(--surface); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.comm:hover { transform: translateY(-2px); color: var(--ink); }
.comm__flag { font-size: 1.7rem; grid-row: span 3; }
.comm b { font-size: .98rem; color: var(--plum); }
.comm small { color: var(--muted); }
.comm__bar { height: 6px; border-radius: 6px; background: var(--rose-soft); overflow: hidden; }
.comm__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--crimson)); }

/* Календарь */
.calendar { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.calendar li { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.calendar li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--saffron), var(--crimson)); }
.calendar small { color: var(--crimson); font-weight: 800; text-transform: uppercase; font-size: .76rem; letter-spacing: .06em; }
.calendar b { display: block; font: 1.15rem var(--display); font-weight: 400; color: var(--plum); margin: 2px 0; }
.calendar span { color: var(--muted); font-size: .9rem; }

/* Татарча — карточки: по нажатию татарское слово сменяется переводом */
.words { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.word { all: unset; cursor: pointer; height: 112px; display: block; position: relative; border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s; }
.word:hover { transform: translateY(-3px) rotate(-1deg); }
.word:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.word__in { display: block; position: absolute; inset: 0; }
.word__front, .word__back { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; border-radius: 18px; padding: 10px; transition: opacity .35s, transform .35s; }
.word__front { background: var(--wc); color: #fff; font: 1.45rem/1.15 var(--display); }
.word__back { background: var(--surface); color: var(--plum); font: 800 1.05rem var(--sans); border: 3px solid var(--wc); opacity: 0; transform: scale(.92); }
.word__back small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.word.flipped .word__front { opacity: 0; transform: scale(1.06); }
.word.flipped .word__back { opacity: 1; transform: none; }

/* Шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--rose), var(--crimson)); color: #fff; font: 1.4rem var(--display); margin-bottom: 10px; box-shadow: 0 0 0 4px var(--saffron-soft); }
.steps h3 { color: var(--plum); }
.steps p { color: var(--muted); font-size: .95rem; margin: 4px 0 8px; }

/* Voor de buren */
.buren__bouquet { position: absolute; width: 360px; right: -70px; bottom: -80px; opacity: .22; }
.buren-card { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); position: relative; }
.buren-card ul { padding-left: 18px; }
.buren-card li { margin-bottom: 8px; }
.buren-card__hi { font: 2.1rem/1.2 var(--display); color: var(--saffron); margin: 16px 0 0; }
.buren-card__hi small { font: italic 1rem var(--sans); color: #fbeee6; }

.foot { padding: 0 0 40px; color: var(--muted); font-size: .88rem; background: var(--bg-tint); }
.foot .vine { margin-bottom: 24px; }
.foot__in { display: grid; gap: 12px; }
@media (min-width: 800px) { .foot__in { grid-template-columns: 2fr 1fr; } #foot-updated { text-align: right; } }
.credits { margin-top: 12px; }
.credits summary { cursor: pointer; font-weight: 800; color: var(--crimson); }
.credits ul { padding-left: 18px; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
