/* Tax Rights site styles. Mobile first, logical properties (RTL + LTR). */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-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;
}

:root {
  /* brand colours sampled from the logo (img/Logos/TR_24.png) */
  --navy: #023c73;
  --navy-2: #0a4d8c;
  --blue: #1f6fb0;
  --sky: #accaea;
  --cyan: #01afef;
  --amber: #ffc233;
  --amber-ink: #10233f;
  --ink: #12243a;
  --muted: #4a5b70;
  --line: #d6e4f2;
  --bg: #ffffff;
  --bg-soft: #f3f8fd;
  --ok: #0f7b4b;
  --wa: #0e7a43;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(2, 60, 115, .06), 0 8px 24px rgba(2, 60, 115, .08);
  --wrap: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main [id] { scroll-margin-block-start: 92px; }
body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }  /* phone numbers and e-mails never break */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 8px; inset-block-start: -60px; z-index: 100;
  background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { inset-block-start: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 50px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4.2vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease;
  text-align: center; line-height: 1.25;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffcf5c; color: var(--amber-ink); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-blue { background: var(--navy); color: #fff; }
.btn-blue:hover { background: var(--navy-2); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6537; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); border-block-end: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding-block: 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; margin-inline-end: auto; }
.brand img { display: block; width: auto; height: 58px; }
@media (min-width: 1000px) { .brand img { height: 68px; } }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.header-phone {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.header-phone svg { width: 18px; height: 18px; }
.lang-link {
  display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px;
}
.icon-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.header-cta { display: none; }
.mobile-nav { border-block-start: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px; padding-inline: 4px;
  color: var(--ink); text-decoration: none; font-weight: 500; border-block-end: 1px solid var(--bg-soft);
}
@media (min-width: 1000px) {
  .main-nav, .header-phone, .header-cta { display: inline-flex; }
  .header-row { gap: 8px; }  /* room for the accessibility button in the Russian header */
  .main-nav a { padding: 0 10px; white-space: nowrap; }
  .header-cta { white-space: nowrap; }
  .menu-toggle, .call-icon { display: none; }
}
/* the Russian menu has 6 items (with "Статьи", owner request 2026-11-05): tighter link padding keeps one line */
@media (min-width: 1280px) {
  html:lang(ru) .main-nav ul { gap: 0; }
  html:lang(ru) .main-nav a { padding: 0 7px; }
}
/* the Russian menu is longer: below 1280px it stays behind the menu button */
@media (min-width: 1000px) and (max-width: 1279px) {
  html:lang(ru) .main-nav { display: none; }
  html:lang(ru) .menu-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(1, 175, 239, .28), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(31, 111, 176, .55), transparent 60%),
    var(--navy);
  padding-block: 40px 48px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero .eyebrow {
  display: inline-block; margin-block-end: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #e6f1fb; font-size: 14px; font-weight: 500;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 18px; color: #dbe8f6; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 22px 18px; }
@media (max-width: 599px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: #e6f1fb; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

.deadline-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 18px 48px rgba(0, 20, 50, .35);
}
.deadline-card .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: #fff3d1; color: #6b4a00; font-size: 14px; font-weight: 600;
}
.deadline-card h2 { font-size: 24px; margin-block: 12px 8px; }
.deadline-card p { color: var(--muted); font-size: 15px; }
.countdown { display: flex; align-items: baseline; gap: 8px; margin-block: 4px 14px; color: var(--navy); }
.countdown strong { font-size: 44px; line-height: 1; font-weight: 700; }
.avg {
  display: flex; align-items: center; gap: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line);
}
.avg strong { font-size: 28px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.avg span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.footnote { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

@media (min-width: 900px) {
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
}

/* ---------- employer logos ---------- */
.clients { padding-block: 28px 24px; border-block-end: 1px solid var(--line); }
.clients-title { font-size: 18px; font-weight: 600; color: var(--muted); text-align: center; margin-block-end: 16px; }
.client-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; align-items: center; }
@media (min-width: 800px) { .client-logos { grid-template-columns: repeat(8, 1fr); gap: 14px 20px; } }
.client-logos img { display: block; width: 100%; max-width: 140px; height: auto; margin-inline: auto; }
.client-logos li { min-width: 0; overflow: hidden; }  /* a logo that fails to load must not widen the page */
.clients-note { max-width: 62em; margin: 16px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- sample cheque ---------- */
.cheque { max-width: 520px; margin: 28px auto 0; text-align: center; }
.cheque img { display: block; width: 100%; height: auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cheque figcaption { margin-block-start: 8px; font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 46em; margin-block-end: 28px; }
.section-head p { color: var(--muted); font-size: 17px; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-block-start: auto; padding-block-start: 8px; color: var(--blue); font-weight: 600; font-size: 15px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--blue); margin-block-end: 6px;
}
.card-icon svg { width: 24px; height: 24px; }
@media (max-width: 639px) {
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .card-icon { grid-row: span 2; margin: 0; }
  .card .more { display: none; }
}
.also { margin-block-start: 18px; color: var(--muted); font-size: 15px; }

.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-block-end: 12px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px;
}
.steps h3 { font-size: 18px; margin-block-end: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 799px) {
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ---------- price ---------- */
.price-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 14px 16px; text-align: start; border-block-end: 1px solid var(--line); }
.price-table tr:last-child td { border-block-end: 0; }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; }
.price-table td strong { font-size: 20px; color: var(--navy); }
.price-table td small { display: block; color: var(--muted); font-size: 13px; }
.price-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price-notes li { display: flex; gap: 10px; align-items: flex-start; }
.price-notes svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-block-start: 2px; }
.no-pay { display: inline-block; margin-block-end: 14px; padding: 6px 14px; border-radius: 999px; background: #e3f4ec; color: var(--ok); font-weight: 600; }

/* ---------- trust ---------- */
.trust-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.person { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.person .avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky); }
.trust-col { display: grid; gap: 16px; align-content: start; }
.person h3 { margin-block-end: 2px; }
.person .role { color: var(--blue); font-weight: 600; font-size: 15px; margin-block-end: 8px; }
.person p { color: var(--muted); font-size: 15px; }
.honest { padding: 24px; border-radius: 18px; background: var(--navy); color: #e6f1fb; }
.honest h3 { color: #fff; }
.honest ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.honest a { color: #fff; }

/* ---------- refund proofs ---------- */
.proofs { display: grid; gap: 16px; }
@media (min-width: 800px) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proofs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.proofs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #0b1b2e; }
.proofs figcaption { padding: 12px 16px; color: var(--muted); font-size: 15px; }
.proofs figcaption strong { display: block; color: var(--navy); font-size: 22px; }

/* ---------- video (loads YouTube only after a click) ---------- */
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b1b2e; box-shadow: var(--shadow); }
.video-frame iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; background: rgba(2, 60, 115, .88); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
[dir="rtl"] .play-icon { translate: 50% -50%; }
.play-icon::before {
  content: ""; position: absolute; inset-block-start: 50%; left: 54%; translate: -50% -50%;
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff;
}
.video-play:hover .play-icon { background: var(--blue); }
.video figcaption { margin-block-start: 10px; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-block-end: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-block-end: 10px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 18px; font-weight: 600; color: var(--navy); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .15s ease; margin-block-start: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq .answer { padding: 0 18px 16px; color: var(--ink); }
.faq .answer p:last-child { margin: 0; }

/* ---------- lead form ---------- */
.lead-box {
  display: grid; gap: 24px; padding: 28px 20px; border-radius: 22px; color: #e6f1fb;
  background: radial-gradient(600px 300px at 0% 0%, rgba(1, 175, 239, .25), transparent 60%), var(--navy);
}
@media (min-width: 900px) { .lead-box { grid-template-columns: 1fr 1fr; padding: 44px; gap: 44px; } }
.lead-box h2 { color: #fff; }
.lead-box .contact-alt { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 18px; }
.lead-form { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-block-end: 6px; color: var(--navy); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #b9cde2; border-radius: 10px; background: #fff;
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input:focus { border-color: var(--blue); outline: 3px solid rgba(1, 175, 239, .35); outline-offset: 0; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.radios legend { font-weight: 600; font-size: 15px; margin-block-end: 6px; color: var(--navy); padding: 0; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid #b9cde2; border-radius: 10px; cursor: pointer; font-weight: 500;
}
.radios input { width: 18px; height: 18px; accent-color: var(--navy); }
.consent { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-block-start: 2px; accent-color: var(--navy); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.4em; font-size: 15px; font-weight: 500; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #b42318; }
.lead-form[hidden] { display: none; }
.form-success {
  display: grid; justify-items: center; align-content: center; gap: 8px; padding: 32px 22px; text-align: center;
  background: #fff; color: var(--ink); border-radius: 16px;
}
.form-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; }
.form-success-icon svg { width: 36px; height: 36px; }
.form-success p { margin: 0; font-size: 17px; line-height: 1.5; }
.form-success .form-success-title { margin-block-start: 6px; font-size: 22px; font-weight: 700; color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: #0b2341; color: #c9d8ea; padding-block: 44px 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1.1fr 1fr 1fr; } }
.footer-services ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (min-width: 1100px) { .footer-services ul { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 17px; margin-block-end: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-logo { display: block; width: auto; height: 96px; padding: 10px 14px; background: #fff; border-radius: 14px; box-sizing: content-box; }
.footer-legal { margin-block-start: 28px; padding-block-start: 18px; border-block-start: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: #a9bdd4; }
.footer-legal p { margin-block-end: 6px; }

/* ---------- mobile sticky contact bar ---------- */
.mobile-bar {
  position: sticky; inset-block-end: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
  border-block-start: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 46px; font-size: 15px; padding-inline: 8px; }
@media (min-width: 1000px) { .mobile-bar { display: none; } }

/* ---------- standard content pages (built by _tools/copy_to_pages.py) ---------- */
.page-hero { background: var(--bg-soft); padding-block: 28px 36px; border-block-end: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; } .page-hero { padding-block: 40px 48px; } }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); }
.page-hero .updated { font-size: 14px; color: var(--muted); margin-block-start: 8px; }
.page-hero .lead { font-size: 18px; color: var(--ink); max-width: 40em; }
.page-hero .hero-actions { margin-block: 18px 0; }
.page-hero-art img { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; }
@media (max-width: 599px) { .page-hero-art img { max-width: 300px; } }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-block-end: 12px; }
.breadcrumbs a { color: var(--blue); }
.prose { max-width: 820px; }
.prose p, .prose li { font-size: 17px; }
.prose ul, .prose ol { padding-inline-start: 22px; display: grid; gap: 6px; }
.prose h3 { margin-block: 18px 6px; }
.subgrid { display: grid; gap: 14px; margin-block: 16px; }
@media (min-width: 700px) { .subgrid { grid-template-columns: repeat(2, 1fr); } }
.subgrid .sub { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.section.soft .subgrid .sub { background: #fff; }
.subgrid .sub h3 { margin-block-start: 0; font-size: 18px; }
.subgrid .sub p { font-size: 16px; color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; margin-block: 16px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: start; border-block-end: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.actions { margin-block-start: 16px; }
/* mid-article check box (owner request 2026-11-05): "CHECK:" line in the article copy, button to the form #bdika */
.check-box { margin-block: 24px 4px; padding: 20px 22px; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-box p, .prose .check-box p { margin: 0; font-size: 17px; font-weight: 500; color: #fff; }
.check-box a:not(.btn) { color: #fff; }
.check-box .actions { margin-block-start: 14px; }
@media (max-width: 599px) { .check-box .btn { width: 100%; } }
.btn-outline-blue { border-color: var(--blue); color: var(--navy); background: #fff; }
.btn-outline-blue:hover { background: var(--bg-soft); color: var(--navy); }

/* ---------- small home-page blocks ---------- */
.hero-micro { margin: -6px 0 16px; font-size: 15px; color: #dbe8f6; }
.deadline-cta { margin: 14px 0 0; }
.deadline-cta .btn { width: 100%; }
.steps-note { margin-block-start: 14px; color: var(--muted); }
.price-side p { font-size: 16px; }
.price-side .example { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.form-micro { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- accessibility panel (templates/header.*.html, assets/js/a11y.js) ---------- */
.a11y-toggle { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); }
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-panel {
  position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: var(--gutter); z-index: 60;
  width: min(360px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 20, 50, .25); padding: 12px 16px 16px;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 6px; }
.a11y-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--navy); }
.a11y-size {
  display: grid; grid-template-columns: 1fr 44px 60px 44px; align-items: center; gap: 6px;
  padding-block: 8px; margin-block-end: 10px; border-block: 1px solid var(--line);
}
.a11y-size button {
  width: 44px; height: 44px; border: 1px solid var(--blue); border-radius: 10px; background: #fff; color: var(--navy);
  font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
}
.a11y-size button:disabled { opacity: .45; cursor: not-allowed; }
.a11y-size-value { text-align: center; font-weight: 700; color: var(--navy); }
.a11y-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.a11y-list button, .a11y-reset {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.35; text-align: start; cursor: pointer;
}
.a11y-list button::after {
  content: ""; flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: var(--navy); font-size: 15px; line-height: 1;
}
.a11y-list button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-list button[aria-pressed="true"]::after { content: "\2713"; border-color: #fff; }
.a11y-reset { justify-content: center; margin-block-start: 10px; background: #fff; border-color: var(--blue); color: var(--navy); font-weight: 600; }
.a11y-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* text size: page content only, the header with this panel keeps its size */
html.a11y-size-1 :is(main, .site-footer) { zoom: 1.15; }
html.a11y-size-2 :is(main, .site-footer) { zoom: 1.3; }
html.a11y-size-3 :is(main, .site-footer) { zoom: 1.5; }
/* larger text on a narrow screen: let long words wrap and grid/flex items shrink instead of scrolling sideways */
html:is(.a11y-size-1, .a11y-size-2, .a11y-size-3) :is(main, .site-footer) * { min-width: 0; overflow-wrap: anywhere; }
html:is(.a11y-size-1, .a11y-size-2, .a11y-size-3) .price-table { display: block; overflow-x: auto; }  /* tables may scroll inside (WCAG 1.4.10) */

/* high contrast, dark background (:where keeps the base rule weak, so the rules below win) */
html.a11y-dark :where(body, body *:not(img, svg, svg *, iframe, video)) {
  background-color: #000 !important; background-image: none !important; color: #fff !important;
  border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-dark a, html.a11y-dark a * { color: #ffe14d !important; }
html.a11y-dark :is(.btn, .icon-btn, .lang-link, button, input, select, textarea) { border: 2px solid #fff !important; }
html.a11y-dark :is(.btn-primary, .header-cta) { border-color: #ffe14d !important; }
html.a11y-dark img { background-color: #fff !important; border-radius: 6px; }
html.a11y-dark :focus-visible { outline-color: #ffe14d !important; }
html.a11y-dark ::placeholder { color: #c8c8c8 !important; }
html.a11y-dark .a11y-list button[aria-pressed="true"] { background-color: #ffe14d !important; color: #000 !important; border-color: #ffe14d !important; }
html.a11y-dark .a11y-list button::after { color: #000 !important; background-color: #fff !important; }

/* high contrast, light background */
html.a11y-light :where(body, body *:not(img, svg, svg *, iframe, video)) {
  background-color: #fff !important; background-image: none !important; color: #000 !important;
  border-color: #000 !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-light a, html.a11y-light a * { color: #0b2fa8 !important; }
html.a11y-light :is(.btn, .icon-btn, .lang-link, button, input, select, textarea) { border: 2px solid #000 !important; }
html.a11y-light :focus-visible { outline-color: #0b2fa8 !important; }
html.a11y-light .a11y-list button[aria-pressed="true"] { background-color: #000 !important; color: #fff !important; }
html.a11y-light .a11y-list button[aria-pressed="true"]::after { color: #000 !important; background-color: #fff !important; }
html.a11y-dark .check-box { border: 2px solid #ffe14d !important; }
html.a11y-light .check-box { border: 2px solid #000 !important; }

/* grayscale (colour vision differences); filter on body keeps sticky header and bar working */
html.a11y-gray body { filter: grayscale(1); }

html.a11y-links a {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
  outline: 2px dashed currentColor; outline-offset: 2px;
}
html.a11y-headings :is(h1, h2, h3, h4, summary) { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
html.a11y-font :where(body, body *:not(svg, svg *)) { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
html.a11y-spacing :where(main, .site-footer, .a11y-panel) :where(p, li, dd, dt, td, th, summary, label, .answer) {
  line-height: 1.9 !important; word-spacing: .16em !important;
}
html.a11y-spacing:lang(ru) :where(main, .site-footer, .a11y-panel) :where(p, li, dd, dt, td, th, summary, label, .answer) { letter-spacing: .06em !important; }
html.a11y-spacing :where(main, .site-footer) p { margin-block-end: 1.4em !important; }
html.a11y-motion, html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-cursor, html.a11y-cursor * { cursor: url("/assets/img/cursor-big.svg") 5 3, auto !important; }
html.a11y-cursor :is(a, button, summary, label, select) { cursor: url("/assets/img/cursor-big-link.svg") 5 3, pointer !important; }
html.a11y-cursor :is(a, button, summary, label) * { cursor: inherit !important; }

/* ---------- cookie consent banner (templates/footer.*.html, assets/js/consent.js) ---------- */
.cookie-banner {
  position: fixed; z-index: 45; inset-inline-start: var(--gutter);  /* under the header (50) with the accessibility panel, over the contact bar (40) */ inset-block-end: calc(92px + env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 2 * var(--gutter))); padding: 20px 22px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 20, 50, .22);
}
@media (min-width: 1000px) { .cookie-banner { inset-block-end: var(--gutter); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.cookie-banner .cookie-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--navy); } /* bigger banner with a title (owner request 2026-11-05) */
.cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1 1 0; min-height: 50px; padding: 8px 14px; font-size: 17px; }
.cookie-actions .btn-primary { flex-grow: 1.4; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }

/* ---------- guides index (/madrich/, filled by _tools/build_hub.py) ---------- */
.prose:has(.article-list) { max-width: none; } /* the list uses the full page width, the text stays narrow */
.prose:has(.article-list) > p { max-width: 820px; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.prose .article-list { margin: 0; padding: 0; gap: 12px; } /* .prose ul adds a list indent; the grid columns stay from the rules below */
@media (min-width: 800px) { .article-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .article-list { grid-template-columns: 1fr 1fr 1fr; } }
.article-list a { grid-template-rows: auto auto 1fr; } /* "read" link sits at the bottom of every card */
.article-list .more { align-self: end; }
.article-list > li[hidden] { display: none; }
.article-topic { justify-self: start; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--sky, #e8f2fb); border-radius: 999px; padding: 2px 10px; }
/* topic filter and pages (site.js; hidden without JavaScript, then every card is shown) */
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; scroll-margin-top: 96px; }
@media (max-width: 799px) { /* phones: one row of topics that scrolls sideways instead of five rows */
  .topic-filter { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 6px; scrollbar-width: thin; }
  .topic-filter button { flex: none; white-space: nowrap; }
}
.topic-filter[hidden], .pager[hidden], .hub-status[hidden] { display: none; }
.topic-filter button, .pager button {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.topic-filter button:hover, .pager button:hover { border-color: var(--blue); }
.topic-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.topic-filter .count { font-weight: 400; opacity: .8; }
.hub-status { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.hub-status:focus { outline: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pager button { min-width: 44px; border-radius: var(--radius); }
.pager button[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-list a {
  display: grid; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.article-list a:hover { border-color: var(--blue); }
.article-title { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.article-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.article-list .more { font-weight: 600; color: var(--blue); }
