/* Verse Weekly — site styles.
   The site reads like an issue of the magazine: a cover, rubrics, dictionary entries.
   Palette and type follow the Verse brand book (Oct 2026). */

:root {
  --paper: #FBFAF7;
  --paper-2: #F4F0E8;
  --sand: #EDE3D3;
  --blue: #C7DAEE;
  --blue-deep: #A9C3DF;
  --garden: #2D5A44;
  --garden-2: #24493A;
  --ink: #161616;
  --muted: #5B5750;
  --cherry: #C23B34;
  --line: rgba(22, 22, 22, .16);
  --white: #FFFFFF;

  /* Instrument Serif has no Cyrillic: Russian falls back to a condensed Noto Serif Display */
  --f-display: 'Instrument Serif', 'Noto Serif Display', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', cursive;

  --s-1: .8125rem;
  --s0: 1rem;
  --s1: 1.1875rem;
  --s2: 1.5rem;
  --s3: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  --s4: clamp(2.6rem, 1.5rem + 4.4vw, 4.9rem);

  --wrap: 1240px;
  --gut: max(18px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper) url(/assets/img/paper.jpg) repeat;
  background-size: 720px auto;
  color: var(--ink);
  font: 400 var(--s0)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--garden); }
:focus-visible { outline: 2px solid var(--garden); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
i, em { font-style: italic; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* service line: letter-spaced caps, used only where the brand book uses it (issue numbers, rubric heads, bridges) */
.svc, .post-top, .post-foot, .cover-meta, .brand-tag {
  font: 600 .68rem/1.2 var(--f-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ru-serif { font-family: var(--f-display); font-stretch: 72%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--f-body);
  padding: 15px 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--garden); border-color: var(--garden); color: var(--paper); }
.btn.primary:hover { background: var(--garden-2); border-color: var(--garden-2); }
.btn.small { padding: 10px 16px; font-size: .85rem; }

/* ---------- announce + header ---------- */
.announce { background: var(--ink); color: var(--paper); font-size: .82rem; }
.announce .wrap { display: flex; justify-content: space-between; gap: 8px 20px; padding-block: 9px; flex-wrap: wrap; }
.announce b { font-family: var(--f-display); font-stretch: 72%; font-weight: 400; font-size: 1.05rem; font-style: italic; }
.announce a { color: var(--blue); }
.announce a:hover { color: var(--paper); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.vicon { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.vicon > span { font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 22px; line-height: 1; transform: translate(1px, 1px); }
.vicon svg { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; }
.brand-name { font-family: var(--f-display); font-stretch: 72%; font-size: 1.9rem; line-height: 1; }
.brand-tag { font-size: .56rem; line-height: 1.35; }
.brand-tag b { color: var(--garden); font-weight: 700; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; font-weight: 500; padding-block: 6px; }
.nav a.on { text-decoration: underline; text-underline-offset: 7px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 15px; font: 600 .85rem var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; gap: 0; padding: 6px var(--gut) 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
}

/* ---------- section scaffolding ---------- */
section { scroll-margin-top: 70px; }
.sec { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--ink); }
.sec.blue { background: var(--blue); }
.sec.sand { background: var(--sand); }
.sec.tint { background: var(--paper-2); }

/* section head = a dictionary entry: English headword, then "= " Russian gloss */
.entry { display: grid; gap: 14px; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 820px; }
.entry h2 { font-family: var(--f-display); font-stretch: 72%; font-size: var(--s4); line-height: .96; letter-spacing: -.01em; }
.entry .gloss { font-size: var(--s1); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.entry .gloss > span[aria-hidden] { font-family: var(--f-display); font-stretch: 72%; font-size: 1.5em; line-height: 0; color: var(--ink); margin-right: .2em; vertical-align: -.05em; }
.entry-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.entry-row > div:first-child { display: grid; gap: 14px; max-width: 760px; }

/* ---------- COVER ---------- */
.cover { padding-block: clamp(22px, 3.5vw, 40px) clamp(48px, 7vw, 88px); overflow: hidden; }
.cover-meta { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: clamp(14px, 2.5vw, 28px); }

.masthead { position: relative; display: grid; grid-template-columns: auto 1fr; font-family: var(--f-display); font-stretch: 72%; line-height: .78; letter-spacing: -.035em; padding-bottom: clamp(18px, 2.4vw, 30px); border-bottom: 2px solid var(--ink); }
.m-verse { grid-column: 1 / -1; font-size: clamp(6rem, 3rem + 13vw, 15.5rem); }
.m-weekly { grid-column: 1 / -1; font-style: italic; font-size: clamp(5.2rem, 2.5rem + 11.5vw, 13.5rem); padding-left: clamp(36px, 8vw, 128px); margin-top: -.06em; }
.m-no { position: absolute; right: clamp(0px, 1vw, 16px); top: clamp(18px, 3.2vw, 46px); font: 600 clamp(1rem, .7rem + .9vw, 1.45rem)/1 var(--f-body); letter-spacing: .14em; color: var(--garden); padding: 16px 22px; }
.m-no span { color: var(--ink); }
.m-no svg { position: absolute; inset: -4px -10px; width: calc(100% + 20px); height: calc(100% + 8px); overflow: visible; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s .45s cubic-bezier(.55, .1, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.tagline { font-family: var(--f-display); font-stretch: 72%; font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.8rem); line-height: 1.05; margin-top: clamp(18px, 2.4vw, 28px); }
.lede { font-size: var(--s1); line-height: 1.55; max-width: 56ch; margin-top: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.cover-photo { position: relative; padding: 22px 8px 0; margin-top: clamp(0px, 2vw, 24px); }
.taped { position: relative; margin: 0; background: var(--white); padding: 11px 11px 48px; box-shadow: 0 22px 44px rgba(22, 22, 22, .16); transform: rotate(1.8deg); }
.taped img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.taped figcaption { position: absolute; left: 16px; right: 16px; bottom: 13px; font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 1.2rem; }
.tape { position: absolute; top: -14px; left: 50%; width: 132px; height: 36px; transform: translateX(-50%) rotate(-4deg); background: url(/assets/img/tape.png) center / 100% 100% no-repeat; opacity: .92; z-index: 2; }
.hand { font-family: var(--f-hand); color: var(--cherry); font-weight: 600; line-height: 1; }
.hand-me { position: absolute; left: -64px; top: 30%; font-size: 2.2rem; transform: rotate(-8deg); display: flex; flex-direction: column; align-items: flex-end; }
.hand-me svg { width: 62px; height: 44px; margin-top: 2px; }
.issue-sticker { position: absolute; left: -40px; bottom: -34px; width: min(62%, 280px); background: var(--blue); padding: 14px 16px 14px; transform: rotate(-3.5deg); box-shadow: 0 14px 30px rgba(22, 22, 22, .18); text-decoration: none; color: var(--ink); z-index: 3; display: grid; gap: 4px; transition: transform .2s; }
.issue-sticker:hover { color: var(--ink); transform: rotate(-1.5deg) translateY(-3px); }
.issue-sticker strong { font-family: var(--f-display); font-stretch: 72%; font-weight: 400; font-size: 2.1rem; line-height: .95; }
.issue-sticker span:last-child { font-size: .85rem; line-height: 1.35; }

.coverlines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--ink); }
.coverlines a { display: grid; gap: 4px; padding: 16px 20px 4px 0; text-decoration: none; }
.coverlines a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.coverlines b { font-family: var(--f-display); font-stretch: 72%; font-weight: 400; font-size: 1.6rem; line-height: 1; }
.coverlines span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.coverlines a:hover b { color: var(--garden); }

@media (max-width: 920px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-photo { max-width: 400px; margin: 20px auto 30px; }
  .hand-me { left: -18px; top: -6px; font-size: 1.9rem; }
  .hand-me svg { display: none; }
  .issue-sticker { left: -14px; }
  .coverlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverlines a:nth-child(3) { padding-left: 0; border-left: 0; }
  .coverlines a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hide-s { display: none; }
  .m-no { top: auto; bottom: 16px; padding: 12px 16px; }
  .coverlines { grid-template-columns: minmax(0, 1fr); }
  .coverlines a, .coverlines a + a { padding-left: 0; border-left: 0; }
  .coverlines a + a { border-top: 1px solid var(--line); }
}

/* ---------- WEEK (tabs + post cards) ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }
.days button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; align-content: start; padding: 14px 12px 14px 0; border-bottom: 1px solid rgba(22, 22, 22, .25); position: relative; }
.days button b { font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.days button span { font-family: var(--f-display); font-stretch: 72%; font-size: 1.25rem; line-height: 1.05; }
.days button::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: background .15s; }
.days button[aria-selected="true"]::before { background: var(--garden); border-color: var(--garden); }
.days button[aria-selected="true"] { border-bottom: 3px solid var(--ink); }
.days button:hover span { color: var(--garden); }
.days button:focus-visible { outline: 2px solid var(--garden); outline-offset: 2px; }
@media (max-width: 860px) {
  .days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; scrollbar-width: none; }
  .days::-webkit-scrollbar { display: none; }
  .days button { flex: none; scroll-snap-align: start; min-width: 120px; }
}

.day { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.day[hidden] { display: none; }
.day-text { display: grid; gap: 16px; max-width: 52ch; }
.day-text h3 { font: 600 var(--s2)/1.2 var(--f-body); letter-spacing: -.01em; }
.day-text p { font-size: 1.06rem; }
.takeaway { margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 4px; }
.takeaway dt { font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 1.3rem; }
.takeaway dd { margin: 0; }
@media (max-width: 860px) { .day { grid-template-columns: minmax(0, 1fr); } .day .post { max-width: 440px; } }

/* post = an Instagram card rendered in HTML, 4:5 */
.post { position: relative; aspect-ratio: 4 / 5; background: var(--paper); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 50px rgba(22, 40, 60, .18); overflow: hidden; }
.post.paper { background: var(--paper) url(/assets/img/paper.jpg) center / cover; }
.post.blue-card { background: #DCE8F4; }
.post.photo { background: var(--ink) var(--img) center / cover no-repeat; color: var(--paper); }
.post.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .55) 100%); }
.post > * { position: relative; }
.post-top { display: flex; justify-content: space-between; gap: 10px; font-size: .6rem; padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.post-top.light, .post-bottom.light { color: var(--paper); }
.post-title { font-family: var(--f-display); font-stretch: 72%; font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); line-height: .98; letter-spacing: -.01em; }
.post-title.big { font-size: clamp(3rem, 2rem + 3vw, 4.1rem); line-height: .9; }
.post-title i.g { color: var(--garden); }
.post-sub { font-size: .82rem; line-height: 1.4; color: var(--muted); }
.post .src { font-size: .72rem; color: var(--muted); }
.post-bottom { margin-top: auto; display: grid; gap: 6px; }
.post-bottom p { font-size: .85rem; }
.post-h { font-family: var(--f-display); font-stretch: 72%; font-size: 2.2rem; line-height: 1; }
.post-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .56rem; padding-top: 8px; border-top: 1px solid currentColor; margin-top: auto; }

.trend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; flex: 1; }
.trend .post-title { grid-column: 1 / -1; }
.trend img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.trend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .78rem; line-height: 1.3; }
.trend ul b { display: block; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.trend .why { grid-column: 1 / -1; font-size: .78rem; line-height: 1.4; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; }

.article { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; flex: 1; align-items: stretch; }
.article img { width: 100%; height: 100%; object-fit: cover; }
.article .bw { filter: grayscale(1) contrast(1.05); }
.article > div { display: flex; flex-direction: column; gap: 8px; }
.article ol { margin: auto 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .8rem; line-height: 1.3; }
.article ol li::marker { color: var(--cherry); font-weight: 700; }

.dict-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 7.2rem; gap: 10px; align-items: stretch; margin-top: 4px; }
.dict { background: var(--white); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; box-shadow: 0 4px 14px rgba(22, 22, 22, .08); }
.dict-word { font-family: var(--f-display); font-stretch: 72%; font-size: 2.1rem; line-height: 1; display: flex; align-items: center; gap: 10px; }
.dict-ipa { font-size: .8rem; color: var(--muted); }
.dict-tr { font-weight: 600; font-size: .92rem; }
.dict-ex { font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 1.2rem; line-height: 1.2; margin-top: 2px; }
.dict-ex-ru { font-size: .76rem; color: var(--muted); }
.dict-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; font-family: var(--f-hand); color: var(--cherry); font-size: 1.12rem; line-height: 1; }
.dict-notes li::before { content: "← "; }
.scale-h { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.scale { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.scale span { font-size: .72rem; padding: 4px 8px; border-radius: 999px; background: rgba(194, 59, 52, calc(.08 + var(--k, 0) * .1)); }
.scale span:nth-child(2) { --k: 1; } .scale span:nth-child(3) { --k: 2; } .scale span:nth-child(4) { --k: 3; }
.scale span:nth-child(5) { --k: 6; color: var(--paper); }

.wl { margin: auto 0 0; display: grid; border-top: 1px solid var(--ink); }
.wl div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.wl dt { font-weight: 600; }
.wl dd { margin: 0; }

.phrase-card { margin-top: auto; background: var(--paper); color: var(--ink); padding: 14px 16px; display: grid; gap: 6px; }
.phrase-card .post-title { font-size: 2.4rem; }
.phrase-card .ex { font-family: var(--f-display); font-stretch: 72%; font-style: italic; color: var(--garden); font-size: 1.1rem; }
.phrase-card .post-foot { margin-top: 4px; }

.chip { display: inline-flex; align-items: center; justify-content: center; font: 700 .68rem/1 var(--f-body); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: var(--blue); color: var(--ink); }
.chip.A2 { background: var(--blue); }
.chip.B1 { background: var(--sand); }
.chip.B2 { background: var(--garden); color: var(--paper); }

/* versudoku */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 236px); aspect-ratio: 1; margin: 4px auto 0; border: 2.5px solid var(--ink); background: var(--white); }
.vgrid input { width: 100%; height: 100%; min-width: 0; border: 1px solid #bdb6aa; text-align: center; font: 400 1.9rem/1 var(--f-display); text-transform: uppercase; background: var(--white); color: var(--ink); padding: 0; border-radius: 0; caret-color: var(--garden); }
.vgrid input[readonly] { background: var(--sand); }
.vgrid input:nth-child(4n+2) { border-right: 2.5px solid var(--ink); }
.vgrid input:nth-child(n+5):nth-child(-n+8) { border-bottom: 2.5px solid var(--ink); }
.vgrid input.bad { background: #F6E1DE; }
.vgrid.solved input { background: #E3EDE6; }
.puzzle-row { display: flex; align-items: center; gap: 12px; justify-content: center; }
.puzzle-msg { font-size: .78rem; font-weight: 600; min-height: 1.2em; max-width: 24ch; line-height: 1.3; }

/* ---------- GOOD NEWS ---------- */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.nw { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.nw:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.nw h3 { font-family: var(--f-display); font-stretch: 72%; font-size: 1.75rem; line-height: 1.02; }
.nw p { font-size: .95rem; line-height: 1.45; }
.nw .w { color: var(--muted); }
.nw .w b { color: var(--ink); font-weight: 400; font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 1.15rem; }
.nw .q { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; margin-top: auto; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: var(--blue); transition: background .15s; }
.nw .q span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.nw .q span::after { content: " — нажми"; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.nw .q i { font-family: var(--f-display); font-stretch: 72%; font-size: 1.2rem; line-height: 1.15; filter: blur(5px); transition: filter .25s; user-select: none; }
.nw .q[aria-expanded="true"] i { filter: none; user-select: auto; }
.nw .q[aria-expanded="true"] span::after { content: ""; }
.nw .q:hover { background: var(--blue-deep); }
.nw .q:focus-visible { outline: 2px solid var(--garden); outline-offset: 2px; }
.srcl { font-size: .78rem; color: var(--muted); }
.after-news { margin-top: 28px; font-size: 1.02rem; }
@media (max-width: 1040px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .nw:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .news { grid-template-columns: minmax(0, 1fr); }
  .nw:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- LEARN ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.way { background: var(--paper); display: flex; flex-direction: column; height: 100%; box-shadow: 0 14px 34px rgba(60, 45, 20, .1); }
.way img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.way-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.way h3 { font-family: var(--f-display); font-stretch: 72%; font-size: 2.3rem; line-height: 1; }
.way-ru { font-weight: 600; font-size: .95rem; margin-top: -6px; }
.way p { font-size: .98rem; }
.way .price { font-family: var(--f-display); font-stretch: 72%; font-size: 1.6rem; line-height: 1.1; margin-top: auto; }
.way .btn { align-self: start; }
.way.feat { background: var(--garden); color: var(--paper); transform: translateY(-18px); }
.way.feat .btn.primary { background: var(--paper); border-color: var(--paper); color: var(--garden); }
.way.feat .btn.primary:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.tariffs { list-style: none; margin: 2px 0 0; padding: 0; border-top: 1px solid var(--ink); margin-top: auto; }
.tariffs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tariffs b { font-family: var(--f-display); font-stretch: 72%; font-weight: 400; font-size: 1.3rem; line-height: 1; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .way.feat { transform: none; } }

.meeting { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.meeting li { position: relative; padding: 18px 16px 0 0; font-size: .92rem; line-height: 1.4; }
.meeting li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--garden); }
.meeting b { display: block; font-family: var(--f-display); font-stretch: 72%; font-weight: 400; font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.meeting-h { font: 600 var(--s1)/1.3 var(--f-body); margin: clamp(48px, 6vw, 80px) 0 22px; }
@media (max-width: 900px) { .meeting { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .meeting { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); row-gap: 18px; } .meeting li { padding: 0 0 0 20px; } .meeting li::before { top: 4px; left: -7px; } }

/* ---------- TEST ---------- */
.test { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.levels { margin: 0; display: grid; }
.levels div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.levels dd { margin: 0; }
.levels b { font-weight: 600; }
.test-card { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(22px, 3vw, 34px); min-height: 420px; display: flex; flex-direction: column; }
.test-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.test-progress i { flex: 1; height: 4px; background: var(--line); }
.test-progress i.on { background: var(--garden); }
.test-n { font-size: .85rem; color: var(--muted); }
.test-q { font-family: var(--f-display); font-stretch: 72%; font-size: var(--s3); line-height: 1.08; margin: 8px 0 22px; }
.test-q .gap { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--cherry); }
.test-opts { display: grid; gap: 10px; }
.opt { text-align: left; font: 500 1rem/1.35 var(--f-body); padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; border-radius: 12px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink); }
.opt.right { background: #E3EDE6; border-color: var(--garden); }
.opt.wrong { background: #F6E1DE; border-color: var(--cherry); }
.result-level { font: 700 clamp(4rem, 9vw, 6.4rem)/.9 var(--f-body); letter-spacing: -.05em; color: var(--garden); margin-top: 6px; }
.test-card h3 { font: 600 1.5rem/1.2 var(--f-body); margin: 10px 0 8px; }
.test-card .cta-row { margin-top: auto; padding-top: 24px; }
@media (max-width: 860px) { .test { grid-template-columns: minmax(0, 1fr); } .test-card { min-height: 0; } }

/* ---------- DASHA ---------- */
.dasha { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.dasha-photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; position: sticky; top: 90px; }
.dasha-photos img { width: 100%; object-fit: cover; border: 8px solid var(--white); box-shadow: 0 12px 28px rgba(22, 22, 22, .13); }
.dasha-photos img:nth-child(1) { aspect-ratio: 3 / 4; grid-row: span 2; transform: rotate(-1.6deg); }
.dasha-photos img:nth-child(2) { aspect-ratio: 4 / 5; transform: rotate(2deg); }
.dasha-photos img:nth-child(3) { aspect-ratio: 4 / 5; transform: rotate(-1deg); }
.dasha-text { display: grid; gap: 18px; max-width: 58ch; }
.dasha-text .svc { color: var(--garden); }
.dasha-text h2 { font-size: var(--s4); line-height: .95; }
.dasha-text .big { font-size: var(--s2); line-height: 1.3; font-weight: 500; }
.dasha-text p { font-size: 1.06rem; }
.why-verse { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 10px; margin-top: 8px; }
.why-h { font-weight: 600; }
.why-verse dl { margin: 0; display: grid; }
.why-verse dl div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.why-verse dt { font-family: var(--f-display); font-stretch: 72%; font-size: 1.7rem; line-height: 1; }
.why-verse dd { margin: 0; }
.ipa { color: var(--muted); font-size: .88rem; }
.fav { display: flex; flex-wrap: wrap; gap: 8px; }
.fav span { font-family: var(--f-display); font-stretch: 72%; font-style: italic; font-size: 1.3rem; padding: 4px 14px; border-radius: 999px; background: var(--blue); }
@media (max-width: 860px) { .dasha { grid-template-columns: minmax(0, 1fr); } .dasha-photos { position: static; max-width: 480px; } .why-verse dl div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* ---------- FEED ---------- */
.feed-links { display: flex; gap: 10px; flex-wrap: wrap; }
.feed { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 4 / 5; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper); box-shadow: 0 8px 20px rgba(22, 22, 22, .08); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 30px rgba(22, 22, 22, .14); }
.tile-top { font: 600 .55rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.tile-h { font-family: var(--f-display); font-stretch: 72%; font-size: 1.55rem; line-height: 1; }
.tile-s { font-size: .74rem; line-height: 1.35; color: var(--muted); margin-top: auto; }
.t-paper { background: var(--paper) url(/assets/img/paper.jpg) center / cover; }
.t-blue { background: var(--blue); }
.t-sand { background: var(--sand); }
.t-green { background: var(--garden); color: var(--paper); }
.t-green:hover { color: var(--paper); }
.t-green .tile-h { font-size: 2.2rem; }
.t-green .tile-s { color: #CFE0D6; }
.t-photo { background: var(--ink) var(--img) center 20% / cover; color: var(--paper); justify-content: flex-end; }
.t-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6)); }
.t-photo > * { position: relative; }
.t-photo .tile-top { order: -1; margin-bottom: auto; }
.t-photo:hover { color: var(--paper); }
.feed-note { margin-top: 18px; font-size: .9rem; }
@media (max-width: 1040px) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ chat ---------- */
.chat { display: grid; gap: 14px; max-width: 860px; }
.chat summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 14px; align-items: center; background: var(--paper); padding: 16px 20px; border-radius: 22px 22px 22px 6px; font-weight: 600; font-size: 1.04rem; }
.chat summary::-webkit-details-marker { display: none; }
.chat .who { font-size: .66rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.chat .pm { font-family: var(--f-display); font-stretch: 72%; font-size: 1.7rem; line-height: 1; text-align: center; transition: transform .2s; }
.chat details[open] .pm { transform: rotate(45deg); }
.chat .answer { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 14px; margin: 10px 0 4px 56px; background: var(--garden); color: var(--paper); padding: 16px 20px; border-radius: 22px 22px 6px 22px; }
.chat .answer a { color: var(--paper); }
.chat .answer .who { text-align: right; color: #CFE0D6; }
@media (max-width: 560px) {
  .chat summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .chat summary .who { display: none; }
  .chat .answer { grid-template-columns: minmax(0, 1fr); margin-left: 18px; }
  .chat .answer .who { display: none; }
}

/* ---------- CONTACT / FORM ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contacts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contacts li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contacts span { font-size: .85rem; color: var(--muted); }
.contacts a { font-family: var(--f-display); font-stretch: 72%; font-size: 1.5rem; line-height: 1.1; text-decoration: none; }
.contacts a:not([href]) { color: var(--muted); font-style: italic; font-size: 1.2rem; }
.contacts a[href]:hover { text-decoration: underline; }
.contact-photo { margin: 32px 0 0; max-width: 320px; }
.contact-photo img { aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid var(--white); box-shadow: 0 12px 28px rgba(22, 22, 22, .12); transform: rotate(-1.8deg); }

.form { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; position: relative; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.opt-l { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea { font: 500 1rem var(--f-body); padding: 13px 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--garden); box-shadow: 0 0 0 3px rgba(45, 90, 68, .18); }
.field input[aria-invalid="true"] { border-color: var(--cherry); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { font-weight: 500; font-size: .9rem; position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; background: var(--white); transition: background .12s, color .12s; }
.pills span:hover { background: var(--paper-2); }
.pills input:checked + span { background: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 2px solid var(--garden); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .86rem; color: var(--muted); align-items: start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--garden); }
.form-err { color: var(--cherry); font-weight: 600; font-size: .92rem; min-height: 1.2em; margin: -6px 0; }
.form .btn[type="submit"] { justify-self: start; }
.form-done { position: absolute; inset: 0; background: var(--blue); display: grid; place-content: center; text-align: center; gap: 12px; padding: 32px; }
.form-done[hidden] { display: none; }
.done-h { font-family: var(--f-display); font-stretch: 72%; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .95; }
.form-done p:last-child { font-size: 1.08rem; max-width: 34ch; margin-inline: auto; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .contact-photo { display: none; } }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink); color: var(--paper); padding-block: 64px 36px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: .8rem; font-weight: 600; color: #BDB7AC; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.foot-big { font-family: var(--f-display); font-stretch: 72%; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .95; }
.foot-big i { color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(251, 250, 247, .22); margin-top: 44px; padding-top: 16px; font-size: .8rem; color: #BDB7AC; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* per-card tuning */
.article .post-title { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.2rem); }
.blue-card .post-title { font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.2rem); line-height: .98; }
.blue-card .wl div { font-size: .95rem; padding: 9px 0; }
.vgrid { width: min(100%, 256px); }

/* mobile tuning */
.m-no svg path { vector-effect: non-scaling-stroke; }
@media (max-width: 920px) {
  .cover-photo { margin-bottom: 0; }
  .issue-sticker { position: relative; left: auto; bottom: auto; width: 88%; margin: -18px 0 0 -6px; }
}
@media (max-width: 480px) {
  .dict-wrap { grid-template-columns: minmax(0, 1fr); }
  .dict-notes { display: none; }
  .post { aspect-ratio: auto; min-height: 120vw; }
}
