/* Стилі сайту УПОА. Кольори й шрифти — як у шаблоні статей. */
:root {
  --red: #CA000F;
  --red-dark: #a3000c;
  --red-pale: #fdf0f0;
  --ink: #1a1a1a;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --faint: #9e9e9e;
  --stone: #f3f3f1;
  --line: #e0e0e0;
  --white: #ffffff;
  --footer: #3d3b39;
  --font-title: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --radius: 6px;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-title); color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ===== Шапка ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.brand__logo { width: 56px; height: 56px; flex-shrink: 0; }
.brand__logo-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); }
.brand__logo-wrap .brand__logo { width: 42px; height: 42px; }
.brand__short { font-family: var(--font-title); font-weight: 900; font-size: 15px; letter-spacing: .15em; }
.brand__full { font-family: var(--font-title); font-size: 12px; color: var(--muted); max-width: 170px; line-height: 1.25; padding-left: 10px; border-left: 1px solid var(--line); }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 13.5px; line-height: 1.15; letter-spacing: .01em; }
.brand--light { color: var(--white); }
.brand--light:hover { color: var(--white); }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; white-space: nowrap; padding: 8px 11px; border-radius: 50px; font-family: var(--font-title); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--stone); }
.site-nav a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: 50px; padding: 8px 14px; font: 500 13px var(--font-title); color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

@media (max-width: 1420px) {
  .brand__full { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav a { border-radius: 0; padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a:hover { background: none; }
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-cta, .header-donate { padding: 10px 18px; font-size: 12px; }
.header-donate { border-color: var(--line); color: var(--ink); gap: 6px; }
.header-donate .icon { width: 16px; height: 16px; }
.header-donate:hover { border-color: var(--red); background: var(--red-pale); color: var(--red); }
.nav-donate { display: none; }
@media (max-width: 640px) { .site-header .header-donate { display: none; } .nav-donate { display: block; } }
@media (max-width: 960px) { .site-header__row { gap: 10px; } .header-actions { margin-left: auto; order: 2; } .header-cta { padding: 9px 14px; } .nav-toggle { order: 3; } .nav-donate a { display: flex; align-items: center; gap: 8px; color: var(--red) !important; } }
@media (max-width: 400px) { .site-header .header-cta { display: none; } }

/* На середніх екранах окремі «Вебінари» і «Публікації» ховаються — вони є в підменю */
@media (min-width: 961px) and (max-width: 1240px) { .site-nav > ul > li.nav-extra { display: none; } }
@media (min-width: 961px) { .site-header__row { gap: 14px; } .site-header .brand { gap: 8px; } .site-header .brand__logo { width: 68px; height: 68px; } .brand__name { font-size: 12.5px; } .site-nav a { padding: 8px 8px; } }

/* Підменю */
.site-nav li { position: relative; }
.has-sub > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; flex-direction: column !important; gap: 0 !important; padding: 8px !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 36px rgba(26,26,26,.1); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub a { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); border-radius: 4px; padding: 10px 12px; }
.sub a:hover { background: var(--red-pale); color: var(--red); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 960px) {
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px !important; min-width: 0; }
  .sub a { border-bottom: 0 !important; padding: 9px 4px !important; font-size: 15px !important; color: var(--muted); }
}

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 50px; font: 700 14px/1.2 var(--font-title); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font: 700 14px var(--font-title); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* ===== Секції ===== */
.section { padding-block: 80px; }
.section--stone { background: var(--stone); }
.section--tight { padding-block: 56px; }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head--row > div { display: grid; gap: 12px; max-width: 720px; }
.eyebrow { font: 700 12px/1 var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
.section-title span { color: var(--red); }
.lead { font-size: 18px; color: var(--muted); max-width: 65ch; }
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  body { font-size: 16px; }
  .lead { font-size: 16px; }
}

/* ===== Іконки ===== */
.icon { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 22px; height: 22px; stroke-width: 2; }

/* ===== Головна: перший екран ===== */
.hero { background: var(--stone); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px; }
.hero__text { display: grid; gap: 22px; }
.hero__badge { justify-self: start; background: var(--red); color: var(--white); font: 700 11px/1 var(--font-title); letter-spacing: .15em; text-transform: uppercase; padding: 8px 16px; border-radius: 50px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 900; letter-spacing: -.01em; }
.hero h1 span { color: var(--red); }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.hero__aside { display: block; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); text-decoration: none; line-height: 1.45; }
.hero__aside .icon { vertical-align: -5px; margin-right: 8px; }
.hero__aside span { color: var(--red); font-weight: 500; white-space: nowrap; }
.hero__aside:hover { color: var(--ink); }
.hero__art { position: relative; display: grid; justify-items: center; padding-block: 8px; }
.hero__rings { position: absolute; left: 50%; top: 50%; width: 120%; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.ring { fill: none; stroke: var(--red); }
.ring--1 { stroke-opacity: .16; stroke-width: 1; }
.ring--2 { stroke-opacity: .26; stroke-width: 1; stroke-dasharray: 3 7; }
.ring-arc { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 220 1400; transform: rotate(-35deg); transform-origin: 240px 290px; }
.ring-core { fill: var(--red); }
.ring-dot { fill: #cfcac4; }
.hero__photo { position: relative; z-index: 1; margin: 0; width: min(380px, 100%); aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 24px 48px rgba(26,26,26,.12); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero__seal { position: absolute; z-index: 2; width: 128px; height: 128px; right: calc(50% - min(190px, 50%) - 40px); bottom: 24px; background: var(--white); border-radius: 50%; padding: 8px; box-shadow: 0 10px 24px rgba(26,26,26,.12); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 56px; }
  .hero__lead { font-size: 17px; }
  .hero__photo { width: min(320px, 82%); }
  .hero__seal { width: 96px; height: 96px; right: calc(50% - min(160px, 41%) - 36px); bottom: 8px; }
}

@media (max-width: 420px) { .hero__aside span { white-space: normal; } }

/* ===== Перший екран: фото на всю ширину ===== */
.hero--photo { position: relative; background: #1d1b1a; border-bottom: 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 35%; }
.hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(20,18,17,.9) 0%, rgba(20,18,17,.78) 40%, rgba(20,18,17,.2) 62%, rgba(20,18,17,0) 80%); }
.hero--photo::after { display: none; }
.hero__inner { position: relative; z-index: 2; min-height: 620px; display: flex; align-items: center; padding-block: 72px; }
.hero--photo .hero__text { max-width: 560px; margin-left: auto; }
.hero--photo h1 { color: #fff; text-transform: uppercase; font-size: clamp(1.7rem, 3.7vw, 2.9rem); letter-spacing: .01em; line-height: 1.12; }
.hero--photo h1 span { color: #ff5a63; }
.hero--photo .hero__lead { color: rgba(255,255,255,.86); }
.hero--photo .hero__lead strong { color: #fff; font-weight: 600; }
.hero--photo .hero__aside { color: rgba(255,255,255,.8); border-top-color: rgba(255,255,255,.22); }
.hero--photo .hero__aside:hover { color: #fff; }
.hero--photo .hero__aside span { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero--photo .hero__aside .icon { stroke: #fff; }
@media (max-width: 860px) {
  .hero--photo { background: var(--stone); }
  .hero__bg { position: relative; display: block; height: 320px; object-position: 18% 25%; }
  .hero--photo::before { inset: 0 0 auto 0; height: 320px; background: linear-gradient(180deg, rgba(243,243,241,0) 62%, rgba(243,243,241,1) 100%); }
  .hero--photo .hero__text { margin-left: 0; }
  .hero__inner { min-height: 0; padding-block: 4px 44px; }
  .hero--photo h1 { color: var(--ink); }
  .hero--photo h1 span { color: var(--red); }
  .hero--photo .hero__lead { color: var(--muted); }
  .hero--photo .hero__lead strong { color: var(--ink); }
  .hero--photo .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .hero--photo .btn--ghost:hover { background: var(--ink); color: #fff; }
  .hero--photo .hero__aside { color: var(--muted); border-top-color: var(--line); }
  .hero--photo .hero__aside:hover { color: var(--ink); }
  .hero--photo .hero__aside span { color: var(--red); }
  .hero--photo .hero__aside .icon { stroke: var(--red); }
}

/* ===== Про асоціацію ===== */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about__main { display: grid; gap: 16px; }
.about__count { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-block: 1px solid var(--line); margin-top: 6px; }
.about__count span { font: 900 46px/1 var(--font-title); color: var(--red); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.about__count p { font-size: 15px; color: var(--text); line-height: 1.45; max-width: 44ch; }
.aims { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.aims li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; color: var(--muted); line-height: 1.5; }
.aims .icon { width: 34px; height: 34px; }
.aims strong { color: var(--ink); font-family: var(--font-title); }
.founders { background: var(--stone); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.founders__title { font: 700 12px/1.3 var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.founders__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.founders__list li, .founders__link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.founders__list img { width: 64px; height: 64px; border-radius: 50%; background: var(--red-pale); box-shadow: 0 0 0 3px var(--white); }
.founders__list strong { display: block; font: 700 16px/1.3 var(--font-title); color: var(--ink); }
.founders__list span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.founders__ipos { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.founders__ipos img { width: 80px; height: auto; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 560px) { .aims { grid-template-columns: minmax(0, 1fr); gap: 18px; } .founders { padding: 22px 18px; } }

/* ===== Членство + вступ ===== */
.membership { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.membership__main { display: grid; gap: 16px; }
.perks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.perks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.perks .icon { width: 30px; height: 30px; }
.perks strong { display: block; font: 700 16px/1.3 var(--font-title); color: var(--ink); margin-bottom: 4px; }
.perks span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.join { position: sticky; top: 88px; display: grid; gap: 20px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: 0 20px 44px rgba(26,26,26,.07); }
.join__title { font-size: 24px; font-weight: 700; }
.join__steps { counter-reset: j; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.join__steps li { counter-increment: j; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.45; }
.join__steps li::before { content: counter(j); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--red); font: 900 12px/1 var(--font-title); color: var(--red); transform: translateY(-2px); }
.join__fees { margin: 0; display: grid; border-top: 1px solid var(--line); }
.join__fees > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.join__fees dt { font-size: 14px; color: var(--text); }
.join__fees dt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.join__fees dd { margin: 0; font: 900 18px/1.2 var(--font-title); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.join__fee-accent dd { color: var(--red); }
.join__cta { width: 100%; padding-block: 16px; }
.join__note { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 960px) { .membership { grid-template-columns: minmax(0, 1fr); gap: 36px; } .join { position: static; } }
@media (max-width: 560px) { .perks { grid-template-columns: minmax(0, 1fr); } .join { padding: 24px 20px; } }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--font-title); color: var(--ink); }

/* ===== Мета ===== */
.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.goal { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.goal + .goal { padding-left: 24px; border-left: 1px solid var(--line); }
.goal__name { font: 900 15px/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.goal p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) {
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal:nth-child(3) { padding-left: 0; border-left: 0; }
  .goal:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .goals { grid-template-columns: minmax(0, 1fr); }
  .goal + .goal { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .goal { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding-right: 0; }
  .goal .icon { grid-row: 1 / span 2; }
}

/* Фон-візерунок з крапок у кутку секції */
.section--pattern { position: relative; overflow: hidden; }
.section--pattern::before { content: ''; position: absolute; right: -40px; top: -40px; width: 320px; height: 240px; background-image: radial-gradient(#cfcac4 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .8; pointer-events: none; }
.section--pattern > .container { position: relative; }

/* ===== Членство ===== */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.benefit h3 { font-size: 18px; font-weight: 700; }
.benefit p { font-size: 15px; color: var(--muted); }
.benefit--cta { background: var(--red-pale); border-color: rgba(202,0,15,.25); }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits { grid-template-columns: minmax(0, 1fr); } .benefit { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; } .benefit .icon { grid-row: 1 / span 2; width: 34px; height: 34px; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; position: relative; }
.step { counter-increment: step; display: grid; gap: 10px; align-content: start; padding: 0 8px 0 0; position: relative; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--red); font: 900 18px/1 var(--font-title); color: var(--red); position: relative; z-index: 1; }
.step::after { content: ''; position: absolute; top: 22px; left: 52px; right: 0; border-top: 2px dotted rgba(202,0,15,.35); }
.step:last-child::after { display: none; }
.step h3 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 0 0 24px; }
  .step::before { grid-row: 1 / span 2; }
  .step h3 { margin-top: 10px; }
  .step::after { top: 50px; bottom: 4px; left: 21px; right: auto; border-top: 0; border-left: 2px dotted rgba(202,0,15,.35); }
}

.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.fee { display: grid; gap: 8px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fee__name { font: 700 12px/1.2 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fee__sum { font: 900 36px/1 var(--font-title); color: var(--ink); font-variant-numeric: tabular-nums; }
.fee__sum small { font-size: 18px; font-weight: 700; color: var(--muted); }
.fee p, .fee li { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fee ul { margin: 4px 0 0; padding-left: 18px; }
.fee--accent { border-color: rgba(202,0,15,.3); background: var(--red-pale); }
.fee--accent .fee__sum { color: var(--red); }
@media (max-width: 860px) { .fees { grid-template-columns: minmax(0, 1fr); } }

/* ===== Вебінари ===== */
.webinars-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.webinars-teaser__intro { display: grid; gap: 18px; justify-items: start; }
.webinars-teaser .section-title span { color: var(--red); }
.topic-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font: 500 16px/1.35 var(--font-title); color: var(--ink); text-decoration: none; }
.topic-list a::after { content: '→'; margin-left: auto; padding-left: 12px; color: var(--red); }
.topic-list a:hover { background: var(--red-pale); }
@media (max-width: 860px) { .webinars-teaser { grid-template-columns: minmax(0, 1fr); gap: 32px; } .topic-list a { padding: 14px 16px; font-size: 15px; } }

/* ===== Діяльність: шахівниця «текст + фото» ===== */
.checker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.checker__text { display: grid; gap: 12px; align-content: center; padding: 32px 28px; background: var(--white); }
.checker__text h3 { font-size: 22px; font-weight: 700; color: var(--red); }
.checker__text p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.checker__photo { position: relative; min-height: 280px; background: var(--stone); }
.checker__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checker > :nth-child(-n+4) { border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) {
  .checker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checker > :nth-child(5) { order: 6; } .checker > :nth-child(6) { order: 5; }
  .checker > :nth-child(7) { order: 8; } .checker > :nth-child(8) { order: 7; }
  .checker > * { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .checker { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .checker__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .checker__text { padding: 24px 20px; }
  .checker > :nth-child(2) { order: 0; }
}

/* ===== Засновники ===== */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.person { display: grid; gap: 10px; align-content: start; justify-items: start; }
.person__photo { width: 148px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--red-pale); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(202,0,15,.25); display: grid; place-items: center; font: 900 34px/1 var(--font-title); color: var(--red); letter-spacing: .04em; overflow: hidden; margin: 8px 0 10px 8px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 19px; font-weight: 700; }
.person__role { font-size: 15px; color: var(--muted); line-height: 1.5; }
.person__tag { font: 700 10px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--red); background: var(--red-pale); padding: 6px 10px; border-radius: 50px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .people { gap: 24px 14px; } .person__photo { width: 96px; font-size: 26px; } .person__name { font-size: 16px; } .person__role { font-size: 14px; } }

.ipos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ipos p { flex: 1 1 320px; }
.ipos__logo { width: 96px; height: auto; flex-shrink: 0; }
.ipos strong { color: var(--ink); }

/* ===== Пацієнтам ===== */
.patients__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.patient-link { display: flex; align-items: center; gap: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 15px; line-height: 1.5; background: var(--white); }
.patient-link strong { display: block; font: 700 19px/1.3 var(--font-title); color: var(--ink); margin-bottom: 4px; }
.patient-link__arrow { margin-left: auto; color: var(--red); font: 700 20px var(--font-title); transition: transform .15s; }
.patient-link:hover { border-color: rgba(202,0,15,.4); background: var(--red-pale); color: var(--muted); }
.patient-link:hover .patient-link__arrow { transform: translateX(3px); }
.subhead { font: 700 12px/1 var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
@media (max-width: 760px) { .patients__links { grid-template-columns: minmax(0, 1fr); } .patient-link { padding: 20px; gap: 16px; } }

/* ===== Статті ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.article-card:hover { border-color: var(--muted); color: var(--text); transform: translateY(-2px); }
.article-card__format { justify-self: start; font: 700 10px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--stone); padding: 6px 10px; border-radius: 50px; }
.article-card__rubric { font: 700 11px/1.3 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.article-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.article-card:hover .article-card__title { color: var(--red); }
.article-card__text { font-size: 15px; color: var(--muted); line-height: 1.55; }
.article-card__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tag { font: 12px/1 var(--font-title); color: var(--muted); background: var(--stone); padding: 5px 9px; border-radius: 50px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-grid > :nth-child(3) { display: none; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-grid > :nth-child(3) { display: grid; } }
@media (prefers-reduced-motion: reduce) { .article-card, .article-card:hover, .patient-link__arrow { transition: none; transform: none; } }

/* ===== Підтримати ===== */
.support { background: var(--red-pale); border-top: 1px solid rgba(202,0,15,.15); }
.support__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 28px; align-items: center; padding-block: 44px; }
.support__icon { width: 48px; height: 48px; }
.support__text { display: grid; gap: 6px; }
.support h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.support p { font-size: 15px; color: var(--muted); max-width: 70ch; }
.support__btn { padding-inline: 32px; }
@media (max-width: 760px) { .support__row { grid-template-columns: auto minmax(0, 1fr); padding-block: 36px; } .support__btn { grid-column: 1 / -1; justify-self: start; } .support__icon { width: 36px; height: 36px; align-self: start; } }

/* ===== Підвал ===== */
.site-footer { background: #d9d8d6; color: var(--ink); font-size: 16px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-block: 64px 48px; }
.site-footer__about { display: grid; gap: 16px; justify-items: start; }
.site-footer__logo img { display: block; width: 112px; height: 112px; }
.site-footer__about p { line-height: 1.55; }
.site-footer__docs { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__docs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__contact { display: grid; gap: 6px; align-content: start; }
.site-footer__title { font: 700 17px/1.3 var(--font-title); letter-spacing: .02em; text-transform: uppercase; color: var(--red); }
.site-footer__social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 14px; }
.soc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .15s; }
.soc svg { width: 26px; height: 26px; }
.site-footer .soc--fb { color: #1d4c8f; }
.site-footer .soc--ms { color: #1877f2; }
.site-footer .soc--yt { color: #d0021b; }
.site-footer .soc--ig { color: #4a3bd6; }
.site-footer .soc:hover { background: rgba(255,255,255,.55); }
.site-footer .soc:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 26px; border-top: 1px solid #b9b7b4; font-size: 15px; color: var(--text); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 48px 36px; } .site-footer__logo img { width: 96px; height: 96px; } }

/* ===== Каталог онкопсихологів ===== */
[hidden] { display: none !important; }
.page-intro .section-title { margin: 12px 0 14px; }
.finder { display: grid; gap: 10px; margin-bottom: 28px; }
.finder__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px/1.2 var(--font-body); padding: 9px 16px; border-radius: 50px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip span { color: var(--faint); margin-left: 2px; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.is-on span { color: rgba(255,255,255,.7); }
.chip--toggle.is-on { background: var(--red); border-color: var(--red); }
.finder__count { font-size: 15px; color: var(--muted); margin-top: 4px; }
.finder__empty { margin-top: 24px; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spec { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; }
.spec:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-pale); }
.spec__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.spec__photo--empty { display: grid; place-items: center; background: var(--stone); color: var(--muted); font: 500 24px var(--font-title); }
.spec__body { min-width: 0; flex: 1; }
.spec__name { font-size: 20px; font-weight: 700; }
.spec__role { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.spec__facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
.spec__facts li { display: flex; gap: 8px; align-items: flex-start; }
.spec__facts .icon { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.spec__contacts { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.spec__phone { display: inline-flex; align-items: center; gap: 8px; font: 500 17px var(--font-title); color: var(--ink); text-decoration: none; }
.spec__phone:hover { color: var(--red); }
.spec__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.spec__btns:empty { display: none; }
.spec__btn { font: 500 13px/1 var(--font-body); padding: 8px 12px; border: 1px solid var(--line); border-radius: 50px; color: var(--ink); text-decoration: none; }
.spec__btn:hover { border-color: var(--red); color: var(--red); }
.spec__more { margin-top: 14px; font-size: 14px; color: var(--muted); }
.spec__more summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.spec__more p { margin-top: 8px; line-height: 1.5; }
@media (max-width: 860px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .spec { padding: 20px; gap: 12px; flex-direction: column; }
  .spec__photo { width: 64px; height: 64px; }
  .spec__photo--empty { font-size: 18px; }
  .patients__links { grid-template-columns: minmax(0, 1fr); }
}
.spec .icon--sm { width: 18px; height: 18px; }
.catalog { padding-top: 48px; }
.spec__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.spec__mail a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.spec__mail a:hover { color: var(--red); }

/* Коротка картка в каталозі (уся картка — посилання) */
.spec--short { text-decoration: none; color: var(--text); transition: border-color .15s; }
.spec--short:hover { border-color: rgba(202,0,15,.45); color: var(--text); }
.spec--short .spec__name, .spec--short .spec__role, .spec--short .spec__where { display: block; }
.spec--short:hover .spec__name { color: var(--red); }
.spec__where { display: flex !important; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 15px; line-height: 1.4; }
.spec__where .icon { flex-shrink: 0; margin-top: 1px; }
.spec__more-link { display: inline-block; margin-top: 14px; font: 500 14px var(--font-body); color: var(--red); }

/* ===== Особиста сторінка фахівця ===== */
.profile { padding-block: 32px 72px; background: var(--stone); }
.profile .container { max-width: 820px; }
.profile__back { display: inline-block; margin-bottom: 20px; font-size: 15px; color: var(--muted); text-decoration: none; }
.profile__back:hover { color: var(--red); }
.profile__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.profile__head { display: flex; gap: 28px; align-items: center; padding-bottom: 28px; }
.profile__head .spec__photo { width: 140px; height: 140px; }
.profile__head .spec__photo--empty { font-size: 36px; }
.profile__head .eyebrow { display: block; margin-bottom: 10px; font-size: 11px; }
.profile__name { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 700; }
.profile__role { color: var(--muted); font-size: 17px; line-height: 1.45; margin-top: 8px; }
.profile__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.profile__row h2 { font: 700 12px/1.6 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.profile__row > div { display: grid; gap: 10px; font-size: 16px; line-height: 1.55; }
.profile__sub { color: var(--muted); }
.profile__row .spec__contacts { margin: 0; padding: 0; border: 0; }
.profile__row .spec__phone { font-size: 20px; }
.profile__row .spec__btn { font-size: 15px; padding: 10px 16px; }
@media (max-width: 640px) {
  .profile { padding-block: 16px 48px; }
  .profile__back { margin-bottom: 12px; }
  .profile__card { padding: 22px; }
  .profile__head { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 20px; }
  .profile__head .spec__photo { width: 104px; height: 104px; }
  .profile__row { grid-template-columns: minmax(0, 1fr); padding-block: 16px; }
}

/* Пошук у каталозі */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finder__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.finder__search { display: flex; align-items: center; gap: 8px; width: 240px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 50px; background: var(--white); }
.finder__search:focus-within { border-color: var(--ink); }
.finder__search .icon { width: 16px; height: 16px; color: var(--muted); stroke: var(--muted); }
.finder__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px var(--font-body); color: var(--ink); padding: 8px 0; }

/* ===== Вебінари: каталог /webinars і сторінки /webinars/<slug> ===== */
.webinars-intro .facts { margin-top: 22px; }
.webinars-intro .lead { margin-top: 14px; }
.webinars-note { margin-top: 18px; display: inline-block; padding: 10px 16px; border-left: 3px solid var(--red); background: var(--red-pale); font-size: 15px; color: var(--ink); }

.wcard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s; }
.wcard:hover { border-color: rgba(202,0,15,.45); color: var(--text); }
.wcard__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.wcover--empty { display: grid; place-items: center; background: var(--stone); color: var(--red); border-bottom: 1px solid var(--line); }
.wcover--empty .icon { width: 44px; height: 44px; opacity: .55; }
.wcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 18px; flex: 1; }
.wcard__title { font: 700 1.1rem/1.3 var(--font-title); color: var(--ink); }
.wcard:hover .wcard__title { color: var(--red); }
.wcard__by { font-size: 14.5px; color: var(--muted); }
.wcard__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wcard__foot .spec__more-link { margin-top: 0; }
.wcard__price { font: 700 1.15rem/1 var(--font-title); color: var(--ink); }

@media (max-width: 600px) { .wcard-grid { grid-template-columns: minmax(0, 1fr); } }

.order { display: grid; gap: 28px; }
.order__steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.order__steps--row { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.order__steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--muted); font-size: 16px; }
.order__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red-pale); color: var(--red); font: 700 16px/36px var(--font-title); text-align: center; }
.order__steps strong { display: block; color: var(--ink); font-family: var(--font-title); margin-bottom: 2px; }
@media (max-width: 860px) { .order__steps--row { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* Сторінка-лендинг вебінару */
.wl-hero { padding-block: 28px 64px; }
.wl-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-top: 12px; }
.wl-hero__grid--plain { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.wl-hero__lead { font: 500 clamp(1.15rem, 2vw, 1.35rem)/1.45 var(--font-title); color: var(--ink); }
.wl-hero__text { display: grid; gap: 16px; justify-items: start; }
.wl-hero__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
.wl-hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.wl-hero__note { font-size: 14px; color: var(--muted); }
.wl-hero__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 44px rgba(26,26,26,.12); }
.webinar__price { font: 700 1.6rem/1 var(--font-title); color: var(--ink); }
@media (max-width: 900px) {
  .wl-hero { padding-block: 16px 48px; }
  .wl-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.wl-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.wl-about__main { display: grid; gap: 16px; max-width: 68ch; }
.wl-about__main .section-title { margin-bottom: 4px; }
.wl-about__main p { font-size: 17px; line-height: 1.7; }
.wl-audience { display: grid; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); }
.wl-audience .icon { width: 34px; height: 34px; color: var(--red); }
.wl-audience h3 { font-size: 1.15rem; }
.wl-audience p { color: var(--muted); }
@media (max-width: 900px) { .wl-about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.wl-learn { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.wl-learn li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.wl-learn li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 16px; height: 9px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 760px) { .wl-learn { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.lector-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lector-card { display: flex; align-items: center; gap: 22px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
a.lector-card:hover { border-color: rgba(202,0,15,.45); color: var(--text); }
a.lector-card:hover strong { color: var(--red); }
.lector-card .spec__photo { width: 120px; height: 120px; }
.lector-card .spec__photo--empty { font-size: 30px; }
.lector-card__body { display: grid; gap: 4px; }
.lector-card__body strong { font: 700 1.2rem/1.3 var(--font-title); color: var(--ink); }
.lector-card__body > span { color: var(--muted); font-size: 15.5px; }
.lector-card .spec__more-link { margin-top: 6px; color: var(--red); font-size: 14px; }
@media (max-width: 760px) { .lector-grid { grid-template-columns: minmax(0, 1fr); } .lector-card { padding: 18px; gap: 16px; } .lector-card .spec__photo { width: 84px; height: 84px; } }

.wl-order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.wl-order__intro { display: grid; gap: 14px; }
.wl-order__what { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--red-pale); border-radius: var(--radius); font-family: var(--font-title); color: var(--ink); margin-top: 8px; }
.wl-order__what span { font-weight: 700; white-space: nowrap; }
@media (max-width: 960px) { .wl-order { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.order__form, .order__done { background: var(--stone); border-radius: var(--radius); padding: 28px; }
.order__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; font: 500 14px var(--font-title); color: var(--ink); }
.field small { display: block; font-weight: 400; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: 400 16px var(--font-body); color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-pale); }
.order__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order__error { margin-top: 16px; color: var(--red-dark); font-weight: 500; }
.order__submit { margin-top: 22px; width: 100%; }
.order__privacy { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.order__done { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 44px; }
.order__done .icon { width: 44px; height: 44px; color: var(--red); }
.order__done p { color: var(--muted); max-width: 42ch; }
@media (max-width: 640px) {
  .order__form, .order__done { padding: 20px 16px; }
  .order__fields { grid-template-columns: minmax(0, 1fr); }
}

.faq__list, .faq__contact { max-width: 820px; }
.faq__list { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative; font: 500 16.5px/1.4 var(--font-title); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--font-title); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq__contact { margin-top: 24px; color: var(--muted); }

/* ===== Бібліотека /publications ===== */
.library { margin-bottom: 32px; }
.ltabs { border-bottom: 1px solid var(--line); }
.ltabs__scroll { display: flex; gap: 4px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.ltabs__scroll::-webkit-scrollbar { display: none; }
.ltab { position: relative; flex-shrink: 0; background: none; border: 0; padding: 14px 0 16px; font: 500 15px/1.2 var(--font-title); color: var(--muted); cursor: pointer; white-space: nowrap; }
.ltab span { font-size: 12px; color: var(--faint); margin-left: 3px; font-variant-numeric: tabular-nums; }
.ltab:hover { color: var(--ink); }
.ltab.is-on { color: var(--ink); font-weight: 700; }
.ltab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }
.lseries { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding: 14px 0 2px; }
.lseries__label { font: 700 11px/1.6 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.lser { background: none; border: 0; padding: 4px 0; font: 500 15px/1.2 var(--font-title); color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.lser span { font-size: 12px; color: var(--faint); margin-left: 3px; font-variant-numeric: tabular-nums; }
.lser:hover { color: var(--ink); }
.lser.is-on { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.library__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; }
.library__who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.library__label { font: 700 11px/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 50px; }
.seg__btn { background: none; border: 0; padding: 8px 16px; border-radius: 50px; font: 500 14px/1.2 var(--font-body); color: var(--muted); cursor: pointer; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on { background: var(--ink); color: var(--white); }
.library__search { width: 280px; }
.library__about { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.library__about strong { color: var(--ink); font-weight: 600; }
.article-card[hidden] { display: none !important; }
.article-grid--library > :nth-child(3) { display: grid; }
.article-card { grid-template-rows: auto auto 1fr auto; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.article-card__meta .article-card__format { font: 500 12px/1.3 var(--font-title); letter-spacing: 0; text-transform: none; color: var(--faint); background: none; padding: 0; }
.article-card__meta .article-card__format::before { content: '·'; margin-right: 10px; color: var(--line); }
.article-card__more { font: 700 13px/1 var(--font-title); letter-spacing: .04em; color: var(--red); margin-left: auto; white-space: nowrap; }
.article-card__foot { display: flex; align-items: center; gap: 12px; padding-top: 6px; min-height: 34px; }
.article-card__author { display: flex; align-items: center; gap: 8px; font: 500 13px/1.25 var(--font-title); color: var(--text); min-width: 0; }
.article-card__author img, .article-card__initials { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.article-card__author img[src$="logo.webp"] { object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.article-card__initials { display: grid; place-items: center; background: var(--red-pale); color: var(--red); font: 700 11px/1 var(--font-title); letter-spacing: .02em; }
.article-card__cover { width: calc(100% + 28px); max-width: none; margin: -14px -14px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.article-card--photo { grid-template-rows: auto auto auto 1fr auto; }
.library__reset { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.library__select { display: block; position: relative; }
.library__rubric { display: none; }
.library__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.library__author select { width: 210px; }
.library__select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.library__select select { appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 50px; background: var(--white); font: 500 15px var(--font-body); color: var(--ink); cursor: pointer; }
.library__select select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 760px) {
  .ltabs, .lseries { display: none; }
  .library__bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-top: 0; }
  .library__tools { display: contents; }
  .library__rubric { display: block; order: 1; }
  .library__author { order: 2; }
  .library__author select { width: 100%; }
  .library__who { grid-column: 1 / -1; order: 3; }
  .library__search { width: 100%; height: 42px; grid-column: 1 / -1; order: 4; }
  .library__who { width: 100%; justify-content: space-between; }
  .seg { flex: 1; } .seg__btn { flex: 1; padding-inline: 6px; }
}
@media (max-width: 420px) { .library__label { display: none; } .library__per .library__label { display: block; } }
.library__about:empty { display: none; }
.library__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 18px; }
.library__meta .library__about { margin: 0; flex: 1 1 320px; }
.library__per { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.library__per select { width: 120px; height: 38px; font-size: 14px; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager[hidden] { display: none; }
.pager__btn { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 50px; background: var(--white); font: 500 15px/1 var(--font-body); color: var(--ink); cursor: pointer; }
.pager__btn:hover:not(:disabled) { border-color: var(--ink); }
.pager__btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); cursor: default; }
.pager__btn:disabled:not(.is-on) { opacity: .4; cursor: default; }
.pager__gap { padding: 0 4px; color: var(--faint); }
.pager__info { width: 100%; text-align: center; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .library__per { margin-left: 0; width: 100%; justify-content: flex-end; } .pager__btn--txt span { display: none; } }

/* ===== Документи ===== */
.doc-list { display: grid; gap: 16px; max-width: 860px; }
.doc-list__note { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Сторінка «Підтримати» (/pidtrymaty) ---------- */
.donate-aims { margin-top: 28px; }
@media (max-width: 860px) { .donate-aims { grid-template-columns: minmax(0, 1fr); } .donate-aims .benefit { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; } .donate-aims .benefit .icon { grid-row: 1 / span 2; } }
.donate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; margin-top: 0; align-items: start; }
.donate__online-card { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--red-pale); border: 1px solid rgba(202,0,15,.3); border-radius: var(--radius); }
.donate__online-card h3 { font-size: 18px; font-weight: 700; }
.donate__online-card p, .donate__pending { font-size: 14.5px; color: var(--muted); }
.donate__online { justify-self: stretch; text-align: center; margin-top: 4px; }
.donate__online.is-pending { opacity: .5; cursor: not-allowed; pointer-events: none; }
.donate-top { padding-top: 40px; padding-bottom: 64px; }
.donate__card, .donate__how { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.donate__card h3, .donate__how h3 { font-size: 18px; font-weight: 700; }
.donate__list { display: grid; margin: 0; }
.donate__row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.donate__row:first-child { border-top: 0; padding-top: 4px; }
.donate__row dt { font-size: 13px; color: var(--muted); }
.donate__row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.donate__val { font-size: 16.5px; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.donate__val--mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.donate__copy { margin-left: auto; padding: 6px 12px; font: 500 13px/1.2 inherit; color: var(--red); background: transparent; border: 1px solid rgba(202,0,15,.3); border-radius: 999px; cursor: pointer; }
.donate__copy:hover { background: var(--red-pale); }
.donate__copy:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.donate__copy.is-done { color: var(--ink); border-color: var(--line); }
.donate__steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.donate__note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .donate { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .donate__card, .donate__how, .donate__online-card { padding: 20px; } .donate__copy { margin-left: 0; } .donate__val--mono { font-size: 15px; letter-spacing: 0; } }
@media (max-width: 400px) { .donate__val--mono { font-size: 14px; } }

/* ---------- Юридичні сторінки (/policy) ---------- */
.legal-section { padding-top: 0; }
.legal { max-width: 75ch; display: grid; gap: 12px; color: var(--text); line-height: 1.65; }
.legal h2 { margin-top: 28px; font: 700 20px/1.3 var(--font-title); color: var(--ink); text-wrap: balance; }
.legal h2:first-of-type { margin-top: 16px; }
.legal h2 span { color: var(--red); }
.legal b { font-weight: 600; color: var(--ink); }
.legal .lv2 { padding-left: 24px; }
.legal__ul, .legal__ol { margin: 0; padding-left: 48px; display: grid; gap: 6px; }
@media (max-width: 560px) { .legal .lv2 { padding-left: 12px; } .legal__ul, .legal__ol { padding-left: 32px; } .legal h2 { font-size: 18px; } }
@media (max-width: 960px) { .site-header__row { min-height: 72px; } }

/* ---------- Перший екран з фото на внутрішніх сторінках (<!-- hero: файл | позиція | right -->) ----------
   Як на головній: фото, затемнення зліва, білий текст, заголовок великими літерами.
   «right» — для вертикальних/невеликих фото: фото лише праворуч (не розтягується й не розмивається). */
.page-hero { position: relative; display: flex; align-items: center; min-height: 440px; padding-block: 72px; background: #1d1b1a; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; z-index: -2; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(20,18,17,.92) 0%, rgba(20,18,17,.78) 36%, rgba(20,18,17,.2) 68%, rgba(20,18,17,0) 100%); }
.page-hero--right .page-hero__bg { width: 58%; }
.page-hero.page-hero--right > .container > * { max-width: 460px; }
.page-hero--right::after { background: linear-gradient(90deg, #1d1b1a 0%, #1d1b1a 42%, rgba(29,27,26,.5) 50%, rgba(29,27,26,0) 62%); }
.page-hero > .container { position: relative; width: 100%; }
.page-hero > .container > * { max-width: 600px; }
.page-hero .eyebrow { display: inline-block; background: var(--red); color: var(--white); font-size: 11px; letter-spacing: .15em; padding: 8px 16px; border-radius: 50px; }
.page-hero .section-title { margin: 20px 0 16px; color: #fff; text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: .01em; line-height: 1.12; text-wrap: balance; }
.page-hero .section-title span { color: #ff5a63; }
.page-hero .lead { color: rgba(255,255,255,.86); font-size: 17px; }
.page-hero .webinars-note { background: rgba(255,255,255,.08); color: rgba(255,255,255,.88); border-left-color: #ff5a63; }
.page-hero--compact { min-height: 320px; padding-block: 56px; }
@media (max-width: 760px) {
  .page-hero { display: block; min-height: 0; padding-block: 0 36px; background: var(--white); }
  .page-hero__bg, .page-hero--right .page-hero__bg { position: static; display: block; width: 100%; height: 240px; }
  .page-hero::after { display: none; }
  .page-hero > .container { margin-top: 28px; }
  .page-hero > .container > * { max-width: none; }
  .page-hero .section-title { color: var(--ink); }
  .page-hero .section-title span { color: var(--red); }
  .page-hero .lead { color: var(--muted); }
  .page-hero .webinars-note { background: var(--red-pale); color: var(--text); border-left-color: var(--red); }
}
.page-intro .section-title { text-transform: uppercase; letter-spacing: .01em; }
/* Дисклеймер про мову запису на сторінці вебінару: зірочка біля ціни + кольорова зноска */
.lang-star { color: var(--red); font-weight: 700; margin-left: 2px; }
.lang-note { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; padding: 12px 16px; background: var(--red-pale); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.lang-note__star { color: var(--red); font-weight: 700; font-size: 18px; line-height: 1; }
.order__consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--text); cursor: pointer; }
.order__consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); cursor: pointer; }
.order__consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* Компактні картки статей (її правка 16.10): нижча смуга фото, менші відступи, анотація до 3 рядків */
.article-card { gap: 8px; padding: 18px 20px; }
.article-card__cover { width: calc(100% + 20px); margin: -8px -10px 4px; aspect-ratio: 21 / 8; }
.article-card__title { font-size: 17px; line-height: 1.3; }
.article-card__text { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__foot { padding-top: 4px; }

/* Засновники з профілем — уся рядка веде на сторінку психолога */
.founders__link { grid-column: 1 / -1; color: inherit; text-decoration: none; border-radius: 12px; margin: -6px; padding: 6px; transition: background .15s; }
.founders__link:hover { background: var(--white); }
.founders__link:hover strong { color: var(--red); }
.founders__link strong::after { content: " →"; color: var(--red); font-weight: 500; }

/* Публікації психолога на його сторінці — маленькі картки без фото під карткою профілю */
.profile-articles { margin-top: 36px; }
.profile-articles__title { font: 700 12px/1.3 var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.pub-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pub-mini { display: flex; gap: 14px; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pub-mini:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.pub-mini__rubric { font: 700 11px/1.3 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pub-mini__title { font: 700 15px/1.35 var(--font-title); }
.pub-mini__more { margin-top: auto; padding-top: 4px; font: 700 12px/1 var(--font-title); color: var(--red); }
.pub-mini__img { flex: 0 0 88px; width: 88px; height: auto; min-height: 88px; object-fit: cover; border-radius: 8px; background: var(--stone); }
.pub-mini__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 4px 2px 0; }

/* Сторінка психолога як візитка: мінімальна шапка, легка смужка «Підтримати», короткий підвал */
.page-card .site-header { position: static; }
.page-card .site-header__row { min-height: 60px; }
.page-card .site-nav, .page-card .nav-toggle, .page-card .header-actions { display: none !important; }
.page-card .brand__logo { width: 38px; height: 38px; }
.page-card .brand__name { font-size: 14px; line-height: 1.25; }
.support--mini { background: transparent; border-top: 1px solid var(--line); }
.support__mini { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; padding-block: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.support__mini a { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; text-decoration: none; }
.support__mini a:hover { text-decoration: underline; }
.site-footer--mini { background: transparent; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer__mini { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 24px; }
.site-footer--mini a { color: var(--muted); }
.site-footer__mini-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.page-card .site-header .container, .page-card .support__mini, .page-card .site-footer__mini { max-width: 820px; }

/* Важливі матеріали (поле "featured" у data/articles.json) — тепла рожева картка */
.article-card--featured { background: var(--red-pale); border-color: #f0c9cc; }
.article-card--featured:hover { border-color: var(--red); }
