/* Матриця Долі - стилі. Один файл, без фреймворків.
   Легкі шрифти (Lora 500 для заголовків, Manrope 400/500 для тексту),
   без скруглень, компактні розміри, багато повітря між блоками. */
:root {
  --cream: #F7F3EC; --cream-2: #EFE9DE; --paper: #FFFFFF;
  --ink: #221C3A; --ink-2: #3A3355; --muted: #6F6A80; --line: #E3DCCF; --line-2: #D2C9B8;
  --plum: #5B3FA0; --plum-l: #ECE6F7; --gold: #C39A3E; --gold-l: #F6EBD2; --gold-ll: #FBF5E7;
  --danger: #B3261E; --focus: #1E63D6;
  --z-core: #C39A3E; --z-w: #5B3FA0; --z-n: #2E7D6B; --z-e: #C0563C; --z-s: #3A4E8C; --z-lm: #B8437A; --z-man: #5C6474; --z-woman: #9A6BB5;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-h: 'Lora', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--ink); background: var(--cream); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 500; line-height: 1.3; margin: 0 0 .7em; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h2, .section-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.15rem; }
h4 { font-family: var(--font); font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1.2em; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
b, strong { font-weight: 600; }
img, svg { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 8px; top: -50px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200; }
.skip-link:focus { top: 8px; }
.section-title { margin-bottom: 1.1em; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; line-height: 1.3; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn--primary:hover { background: #4b3387; color: #fff; }
.btn--secondary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--secondary:hover { background: #3A3355; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 13px 26px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: .88rem; }
.btn:disabled { opacity: .7; cursor: default; }
.btn__spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,243,236,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.brand { font-family: var(--font-h); font-weight: 500; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--plum); }
.brand__mark { width: 16px; height: 16px; border: 1px solid var(--gold); position: relative; transform: rotate(45deg); }
.brand__mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--plum); }
.site-nav { display: flex; gap: 26px; flex-wrap: nowrap; }
.site-nav a { font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; }
@media (max-width: 560px) {
  .site-header__inner { min-height: 50px; }
  .brand { font-size: 1.02rem; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .78rem; }
  .site-nav a[href="/22-i-27-arkaniv"] { display: none; }
}

/* Hero + форма */
.hero { padding: 44px 0 36px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.hero__lead { font-size: 1.02rem; color: var(--ink-2); max-width: 680px; margin-bottom: 1.6em; }
.hero__art { position: relative; width: 360px; height: 400px; }
.hero__scheme { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.hero__sq { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.hero__ax { stroke: var(--line-2); stroke-width: 1.5; }
.hero__dot { fill: var(--paper); stroke: var(--line-2); stroke-width: 2; }
.hero__dot--main { stroke: var(--plum); }
.hero__dot--center { stroke: var(--gold); stroke-width: 3; }
.hero__cards { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; align-items: flex-end; }
.hero__card { display: block; width: 118px; height: auto; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(34,28,58,.16); background: var(--paper); }
.hero__card:nth-child(1) { transform: translate(18px, 22px) rotate(-12deg); transform-origin: bottom right; }
.hero__card--mid { position: relative; z-index: 1; }
.hero__card:nth-child(3) { transform: translate(-18px, 22px) rotate(12deg); transform-origin: bottom left; }
@media (max-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } .hero__art { width: 300px; height: 340px; } .hero__card { width: 98px; } }
@media (max-width: 820px) { .hero__inner { grid-template-columns: 1fr; gap: 28px; } .hero__art { display: none; } }
.calc { background: var(--paper); border: 1px solid var(--line); padding: 28px; max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "date name" "actions actions" "tech tech"; gap: 20px 24px; }
.calc .field--date { grid-area: date; }
.calc .field--name { grid-area: name; }
.calc .calc__actions { grid-area: actions; }
.calc .calc__tech { grid-area: tech; }
.field__label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.field__req { color: var(--danger); }
.field__opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field__input { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field__input--date { font-size: 1.2rem; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.field__input:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-l); }
.field__input.is-invalid { border-color: var(--danger); }
.field__hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.field__error { font-size: .9rem; color: var(--danger); font-weight: 500; min-height: 1.5em; margin: 6px 0 0; }
.calc__actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.calc__note { font-size: .82rem; color: var(--muted); margin: 0; }
.calc__tech { margin: 0; padding: 12px 16px; background: #FBE9E7; border: 1px solid #F1C1BB; color: var(--danger); font-weight: 500; }
@media (max-width: 640px) {
  .hero { padding: 22px 0 22px; }
  h1 { font-size: 1.4rem; }
  .hero__lead { font-size: .95rem; margin-bottom: 1.2em; }
  .calc { padding: 18px; gap: 16px; grid-template-columns: 1fr; grid-template-areas: "date" "actions" "name" "tech"; }
  .field__input--date { font-size: 1.15rem; }
  .calc__actions .btn--lg { width: 100%; }
}

/* Результат */
.result { padding: 48px 0 40px; }
.result__head { margin-bottom: 28px; }
.result__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--gold); margin: 0 0 10px; }
.result.is-example .result__eyebrow { color: var(--muted); }
.result__title { margin-bottom: .5em; }
.result__sub { color: var(--ink-2); margin: 0; max-width: 720px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .board { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); } .panel, .panel-empty { position: sticky; top: 76px; } }

/* Плейсхолдер правої колонки, поки позиція не обрана (лише на широких екранах) */
.panel-empty { display: none; }
@media (min-width: 900px) {
  .panel-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 32px 40px; border: 1px dashed var(--line-2); background: var(--paper); }
  .panel-empty.is-off { display: none; }
}
.panel-empty__cards { position: relative; height: 210px; width: 200px; margin-bottom: 26px; }
.panel-empty__card { position: absolute; top: 0; width: 112px; height: auto; border: 1px solid var(--line); background: var(--cream-2); box-shadow: 0 6px 18px rgba(34,28,58,.12); }
.panel-empty__card:nth-child(1) { left: 14px; transform: rotate(-9deg); transform-origin: bottom center; }
.panel-empty__card:nth-child(2) { left: 74px; transform: rotate(9deg); transform-origin: bottom center; }
.panel-empty__title { font-family: var(--font-h); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin: 0 0 .5em; }
.panel-empty__text { font-size: .92rem; color: var(--muted); max-width: 300px; margin: 0; }
.scheme { background: var(--paper); border: 1px solid var(--line); padding: 14px; overflow: auto; }
.scheme .md-svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.scheme.is-zoomed .md-svg { width: 620px; max-width: none; }
.scheme__tools { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.scheme__hint { font-size: .86rem; color: var(--muted); margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: .82rem; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.zone-dot { width: 10px; height: 10px; display: inline-block; background: var(--line-2); flex: none; }
.zone-dot--core { background: var(--z-core); } .zone-dot--w { background: var(--z-w); } .zone-dot--n { background: var(--z-n); } .zone-dot--e { background: var(--z-e); }
.zone-dot--s { background: var(--z-s); } .zone-dot--lm { background: var(--z-lm); } .zone-dot--man { background: var(--z-man); } .zone-dot--woman { background: var(--z-woman); }

/* SVG схема */
.md-svg { font-family: var(--font); }
.md-ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.md-square { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.md-axis { stroke: var(--line-2); stroke-width: 1.5; }
.md-axis--man { stroke: #C9CDD6; } .md-axis--woman { stroke: #DDD0E8; }
.md-axis--lm { stroke: #EBC7D6; stroke-dasharray: 8 8; }
.md-labels text { font-size: 20px; font-weight: 500; fill: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.md-labels .md-label--sm { font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 500; fill: #8A8497; }
.md-pos { cursor: pointer; outline: none; }
.md-hit { fill: transparent; }
.md-dot { fill: #fff; stroke-width: 3; transition: fill .15s; }
.md-pos--l .md-dot, .md-pos--c .md-dot { stroke-width: 4; }
.md-zone--core .md-dot { stroke: var(--z-core); } .md-zone--w .md-dot { stroke: var(--z-w); } .md-zone--n .md-dot { stroke: var(--z-n); }
.md-zone--e .md-dot { stroke: var(--z-e); } .md-zone--s .md-dot { stroke: var(--z-s); } .md-zone--lm .md-dot { stroke: var(--z-lm); }
.md-zone--man .md-dot { stroke: var(--z-man); } .md-zone--woman .md-dot { stroke: var(--z-woman); }
.md-num { font-weight: 600; fill: var(--ink); font-size: 19px; pointer-events: none; }
.md-pos--m .md-num { font-size: 23px; } .md-pos--l .md-num { font-size: 28px; } .md-pos--c .md-num { font-size: 32px; }
.md-pos:hover .md-dot { fill: var(--cream-2); }
.md-pos.is-active .md-dot { fill: var(--ink); stroke: var(--ink); }
.md-pos.is-active .md-num { fill: #fff; }
.md-pos:focus-visible .md-dot { stroke: var(--focus); stroke-width: 6; }
.md-example-badge rect { fill: var(--gold-ll); stroke: var(--gold); stroke-width: 1.5; rx: 0; }
.md-example-badge text { font-size: 20px; font-weight: 600; fill: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.result.is-example .md-num { fill: #7A7490; }
.result.is-example .md-pos.is-active .md-num { fill: #fff; }

/* Зображення арканів */
.arc-img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 508; object-fit: cover; border: 1px solid var(--line); background: var(--cream-2); }

/* Панель пояснення */
.panel { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px 24px; }
.panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel__zone { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--muted); padding: 5px 10px; background: var(--cream-2); }
.panel__zone--core { color: #8a6a1f; background: var(--gold-ll); } .panel__zone--w { color: var(--z-w); background: var(--plum-l); } .panel__zone--n { color: var(--z-n); background: #E4F1EC; }
.panel__zone--e { color: var(--z-e); background: #F8E6E0; } .panel__zone--s { color: var(--z-s); background: #E4E8F5; } .panel__zone--lm { color: var(--z-lm); background: #F8E3EC; }
.panel__zone--man { color: var(--z-man); background: #E8EAEE; } .panel__zone--woman { color: var(--z-woman); background: #EFE5F6; }
.panel__close { width: 34px; height: 34px; border: 1px solid var(--line-2); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.panel__close:hover { border-color: var(--ink); }
.panel__title { font-size: 1.2rem; margin-bottom: .5em; }
.panel__title:focus { outline: none; }
.panel__meaning { color: var(--ink-2); margin-bottom: .8em; }
.panel__formula { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.panel__formula-label { font-weight: 500; }
.panel__arc { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 18px; background: var(--cream); margin-bottom: 20px; }
.panel__img { width: 96px; }
.panel__num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.panel__arcname { font-weight: 600; margin: 0 0 4px; }
.panel__uit { font-size: .84rem; color: var(--muted); margin: 0; }
.panel__text { font-size: 1rem; margin-bottom: 1.2em; }
.panel__generic { font-size: .84rem; color: var(--muted); }
.panel__pm, .panel__q { font-size: .93rem; margin-bottom: .8em; }
.panel__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Модальне вікно з панеллю пояснення (клік зі списку позицій) */
/* iOS Safari: 100vh не враховує адресну панель, тому висота - через 100dvh (із запасним
   100vh для старих версій), а відступи - через env(safe-area-inset-*) (виріз і Home-індикатор;
   потрібен viewport-fit=cover у <meta name="viewport">, він є в inc/site.php). */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px)); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(34, 28, 58, .55); }
.modal__box { position: relative; width: 100%; max-width: 560px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  max-height: calc(100vh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.modal__box .panel { position: static; box-shadow: 0 20px 50px rgba(34, 28, 58, .3); }
@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  /* Нижній аркуш: зверху лишаємо виріз + трохи тла, знизу - місце під Home-індикатор усередині панелі. */
  .modal__box { max-height: calc(100vh - env(safe-area-inset-top, 0px) - 32px); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 32px); }
  .modal__box .panel { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
/* Блокування прокручування сторінки під вікном. iOS Safari ігнорує overflow:hidden на body,
   тому додатково фіксуємо body (позицію прокрутки відновлює скрипт при закритті). */
body.is-modal-open { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }

/* Список позицій і лінії */
.poslist { margin-top: 48px; }
.poslist__title, .lines__title { font-size: 1.3rem; margin-bottom: .8em; }
.poslist__zone { margin-top: 32px; }
.poslist__zone-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.poslist__zone-descr { color: var(--ink-2); font-size: .93rem; margin-bottom: 16px; max-width: 760px; }
.poslist__items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.poslist__items li { margin: 0; }
.poslist__btn { width: 100%; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.poslist__btn:hover { border-color: var(--plum); }
.poslist__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.poslist__num { grid-row: 1 / 3; width: 40px; height: 40px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; }
.poslist__btn.is-active .poslist__num { border-color: #fff; }
.poslist__title { font-weight: 500; font-size: .92rem; line-height: 1.35; }
.poslist__arc { font-size: .8rem; color: var(--muted); }
.poslist__btn.is-active .poslist__arc { color: #E5E0F5; }
.lines { margin-top: 48px; }
.lines__sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.4em; }
.lines__group { margin-top: 26px; }
.lines__group-title { margin-bottom: 12px; }
.lines__items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lines__items li { margin: 0; }
.lines__item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; }
.lines__num { width: 36px; height: 36px; flex: none; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.lines__title { display: block; font-weight: 500; font-size: .93rem; margin-bottom: 4px; }
.lines__descr { display: block; font-size: .84rem; color: var(--ink-2); }

/* Трактування */
.interp { padding: 56px 0; background: var(--cream-2); }
.interp__example-note p { color: var(--ink-2); max-width: 760px; }
.keytexts { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 24px; }
@media (max-width: 520px) { .keytexts { grid-template-columns: 1fr; } }
.keycard { background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.keycard__head { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.keycard__img { width: 110px; }
.keycard__title { font-family: var(--font-h); font-weight: 500; font-size: 1.1rem; margin-bottom: .35em; }
.keycard__arc { font-size: .82rem; color: var(--gold); font-weight: 600; margin: 0 0 .6em; }
.keycard__meaning { font-size: .9rem; color: var(--muted); margin: 0; }
.keycard__text { font-size: 1rem; }
.keycard__pm, .keycard__q { font-size: .92rem; margin-bottom: .7em; }
.keycard__body > :last-child { margin-bottom: 0; }
@media (max-width: 420px) { .keycard { padding: 20px; } .keycard__head { grid-template-columns: 90px 1fr; gap: 16px; } .keycard__img { width: 90px; } }
.summary { margin-top: 36px; background: var(--paper); border: 1px solid var(--gold-l); border-left: 4px solid var(--gold); padding: 26px 30px; }
.summary__title { font-size: 1.2rem; }
.summary__list { margin: 0; padding-left: 1.2em; }
.summary__list li { margin-bottom: .7em; }

/* CTA */
.cta { padding: 56px 0; }
.cta--details { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta__text { max-width: 800px; }
.cta__list { margin-bottom: 1.4em; }
.cta__access { font-size: .9rem; color: var(--ink-2); background: var(--cream); padding: 14px 18px; margin-bottom: 1.6em; }
.cta__action { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 8px; }
.cta__small { font-size: .84rem; color: var(--muted); margin: 0; }
.cta__link { font-weight: 500; }
.md-handoff { margin: 0; }
.cta27 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; margin-bottom: 44px; }
.cta27__backs { display: flex; justify-content: center; gap: 12px; }
.cta27__back { width: 118px; height: auto; border: 1px solid var(--line); background: var(--cream-2); }
.cta27__back:nth-child(1) { transform: translateY(26px) rotate(-8deg); }
.cta27__back:nth-child(3) { transform: translateY(26px) rotate(8deg); }
@media (max-width: 900px) { .cta27 { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } .cta27__back { width: 92px; } }
@media (max-width: 720px) {
  .cta27 { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .cta27__backs { order: -1; margin-bottom: 8px; }
  .cta27__back { width: 88px; }
  .cta27__back:nth-child(1) { transform: translateY(18px) rotate(-8deg); }
  .cta27__back:nth-child(3) { transform: translateY(18px) rotate(8deg); }
}
.cta27__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .cta27__cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.arc-card { background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.arc-card__img { width: 100%; margin-bottom: 12px; }
.arc-card__num { display: inline-flex; width: 30px; height: 30px; background: var(--gold-l); color: #7d5f1c; font-weight: 600; align-items: center; justify-content: center; font-size: .88rem; }
.arc-card__name { font-family: var(--font-h); font-weight: 500; font-size: 1.02rem; margin: 10px 0 4px; }
.arc-card__kind { font-size: .8rem; color: var(--muted); white-space: nowrap; margin: 0 0 10px; }
.arc-card__kind:last-child { margin-bottom: 0; }
.arc-card__kw { font-size: .82rem; color: var(--ink-2); margin: 0 0 .6em; }
.arc-card__kw:last-child { margin-bottom: 0; }

/* Аркани 22-27 рядками (сторінка порівняння): мале зображення + текст */
.arc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.4em 0 2em; }
@media (max-width: 860px) { .arc-rows { grid-template-columns: 1fr; } }
.arc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); padding: 18px; }
.arc-row__img { display: block; width: 84px; height: auto; border: 1px solid var(--line); background: var(--cream-2); }
.arc-row__name { font-family: var(--font-h); font-weight: 500; font-size: 1.05rem; margin: 0 0 .25em; display: flex; align-items: center; gap: 10px; }
.arc-row__num { display: inline-flex; width: 28px; height: 28px; background: var(--gold-l); color: #7d5f1c; font-family: var(--font); font-weight: 600; font-size: .82rem; align-items: center; justify-content: center; flex: none; }
.arc-row__kind { font-size: .8rem; color: var(--muted); margin: 0 0 .7em; }
.arc-row__kw { font-size: .86rem; color: var(--ink-2); margin: 0 0 .5em; }
.arc-row__text { font-size: .9rem; margin: .4em 0 0; }
@media (max-width: 420px) { .arc-row { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 14px; } .arc-row__img { width: 68px; } }

/* Галерея арканів */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 1.5em 0 2em; }
.gallery__item { background: var(--paper); border: 1px solid var(--line); padding: 12px; }
.gallery__name { font-weight: 500; font-size: .92rem; margin: 10px 0 2px; }
.gallery__uit { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
.gallery__theme { font-size: .8rem; color: var(--ink-2); margin: 0; }

/* Методика */
.method { padding: 56px 0; }
.method__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; }
@media (max-width: 860px) { .method__grid { grid-template-columns: 1fr; gap: 28px; } }
.method__steps li { margin-bottom: .7em; }
.method__example { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px; }
.method__calc { padding-left: 1.2em; font-variant-numeric: tabular-nums; }
.method__calc li { margin-bottom: .6em; }
.method__more { font-size: .86rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq-section { padding: 56px 0 64px; background: var(--cream-2); }
.faq__item { background: var(--paper); border: 1px solid var(--line); margin-bottom: 12px; padding: 0 20px; }
.faq__q { cursor: pointer; font-weight: 500; padding: 16px 0; list-style: none; position: relative; padding-right: 34px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.3rem; color: var(--plum); font-weight: 400; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 0 18px; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* Статичні сторінки */
.page { padding: 44px 0 56px; }
.page__intro { font-size: 1.02rem; color: var(--ink-2); max-width: 760px; margin-bottom: 2em; }
.prose { max-width: 800px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 24px 26px; }
.card > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; }
table.tbl { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; background: var(--paper); }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.tbl th { background: var(--cream-2); font-weight: 600; }
.static-scheme { max-width: 520px; margin: 0 auto 24px; background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 1.4em 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.notfound { text-align: center; padding: 70px 0; }
.notfound__code { font-family: var(--font-h); font-size: 4.5rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.page-cta { margin-top: 44px; }

/* Футер */
.site-footer { background: var(--ink); color: #D8D3E6; padding: 44px 0; margin-top: 32px; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } }
.brand--footer { color: #fff; }
.brand--footer em { color: var(--gold); }
.site-footer a { color: #fff; }
.site-footer__by { margin: 12px 0 10px; }
.site-footer__note { font-size: .82rem; color: #B7B1CB; max-width: 520px; margin-bottom: .8em; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { grid-column: 1 / -1; font-size: .82rem; color: #B7B1CB; margin: 10px 0 0; }
