/*
 * migration.lt theme: the 2026 design (approved demo, docs/redesign-demo).
 * Hand-written, no build step. Tokens on :root; components below in page order.
 */

/* Fonts: self-hosted, Hanken Grotesk for Latin, Onest for Cyrillic (RU pages) */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: a sentence with its evidence. Each section states one thing on the left and proves it on the right,
   on one 12-column grid with equal outer margins. The Vilnius photo set into the headline opens into a full-width band.
   Colour lives only in the tokens below. Single light theme by choice. */
:root {
  /* Current site: logo teal, its deep gradient end, soft charcoal text (teal darkened for 4.5:1 on white) */
  --paper: #ffffff; --stone: #f6f6f6; --stone-2: #e8e8e8; --ink: #403f3f; --muted: #636262;
  --accent: #167c7e; --accent-deep: #0e5f61; --accent-tint: #e3f3f3; --on-accent: #ffffff;
  --field: #167c7e; --on-field: #ffffff; --field-btn: #ffffff; --on-field-btn: #167c7e; --field-btn-hover: #e3f3f3;
  --night: #0e4445; --on-night: #e8f3f3; --on-night-muted: #a8c8c8;
  --brand: #2bb2bf; --brand-night: #2bb2bf;
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --s-head: clamp(2rem, 1.45rem + 2.2vw, 3.5rem);
  --s-display: clamp(1.875rem, 0.6rem + 5.4vw, 6rem);

  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 11vw, 168px);
  --bar-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s-body);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--s-head); line-height: 1.04; letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
input, textarea { caret-color: var(--accent); }
.on-field :focus-visible { outline-color: var(--on-field); }
.on-night :focus-visible { outline-color: var(--on-night); }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.lead { font-size: var(--s-lead); line-height: 1.4; letter-spacing: -0.01em; }
.small { font-size: var(--s-small); }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* Buttons: square corners, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: var(--s-body); font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--field { background: var(--field-btn); color: var(--on-field-btn); }
.btn--field:hover { background: var(--field-btn-hover); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link:hover span { text-decoration-thickness: 2px; }
.text-link .ico { transition: transform .2s var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }

/* Utility row */
.util { background: var(--stone); font-size: var(--s-small); }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 40px; }
.util__info { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.util__info a { text-decoration: none; font-weight: 600; }
.util__right { display: flex; align-items: center; gap: 28px; }
.util__nav { display: flex; gap: 22px; }
.util__nav a { text-decoration: none; }
.util__nav a:hover { text-decoration: underline; }
.lang { display: flex; gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; text-decoration: none; font-weight: 600; }
.lang a:hover { background: var(--stone-2); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.util__addr, .util__nav { display: none; }

/* Main bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
.bar__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: block; width: clamp(150px, 15vw, 206px); flex: none; }
.logo__svg { display: block; width: 100%; height: auto; }
.logo__globe { fill: var(--brand); }
.logo__word { fill: var(--ink); }
.primary { display: none; margin-inline-start: auto; gap: clamp(18px, 2vw, 32px); }
.primary a { position: relative; font-weight: 500; text-decoration: none; padding-block: 8px; }
.primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary a:hover::after { transform: scaleX(1); }
.bar__cta { display: none; }
.menu-btn {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; background: var(--stone); color: var(--ink);
  border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.menu-btn__bars { width: 18px; height: 12px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s; }
.menu-btn__bars::before { top: 1px; }
.menu-btn__bars::after { bottom: 1px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-4px) rotate(-45deg); }
.mnav { background: var(--paper); padding-block: 8px 28px; }
.mnav ul { display: grid; gap: 2px; }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: var(--s-lead); font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mnav .btn { width: 100%; margin-top: 16px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 108px) clamp(40px, 5vw, 72px); }
.hero__title { font-size: var(--s-display); line-height: 1; letter-spacing: -0.04em; }
.hero__title .line { display: block; }
.slot { display: none; }
.hero__foot { margin-top: clamp(28px, 3.6vw, 52px); row-gap: 28px; align-items: end; }
.hero__lead { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__actions .btn { width: 100%; }

/* Photo band */
.band { position: relative; height: clamp(260px, 60vh, 660px); overflow: hidden; background: var(--stone-2); }
.band__move { position: absolute; inset: -6% 0; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.band figcaption { position: absolute; right: var(--m); bottom: 16px; background: var(--paper); padding: 6px 12px; font-size: var(--s-small); }

/* Finder */
.finder { background: var(--stone); padding-block: var(--section); }
.finder__grid { row-gap: 48px; }
.finder__ask { align-self: start; display: grid; gap: 20px; }
.finder__ask .lead { max-width: 30ch; }
.who-wrap { margin-top: 20px; display: grid; gap: 10px; }
.who-label { font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.01em; }
.who-field {
  position: relative; background-color: var(--paper);
  border: 2px solid var(--paper); padding: 15px 52px 15px 18px; transition: border-color .2s;
}
.who-chev { position: absolute; z-index: 1; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--accent); pointer-events: none; }
.who-field:hover { border-color: var(--accent); }
.who-field:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.who-face { position: relative; z-index: 1; pointer-events: none; display: block; font-size: var(--s-lead); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--accent); }
.who { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.routes__count { font-size: var(--s-lead); letter-spacing: -0.01em; margin-bottom: 28px; }
.routes__count strong { color: var(--accent); font-weight: 600; }
.route-group + .route-group { margin-top: 36px; }
.route-group h3 { font-size: var(--s-small); font-weight: 600; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.route-group ul { display: grid; gap: 2px; }
.route-group a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 56px; padding: 14px 18px; background: var(--paper);
  font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s;
}
.route-group a .ico { color: var(--accent); transition: transform .2s var(--ease); }
.route-group a:hover { background: var(--accent); color: var(--on-accent); }
.route-group a:hover .ico { color: var(--on-accent); transform: translateX(4px); }

/* Practice areas board */
.areas { padding-block: var(--section) 0; }
.areas__head { row-gap: 20px; align-items: end; }
.areas__head .lead { max-width: 36ch; }
.board { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 16px; }
.tile {
  grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 2.8vw, 44px);
}
.tile__top { display: grid; gap: 20px; justify-items: start; }
.tile__text { max-width: 34ch; }
.tile__links { display: grid; gap: 4px; }
.tile__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; padding-block: 4px; }
.tile__links a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.tile__links a:hover span { text-decoration-thickness: 2px; }
.tile__links .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tile__links a:hover .ico { transform: translateX(3px); }
.tile h3 { font-size: var(--s-head); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.tile--field { background: var(--field); color: var(--on-field); }
.tile--stone { background: var(--stone); }
.tile--stone2 { background: var(--stone-2); }
.tile--night { background: var(--night); color: var(--on-night); }

/* Two dates */
.dates { padding-block: var(--section); }
.dates__head { row-gap: 20px; }
.dates__head .lead { max-width: 44ch; }
.dates__body { margin-top: clamp(48px, 6vw, 80px); row-gap: 56px; align-items: start; }
.date { display: grid; gap: 16px; align-content: start; }
.date__value { font-size: var(--s-head); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.date__period { font-size: var(--s-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.date p:not([class]) { max-width: 36ch; }
.archive img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.archive figcaption { margin-top: 14px; font-size: var(--s-small); display: grid; gap: 6px; justify-items: start; }

/* Free assessment */
.cta { background: var(--field); color: var(--on-field); padding-block: var(--section); }
.cta__grid { row-gap: 48px; align-items: center; }
.cta h2 { font-size: var(--s-display); line-height: 1; letter-spacing: -0.04em; }
.cta__text { margin-top: clamp(24px, 3vw, 36px); max-width: 38ch; }
.cta__actions { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.cta__actions .btn { width: 100%; }
.cta figure { max-width: 440px; }
.cta figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }

/* Reviews */
.reviews { padding-block: var(--section); }
.reviews__grid { row-gap: 48px; }
.reviews__intro { display: grid; gap: 20px; align-content: start; justify-items: start; }
.reviews__intro .lead { max-width: 32ch; }
.quotes { display: grid; gap: clamp(36px, 4vw, 52px); }
.quotes blockquote { margin: 0; max-width: 44ch; }
.quotes li:first-child blockquote { font-size: var(--s-lead); line-height: 1.38; letter-spacing: -0.01em; font-weight: 500; max-width: 34ch; }
.quotes cite { display: block; margin-top: 12px; font-style: normal; font-size: var(--s-small); color: var(--muted); font-weight: 600; }

/* Publications */
.guides { background: var(--stone); padding-block: var(--section); }
.guides__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.guides__body { margin-top: clamp(40px, 5vw, 64px); row-gap: 40px; }
.feature { display: grid; gap: 20px; align-content: start; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature h3 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; }
.feature p { max-width: 52ch; }
.guide-list { display: grid; gap: 2px; align-content: start; }
.guide-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 20px; background: var(--paper); text-decoration: none; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.guide-list a .ico { color: var(--accent); transition: transform .2s var(--ease); }
.guide-list a:hover { background: var(--night); color: var(--on-night); }
.guide-list a:hover .ico { color: var(--on-night); transform: translateX(4px); }

/* News and events */
.news { padding-block: var(--section); }
.news__grid { row-gap: 72px; }
.news__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.news-list a {
  display: grid; grid-template-columns: 1fr 20px; gap: 6px 20px; align-items: center;
  padding: 22px 16px; margin-inline: -16px; text-decoration: none; transition: background-color .2s;
}
.news-list time { grid-column: 1; font-size: var(--s-small); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.news-list span { grid-column: 1; font-weight: 500; }
.news-list .ico { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); transition: transform .2s var(--ease); }
.news-list a:hover { background: var(--stone); }
.news-list a:hover .ico { transform: translateX(4px); }
.events { display: grid; gap: 24px; align-content: start; }
.events h2 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.events img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.event-list { display: grid; gap: 22px; }
.event-list a { display: grid; gap: 4px; text-decoration: none; }
.event-list a:hover span { text-decoration: underline; }
.event-list time { font-size: var(--s-small); font-weight: 600; color: var(--accent); }
.event-list span { font-weight: 500; line-height: 1.4; }

/* Contact */
.contact { background: var(--stone); padding-block: var(--section); }
.contact__grid { row-gap: 56px; }
.contact__info { display: grid; gap: 24px; align-content: start; }
.contact__info .lead { max-width: 34ch; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 12px 0 0; }
.details dt { font-size: var(--s-small); color: var(--muted); font-weight: 600; padding-top: .2em; }
.details dd { margin: 0; font-weight: 500; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }
.contact__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.contact__photo figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.form { background: var(--paper); padding: clamp(24px, 3vw, 44px); display: grid; gap: 22px; align-content: start; }
.form h3 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.form__row { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--s-small); font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--s-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--stone-2); border-radius: 0;
  padding: 13px 16px; transition: border-color .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-tint); outline-offset: 0; border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--s-small); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form__status { font-size: var(--s-small); font-weight: 600; color: var(--accent); min-height: 1.5em; }

/* Contact Form 7 inside the design's form panel (its markup lives in the CF7 form, per language) */
.contact-form .wpcf7-form { display: grid; gap: 22px; }
.contact-form .hidden-fields-container { display: none; }
.contact-form .field-group { display: grid; gap: 22px; }
.contact-form .form-element { display: grid; gap: 8px; }
.contact-form .form-label.sr-only { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.contact-form .form-label { font-size: var(--s-small); font-weight: 600; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .form-input, .contact-form .form-textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: var(--s-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--stone-2); border-radius: 0; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.contact-form .form-textarea { min-height: 132px; resize: vertical; }
.contact-form .form-input::placeholder, .contact-form .form-textarea::placeholder { color: transparent; }
.contact-form .form-input:hover, .contact-form .form-textarea:hover { border-color: var(--muted); }
.contact-form .form-input:focus, .contact-form .form-textarea:focus { outline: 3px solid var(--accent-tint); outline-offset: 0; border-color: var(--accent); }
.contact-form .field-group + div { display: grid; gap: 22px; justify-items: start; }
.contact-form .wpcf7-list-item { margin: 0; }
.contact-form .wpcf7-acceptance label { display: flex; gap: 12px; align-items: flex-start; font-size: var(--s-small); line-height: 1.5; }
.contact-form .wpcf7-acceptance input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.contact-form .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--s-body); font-weight: 600; letter-spacing: -0.01em;
  border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s;
}
.contact-form .wpcf7-submit:hover { background: var(--accent-deep); }
.contact-form .wpcf7-spinner { margin: 0 0 0 12px; }
.contact-form .wpcf7-not-valid { border-color: #b42318; }
.contact-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: var(--s-small); font-weight: 600; color: #b42318; }
.contact-form .wpcf7-response-output { margin: 0; padding: 12px 16px; font-size: var(--s-small); font-weight: 600; border: 0; background: var(--accent-tint); color: var(--accent-deep); }
.contact-form .wpcf7-response-output:empty, .contact-form .wpcf7-form.init .wpcf7-response-output { display: none; }
.contact-form .wpcf7-form.invalid .wpcf7-response-output, .contact-form .wpcf7-form.failed .wpcf7-response-output { background: #fdecea; color: #8a1c12; }
@media (min-width: 640px) {
  .contact-form .field-group { grid-template-columns: 1fr 1fr; }
  .contact-form .form-element:nth-child(n+3) { grid-column: 1 / -1; }
}

/* Footer */
.foot { background: var(--night); color: var(--on-night); padding-block: clamp(72px, 8vw, 120px) 32px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { row-gap: 40px; }
.foot .logo { width: clamp(180px, 18vw, 240px); }
.foot .logo__globe { fill: var(--brand-night); }
.foot .logo__word { fill: var(--on-night); }
.foot__about { margin-top: 28px; max-width: 42ch; color: var(--on-night); }
.foot h2 { font-size: var(--s-small); font-weight: 600; letter-spacing: 0; color: var(--on-night-muted); margin-bottom: 14px; line-height: 1.4; }
.foot ul { display: grid; gap: 10px; }
.foot__contact p + p { margin-top: 10px; }
.foot__legal { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--s-small); color: var(--on-night-muted); }

/* Phone-first spans, then the 12-column desktop composition */
@media (min-width: 640px) {
  .hero__actions .btn, .cta__actions .btn { width: auto; }
  .bar__cta { display: inline-flex; }
  .menu-btn { margin-inline-start: 0; }
  .bar__cta { margin-inline-start: auto; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .news-list a { grid-template-columns: 8.5rem 1fr 20px; }
  .news-list time, .news-list span { grid-column: auto; }
  .news-list .ico { grid-column: auto; grid-row: auto; }
  .date { grid-column: span 6; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .tile { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 36px; }
}
@media (min-width: 900px) {
  .util__addr { display: inline; }
  .slot {
    display: inline-block; width: 2.1em; height: .74em; overflow: hidden;
    vertical-align: baseline; margin-inline-end: .16em; background: var(--stone-2);
  }
  .slot img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }
  .hero__lead { grid-column: 1 / span 6; }
  .hero__actions { grid-column: 8 / -1; justify-content: flex-end; }
  .finder__ask { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 32px); }
  .finder__routes { grid-column: 7 / -1; }
  .areas__head h2 { grid-column: 1 / span 6; }
  .areas__head .lead { grid-column: 8 / -1; }
  .board { row-gap: 0; }
  .tile { min-height: clamp(340px, 32vw, 480px); gap: 40px; }
  .tile h3 { order: 2; }
  .tile--wide { grid-column: span 7; }
  .tile--narrow { grid-column: span 5; }
  .tile__top { justify-items: end; text-align: left; }
  .tile__top > * { width: min(34ch, 100%); }
  .dates__head h2 { grid-column: 1 / span 8; }
  .dates__head .lead { grid-column: 1 / span 6; }
  .date:nth-child(1) { grid-column: 1 / span 4; }
  .date:nth-child(2) { grid-column: 5 / span 4; }
  .archive { grid-column: 9 / -1; }
  .archive img { aspect-ratio: 4 / 3; }
  .cta__copy { grid-column: 1 / span 7; }
  .cta figure { grid-column: 9 / -1; max-width: none; }
  .reviews__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; }
  .quotes { grid-column: 7 / -1; }
  .feature { grid-column: 1 / span 6; }
  .guide-list { grid-column: 8 / -1; }
  .news__main { grid-column: 1 / span 7; }
  .events { grid-column: 9 / -1; }
  .contact__info { grid-column: 1 / span 5; }
  .form { grid-column: 7 / -1; }
  .foot__brand { grid-column: 1 / span 5; }
  .foot__links { grid-column: 7 / span 3; }
  .foot__contact { grid-column: 10 / -1; }
}
@media (min-width: 1100px) {
  :root { --bar-h: 84px; }
  .bar__in { min-height: var(--bar-h); gap: 32px; }
  .util__nav { display: flex; }
  .primary { display: flex; }
  .bar__cta { margin-inline-start: 8px; }
  .menu-btn, .mnav { display: none; }
}

/* Motion: one shutter on the band, a quiet rise for each section's parts, feedback on every control */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line { animation: lift .9s var(--ease) both; }
  .hero__title .line + .line { animation-delay: .08s; }
  .hero__foot { animation: lift .9s var(--ease) .16s both; }
  .band { animation: shutter 1.15s var(--ease) .2s both; }
  .band img { animation: settle 1.6s var(--ease) .2s both; }
  @keyframes lift { from { opacity: .3; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
  @keyframes shutter { from { clip-path: inset(0 0 48% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

  @supports (animation-timeline: view()) {
    .band__move { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .rise-late { animation-range: entry 15% entry 100%; }
    .rise-tall { animation-range: entry 0% cover 28%; }
    @keyframes rise { from { opacity: .15; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Shared components ---------- */

/* ---------- Archive pages: shared head, filters, pager ---------- */
.page-head { padding-block: clamp(32px, 5vw, 80px) clamp(40px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--s-small); color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .path { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.crumbs .path li { display: inline-flex; gap: 10px; }
.crumbs .path li + li::before { content: "/"; color: var(--muted); }
.crumbs .path a span { font-weight: 600; }
.page-head h1 { margin-top: clamp(20px, 2.4vw, 32px); font-size: var(--s-display); line-height: 1; letter-spacing: -0.04em; }
.page-head__body { margin-top: clamp(24px, 3vw, 40px); row-gap: 32px; align-items: start; }
.page-head__lead { max-width: 38ch; }
.tools { display: grid; gap: 14px; align-content: end; }
.search { display: grid; gap: 8px; }
.search label { font-size: var(--s-small); font-weight: 600; }
.search__box { position: relative; }
.search__box .ico { position: absolute; left: 16px; top: 50%; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 56px; padding: 12px 16px 12px 48px;
  font: inherit; font-size: var(--s-body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--stone-2); border-radius: 0; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.search input:hover { border-color: var(--muted); }
.search input:focus { outline: 3px solid var(--accent-tint); outline-offset: 0; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: inherit; font-size: var(--s-small); font-weight: 600; color: var(--ink);
  background: var(--stone); border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--stone-2); }
.chip b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] b { color: inherit; }
.result-line { font-size: var(--s-small); color: var(--muted); min-height: 1.5em; }
.empty { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 48px); background: var(--stone); }
.empty p:first-child { font-size: var(--s-lead); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.btn--quiet { background: var(--ink); color: var(--paper); }
.btn--quiet:hover { background: var(--accent); color: var(--on-accent); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: clamp(40px, 5vw, 64px); }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 14px;
  font-weight: 600; text-decoration: none; background: var(--stone); font-variant-numeric: tabular-nums;
  transition: background-color .2s;
}
.pager a:hover { background: var(--stone-2); }
.pager [aria-current] { background: var(--ink); color: var(--paper); }
.pager .pager__gap { background: transparent; min-width: 24px; padding: 0; }
.pager .pager__next { margin-inline-start: auto; }
.pager .pager__next .ico { transition: transform .2s var(--ease); }
.pager .pager__next:hover .ico { transform: translateX(3px); }

/* Publications: a catalogue grouped by topic, picture on the right */
.lib { padding-block: 0 var(--section); }
.lib-group { padding-top: clamp(40px, 5vw, 72px); }
.lib-group__head { row-gap: 10px; align-items: end; margin-bottom: clamp(16px, 2vw, 24px); }
.lib-group__head p { color: var(--muted); max-width: 40ch; }
.lib-list { display: grid; gap: 2px; }
.lib-item a {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding: 20px; margin-inline: -20px; text-decoration: none; transition: background-color .2s;
}
.lib-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lib-item h3 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.lib-item p { margin-top: 10px; max-width: 64ch; }
.lib-item a:hover { background: var(--stone); }
.lib-item a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* News: a bulletin with a lead story, picture on the left */
.news-page { padding-block: 0 var(--section); }
.lead-story { row-gap: 24px; padding-bottom: clamp(48px, 6vw, 88px); }
.lead-story h2 { font-size: var(--s-lead); line-height: 1.2; }
.lead-story h2 a { text-decoration: none; }
.lead-story h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.lead-story figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lead-story__text { display: grid; gap: 20px; align-content: start; justify-items: start; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--s-small); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: var(--stone); font-weight: 600; }
.when { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.feed-title { margin-bottom: clamp(12px, 2vw, 20px); }
.feed { display: grid; gap: 2px; }
.feed-item a {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding: 20px; margin-inline: -20px; text-decoration: none; transition: background-color .2s;
}
.feed-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feed-item__text { display: grid; gap: 10px; align-content: start; }
.feed-item h3 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.feed-item .ico { color: var(--accent); transition: transform .2s var(--ease); }
.feed-item a:hover { background: var(--stone); }
.feed-item a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.feed-item a:hover .ico { transform: translateX(4px); }
.feed-item > a > .ico { display: none; }

/* Compact closing call on archive pages */
.cta--compact { padding-block: clamp(72px, 8vw, 128px); }
.cta--compact h2 { font-size: var(--s-head); line-height: 1.04; letter-spacing: -0.035em; }
.cta--compact__grid { row-gap: 28px; align-items: end; }

@media (min-width: 640px) {
  .lib-item a { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; }
  .lib-item img { grid-column: 2; grid-row: 1; }
  .feed-item a { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
}
@media (min-width: 900px) {
  .page-head__lead { grid-column: 1 / span 6; }
  .tools { grid-column: 8 / -1; }
  .lib-group__head h2 { grid-column: 1 / span 7; }
  .lib-group__head p { grid-column: 9 / -1; justify-self: end; text-align: right; }
  .lib-item a { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
  .lead-story h2 { grid-column: 1 / span 10; font-size: var(--s-head); }
  .lead-story .story-meta { grid-column: 1 / -1; margin-top: -8px; }
  .lead-story figure { grid-column: 1 / span 7; }
  .lead-story__text { grid-column: 8 / -1; }
  .feed-item a { grid-template-columns: 260px minmax(0, 1fr) 24px; gap: 40px; }
  .feed-item > a > .ico { display: block; }
  .cta--compact__copy { grid-column: 1 / span 7; }
  .cta--compact__act { grid-column: 9 / -1; justify-self: end; }
}

.util__nav a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.mnav a[aria-current] { color: var(--accent); }

/* ---------- Inner pages ---------- */
html[lang="ru"] { --font: "Onest", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; }
.mnav { max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.lang a[lang] { text-transform: uppercase; }
.ico--flip { transform: scaleX(-1); }

/* Homepage additions */
.news-list__nodate { grid-column: 1; }
.events h2 a { text-decoration: none; }
.events h2 a:hover { text-decoration: underline; }
.events figure figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.cta figure img { aspect-ratio: 4 / 5; object-position: 50% 50%; }

/* Archive pages generated for every section */
.archive-list { padding-block: 0 var(--section); }
.archive-list.lib .lib-list { padding-top: clamp(8px, 1.5vw, 16px); }
.feed--page { padding-top: 8px; }
.search-results { padding-top: 8px; }
.lib-item a { align-items: center; }
.pager__prev { padding: 0; }

/* Reading: articles, guides and plain pages */
.article-head { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 3.5vw, 48px); }
.article-head h1 {
  margin-top: clamp(20px, 2.4vw, 32px); max-width: 24ch;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 4rem); line-height: 1.04; letter-spacing: -0.035em;
}
.article-head .story-meta { margin-top: 20px; }
.article-head .page-head__lead { margin-top: clamp(20px, 2.4vw, 28px); }
.article-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone-2); }
.article-body { padding-block: clamp(40px, 5vw, 80px) var(--section); row-gap: 64px; align-items: start; }
/* No picture between the title and the text: the header's own bottom space is gap enough. */
.article-head + .article-body { padding-top: 0; }
.article-body--single .prose { margin-inline: 0; }
.article-aside { display: grid; gap: 40px; align-content: start; }

.aside-nav h2 { font-size: var(--s-small); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--muted); margin-bottom: 8px; }
.aside-nav ul { display: grid; gap: 2px; }
.aside-nav li a {
  display: block; padding: 12px 16px; text-decoration: none; font-weight: 500; line-height: 1.35;
  background: var(--stone); transition: background-color .2s, color .2s;
}
.aside-nav li a:hover { background: var(--accent); color: var(--on-accent); }
.aside-nav .text-link { margin-top: 18px; }
.aside-cta { background: var(--field); color: var(--on-field); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 22px; justify-items: start; align-content: start; }
.aside-cta p { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }

.prose { max-width: 70ch; line-height: 1.65; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.025em; margin-top: 1.9em; }
.prose h3 { font-size: var(--s-lead); line-height: 1.3; letter-spacing: -0.015em; margin-top: 1.7em; }
.prose h4, .prose h5 { font-size: var(--s-body); font-weight: 600; margin: 1.5em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose a { color: var(--accent-deep); font-weight: 500; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { font-weight: 600; }
.prose blockquote { margin: 1.6em 0 0; font-size: var(--s-lead); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose hr { border: 0; height: 1px; background: var(--stone-2); margin-block: 2.2em; }
.prose iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--s-small); line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stone-2); }
.prose thead th, .prose tr:first-child td strong { font-weight: 600; }
.prose thead th { background: var(--stone); }
.prose .wp-block-columns { display: grid; gap: 24px var(--gap); }
.prose .wp-block-table { margin-inline: 0; }
.prose .documents-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.prose .documents-list li { margin: 0; padding: 20px 22px; background: var(--stone); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-weight: 600; line-height: 1.35; }
.prose .documents-list li br { display: none; }
.prose .documents-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; flex: none; }
.prose .documents-list a:hover { background: var(--accent-deep); }
.prose--intro { max-width: 62ch; }
.prose--wide { max-width: 980px; }

/* Questionnaires (UAF forms) inside page content */
.prose form { display: grid; gap: 16px; margin-top: 2em; }
.prose form br, .prose form .form_message:empty { display: none; }
.prose form h2 { margin-top: 1.2em; }
.prose form h2.f_21, .prose form h3, .prose form h4 { font-size: var(--s-lead); line-height: 1.3; letter-spacing: -0.015em; margin-top: 1em; }
.prose form .row { display: grid; gap: 8px 28px; }
.prose form .inputs-container { display: grid; gap: 14px; }
.prose form .inputs-container > div { display: grid; gap: 6px; }
.prose form label { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.prose form input[type="text"], .prose form input[type="email"], .prose form input[type="tel"], .prose form input[type="number"],
.prose form input[type="date"], .prose form select, .prose form textarea {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: inherit; font-size: var(--s-body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--stone-2); border-radius: 0; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.prose form input:hover, .prose form textarea:hover { border-color: var(--muted); }
.prose form input:focus, .prose form textarea:focus, .prose form select:focus { outline: 3px solid var(--accent-tint); outline-offset: 0; border-color: var(--accent); }
.prose form input[type="radio"], .prose form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.prose form .radios-horz { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.prose form .rh-item { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--s-body); font-weight: 500; }
.prose form .d-flex { display: flex; gap: 12px; align-items: flex-start; }
.prose form .d-flex label { font-weight: 500; }
.prose form .text-right { text-align: left; }
.prose form .uaf_form_submit, .prose form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-transform: none; letter-spacing: -0.01em;
  border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s;
}
.prose form .uaf_form_submit:hover { background: var(--accent-deep); }
.prose form [data-uaf-repeater-item] { background: var(--stone); padding: clamp(18px, 2.4vw, 28px); }
.prose form [data-uaf-repeater-item] + [data-uaf-repeater-item] { margin-top: 2px; }
.prose form .uaf-repeater-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.prose form .uaf-repeater-head h3 { margin: 0; }
.prose form .uaf-repeater-remove, .prose form [data-uaf-repeater-add] {
  min-height: 44px; padding: 0 16px; font: inherit; font-size: var(--s-small); font-weight: 600; border: 0; border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--ink);
}
.prose form [data-uaf-repeater-add] { background: var(--ink); color: var(--paper); justify-self: start; margin-top: 12px; }
.prose form .uaf-repeater-section { font-size: var(--s-small); color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 18px; }
.form__status--demo { margin-top: 14px; font-size: var(--s-small); font-weight: 600; color: var(--accent); min-height: 1.5em; }

/* Long questionnaires in steps: one block at a time, the whole list of steps beside it */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prose--wide > :not(form) { max-width: 70ch; }
.prose--wide:has(form[data-stepper]) { max-width: 1200px; }
.prose form[data-stepper] > .form_message { grid-column: 1 / -1; }
.prose form[data-stepper] { gap: 0; scroll-margin-top: calc(var(--bar-h) + 16px); }
.stepper { display: grid; gap: 12px; padding: 20px; background: var(--stone); margin-bottom: 32px; }
.stepper__count { font-size: 1rem; font-weight: 600; }
.stepper__bar { height: 6px; background: var(--stone-2); }
.stepper__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.prose form .stepper__list { display: none; list-style: none; margin: 0; padding: 0; }
.prose form .stepper__list li { margin: 0; padding: 0; }
.prose form .stepper__list li::before, .prose form .stepper__list li::marker { content: none; }
.stepper__hint { font-size: var(--s-small); line-height: 1.5; color: var(--muted); }
.steps, .step { display: grid; gap: 16px; }
.prose form .step[hidden], .prose form .step-nav > [hidden] { display: none; }
.prose form .step > h2:first-child { margin-top: 0; }
.prose form .step > h2:focus { outline: none; }
.prose form .step .col-sm-6:has(> .inputs-container) { background: var(--stone); padding: clamp(18px, 2.4vw, 28px); }
.prose form .step .col-sm-6 > h2.f_21 { margin: 0 0 16px; }
.prose form .gorz-separator { display: none; }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.step-nav > [data-next], .prose form .step-nav > .uaf_form_submit { flex: 1 1 auto; }
.btn--back { background: var(--stone); color: var(--ink); padding-inline: 20px; }
.btn--back:hover { background: var(--stone-2); }
.btn--back:hover .ico { transform: scaleX(-1) translateX(3px); }
.step-nav .form__status--demo { flex-basis: 100%; margin-top: 4px; }

/* Related reading */
.related { background: var(--stone); padding-block: var(--section); }
.related h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.cards { display: grid; gap: 48px var(--gap); }
.card { display: grid; gap: 16px; align-content: start; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { font-size: var(--s-lead); line-height: 1.25; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.card p { max-width: 48ch; }

/* Practice areas */
.area-head .page-head__body { row-gap: 40px; }
.area-list { padding-block: 0 var(--section); }
.area-list__head { display: grid; gap: 20px; margin-bottom: clamp(12px, 2vw, 20px); padding-top: clamp(16px, 3vw, 40px); }
.area-list__head .chips { max-width: 1100px; }
.area-list__head .chip { text-align: left; padding-block: 10px; line-height: 1.35; }

/* Reviews: client letters */
.letters-wrap { padding-block: 0 var(--section); }
.letters { columns: 1; column-gap: var(--gap); }
.letter { break-inside: avoid; margin-bottom: var(--gap); padding: clamp(24px, 2.6vw, 36px); background: var(--stone); }
.letter__body p + p { margin-top: .7em; }
.letter__who { margin-top: 20px; font-size: var(--s-small); font-weight: 600; color: var(--accent-deep); }

/* Contacts */
.map { margin-bottom: clamp(56px, 7vw, 104px); }
.map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 540px); border: 0; background: var(--stone-2); }
.page-head .details { margin: 0; }

/* 404 */
.nf { min-height: 50vh; }
.nf__links { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }

@media (min-width: 640px) {
  .news-list__nodate { grid-column: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .prose .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .letters { columns: 2; }
}
@media (min-width: 720px) {
  .prose form .row:has(> .col-sm-5) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .prose form .row:has(> .col-sm-6) { grid-template-columns: 1fr 1fr; }
  .prose form .row > .col-xs-12.col-sm-6:empty { display: none; }
  .prose form .row:has(> .col-sm-6:empty) { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .article-fig img { aspect-ratio: 21 / 9; }
  .article-body .prose { grid-column: 1 / span 7; }
  .article-aside { grid-column: 9 / -1; position: sticky; top: calc(var(--bar-h) + 32px); }
  .article-body--single { display: block; }
  .area-head .prose--intro { grid-column: 1 / span 7; }
  .area-head .aside-cta { grid-column: 9 / -1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .page-head .details { grid-column: 8 / -1; }
}
@media (min-width: 1100px) {
  .letters { columns: 3; }
  .prose form[data-stepper] { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); column-gap: clamp(48px, 5vw, 80px); align-items: start; }
  .stepper { position: sticky; top: calc(var(--bar-h) + 32px); padding: 0; margin: 0; gap: 14px; background: none; }
  .stepper__bar { display: none; }
  .stepper__count { font-size: var(--s-small); color: var(--muted); }
  .prose form .stepper__list { display: grid; gap: 2px; }
  .stepper__list button {
    display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; min-height: 52px;
    padding: 10px 14px 10px 10px; background: var(--stone); color: var(--ink); border: 0; border-radius: 0;
    font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .2s, color .2s;
  }
  .stepper__list button:hover { background: var(--stone-2); }
  .stepper__n { display: grid; place-items: center; width: 32px; height: 32px; background: var(--paper); font-size: var(--s-small); font-weight: 700; }
  .stepper__n svg { width: 16px; height: 16px; color: var(--accent); }
  .stepper__list [aria-current="step"] { background: var(--accent); color: var(--on-accent); }
  .stepper__list [aria-current="step"] .stepper__n { color: var(--accent); }
  .step-nav > [data-next], .prose form .step-nav > .uaf_form_submit { flex: 0 0 auto; }
}
