/* ==========================================================================
   Qorqud Süleymanov — epifiz.az
   Paper, night indigo and amber: a calm, editorial system built around
   the Epifiz ring (the inner light) instead of cards, blobs and pills.
   ========================================================================== */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --paper-3: #e6ddcc;
  --card: #fffcf6;
  --ink: #181d33;
  --text: #33384d;
  --muted: #5a5f72;
  --line: #ddd3c2;
  --line-2: #c5b8a2;
  --night: #1a1f38;
  --night-2: #232a4a;
  --night-3: #2e3560;
  --on-night: #ece9f3;
  --on-night-muted: #bcbfd1;
  --amber: #e0924a;
  --amber-hover: #d5823a;
  --amber-2: #f0b474;
  --amber-ink: #9a5213;
  --amber-soft: #f7e7d5;
  --wa: #1c7c43;
  --wa-soft: #e1f2e7;
  --danger: #a3241b;
  --danger-soft: #f9e9e5;
  --mark: #fde3a6;
  --focus: #2446c9;
  --focus-on-dark: #f3b877;

  /* One clean, highly readable typeface for everything; no italics anywhere */
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-display: var(--f-sans);

  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-lead: clamp(1.1rem, 1.04rem + .3vw, 1.225rem);
  --fs-display: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.3vw, 3.3rem);
  --fs-h2: clamp(1.7rem, 1.35rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.1rem, 1.05rem + .2vw, 1.2rem);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(64px, 5vw + 36px, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1240px) {
  :root { --header-h: 68px; }
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, h2 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
}
h3, h4 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* No italic type: emphasis and quotations stay upright */
em, i, cite, dfn, var, address { font-style: normal; }
em { font-weight: 600; }

p { margin: 0; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
dl, dd { margin: 0; }
blockquote { margin: 0; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--mark); color: var(--ink); }

mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }
.container--article { max-width: calc(1160px + var(--gutter) * 2); }

/* Dark surfaces use a light focus ring */
.site-footer,
.letter,
.tv-card,
.area-link,
.a11y-fab { --focus: var(--focus-on-dark); }

/* --------------------------------------------------------------------------
   Type helpers
   ----------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1rem;
  color: var(--amber-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.3;
}
.kicker::before {
  content: "";
  flex: none;
  width: .8em;
  height: .8em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 30%, transparent 33%);
}
.kicker--light { color: var(--amber-2); }

.h2 { font-size: var(--fs-h2); }
.h2--light { color: #fff; }

.lead {
  margin-top: 18px;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.62;
}
.body-text { margin-top: 14px; color: var(--text); }

.sub-title {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-weight: 700;
}
.sub-title--center { text-align: center; }

.tick-list { display: grid; gap: 10px; margin-top: 20px; list-style: none; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.tick-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--amber-ink); stroke-width: 2.2; }

.figure__value,
.branch__area,
.principle__num,
.step__num { font-variant-numeric: lining-nums; }

/* --------------------------------------------------------------------------
   Buttons and links
   ----------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: .7em 1.35em;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--sm { min-height: 44px; padding: .5em 1em; font-size: .96875rem; }
.btn--lg { min-height: 58px; padding: .85em 1.6em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* The one primary action on a page: warm amber */
.btn--primary { --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-bd: var(--amber); }
.btn--primary:hover { --btn-bg: var(--amber-hover); --btn-bd: var(--amber-hover); }
.btn--primary .icon:last-child { transition: transform .25s var(--ease); }
.btn--primary:hover .icon:last-child { transform: translateX(3px); }

.btn--dark { --btn-bg: var(--night); --btn-fg: #fff; --btn-bd: var(--night); }
.btn--dark:hover { --btn-bg: var(--night-3); --btn-bd: var(--night-3); }

.btn--line { --btn-fg: var(--ink); --btn-bd: var(--line-2); --btn-bg: transparent; }
.btn--line:hover { --btn-bd: var(--ink); --btn-bg: var(--card); }

.btn--on-dark { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); }
.btn--on-dark:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--lg { font-size: 1.0625rem; }
.link-arrow--light { color: #fff; text-decoration-color: var(--amber); }
.link-arrow--light:hover { text-decoration-color: #fff; }

/* --------------------------------------------------------------------------
   Header and navigation
   ----------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 234, .92);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { background: rgba(246, 242, 234, .98); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { display: block; width: 42px; height: 42px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: grid; gap: 2px; line-height: 1.12; min-width: 0; }
.brand__name {
  overflow: hidden;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand__role {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 0; list-style: none; }
.main-nav__item { position: relative; display: flex; align-items: center; }

.main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 9px;
  color: var(--ink);
  font-size: .96875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.has-panel > .main-nav__link { padding-right: 0; }
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.has-panel > .main-nav__link::after { right: 0; }
.main-nav__link:hover::after,
.main-nav__item.is-open > .main-nav__link::after,
.main-nav__item.is-active > .main-nav__link::after { transform: scaleX(1); }

.main-nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.main-nav__toggle .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.main-nav__item.is-open .main-nav__toggle { color: var(--ink); }
.main-nav__item.is-open .main-nav__toggle .icon { transform: rotate(180deg); }

.nav-panel {
  --shift: 0px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 320px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: 0 18px 40px rgba(24, 29, 51, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--shift)), 6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav-panel--wide { width: 560px; }
.main-nav__item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--shift)), 0);
  transition-delay: 0s;
}

.nav-panel__head {
  padding: 8px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.nav-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-panel__title .icon { width: 16px; height: 16px; color: var(--amber-ink); transition: transform .25s var(--ease); }
.nav-panel__title:hover .icon { transform: translateX(3px); }
.nav-panel__intro { margin-top: 2px; font-size: .875rem; color: var(--muted); line-height: 1.45; }

.nav-panel__list { display: grid; gap: 0; list-style: none; }
.nav-panel--wide .nav-panel__list { grid-template-columns: 1fr 1fr; column-gap: 6px; }

.nav-panel__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  color: var(--text);
  font-size: .96875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.nav-panel__link:hover,
.nav-panel__link[aria-current] { background: var(--paper-2); color: var(--ink); }
.nav-panel__icon { width: 18px; height: 18px; color: var(--amber-ink); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  flex: none;
}
.site-header__menu { display: none; }

@media (max-width: 1240px) {
  .main-nav { display: none; }
  .site-header__menu { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
}

/* Larger text sizes need the compact header earlier */
@media (max-width: 1440px) {
  html.a11y-text-1 .main-nav,
  html.a11y-text-2 .main-nav { display: none; }
  html.a11y-text-1 .site-header__menu,
  html.a11y-text-2 .site-header__menu { display: inline-grid; }
  html.a11y-text-1 .site-header__actions,
  html.a11y-text-2 .site-header__actions { margin-left: auto; }
}
@media (max-width: 1640px) {
  html.a11y-text-2 .main-nav { display: none; }
  html.a11y-text-2 .site-header__menu { display: inline-grid; }
  html.a11y-text-2 .site-header__actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .site-header__bar { gap: 8px; }
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1rem; }
  .brand__role { font-size: .75rem; }
  .site-header__actions { gap: 0; }
  .site-header__vcard { width: 46px; min-height: 46px; padding: 0; border-color: transparent; }
  .site-header__vcard:hover { background: var(--paper-3); }
  .site-header__vcard .icon { width: 22px; height: 22px; }
  .site-header__vcard-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 389px) {
  .site-header__bar { gap: 2px; }
  .site-header .brand,
  .drawer__head .brand { gap: 8px; }
  .site-header .brand__mark,
  .drawer__head .brand__mark { width: 34px; height: 34px; }
  .site-header .brand__name,
  .drawer__head .brand__name { font-size: .9375rem; }
  .site-header .brand__role,
  .drawer__head .brand__role { display: none; }
  .site-header__actions .icon-btn,
  .site-header__vcard { width: 42px; height: 42px; min-height: 42px; }
}

@media (max-width: 340px) {
  .site-header__vcard { display: none; }
}

html.a11y-text-2 .site-header__vcard-label,
html.a11y-text-1 .site-header__vcard-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.a11y-text-2 .site-header__vcard,
html.a11y-text-1 .site-header__vcard { width: 46px; min-height: 46px; padding: 0; border-color: transparent; }
html.a11y-text-2 .brand__role { display: none; }

/* --------------------------------------------------------------------------
   Sections and headings
   ----------------------------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 4vw, 72px); }
.section--tint { background: var(--paper-2); }

.head { margin-bottom: clamp(32px, 4vw, 56px); }
.head__main { max-width: 780px; }
.head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px clamp(32px, 5vw, 80px);
  align-items: end;
}
.head--split > .link-arrow { justify-self: end; margin-bottom: 8px; }
.head__side { display: grid; gap: 16px; justify-items: start; }
.head__lead { color: var(--text); font-size: var(--fs-lead); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Home: hero with the portrait
   ----------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(24px, 3vw, 48px);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.hero__content {
  align-self: center;
  min-width: 0;
  padding-bottom: clamp(40px, 5vw, 76px);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.032em;
}
.hero__role {
  display: block;
  margin-bottom: .7rem;
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(1.02rem, .96rem + .3vw, 1.17rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.hero__name { display: block; }
.hero__subtitle {
  max-width: 36ch;
  margin-top: 1.2rem;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 56ch;
  margin-top: 1rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem);
  line-height: 1.64;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 1.6rem;
}
.hero__contact {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.hero__contact-label { color: var(--muted); font-size: var(--fs-small); font-weight: 500; }
.hero__phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .8rem; list-style: none; }

.call-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s;
}
.call-link:hover { border-color: var(--ink); }
.call-link .icon { width: 1.1em; height: 1.1em; color: var(--amber-ink); }
.call-link--wa .icon { color: var(--wa); }

/* Phone numbers are never printed: an icon-only call button stands in for each one */
.call-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--amber-ink);
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.call-icon .icon { width: 22px; height: 22px; }
.call-icon:hover { border-color: var(--ink); color: var(--ink); }
.call-icon--sm { width: 44px; height: 44px; }
.call-icon--sm .icon { width: 19px; height: 19px; }
.call-icon--lg { width: 64px; height: 64px; }
.call-icon--lg .icon { width: 28px; height: 28px; }
.site-footer .call-icon--dark {
  display: inline-grid;
  border-color: rgba(255, 255, 255, .32);
  background: transparent;
  color: var(--amber-2);
}
.site-footer .call-icon--dark:hover { border-color: #fff; color: #fff; }

.hero-portrait {
  align-self: end;
  justify-self: end;
  width: min(100%, 470px);
}
.hero-portrait__stage { position: relative; aspect-ratio: 3 / 4; }
.hero-portrait__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: var(--night);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.hero-portrait__ring {
  position: absolute;
  z-index: 1;
  right: 2%;
  top: 17%;
  width: 46%;
  aspect-ratio: 1;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
}
.hero-portrait__img {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.cred-band { border-bottom: 1px solid var(--line); }
.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 24px 24px 24px 0;
}
.credential + .credential { padding-left: 24px; border-left: 1px solid var(--line); }
.credential__icon { width: 26px; height: 26px; margin-top: 2px; color: var(--amber-ink); }
.credential__body { min-width: 0; }
.credential__title { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.credential__text { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }

/* --------------------------------------------------------------------------
   Home: audiences, principles, services, practice, process
   ----------------------------------------------------------------------- */

.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.path {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px clamp(20px, 2.6vw, 40px) 4px;
}
.path:first-child { padding-left: 0; }
.path:last-child { padding-right: 0; }
.path + .path { border-left: 1px solid var(--line); }
.path__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.2rem + .45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.018em;
}
.path__list { display: grid; margin: 18px 0 26px; list-style: none; }
.path__list li { padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.path__link { margin-top: auto; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  list-style: none;
}
.principles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles--stack { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.principle {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
}
.principle__num {
  grid-row: 1 / span 2;
  color: var(--amber-ink);
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.principle__title { font-size: var(--fs-h3); }
.principle__text { margin-top: 8px; color: var(--text); line-height: 1.62; }

.service-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px);
  list-style: none;
  border-top: 2px solid var(--ink);
}
.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  height: 100%;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color .2s;
}
.service-row:hover { background: var(--paper-2); }
.service-row__icon .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--amber-ink); }
.service-row__body { min-width: 0; }
.service-row__title { display: block; color: var(--ink); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.service-row__text { display: block; margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.service-row__arrow { width: 22px; height: 22px; margin-top: 3px; color: var(--ink); transition: transform .25s var(--ease); }
.service-row:hover .service-row__arrow { transform: translateX(4px); }

.practice {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.practice__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.practice__photo { min-width: 0; }
.practice__photo:nth-child(2) { margin-top: 40px; }
.practice__photo:nth-child(3) { margin-top: 80px; }
.practice__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: var(--paper-3);
}
.practice__photo figcaption,
.entry__photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}
.practice__content .link-arrow { margin-top: 26px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  list-style: none;
}
.step { position: relative; min-width: 0; padding-top: 70px; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * clamp(24px, 3vw, 48px));
  top: 24px;
  height: 1px;
  background: var(--line-2);
}
.step:last-child::before { right: 0; }
.step__num {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}
.step:first-child .step__num { background: var(--night); border-color: var(--night); color: #fff; }
.step__title { font-size: var(--fs-h3); }
.step__text { margin-top: 8px; color: var(--text); line-height: 1.62; }

/* --------------------------------------------------------------------------
   Home: Epifiz centre introduction
   ----------------------------------------------------------------------- */

.section--center { border-top: 1px solid var(--line); }
.center-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.center-intro__main { min-width: 0; }
.center-intro__main > .link-arrow { margin-top: 4px; }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}
.figure { min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.figure__value {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.7rem + 1.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}
.figure__text { margin-top: 8px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }

.center-intro__areas { display: grid; gap: 12px; list-style: none; }
.area-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  padding: 24px 26px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--on-night-muted);
  text-decoration: none;
  transition: background-color .2s;
}
.area-link:hover { background: var(--night-2); }
.area-link__team { grid-column: 1; color: var(--amber-2); font-size: .875rem; font-weight: 600; }
.area-link__title {
  grid-column: 1;
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.area-link__text { grid-column: 1; margin-top: 2px; font-size: 1rem; line-height: 1.5; }
.area-link__arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 24px;
  height: 24px;
  color: var(--amber);
  transition: transform .25s var(--ease);
}
.area-link:hover .area-link__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Split, media, posts, FAQ
   ----------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.split--text { align-items: start; }
.split__media { min-width: 0; }
.split__img { width: 100%; height: auto; border-radius: var(--r-xs); background: var(--paper-3); }
.split__media--portrait { justify-self: center; width: min(100%, 380px); }
.split__content { min-width: 0; }
.split__content .link-arrow { margin-top: 26px; }

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.tv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--on-night-muted);
}
.tv-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tv-card__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-2); font-size: .9375rem; font-weight: 600; }
.tv-card__badge .icon { width: 18px; height: 18px; }
.tv-card__date { color: var(--on-night-muted); font-size: .875rem; }
.tv-card__title { margin-top: 26px; color: #fff; font-family: var(--f-display); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.tv-card__subtitle { margin-top: 10px; color: #fff; font-weight: 600; line-height: 1.4; }
.tv-card__aside { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.tv-card__text { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
.tv-card__action { margin-top: auto; }
.tv-card__text + .tv-card__action { margin-top: 26px; }

.video-card { height: 100%; min-width: 0; }
.video-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}
.video-card__link:hover { border-color: var(--ink); }
.video-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.video-card__play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}
.video-card__play .icon { width: 17px; height: 17px; margin-left: 3px; fill: currentColor; stroke: none; }
.video-card__link:hover .video-card__play { background: var(--ink); color: #fff; }
.video-card__source { display: grid; gap: 2px; line-height: 1.35; }
.video-card__platform { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.video-card__platform .icon { width: 16px; height: 16px; color: var(--amber-ink); }
.video-card__date { color: var(--muted); font-size: .875rem; }
.video-card__topic { color: var(--amber-ink); font-size: .875rem; font-weight: 600; }
.video-card__title { margin-top: 6px; font-size: 1.1875rem; line-height: 1.32; }
.video-card__text { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.58; }
.video-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--ink); font-size: .96875rem; font-weight: 600; }
.video-card__more .icon { width: 16px; height: 16px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { height: 100%; min-width: 0; }
.post-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 26px 26px 22px;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}
.post-card__link:hover { border-color: var(--ink); }
.post-card__category { color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }
.post-card__title { font-family: var(--f-display); font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.post-card__excerpt { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.post-card__time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.post-card__time .icon { width: 16px; height: 16px; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.post-card__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card__link:hover .post-card__more .icon { transform: translateX(3px); }

.faq-preview {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.faq-preview__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-preview__head .link-arrow { margin-top: 24px; }

.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__q {
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}
.faq-item__summary:hover .faq-item__q { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.faq-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}
.faq-item__icon .icon { width: 18px; height: 18px; }
.faq-item__minus { display: none; }
.faq-item[open] .faq-item__icon { background: var(--ink); color: #fff; }
.faq-item[open] .faq-item__plus { display: none; }
.faq-item[open] .faq-item__minus { display: block; }
.faq-item__a { display: grid; gap: 12px; padding: 0 58px 26px 2px; color: var(--text); line-height: 1.7; }
.faq-item__link .link-arrow { font-size: .96875rem; }
.faq-list--page .faq-item__q { font-size: 1.1875rem; }

/* --------------------------------------------------------------------------
   Letter ("Niyə biz?") and the closing contact band
   ----------------------------------------------------------------------- */

.letter { background: var(--night); color: var(--on-night); scroll-margin-top: var(--header-h); }
.letter__grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.letter__head .h2 { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; }
.letter__body { max-width: 700px; }
.letter__text { color: var(--on-night); font-size: var(--fs-lead); line-height: 1.72; }
.letter__text + .letter__text { margin-top: 1.1em; }
.letter__closing {
  margin-top: 1.5em;
  color: var(--amber-2);
  font-family: var(--f-sans);
  font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.012em;
}
.letter__sign {
  margin-top: 1.2em;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}
.letter__sign span { display: block; color: var(--on-night-muted); }
.letter__urgent {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  color: var(--on-night);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.letter__urgent .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--amber-2); }
.letter .link-arrow { margin-top: 26px; }

.contact-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.contact-band__main { min-width: 0; }
.call-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; list-style: none; }

/* --------------------------------------------------------------------------
   Branches and the centre's service areas
   ----------------------------------------------------------------------- */

.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.branch {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.branch__label { display: flex; align-items: center; gap: 8px; color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }
.branch__label .icon { width: 18px; height: 18px; }
.branch__area {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}
.branch__area-num { font-size: 2.6rem; font-weight: 700; letter-spacing: -.035em; }
.branch__street { margin-top: 14px; font-size: 1.1875rem; line-height: 1.35; overflow-wrap: anywhere; }
.branch__city { margin-top: 2px; color: var(--muted); font-size: 1rem; }
.branch__text { margin-top: 12px; color: var(--text); font-size: 1rem; line-height: 1.62; }
.branch__map { margin-top: auto; padding-top: 16px; font-size: .96875rem; }
.branch__map .icon { color: var(--amber-ink); }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  background: var(--card);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.area:target { border-color: var(--amber); border-top-color: var(--amber); }
.area__team { color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }
.area__title { margin-top: 6px; font-family: var(--f-display); font-size: clamp(1.3rem, 1.2rem + .4vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.018em; }
.area__text { margin-top: 12px; color: var(--text); font-size: 1rem; line-height: 1.55; }
.area__list { display: grid; margin-top: 14px; list-style: none; }
.area__list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.area__note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-xs);
  background: var(--amber-soft);
  color: #5a3110;
  font-size: .96875rem;
  line-height: 1.5;
}
.area__note .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--amber-ink); }

.areas--compact { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 26px 0 28px; }
.areas--compact .area { padding: 22px 22px 20px; border-top-width: 2px; }
.areas--compact .area__title { font-size: 1.2rem; }
.areas--compact .area__list { display: flex; flex-wrap: wrap; gap: 8px; }
.areas--compact .area__list li {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: .9375rem;
}

/* --------------------------------------------------------------------------
   Call to action
   ----------------------------------------------------------------------- */

.section--cta { padding-block: clamp(48px, 5vw, 96px); }
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px;
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.cta-band__content { min-width: 0; }
.cta-band__title { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.2rem); line-height: 1.18; }
.cta-band__text { max-width: 56ch; margin-top: 12px; color: var(--text); font-size: var(--fs-lead); }
.cta-band__actions { display: grid; justify-items: start; gap: 14px; }
.cta-band__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--muted);
  font-size: var(--fs-small);
}
.cta-band__phones-label { flex-basis: 100%; }

/* --------------------------------------------------------------------------
   Inner pages: hero, breadcrumbs, document layout
   ----------------------------------------------------------------------- */

.page-hero {
  padding: clamp(24px, 3vw, 44px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line-2);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}
.page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.page-hero__content { min-width: 0; max-width: 880px; }
.page-hero__title { font-size: var(--fs-h1); line-height: 1.1; }
.page-hero__title--wide { max-width: 24ch; }
.page-hero__subtitle { margin-top: 14px; color: var(--ink); font-weight: 600; }
.page-hero__lead { max-width: 62ch; margin-top: 18px; color: var(--text); font-size: var(--fs-lead); line-height: 1.64; }
.page-hero__updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: var(--fs-small); }
.page-hero__updated .icon { width: 17px; height: 17px; }
.page-hero__media { justify-self: end; width: min(100%, 380px); }
.page-hero__frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-xs); background: var(--paper-3); }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.page-hero__caption { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--search .search-bar--page { margin-top: 28px; }
.page-hero--center-page .figures { max-width: 820px; margin-bottom: 0; }

.breadcrumbs { margin-bottom: 22px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; font-size: .9375rem; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs__sep { width: 14px; height: 14px; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 84px);
}
.doc-main { min-width: 0; max-width: 800px; }
.page-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.page-index__title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
}
.page-index__list { display: grid; margin-top: 6px; list-style: none; }
.page-index__link {
  display: block;
  padding: 9px 0 9px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: .96875rem;
  line-height: 1.35;
  text-decoration: none;
}
.page-index__link:hover { color: var(--ink); text-decoration: underline; }
.page-index__link[aria-current] { border-left-color: var(--amber); color: var(--ink); font-weight: 600; }
.page-index-m { display: none; }
.page-index-m__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.page-index-m__summary::-webkit-details-marker { display: none; }
.page-index-m__summary .icon { width: 19px; height: 19px; color: var(--amber-ink); }
.page-index-m__chevron { margin-left: auto; transition: transform .25s var(--ease); }
.page-index-m[open] .page-index-m__chevron { transform: rotate(180deg); }
.page-index-m__list { display: grid; padding: 0 8px 10px; list-style: none; }
.page-index-m__list .page-index__link { padding: 10px 12px; border-left: 0; border-radius: var(--r-xs); }
.page-index-m__list .page-index__link[aria-current] { background: var(--paper-2); }

.entry {
  padding-bottom: clamp(40px, 4vw, 64px);
  margin-bottom: clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.entry__icon { color: var(--amber-ink); }
.entry__icon .icon { width: 30px; height: 30px; }
.entry__title { margin-top: 14px; font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem); line-height: 1.18; }
.entry .kicker + .entry__title { margin-top: 0; }
.entry__lead { margin-top: 16px; color: var(--ink); font-size: var(--fs-lead); line-height: 1.62; }
.entry__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.entry__photo { min-width: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-xs); background: var(--paper-3); }
.entry__img { width: 100%; height: 100%; object-fit: cover; }
.entry__figure { max-width: 420px; margin-top: 26px; }
.entry__figure .entry__img { aspect-ratio: 3 / 4; border-radius: var(--r-xs); background: var(--paper-3); }
.entry--center {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
}
.entry--center:last-child { padding-bottom: clamp(24px, 3vw, 36px); }

.facts { display: grid; margin-top: 26px; border-top: 1px solid var(--line-2); }
.facts__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts__label { color: var(--ink); font-size: 1rem; font-weight: 600; }
.facts__text { color: var(--text); }

.note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--amber-soft);
  color: #56300f;
  font-size: 1rem;
  line-height: 1.58;
}
.note .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--amber-ink); }

.link-list { display: grid; gap: 10px; margin-top: 24px; list-style: none; }

.sub-block {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.sub-block__title { font-size: 1.1875rem; }
.sub-block .body-text { margin-top: 8px; }

.source-link { margin-top: 20px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.source-link__label { font-weight: 600; }
.source-link a { color: var(--muted); overflow-wrap: anywhere; }
.source-link a:hover { color: var(--ink); }
.source-link .icon { display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }

/* Problems */
.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 26px;
  border-top: 2px solid var(--ink);
}
.topic {
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.topic:target { background: var(--amber-soft); box-shadow: -12px 0 0 var(--amber-soft), 12px 0 0 var(--amber-soft); }
.topic__title { font-size: 1.1875rem; }
.topic__text { margin-top: 8px; color: var(--text); font-size: 1rem; line-height: 1.62; }
.topic__link { margin-top: 12px; font-size: .96875rem; }

.alert-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid #e6b8ae;
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--danger-soft);
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.alert-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--danger);
}
.alert-card__icon .icon { width: 23px; height: 23px; }
.alert-card__title { color: #5a170f; font-size: 1.35rem; }
.alert-card__text { margin-top: 8px; color: #5a2721; line-height: 1.62; }
.alert-card--compact { gap: 14px; padding: 20px; }
.alert-card--compact .alert-card__icon { width: 40px; height: 40px; }
.alert-card--compact .alert-card__icon .icon { width: 20px; height: 20px; }
.alert-card--compact .alert-card__title { font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 700; }
.alert-card--compact .alert-card__text { font-size: 1rem; }

/* --------------------------------------------------------------------------
   About
   ----------------------------------------------------------------------- */

.edu-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.edu {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-top: 3px solid var(--ink);
  background: var(--card);
}
.edu__kicker { display: flex; align-items: center; gap: 8px; color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }
.edu__kicker .icon { width: 20px; height: 20px; }
.edu__title { margin-top: 12px; font-family: var(--f-display); font-size: clamp(1.4rem, 1.25rem + .6vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.edu__meta { margin-top: 10px; color: var(--ink); font-weight: 600; font-variant-numeric: lining-nums; }
.edu__text { margin-top: 14px; }
.edu__note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}
.edu__note .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--amber-ink); }

.timeline-wrap { min-width: 0; }
.timeline-wrap__title { padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 1.25rem; }
.timeline { display: grid; list-style: none; }
.timeline__item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__period { color: var(--amber-ink); font-weight: 700; font-variant-numeric: lining-nums; line-height: 1.4; }
.timeline__body { min-width: 0; }
.timeline__org { font-size: 1.1875rem; line-height: 1.32; }
.timeline__role { margin-top: 2px; color: var(--ink); font-weight: 500; }
.timeline__text { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.timeline__link { margin-top: 12px; font-size: .96875rem; }

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); list-style: none; border-top: 2px solid var(--ink); }
.cert { display: flex; gap: 16px; min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.cert__icon { width: 26px; height: 26px; margin-top: 2px; color: var(--amber-ink); }
.cert__body { min-width: 0; }
.cert__title { font-size: 1.125rem; line-height: 1.32; }
.cert__org { margin-top: 4px; color: var(--ink); font-size: .96875rem; font-weight: 500; }
.cert__text { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.online-programs { margin-top: 48px; }
.online-programs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.online-programs__item { min-width: 0; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
.online-programs__item strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.38; }
.online-programs__org { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.online-programs__note { margin-top: 14px; color: var(--muted); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Epifiz centre page
   ----------------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.story__head { min-width: 0; }
.story__body { min-width: 0; max-width: 720px; }
.story__body .lead { margin-top: 0; }
.team { margin-top: 32px; padding-top: 16px; border-top: 2px solid var(--ink); }
.team__title { color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.team__list { display: grid; gap: 2px; margin-top: 10px; list-style: none; }
.team__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.team__list li::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border: 1.5px solid var(--amber-ink);
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-ink) 0 30%, transparent 33%);
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.philosophy__main { min-width: 0; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.values li {
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.pull-quote {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  border-left: 3px solid var(--amber);
  background: var(--card);
}
.pull-quote p {
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.015em;
}

/* --------------------------------------------------------------------------
   Legal pages
   ----------------------------------------------------------------------- */

.legal__section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.legal__section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal__title { font-size: clamp(1.3rem, 1.18rem + .5vw, 1.6rem); line-height: 1.25; }
.legal__num { color: var(--amber-ink); }
.legal__text { margin-top: 14px; color: var(--text); line-height: 1.72; }
.legal__list { display: grid; gap: 10px; margin-top: 14px; list-style: none; }
.legal__list li { position: relative; padding-left: 26px; line-height: 1.66; }
.legal__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--amber-ink);
  border-radius: 50%;
}
.legal__contacts {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.legal__phones { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.legal__phones a:not(.call-icon) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.legal__phones a:not(.call-icon):hover span { text-decoration: underline; }
.legal__phones a:not(.call-icon) .icon { width: 18px; height: 18px; color: var(--amber-ink); }
.legal__addresses { display: grid; gap: 8px; list-style: none; }
.legal__addresses li { display: flex; gap: 10px; line-height: 1.5; }
.legal__addresses .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--amber-ink); }
.legal__org { color: var(--muted); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Media page
   ----------------------------------------------------------------------- */

.tv-list { display: grid; gap: 20px; }
@media (min-width: 901px) {
  .tv-list .tv-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
    padding: clamp(36px, 4vw, 56px);
  }
  .tv-list .tv-card__top { justify-content: flex-start; gap: 16px; }
  .tv-list .tv-card__title { margin-top: 30px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
  .tv-list .tv-card__subtitle { font-size: 1.0625rem; }
  .tv-list .tv-card__text { margin-top: 0; font-size: 1.0625rem; }
}
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.profile-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
}
.profile-card__icon .icon { width: 25px; height: 25px; }
.profile-card__body { flex: 1; min-width: 0; }
.profile-card__title { font-size: 1.25rem; }
.profile-card__text { margin-top: 4px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Article
   ----------------------------------------------------------------------- */

.article-hero {
  padding: clamp(24px, 3vw, 44px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-2);
}
.article-hero__category { display: inline-flex; align-items: center; gap: 10px; color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }
.article-hero__icon { display: inline-grid; color: var(--amber-ink); }
.article-hero__icon .icon { width: 20px; height: 20px; }
.article-hero__title {
  max-width: 26ch;
  margin-top: 18px;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  line-height: 1.14;
}
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 26px; }
.author-chip { display: inline-flex; align-items: center; gap: 12px; }
.author-chip__img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.author-chip__name { display: block; color: var(--ink); font-weight: 600; line-height: 1.2; }
.author-chip__role { display: block; color: var(--muted); font-size: .875rem; }
.article-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9375rem; }
.article-hero__facts > span { display: inline-flex; align-items: center; gap: 7px; }
.article-hero__facts .icon { width: 17px; height: 17px; }

.article-main { max-width: 760px; }
.prose { color: var(--text); font-size: 1.125rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead {
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.01em;
}
.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem);
  line-height: 1.22;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 + * { margin-top: .7em; }
.prose ul,
.prose ol { display: grid; gap: .65em; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: .2em;
  width: .52em;
  height: .52em;
  border: 1.5px solid var(--amber-ink);
  border-radius: 50%;
}
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 2.6em; counter-increment: step; }
.prose ol li::before {
  content: counter(step);
  position: absolute;
  top: .1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: .86em;
  font-weight: 700;
}
.prose strong { color: var(--ink); font-weight: 700; }

.article-section { margin-top: 52px; padding-top: 30px; border-top: 2px solid var(--ink); }
.article-section__title { font-size: clamp(1.3rem, 1.2rem + .4vw, 1.55rem); }
.article-section__title--small { font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.related-services { display: grid; gap: 12px; margin-top: 18px; list-style: none; }
.related-service {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}
.related-service:hover { border-color: var(--ink); }
.related-service__icon { display: grid; color: var(--amber-ink); }
.related-service__icon .icon { width: 26px; height: 26px; }
.related-service__body { min-width: 0; }
.related-service__body strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.related-service__body span { display: block; margin-top: 4px; color: var(--muted); font-size: .96875rem; line-height: 1.5; }
.related-service__arrow { margin-left: auto; color: var(--ink); }
.sources { display: grid; gap: 8px; margin-top: 12px; padding-left: 1.2em; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.sources a:hover { color: var(--ink); }

.author-box {
  display: flex;
  gap: 20px;
  margin-top: 52px;
  padding: 28px;
  border-top: 3px solid var(--ink);
  background: var(--paper-2);
}
.author-box__img { width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.author-box__label { color: var(--amber-ink); font-size: .875rem; font-weight: 600; }
.author-box__name { margin-top: 2px; color: var(--ink); font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.author-box__role { color: var(--ink); font-size: .96875rem; font-weight: 500; }
.author-box__text { margin-top: 8px; color: var(--text); font-size: 1rem; line-height: 1.6; }
.author-box .link-arrow { margin-top: 12px; }

.article-disclaimer { display: flex; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.article-disclaimer .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--amber-ink); }

/* --------------------------------------------------------------------------
   Contact and form
   ----------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.contact-grid__form,
.contact-grid__side { min-width: 0; }
.contact-grid__side { display: grid; gap: 18px; }

.booking-form {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--card);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.booking-form__head { display: flex; align-items: flex-start; gap: 16px; }
.booking-form__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--wa-soft);
  color: var(--wa);
}
.booking-form__icon .icon { width: 26px; height: 26px; }
.booking-form__title { font-family: var(--f-display); font-size: clamp(1.45rem, 1.3rem + .6vw, 1.8rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.booking-form__intro { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.booking-form__required { margin: 24px 0 4px; color: var(--muted); font-size: .9375rem; }
.booking-form__required span { color: var(--amber-ink); font-weight: 700; }

.field { display: grid; gap: 8px; min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.field__label { padding: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.field__req { color: var(--amber-ink); }
.field__optional { color: var(--muted); font-size: .9375rem; font-weight: 400; }
.input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #7a7e8e; }
.input:hover { border-color: #a99b85; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--mark); }
.input--short { max-width: 260px; }
.textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.has-error .input { border-color: var(--danger); }
.field__error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: .9375rem; font-weight: 500; }
.field__error .icon { width: 16px; height: 16px; }
.field__hint { color: var(--muted); font-size: .9375rem; line-height: 1.5; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice__box .icon { width: 21px; height: 21px; color: var(--muted); }
.choice:hover .choice__box { border-color: #a99b85; }
.choice__input:checked + .choice__box { border-color: var(--night); background: var(--night); color: #fff; }
.choice__input:checked + .choice__box .icon { color: var(--amber-2); }
.choice__input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error .choice__box { border-color: var(--danger); }

.booking-form .btn--primary { margin-top: 30px; }
.booking-form__status { margin-top: 14px; color: var(--ink); font-size: 1rem; font-weight: 500; text-align: center; }
.booking-form__status:empty { display: none; }
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 500;
}
.form-alert:focus { outline: none; box-shadow: 0 0 0 3px rgba(163, 36, 27, .25); }

.contact-card .vcard { border: 1px solid var(--line-2); }
.contact-card--plain {
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.contact-card__title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.contact-card__text { margin: 8px 0 16px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.contact-card .branches { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.contact-card .branch { padding: 16px 18px; background: var(--paper); }
.rule-list { display: grid; gap: 14px; margin-top: 16px; list-style: none; }
.rule-list__item { display: flex; gap: 12px; font-size: 1rem; line-height: 1.55; }
.rule-list__icon { display: grid; color: var(--amber-ink); }
.rule-list__icon .icon { width: 22px; height: 22px; margin-top: 1px; }

/* --------------------------------------------------------------------------
   Vizitkart
   ----------------------------------------------------------------------- */

.vcard {
  min-width: 0;
  padding: 26px;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
}
.contact-band .vcard { border: 1px solid var(--line-2); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.vcard__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.vcard__avatar {
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-3);
  object-fit: cover;
  object-position: 50% 30%;
}
.vcard__who { min-width: 0; }
.vcard__kicker { color: var(--amber-ink); font-size: .875rem; font-weight: 600; }
.vcard__name { margin-top: 2px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; line-height: 1.22; letter-spacing: -.018em; }
.vcard__role { margin-top: 2px; color: var(--ink); font-size: .96875rem; font-weight: 600; }
.vcard__org { margin-top: 2px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.vcard__rows { display: grid; margin-top: 6px; list-style: none; }
.vcard__row { display: flex; align-items: center; gap: 14px; padding: 11px 0; }
.vcard__row--top { align-items: flex-start; }
.vcard__row + .vcard__row { border-top: 1px solid var(--line); }
.vcard__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
}
.vcard__icon .icon { width: 19px; height: 19px; }
.vcard__icon--wa { background: var(--wa-soft); color: var(--wa); }
.vcard__call {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.vcard__call .vcard__icon { transition: background-color .2s, color .2s; }
.vcard__call:hover .vcard__icon:not(.vcard__icon--wa) { background: var(--ink); color: #fff; }
.vcard__call:hover .vcard__action { text-decoration: underline; }
.vcard__action { color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.vcard__info { display: grid; flex: 1; min-width: 0; line-height: 1.32; }
.vcard__label { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.vcard__value {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.vcard__value:hover { text-decoration: underline; }
.vcard__value--address { margin-top: 3px; font-size: .96875rem; font-weight: 500; line-height: 1.4; }
.vcard__branch { color: var(--muted); font-weight: 600; }
.vcard__copy { color: var(--muted); }
.vcard__actions { display: grid; gap: 10px; margin-top: 16px; }
.vcard__note { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.5; text-align: center; }

/* --------------------------------------------------------------------------
   Search
   ----------------------------------------------------------------------- */

.search-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.search-bar__icon { width: 22px; height: 22px; color: var(--muted); }
.search-bar__input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.1875rem;
}
.search-bar__input::-webkit-search-cancel-button { display: none; }
.search-bar__input:focus-visible { outline: none; }

.search-bar--page {
  padding: 6px 6px 6px 20px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar--page:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
.search-bar--page .search-bar__input { padding: 10px 0; }
.search-bar__submit { min-height: 50px; }

.search-panel { overflow: auto; padding: 16px 20px 22px; overscroll-behavior: contain; }
.search-panel__status,
.search-page__status { color: var(--muted); font-size: .9375rem; }
.search-panel__status:empty,
.search-page__status:empty { display: none; }
.search-panel__more { margin-top: 12px; padding-left: 14px; }

.search-results { display: grid; gap: 4px; margin-top: 10px; list-style: none; }
.search-results:empty { display: none; }
.search-result {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: inherit;
  text-decoration: none;
}
.search-result:hover,
.search-result:focus-visible { border-color: var(--line-2); background: var(--paper-2); outline: none; }
.search-result__meta { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--amber-ink); font-size: .8125rem; font-weight: 600; }
.search-result__meta span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
.search-result__title { color: var(--ink); font-weight: 600; line-height: 1.38; }
.search-result__text { color: var(--muted); font-size: .96875rem; line-height: 1.52; }
.search-results--page { gap: 10px; margin-top: 16px; }
.search-results--page .search-result { padding: 18px 22px; border-color: var(--line-2); background: var(--card); }
.search-results--page .search-result:hover { border-color: var(--ink); background: var(--card); }

.search-suggest__label { margin: 18px 0 10px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.search-suggest > .search-suggest__label:first-child { margin-top: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: .96875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; list-style: none; }
.quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.quick-links a:hover { background: var(--paper-2); }
.quick-links .icon { width: 19px; height: 19px; color: var(--amber-ink); }
.search-suggest--page { margin-top: 8px; }

/* 404 */
.notfound__code {
  color: var(--amber);
  font-family: var(--f-display);
  font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.section-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 20px; list-style: none; border-top: 2px solid var(--ink); }
.section-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.section-link:hover { background: var(--paper-2); }
.section-link__icon { display: grid; color: var(--amber-ink); }
.section-link__icon .icon { width: 20px; height: 20px; }
.section-link__arrow { width: 18px; height: 18px; margin-left: auto; color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */

.site-footer {
  padding: clamp(56px, 6vw, 96px) 0 28px;
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 1rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 40px;
}
.site-footer__brand,
.site-footer__col { min-width: 0; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__role { color: var(--on-night-muted); }
.site-footer__text { max-width: 38ch; margin-top: 20px; line-height: 1.62; }
.site-footer__org { margin-top: 14px; color: #fff; line-height: 1.5; }
.site-footer__title { margin-bottom: 16px; color: var(--amber-2); font-size: .9375rem; font-weight: 600; }
.site-footer__links,
.site-footer__contacts,
.site-footer__places { display: grid; gap: 10px; list-style: none; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__org a { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.site-footer__contacts a:not(.call-icon) { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-weight: 500; }
.site-footer__contacts a:not(.call-icon) .icon { width: 18px; height: 18px; color: var(--amber-2); }
.site-footer__calls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.site-footer__col .btn { margin-top: 20px; }
.site-footer__col .btn:hover { text-decoration: none; }
.site-footer__places li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__places li:last-child { border-bottom: 0; }
.site-footer__place-label { color: #fff; font-weight: 600; }
.site-footer__place-address { line-height: 1.5; }
.site-footer__map { justify-self: start; margin-top: 2px; color: var(--amber-2) !important; font-size: .9375rem; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.site-footer__notice {
  display: grid;
  gap: 10px;
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem;
  line-height: 1.62;
}
.site-footer__emergency { display: flex; gap: 10px; color: #fff; }
.site-footer__emergency .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--amber-2); }
.site-footer__legal { color: var(--on-night-muted); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 70px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-night-muted);
  font-size: .9375rem;
}
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; }
.site-footer__legal-links a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.site-footer__legal-links a:hover,
.site-footer__legal-links a[aria-current] { text-decoration-color: var(--amber); }
.site-footer__credit a { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Dialogs
   ----------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
}
.modal::backdrop {
  background: rgba(16, 19, 36, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal[open] { display: grid; }
html.has-dialog { overflow: hidden; }

.modal__panel { position: relative; }

.modal--search[open] { place-items: start center; padding: clamp(12px, 9vh, 104px) 16px 16px; }
.modal--search .modal__panel {
  display: flex;
  flex-direction: column;
  width: min(700px, 100%);
  max-height: min(740px, calc(100dvh - 28px));
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(16, 19, 36, .3);
  animation: modal-in .22s var(--ease);
}

.modal--vcard[open] { place-items: center; padding: 16px; overflow-y: auto; }
.modal--vcard .modal__panel {
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(16, 19, 36, .3);
  animation: modal-in .22s var(--ease);
}
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper-2); }
.modal--vcard .vcard__head { padding-right: 44px; }

/* Accessibility: a centred card, never a side panel */
.modal--a11y[open] { place-items: center; padding: 16px; overflow-y: auto; }
.a11y {
  width: min(620px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 30px 70px rgba(16, 19, 36, .35);
  animation: modal-in .2s var(--ease);
}
.a11y__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 24px 22px 20px 24px;
  border-bottom: 1px solid var(--line);
}
.a11y__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
}
.a11y__badge .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.a11y__intro { min-width: 0; }
.a11y__title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.a11y__desc { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.a11y__close { margin: -4px -4px 0 0; background: var(--paper-2); }
.a11y__body { padding: 6px 24px 10px; }
.a11y__group { margin: 0; padding: 18px 0 8px; border: 0; min-width: 0; }
.a11y__group:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.a11y__label { padding: 0; margin-bottom: 12px; color: var(--ink); font-size: 1.0625rem; font-weight: 700; }

.a11y-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a11y-size { position: relative; display: block; min-width: 0; cursor: pointer; }
.a11y-size__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.a11y-size__box {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 12px 8px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.a11y-size:hover .a11y-size__box { border-color: var(--ink); }
.a11y-size__a { font-family: var(--f-sans); font-weight: 700; line-height: 1; }
.a11y-size__a--0 { font-size: 1.25rem; }
.a11y-size__a--1 { font-size: 1.65rem; }
.a11y-size__a--2 { font-size: 2.1rem; }
.a11y-size__name { font-size: .96875rem; font-weight: 600; line-height: 1.2; }
.a11y-size__input:checked + .a11y-size__box { border-color: var(--night); background: var(--night); color: #fff; }
.a11y-size__input:focus-visible + .a11y-size__box { outline: 3px solid var(--focus); outline-offset: 3px; }

.a11y-switches { display: grid; gap: 10px; }
.a11y-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.a11y-switch:hover { border-color: var(--ink); }
.a11y-switch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.a11y-switch__icon { display: grid; color: var(--ink); }
.a11y-switch__icon .icon { width: 28px; height: 28px; }
.a11y-switch__text { min-width: 0; }
.a11y-switch__title { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; }
.a11y-switch__hint { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.a11y-switch__track {
  position: relative;
  width: 54px;
  height: 32px;
  flex: none;
  border-radius: var(--r-pill);
  background: #b7ab98;
  transition: background-color .2s;
}
.a11y-switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease);
}
.a11y-switch__input:checked ~ .a11y-switch__track { background: var(--night); }
.a11y-switch__input:checked ~ .a11y-switch__track .a11y-switch__thumb { transform: translateX(22px); }
.a11y-switch:has(.a11y-switch__input:checked) { border-color: var(--night); background: #fff; }
.a11y-switch:has(.a11y-switch__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.a11y__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
}
.a11y__foot .btn { flex: 1 1 200px; }

/* The accessibility button, always in reach */
.a11y-fab {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 14px;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--night);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(16, 19, 36, .3);
  cursor: pointer;
  transition: background-color .2s;
}
.a11y-fab:hover { background: var(--night-3); }
.a11y-fab__icon { width: 28px; height: 28px; stroke-width: 1.6; }
.a11y-fab__dot {
  position: absolute;
  top: 5px;
  left: 34px;
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--amber);
}
html.a11y-on .a11y-fab__dot { display: block; }

/* Mobile menu (a navigation drawer, separate from the accessibility card) */
.modal--drawer[open] { grid-template-rows: minmax(0, 1fr); justify-items: end; }
.drawer {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  min-height: 0;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(16, 19, 36, .25);
  animation: drawer-in .26s var(--ease);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 12px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__nav { flex: 1; min-height: 0; padding: 10px 12px 20px; overflow-y: auto; overscroll-behavior: contain; }
.m-nav { display: grid; list-style: none; }
.m-nav__item + .m-nav__item { border-top: 1px solid var(--line); }
.m-nav__row { display: flex; align-items: center; gap: 4px; }
.m-nav__link {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 56px;
  padding: 0 10px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-decoration: none;
}
.m-nav__link:hover { color: var(--amber-ink); }
.m-nav__link.is-current { color: var(--amber-ink); }
.m-nav__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.m-nav__toggle:hover { background: var(--paper-2); }
.m-nav__toggle .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.m-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-nav__sub { display: grid; gap: 2px; margin: 0 0 12px 10px; padding-left: 14px; border-left: 2px solid var(--amber); list-style: none; }
.m-nav__sub a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.35;
  text-decoration: none;
}
.m-nav__sub a:hover,
.m-nav__sub a[aria-current] { background: var(--paper-2); color: var(--ink); }
.m-nav__sub a[aria-current] { font-weight: 600; }
.drawer__foot {
  display: grid;
  gap: 4px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}
.drawer__label { color: var(--muted); font-size: .875rem; font-weight: 600; }
.drawer__calls { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 2px; }
.drawer__foot .btn { margin-top: 8px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes drawer-in {
  from { transform: translateX(24px); opacity: .5; }
  to { transform: none; opacity: 1; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(16, 19, 36, .3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: var(--amber-2); }

/* --------------------------------------------------------------------------
   Accessibility modes
   ----------------------------------------------------------------------- */

html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }

html.a11y-contrast {
  --paper: #ffffff;
  --paper-2: #f1f1f1;
  --paper-3: #e2e2e2;
  --card: #ffffff;
  --ink: #000000;
  --text: #000000;
  --muted: #1c1c1c;
  --line: #5c5c5c;
  --line-2: #111111;
  --night: #000000;
  --night-2: #1a1a1a;
  --night-3: #262626;
  --on-night: #ffffff;
  --on-night-muted: #f2f2f2;
  --amber: #ffb14a;
  --amber-hover: #ffa02a;
  --amber-2: #ffc670;
  --amber-ink: #6b3300;
  --amber-soft: #fff0da;
  --wa: #0b5c2e;
  --focus: #0030d6;
  --focus-on-dark: #ffd24d;
}
html.a11y-contrast .site-header { background: #fff; }
html.a11y-contrast a:not(.btn) { text-decoration-line: underline; }
html.a11y-contrast .kicker,
html.a11y-contrast .hero__role { font-weight: 700; }

/* Readable mode: the same clean typeface, with wider letter, word and line spacing */
html.a11y-readable body { letter-spacing: .02em; word-spacing: .1em; line-height: 1.85; }
html.a11y-readable h1,
html.a11y-readable h2,
html.a11y-readable h3,
html.a11y-readable h4,
html.a11y-readable .figure__value,
html.a11y-readable .branch__area-num,
html.a11y-readable .principle__num,
html.a11y-readable .notfound__code { letter-spacing: .005em; line-height: 1.3; }

html.a11y-links a:not(.btn) {
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}
html.a11y-links a:not(.btn):hover,
html.a11y-links a:not(.btn):focus-visible { background: var(--mark); color: var(--ink) !important; }
html.a11y-links .btn { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px currentColor; }

html.a11y-still { scroll-behavior: auto !important; }
html.a11y-still *,
html.a11y-still *::before,
html.a11y-still *::after {
  animation: none !important;
  transition: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .post-grid,
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid .tv-card { grid-column: 1 / -1; }
  .online-programs__list { grid-template-columns: minmax(0, 1fr); }
  .section-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .areas .area__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .areas .area__list li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .9375rem; }
}

@media (max-width: 1023px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .page-aside { position: static; max-height: none; overflow: visible; }
  .page-index { display: none; }
  .page-index-m { display: block; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
  .head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .head--split > .link-arrow { justify-self: start; margin-bottom: 0; }
  .practice,
  .split,
  .faq-preview,
  .contact-band__grid,
  .edu-grid,
  .contact-grid,
  .center-intro,
  .letter__grid,
  .story,
  .philosophy { grid-template-columns: minmax(0, 1fr); }
  .faq-preview__head { position: static; }
  .contact-band .vcard { width: min(100%, 480px); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .letter__head .h2 { font-size: clamp(2.8rem, 2rem + 4vw, 4rem); }
  .split__media { max-width: 560px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero__content { padding-bottom: 12px; }
  .hero-portrait { justify-self: center; width: min(100%, 400px); }
  .credentials { grid-template-columns: minmax(0, 1fr); }
  .credential,
  .credential + .credential { padding: 18px 0; border-left: 0; }
  .credential + .credential { border-top: 1px solid var(--line); }
  .paths { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .path,
  .path:first-child,
  .path:last-child { padding: 24px 0 8px; border-top: 2px solid var(--ink); }
  .path + .path { border-left: 0; margin-top: 24px; }
  .principles,
  .principles--three { grid-template-columns: minmax(0, 1fr); }
  .service-rows { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 30px 70px; min-height: 80px; }
  .step::before { left: 23px; right: auto; top: 48px; bottom: 0; width: 1px; height: auto; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__media { justify-self: start; width: min(100%, 320px); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .article-layout { gap: 24px; }
}

@media (max-width: 640px) {
  .post-grid,
  .video-grid,
  .media-grid,
  .video-list,
  .section-links,
  .branches { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { gap: 14px 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .practice__photos { gap: 10px; }
  .practice__photo:nth-child(2) { margin-top: 24px; }
  .practice__photo:nth-child(3) { margin-top: 48px; }
  .figures { gap: 12px; }
  .figure__value { font-size: 2.3rem; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .entry__photos { gap: 10px; }
  .quick-links { grid-template-columns: minmax(0, 1fr); }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vcard { padding: 20px; }
  .vcard__avatar { width: 68px; height: 68px; }
  .vcard__name { font-size: 1.25rem; }
  .booking-form__head { flex-direction: column; gap: 12px; }
  .search-bar--page { padding-left: 16px; }
  .search-bar__submit { padding-inline: 1em; }
  .alert-card { flex-direction: column; gap: 12px; }
  .cta-band__actions,
  .cta-band__actions .btn { width: 100%; }
  .modal--search[open] { padding: 0; }
  .modal--search .modal__panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .a11y-fab { right: 12px; width: 56px; min-height: 56px; padding: 0; justify-content: center; }
  .a11y-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .a11y-fab__dot { left: auto; right: 6px; top: 6px; }
  .modal--a11y[open] { padding: 10px; }
  .a11y { max-height: calc(100dvh - 20px); }
  .a11y__head { padding: 18px 14px 16px 18px; gap: 12px; }
  .a11y__badge { width: 44px; height: 44px; }
  .a11y__badge .icon { width: 26px; height: 26px; }
  .a11y__title { font-size: 1.375rem; }
  .a11y__body { padding: 4px 16px 8px; }
  .a11y__foot { padding: 14px 16px 18px; }
  .a11y-sizes { gap: 8px; }
  .a11y-size__box { min-height: 88px; padding: 10px 4px; }
  .a11y-switch { gap: 12px; padding: 12px; }
}

@media (max-width: 420px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figure { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .figure__text { margin-top: 0; }
  .a11y-switch__icon { display: none; }
  .a11y-switch { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-aside,
  .modal,
  .a11y-fab,
  .section--cta { display: none !important; }
  body { background: #fff; }
  .letter { background: #fff; color: #000; }
}

/* Enlarged text on phones: the header stays on one line. The brand keeps a
   capped logotype size, the role line goes, and the Vizitkart shortcut moves
   to the menu (it is also in the footer and on the contact page). */
@media (max-width: 560px) {
  html.a11y-text-1 .site-header .brand__role,
  html.a11y-text-2 .site-header .brand__role { display: none; }
  html.a11y-text-1 .site-header .brand__name,
  html.a11y-text-2 .site-header .brand__name { font-size: 17px; }
  html.a11y-text-2 .site-header__vcard { display: none; }
}
@media (max-width: 420px) {
  html.a11y-text-1 .site-header__vcard { display: none; }
  .site-header .brand__name { font-size: .9375rem; }
}
@media (max-width: 389px) {
  html.a11y-text-1 .site-header .brand__name,
  html.a11y-text-2 .site-header .brand__name { font-size: 15px; }
}
