/* jackitos.ru — оформление. Цвета и размеры — в переменных ниже. */
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111114;
  --ink-2: #1c1c21;
  --paper: #f5f3ee;
  --card: #ffffff;
  --text: #17171a;
  --muted: #6b6a70;
  --line: #e3e0d8;
  --accent: #e8392b;
  --accent-ink: #ffffff;
  --accent-soft: #fde6e3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(17 17 20 / .06), 0 8px 24px rgb(17 17 20 / .08);
  --shadow-lg: 0 2px 4px rgb(17 17 20 / .06), 0 18px 48px rgb(17 17 20 / .16);
  --font-head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1040px + 2 * var(--gutter)); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgb(232 57 43 / .3); }
.btn--accent:hover { background: #d42e21; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--ghost-light { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .14); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgb(17 17 20 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .06); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 18px/1 var(--font-head); letter-spacing: -.01em; }
.logo img { width: 34px; height: 48px; object-fit: contain; }
.logo b { font-weight: 600; color: var(--accent); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: rgb(255 255 255 / .78); font-weight: 500; transition: color .15s, background-color .15s; }
.menu a:not(.btn):hover { color: #fff; background: rgb(255 255 255 / .07); }
.menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--accent); }
.menu .btn { margin-left: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .08); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid rgb(255 255 255 / .08); box-shadow: 0 20px 40px rgb(0 0 0 / .3); display: none; }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgb(255 255 255 / .07); border-radius: 0; }
  .menu a[aria-current="page"]::after { display: none; }
  .menu a[aria-current="page"] { color: var(--accent); }
  .menu .btn { margin: 16px 0 0; min-height: 50px; }
}

/* ---------- главная: первый экран ---------- */
.hero { background: var(--ink); color: #fff; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgb(232 57 43 / .28), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero__kicker { margin: 0 0 20px; color: rgb(255 255 255 / .6); font-size: 15px; letter-spacing: .02em; }
.hero__title { margin: 0; max-width: 15em; font: 700 clamp(34px, 6.2vw, 76px)/1.06 var(--font-head); letter-spacing: -.03em; }
.hero__title mark { background: var(--accent); color: #fff; padding: 0 .16em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { max-width: 34em; margin: 28px 0 0; font-size: clamp(17px, 2vw, 20px); color: rgb(255 255 255 / .74); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .6); }
.hero__stats b { display: block; font: 600 34px/1.1 var(--font-head); color: #fff; }

/* ---------- секции ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title, .cat__title { margin: 0; font: 600 clamp(24px, 3.4vw, 36px)/1.15 var(--font-head); letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* большие плитки на главной */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .55) 60%, rgb(0 0 0 / .85)); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 3vw, 32px); }
.tile__meta { display: block; font-size: 14px; color: rgb(255 255 255 / .75); }
.tile__title { display: block; margin-top: 6px; font: 600 clamp(18px, 2.4vw, 28px)/1.2 var(--font-head); letter-spacing: -.01em; }

/* карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: block; padding: 18px 20px 22px; }
.card__meta { display: block; font-size: 14px; color: var(--muted); }
.card__title { display: block; margin-top: 4px; font-weight: 600; font-size: 18px; line-height: 1.35; }
.card--more { justify-content: flex-end; gap: 10px; padding: 28px; background: var(--ink); color: #fff; min-height: 220px; }
.card--more .card__title { font-size: 20px; }
.card--more .link-more { color: #ff7a6e; }
.card__more-num { font: 700 56px/1 var(--font-head); color: var(--accent); letter-spacing: -.03em; margin-bottom: auto; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgb(17 17 20 / .78); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.badge--inline { position: static; display: inline-block; margin-left: 8px; vertical-align: 1px; background: var(--ink); }

/* призыв */
.cta { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px); background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); }
.cta__title { margin: 0; font: 600 clamp(22px, 3vw, 32px)/1.2 var(--font-head); letter-spacing: -.02em; }
.cta__text { margin: 10px 0 0; max-width: 32em; color: rgb(255 255 255 / .7); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
.cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- внутренние страницы ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head--center { text-align: center; padding-bottom: 96px; }
.page-title { margin: 0; font: 700 clamp(32px, 5.4vw, 60px)/1.08 var(--font-head); letter-spacing: -.03em; }
.page-lead { margin: 16px 0 0; max-width: 36em; font-size: 19px; color: var(--muted); }
.page-head--center .page-lead { margin-left: auto; margin-right: auto; }
.page-lead a { color: var(--accent); }
.big404 { margin: 0 0 8px; font: 800 clamp(80px, 18vw, 160px)/1 var(--font-head); color: var(--accent); letter-spacing: -.04em; }
.chips { position: sticky; top: 72px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 10px 0; background: var(--paper); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; text-decoration: none; transition: box-shadow .15s, background-color .15s, color .15s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.cat { padding: 24px 0 48px; }
.cat__title { margin-bottom: 24px; }
.cat__title span { font-size: .55em; color: var(--muted); vertical-align: .5em; font-family: var(--font); font-weight: 600; }

/* страница работы */
.proj__head { padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.proj__title { margin: 0; font: 700 clamp(28px, 4.8vw, 52px)/1.1 var(--font-head); letter-spacing: -.025em; }
.proj__meta { margin: 16px 0 0; color: var(--muted); }
.lead { margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; }
.lead + .lead { margin-top: 12px; }
.proj__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.proj__body { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; }
.proj__body .prose { max-width: 760px; width: 100%; margin: 0 auto; }
.prose { margin: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.shot { margin: 18px 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot img { width: 100%; cursor: zoom-in; }
.file { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); color: var(--text) !important; font-weight: 600; text-decoration: none; }
.pnavs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: clamp(48px, 7vw, 80px); }
.pnav { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pnav:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pnav span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pnav b { font-weight: 600; font-size: 17px; line-height: 1.35; }
.pnav--next { grid-column: 2; text-align: right; align-items: flex-end; }

/* мир */
.trips { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; counter-reset: trip; }
.trip__a { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 120px; padding: 22px 56px 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; height: 100%; transition: transform .2s, box-shadow .2s; }
a.trip__a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trip__place { font: 600 22px/1.2 var(--font-head); letter-spacing: -.01em; }
.trip__when { color: var(--muted); }
.trip__go { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.trip__parts { display: flex; gap: 8px; margin-top: 8px; }
.trip__parts a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; text-decoration: none; }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.contacts__me { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); padding: 8px; }
.contacts .lead { margin-top: 18px; }
.contacts .prose { margin-top: 14px; color: var(--muted); }
.mail { display: inline-block; margin-top: 24px; font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--font-head); color: var(--accent); text-underline-offset: 6px; word-break: break-all; }
.form { background: var(--card); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.form__title { margin: 0 0 20px; font: 600 24px/1.2 var(--font-head); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: inherit; transition: border-color .15s, background-color .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: #fff; }
.field.is-error input, .field.is-error textarea { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__status { margin: 14px 0 0; font-weight: 600; }
.form__status.is-ok { color: #1f8a4c; }
.form__status.is-err { color: var(--accent); }
.form.is-sent .field, .form.is-sent .btn { display: none; }

/* подвал */
.footer { background: var(--ink); color: rgb(255 255 255 / .7); padding: 36px 0; font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__me { display: flex; align-items: center; gap: 14px; }
.footer__me a { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgb(255 255 255 / .7); text-decoration: none; }
.footer__nav a:hover { color: #fff; }

/* картинка крупно */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 10 12 / .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); width: auto; height: auto; border-radius: 8px; }
.lightbox__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .tile, .tile--wide { aspect-ratio: 4 / 3; }
  .grid { gap: 14px; }
  .contacts { grid-template-columns: 1fr; }
  .pnavs { grid-template-columns: 1fr; gap: 12px; }
  .pnav--next { grid-column: auto; }
  .section__head { align-items: center; }
  .hero__btns .btn { flex: 1 1 auto; }
  .cta__btns, .cta__btns .btn { width: 100%; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* =====================================================================
   БЛОГ: полоса разделов, заметки, текст, галереи, теги, архив, поиск
   ===================================================================== */
.blognav { background: var(--ink-2); border-bottom: 1px solid rgb(255 255 255 / .06); }
.blognav__in { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.blognav__in::-webkit-scrollbar { display: none; }
.blognav a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: rgb(255 255 255 / .7); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; transition: color .15s; }
.blognav a:hover { color: #fff; }
.blognav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.blognav .blognav__rss { margin-left: auto; font-size: 13px; letter-spacing: .04em; color: rgb(255 255 255 / .5); }
.page-title--sm { font-size: clamp(28px, 4.2vw, 44px); margin: clamp(28px, 5vw, 56px) 0 8px; }
.page-lead { margin: 6px 0 24px; }

.feed { padding-bottom: clamp(32px, 6vw, 64px); }
.note { padding: clamp(28px, 5vw, 48px) 0; border-bottom: 1px solid var(--line); }
.note:last-of-type { border-bottom: 0; }
.note__head { margin-bottom: 18px; }
.note__title { margin: 0; font: 600 clamp(22px, 3.2vw, 32px)/1.2 var(--font-head); letter-spacing: -.02em; }
.note__title a { text-decoration: none; }
.note__title a:hover { color: var(--accent); }
.note__title--big { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.note__date { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.note--full { padding-top: clamp(32px, 6vw, 64px); border-bottom: 0; }
.star { color: #e8a317; font-family: var(--font); font-size: .7em; vertical-align: .15em; }

.prose { font-size: clamp(17px, 2vw, 19px); line-height: 1.7; overflow-wrap: break-word; }
.prose > * { margin: 0 0 1.1em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-head); letter-spacing: -.015em; line-height: 1.25; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.5em; } .prose h3 { font-size: 1.25em; } .prose h4 { font-size: 1.1em; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: #3a3940; }
.prose blockquote > * { margin: 0 0 .8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose .lead { font-size: 1.2em; line-height: 1.5; }
.prose .loud { font: 700 1.6em/1.25 var(--font-head); letter-spacing: -.02em; }
.prose .foot { font-size: .85em; color: var(--muted); }
.prose .blockurl { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; }
.prose .blockurl a { color: var(--accent); text-decoration: none; }

.pic { margin: 1.5em 0; }
.pic img { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--line); cursor: zoom-in; }
.pic figcaption { margin-top: 10px; font-size: .85em; line-height: 1.45; color: var(--muted); }
.gallery { display: flex; gap: 14px; margin: 1.5em calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gallery .pic { flex: 0 0 min(86%, 560px); margin: 0; scroll-snap-align: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin: 1.5em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 500; text-decoration: none; transition: box-shadow .15s, color .15s; }
.tag:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.tag i { font-style: normal; color: var(--muted); font-size: .85em; }
.tags--cloud { margin-top: 12px; }
.tag--n { min-height: 40px; font-size: 16px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 8px; }
.pager__a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; text-decoration: none; }
.pager__a:hover { color: var(--accent); }
.pager__n { color: var(--muted); font-size: 15px; }

.postlist { list-style: none; margin: 0 0 32px; padding: 0; }
.postlist li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.postlist a { font-weight: 600; text-decoration: none; font-size: 18px; line-height: 1.35; }
.postlist a:hover { color: var(--accent); }
.postlist time { flex: none; color: var(--muted); font-size: 14px; }
.year { margin-bottom: 12px; }
.year__h { margin: 36px 0 8px; font: 600 28px/1.2 var(--font-head); }
.year__h a { text-decoration: none; }
.year__h span { font: 500 16px var(--font); color: var(--muted); }
.related { margin-top: 40px; }
.related__h { font: 600 20px/1.3 var(--font-head); margin: 0 0 8px; }
.blogpage .chips { position: static; }
.wrap--text .chips { position: static; margin: 8px 0 12px; padding: 0; }

.search input { width: 100%; min-height: 56px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 18px; }
.search input:focus { outline: none; border-color: var(--text); }
.results { margin: 24px 0 64px; }
.results .hit { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.results .hit b { display: block; font-size: 19px; line-height: 1.35; }
.results .hit:hover b { color: var(--accent); }
.results .hit small { display: block; color: var(--muted); margin-top: 2px; }
.results .hit p { margin: 6px 0 0; color: #3a3940; line-height: 1.5; }
.results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.results .none { color: var(--muted); }
@media (max-width: 760px) {
  .postlist li { flex-direction: column; gap: 2px; }
  .pager { flex-wrap: wrap; }
  .pager__n { order: -1; width: 100%; text-align: center; }
}

/* ===== единый стиль с jackitos.ru: первый экран, карточки заметок, страница заметки ===== */
.hero--blog .hero__title { max-width: 14em; }
.hero--blog + .section { padding-top: clamp(40px, 6vw, 72px); }
.card__text { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title { font-size: 19px; }
.card--text { background: var(--ink); color: #fff; justify-content: flex-end; min-height: 260px; }
.card--text .card__meta { color: rgb(255 255 255 / .55); }
.card--text .card__text { color: rgb(255 255 255 / .72); -webkit-line-clamp: 5; }
.card--text .card__title { color: #fff; }
.card--text:hover { background: var(--ink-2); }
.badge--star { background: rgb(232 163 23 / .95); color: #111; }
.section--tight { padding: 8px 0 clamp(24px, 4vw, 48px); }
.section__title--sm { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 20px; }
.section .pager { padding-top: 32px; }
.tiles .tile { aspect-ratio: 21 / 9; }
.blogpost .proj__head { padding-bottom: clamp(20px, 3vw, 32px); }
.blogpost .proj__body { padding-bottom: clamp(24px, 4vw, 48px); gap: 0; }
.blogpost .tags { margin-top: 16px; }
.proj__title .star { font-size: .5em; vertical-align: .55em; }
.blogpost .prose { max-width: 760px; margin: 0 auto; width: 100%; }
.blogpost .prose > .pic:first-child, .blogpost .prose > .gallery:first-child, .blogpost .prose > .video:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .blogpost .prose > .pic:not(.pic--g), .blogpost .prose > .video {
    width: min(1040px, calc(100vw - 2 * var(--gutter))); max-width: none; margin: 1.5em 0 1.5em 50%; transform: translateX(-50%);
  }
  .blogpost .prose > .gallery {
    width: min(1040px, calc(100vw - 2 * var(--gutter))); margin: 1.5em 0 1.5em 50%; transform: translateX(-50%); padding: 0 0 12px;
  }
  .blogpost .prose > .gallery .pic { flex-basis: 480px; }
}
@media (max-width: 760px) {
  .tiles .tile { aspect-ratio: 4 / 3; }
  .card--text { min-height: 200px; }
}

/* ===== главная блога: лента и список ===== */
.hero--compact { padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 52px); }
.hero--compact .hero__title { font-size: clamp(30px, 5vw, 56px); }
.hero--compact .hero__lead { margin-top: 20px; }
.hero--compact .hero__stats { margin-top: 32px; padding-top: 22px; }

.feed { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(32px, 6vw, 64px); }
.post { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.post__head { margin-bottom: 20px; }
.post__date { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.post__title { margin: 0; font: 600 clamp(24px, 3.4vw, 34px)/1.15 var(--font-head); letter-spacing: -.02em; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--accent); }
.post__more { margin: 8px 0 0; }
.post .tags { margin-top: 20px; }

.wrap--list { max-width: calc(980px + 2 * var(--gutter)); }
.list { padding-bottom: clamp(32px, 6vw, 64px); }
.rows__year { margin: 44px 0 12px; font: 600 28px/1.2 var(--font-head); letter-spacing: -.02em; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__a { display: grid; grid-template-columns: 76px 1fr 176px; gap: 20px 28px; align-items: start; padding: 24px 12px; text-decoration: none; border-radius: 14px; transition: background-color .15s; }
.row__a:hover { background: var(--card); }
.row__date { padding-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.2; }
.row__date b { display: block; margin-bottom: 4px; font: 600 28px/1 var(--font-head); color: var(--text); }
.row__main { display: block; min-width: 0; }
.row__title { display: block; font-weight: 700; font-size: 21px; line-height: 1.3; }
.row__a:hover .row__title { color: var(--accent); }
.row__text { display: block; margin-top: 8px; color: #4a4950; font-size: 16px; line-height: 1.55; }
.row__tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.row__img img { width: 176px; height: 117px; object-fit: cover; border-radius: 10px; background: var(--line); }
@media (max-width: 700px) {
  .row__a { grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 20px 4px; }
  .row__img { display: none; }
  .row__date b { font-size: 24px; }
}

/* ===== оценки из 10 и страница «Оценки» ===== */
.rate { display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 11px; border-radius: 999px; font-family: var(--font); font-size: .42em; font-weight: 700; line-height: 1.3; letter-spacing: 0; vertical-align: .55em; white-space: nowrap; }
.rate b { font-size: 1.15em; }
.rate i { font-style: normal; font-size: .8em; opacity: .65; }
.rate--hi { background: #e1f5e8; color: #14733a; }
.rate--mid { background: #fff1cf; color: #8a5a00; }
.rate--low { background: #fde4e1; color: #b42318; }
.row__title .rate, .postlist .rate { font-size: 14px; vertical-align: 2px; margin-left: 4px; }
.ratefilter { display: grid; gap: 16px; margin: 8px 0 24px; }
.ratefilter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ratefilter .chip { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ratefilter .chip i { font-style: normal; margin-left: 6px; font-size: .85em; color: var(--muted); }
.ratefilter .chip.is-active i { color: rgb(255 255 255 / .6); }
.ratefilter__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ratefilter label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.ratefilter select { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 500; }
.ratefilter__n { margin-left: auto; color: var(--muted); font-size: 14px; }
.none { color: var(--muted); }
#rated { margin-bottom: 48px; }
@media (max-width: 700px) { .ratefilter__n { margin-left: 0; width: 100%; } }

/* оценка на фото */
.pic { position: relative; }
.rate--lg { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 84px; height: 84px; padding: 0; border-radius: 50%; border: 5px solid; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .28); font-size: 12px; vertical-align: baseline; }
.rate--lg b { font: 700 28px/1 var(--font-head); letter-spacing: -.03em; }
.rate--lg i { margin-top: 2px; font-size: 11px; opacity: .7; }
.rate--lg.rate--hi { background: #fff; border-color: #2fb464; color: #14733a; }
.rate--lg.rate--mid { background: #fff; border-color: #f0b429; color: #8a5a00; }
.rate--lg.rate--low { background: #fff; border-color: #e5483b; color: #b42318; }
@media (max-width: 600px) { .rate--lg { width: 68px; height: 68px; top: 10px; right: 10px; border-width: 4px; } .rate--lg b { font-size: 22px; } }

/* ===== рубрика «Ватерклозет» ===== */
.wcwrap { padding-bottom: 72px; }
.wcfilter { display: grid; gap: 16px; margin: 22px 0 22px; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.wcfilter__row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.wcfilter label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 150px; flex: 1 1 150px; }
.wcfilter select { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #faf9f5; font: inherit; font-size: 15px; color: var(--text); }
.wcfilter select:focus { outline: none; border-color: var(--text); }
.sw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw__t { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.sw button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.sw button.on { box-shadow: 0 0 0 3px var(--accent); }
.wcfilter__foot { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.wcfilter__foot button { border: 0; background: transparent; color: var(--accent); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wall { column-count: 4; column-gap: 14px; }
.wt { position: relative; display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--line); cursor: zoom-in; box-shadow: var(--shadow); }
.wt img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.wt:hover img { transform: scale(1.04); }
.wt__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .72)); font-size: 13px; line-height: 1.35; }
.wt__cap b { display: block; font-size: 15px; font-weight: 700; }
.wt .rate--lg { width: 54px; height: 54px; top: 10px; right: 10px; border-width: 4px; }
.wt .rate--lg b { font-size: 17px; }
.wt .rate--lg i { display: none; }
.none { color: var(--muted); padding: 40px 0; text-align: center; column-span: all; }
.wcview { width: min(1200px, 96vw); max-width: none; height: min(92vh, 880px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #111114; color: #fff; }
.wcview[open] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.wcview::backdrop { background: rgb(8 8 10 / .86); }
.wcview__img { display: grid; place-items: center; background: #0b0b0d; padding: 12px; min-height: 0; }
.wcview__img img { max-width: 100%; max-height: calc(min(92vh, 880px) - 24px); object-fit: contain; border-radius: 8px; }
.wcview__side { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.wcview__side h2 { margin: 0; font: 600 22px/1.25 var(--font-head); letter-spacing: -.01em; }
.wcview__side .where { color: rgb(255 255 255 / .75); font-size: 16px; }
.wcview dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.wcview dt { color: rgb(255 255 255 / .5); }
.wcview dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.wcview .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .35); }
.wcview .nav { margin-top: auto; display: flex; gap: 10px; }
.wcview .nav button { flex: 1; min-height: 48px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .25); background: transparent; color: #fff; font: 600 15px var(--font); cursor: pointer; }
.wcview .nav button:hover { background: rgb(255 255 255 / .1); }
.wcview .close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .16); color: #fff; font-size: 26px; cursor: pointer; }
.wcview .rate--lg { position: static; width: 70px; height: 70px; }
@media (max-width: 1000px) { .wall { column-count: 3; } }
@media (max-width: 760px) {
  .wall { column-count: 2; column-gap: 10px; } .wt { margin-bottom: 10px; }
  .wcview[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: 94vh; }
  .wcview__img img { max-height: 58vh; } .wcview__side { padding: 16px; } .wcview dl { grid-template-columns: auto 1fr; }
}

.wt[hidden] { display: none; }
