/* Самоадвокати — public site styles.
   Easy-to-read rules: large plain sans-serif text, generous line height, left-aligned (never justified),
   short lines, no italics, underlined links, strong contrast (WCAG AA+), big tap targets, one idea per block.
   All sizes are in rem, so the A− / A / A+ buttons scale the whole page. */

:root {
  --blue: #1b3f94;
  --blue-600: #2453c2;
  --blue-900: #0f2257;
  --blue-50: #eef3fc;
  --blue-100: #dce6f9;
  --sun: #ffc93c;
  --sun-600: #f0b000;
  --sun-50: #fff7df;
  --ink: #141821;
  --muted: #4a5263;
  --line: #d9dfea;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --night: #0e1a3a;
  --ok: #16653a;
  --ok-soft: #e5f4eb;
  --err: #a3121a;
  --err-soft: #fdeceb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(15 34 87 / 6%), 0 6px 20px rgb(15 34 87 / 7%);
  --shadow-lg: 0 16px 40px rgb(15 34 87 / 16%);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--sun-600);
  --wrap: 76rem;
  --gutter: 1rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font: inherit;
}

img,
svg,
iframe,
video {
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: var(--blue-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--blue-900);
  text-decoration-thickness: 0.15em;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--blue-900);
}
h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 0.9em;
}
em,
i {
  font-style: normal;
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--sun);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}
main:focus {
  outline: none;
}
.icon {
  flex: none;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-900);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--blue-100);
  color: var(--blue);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-900);
}
.btn-large {
  min-height: 3.5rem;
  padding-inline: 1.9rem;
  font-size: 1.1rem;
}
.btn-facebook {
  background: #fff;
  color: var(--night);
}
.btn-facebook .icon {
  color: #1877f2;
}
.btn-facebook:hover {
  background: var(--sun);
  color: var(--ink);
}

/* ---------------------------------------------------------------- header */

.topbar {
  background: var(--blue-900);
  color: #fff;
  font-size: 1rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: 3.5rem;
  padding-block: 0.3rem;
}
.social {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #fff;
}
.social a:hover {
  background: rgb(255 255 255 / 14%);
  color: var(--sun);
}
.text-size {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.text-size-label {
  margin-right: 0.35rem;
  font-weight: 600;
}
.text-size button {
  min-width: 2.9rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  border: 2px solid rgb(255 255 255 / 45%);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.text-size button[data-font='-1'] {
  font-size: 0.9rem;
}
.text-size button[data-font='1'] {
  font-size: 1.25rem;
}
.text-size button:hover:not(:disabled) {
  background: #fff;
  color: var(--blue-900);
}
.text-size button[aria-pressed='true'] {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}
.text-size button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 26rem) {
  .text-size-label {
    display: none;
  }
}

.masthead {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-900);
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.95rem;
  color: var(--muted);
}
.brand:hover .brand-name {
  color: var(--blue-600);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: inline;
}
.menu-toggle[aria-expanded='true'] {
  background: var(--blue);
  color: #fff;
}

/* Small screens: the menu opens as a panel below the header. */
.site-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem var(--gutter) 1.5rem;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
}
.site-nav.is-open {
  display: block;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}
.nav-link {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav-item.is-active > .nav-link {
  color: var(--blue-600);
}
.sub-toggle {
  width: 3.5rem;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.sub-toggle .icon {
  transition: transform 0.2s;
}
.sub-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}
.sub-list {
  display: none;
  grid-column: 1 / -1;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--sun);
}
.sub-toggle[aria-expanded='true'] + .sub-list {
  display: block;
}
.sub-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.25rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.sub-list a:hover,
.sub-list a.is-active {
  color: var(--blue-600);
  text-decoration: underline;
}

/* Wide screens: one row of menu items with drop-downs. In rem, so a larger text size switches to the panel. */
@media (min-width: 78rem) {
  .menu-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list {
    display: flex;
    gap: 0.15rem;
  }
  /* The highlight is on the whole item, so a section with a drop-down arrow gets one pill around both. */
  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
  }
  .nav-item:hover,
  .nav-item.is-active {
    background: var(--blue-50);
  }
  .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--sun);
  }
  .nav-link {
    min-height: 3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .nav-item.has-sub .nav-link {
    padding-right: 0.15rem;
  }
  .nav-link:hover,
  .nav-item.is-active > .nav-link {
    color: var(--blue-900);
  }
  .sub-toggle {
    width: 2.5rem;
    height: 3rem;
    padding: 0 0.5rem 0 0;
    border-radius: 0 999px 999px 0;
  }
  .sub-list {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 19rem;
    margin: 0;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  /* Bridge the gap so the pointer can travel from the item to its drop-down. */
  .sub-list::before {
    content: '';
    position: absolute;
    inset: -0.5rem 0 auto 0;
    height: 0.5rem;
  }
  .nav-item:hover > .sub-list,
  .nav-item:focus-within > .sub-list {
    display: block;
  }
  .nav-item:hover > .sub-toggle .icon {
    transform: rotate(180deg);
  }
  .sub-list a {
    border-radius: var(--radius-sm);
  }
  .sub-list a:hover,
  .sub-list a.is-active {
    background: var(--blue-50);
    text-decoration: none;
  }
}

/* ---------------------------------------------------------------- page structure */

.page {
  padding-block: 1.75rem 4rem;
}
.page-narrow {
  max-width: 52rem;
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
}
.page-header h1::after,
.section-heading h2::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 0.35rem;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: var(--sun);
}
.page-intro {
  margin-bottom: 2rem;
}
.home-section {
  padding-block: 3rem;
}
.home-band {
  background: var(--bg-soft);
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.breadcrumbs li + li::before {
  content: '›';
  color: var(--muted);
  font-size: 1.25em;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
}
.breadcrumbs [aria-current] {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-heading h2 {
  margin: 0;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3rem;
  font-weight: 700;
}

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 6px solid;
  margin-bottom: 1.25rem;
}
.notice-ok {
  background: var(--ok-soft);
  border-color: var(--ok);
}
.notice-error {
  background: var(--err-soft);
  border-color: var(--err);
}
.notice-warn {
  background: var(--sun-50);
  border-color: var(--sun-600);
}
.empty {
  padding: 2.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------- home: greeting */

.hero {
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff);
}
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem 3rem;
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero-text {
  max-width: 34rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  line-height: 1.55;
}
.hero-body .btn {
  margin-top: 1.25rem;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0.9rem 0.9rem 0 var(--sun);
}
@media (min-width: 52rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    padding-block: 4rem 4.5rem;
  }
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 44rem) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card:focus-within {
  box-shadow: var(--focus);
}
.card-grid {
  flex-direction: column;
}
.card-media {
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-grid .card-media {
  aspect-ratio: 16 / 9;
}
/* No picture (most materials are documents): a document sign on a soft tile. */
.card-media-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--blue-50);
  color: var(--blue);
}
.card-grid .card-media-icon {
  aspect-ratio: auto;
}
.card:hover .card-media-icon {
  background: var(--sun);
  color: var(--ink);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.card-date {
  color: var(--muted);
  font-size: 0.95rem;
}
.card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}
.card-link {
  color: inherit;
  text-decoration: none;
}
/* The whole card is clickable, but there is only one link for screen readers. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card-link:focus-visible {
  box-shadow: none;
}
.card:hover .card-link {
  color: var(--blue-600);
  text-decoration: underline;
}
.card-excerpt {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--blue-600);
  font-weight: 700;
}
.card-row .card-media:not(.card-media-icon) {
  width: 9rem;
  aspect-ratio: 4 / 3;
}
@media (max-width: 30rem) {
  .card-row .card-media:not(.card-media-icon) {
    width: 5.5rem;
  }
  .card-media-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.list {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
}
.list-heading {
  margin-top: 2.5rem;
}

.subsections ul {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
@media (min-width: 44rem) {
  .subsections ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .subsections ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
.subsections a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.9rem 1.35rem;
  background: var(--blue-50);
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--blue-900);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.subsections a:hover {
  border-color: var(--blue-600);
  background: #fff;
}
.subsections a .icon {
  color: var(--blue-600);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 56rem;
  margin-top: 2.5rem;
}
.pagination ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-num {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}
span.page-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.page-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  font-weight: 700;
}
.page-step[rel='next'] {
  justify-self: end;
}
@media (max-width: 40rem) {
  .pagination {
    grid-template-columns: 1fr 1fr;
  }
  .pagination ul {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---------------------------------------------------------------- home: questions */

.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 56rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-item[open] {
  border-color: var(--blue-100);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.9rem 1.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--blue-600);
}
.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--sun);
  color: var(--ink);
}
.faq-answer {
  padding: 0 1.35rem 1.25rem;
}
.faq-answer p {
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
}
/* One sentence per line, each with a small marker: easier to follow line by line. */
.faq-answer p::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.05em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sun-600);
}

/* ---------------------------------------------------------------- home: sign-up */

.subscribe {
  display: grid;
  gap: 1.5rem 3rem;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--sun-50), #fff3c4);
  border: 1px solid #f6e3a6;
}
.subscribe h2 {
  margin-bottom: 0.75rem;
}
.subscribe .faq {
  margin-top: 1.5rem;
  gap: 0.6rem;
}
.subscribe .faq-item {
  box-shadow: none;
  border-color: #f0dc9c;
}
.subscribe .faq-item summary {
  min-height: 3.5rem;
  font-size: 1.1rem;
}
.subscribe-form {
  align-self: start;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 52rem) {
  .subscribe {
    grid-template-columns: 1.1fr 1fr;
    padding: 3rem;
  }
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.field-note {
  font-weight: 400;
  color: var(--muted);
}
.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid #9aa3b5;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field input::placeholder {
  color: #6b7385;
}
.field input:focus {
  border-color: var(--blue);
}
.subscribe-form .btn {
  width: 100%;
}

/* ---------------------------------------------------------------- article */

.article {
  max-width: 50rem;
}
.article-header {
  margin-bottom: 1.75rem;
}
.article-header h1 {
  margin-bottom: 0.75rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.15rem 0.95rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 650;
  text-decoration: none;
}
.tags a:hover {
  background: var(--sun);
  color: var(--ink);
}
.article-image {
  display: block;
  max-height: 34rem;
  width: auto;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
}
.back-link {
  margin-top: 2.5rem;
}

.prose {
  max-width: 46rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2,
.prose h3 {
  margin-top: 1.7em;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--blue);
  font-weight: 700;
}
.prose img {
  border-radius: var(--radius-sm);
  margin-block: 0.5rem;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.85rem 1.25rem;
  border-left: 6px solid var(--sun);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  display: block;
  overflow-x: auto;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}
.prose .alignleft {
  float: left;
  margin: 0.3rem 1.25rem 1rem 0;
  max-width: 45%;
}
.prose .alignright {
  float: right;
  margin: 0.3rem 0 1rem 1.25rem;
  max-width: 45%;
}
.prose .aligncenter {
  display: block;
  margin-inline: auto;
}
.prose::after {
  content: '';
  display: table;
  clear: both;
}
/* Download links stand out as buttons: "📥 Скачати документ". */
.prose a[href*='drive.google.com/file'],
.prose a[href$='.pdf'],
.prose a[href$='.docx'],
.prose a[href$='.doc'],
.prose a[href$='.pptx'] {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--blue-100);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: none;
}
.prose a[href*='drive.google.com/file']:hover,
.prose a[href$='.pdf']:hover,
.prose a[href$='.docx']:hover,
.prose a[href$='.doc']:hover,
.prose a[href$='.pptx']:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

/* Embedded documents and videos. */
.embed {
  margin: 1.5rem 0;
  max-width: 50rem;
}
.prose .embed {
  max-width: none;
}
.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.embed-doc iframe {
  height: min(85vh, 60rem);
  min-height: 32rem;
}
.embed-video .embed-frame {
  aspect-ratio: 16 / 9;
}
.embed-video iframe {
  height: 100%;
}
.embed-social .embed-frame {
  max-width: 31.25rem;
}
.embed-social iframe {
  height: 37.5rem;
}
.embed figcaption {
  margin-top: 0.75rem;
}
.embed-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3rem;
  font-weight: 700;
}
.embed-open::after {
  content: '↗';
}

/* ---------------------------------------------------------------- errors */

.error-page {
  padding-block: 4rem 6rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 2rem;
  background: var(--night);
  color: #e6eaf4;
  font-size: 1.05rem;
}
.site-footer a:not(.btn) {
  color: #fff;
}
.site-footer a:not(.btn):hover {
  color: var(--sun);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr 1.1fr 1.3fr;
    gap: 3rem;
  }
}
.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}
.footer-title img {
  border-radius: 10px;
}
.footer-tagline {
  margin: 0.5rem 0 1.25rem;
  color: #c3cbe0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav > ul > li {
  margin-bottom: 0.35rem;
}
.footer-nav > ul > li > a {
  font-weight: 700;
}
.footer-nav ul ul {
  margin: 0.15rem 0 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgb(255 255 255 / 20%);
}
.footer-nav a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.partner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.partner img {
  flex: none;
  width: 8.5rem;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}
.partner p {
  margin: 0;
}
.footer-text p:last-child {
  margin-bottom: 0;
}
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.95rem;
  color: #c3cbe0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

/* ---------------------------------------------------------------- print */

@media print {
  .topbar,
  .menu-toggle,
  .site-nav,
  .breadcrumbs,
  .back-link,
  .subscribe,
  .site-footer {
    display: none !important;
  }
  .embed-frame {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
