/* Straight ASCII hyphen for both brand typefaces. */
@font-face { font-family: "Straight Hyphen"; src: local("Arial"); unicode-range: U+002D; }
@font-face { font-family: "GribuVaru Editorial"; src: url("assets/fonts/gribuvaru-pair-v4/gribuvaru-editorial-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GribuVaru Sans"; src: url("assets/fonts/gribuvaru-pair-v4/gribuvaru-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GribuVaru Sans"; src: url("assets/fonts/gribuvaru-pair-v4/gribuvaru-sans-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GribuVaru Sans"; src: url("assets/fonts/gribuvaru-pair-v4/gribuvaru-sans-semibold.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }

/* =========================================================
   GribuVaru - visual prototype v2 (brand + visual revision)
   Semantic HTML + native CSS. No frameworks, no external fonts.
   ========================================================= */

/* Desktop geometry is expressed in "mockup pixels": 1 --u = 1px of the approved
   1024px-wide mockup (explFINAL.png), scaled with the viewport and capped. */
:root {
  --u: clamp(0.84px, calc(100vw / 1024), 1.3px);
  --frame: calc(1024 * var(--u));

  /* ---- Palette (sampled from approved mockup) ---- */
  --ivory: #F4EDE3;          /* page background */
  --ivory-header: #F7F0E9;
  --sand: #E9DED0;
  --pine: #1F3127;           /* CTA / dark surfaces */
  --pine-hover: #2A4034;
  --pine-deep: #16231B;
  --ink: #1B2A23;            /* hero headline / card titles */
  --ink-navy: #0E1B27;       /* section headings */
  --olive: #908064;
  --olive-deep: #6B7256;
  --terracotta: #B6735C;
  --terracotta-text: #A4513A;/* headline accent */
  --terracotta-deep: #944F3C;/* final CTA band */
  --terracotta-tint: #EFDCD3;
  --charcoal: #1E1E1C;       /* body text */
  --muted: #6B625C;
  --mist: #D8DACB;
  --ivory-on-pine: #F3EEE3;
  --surface: #FFFFFF;
  --card: #F8F3EC;
  --border: rgba(48,45,41,0.12);
  --border-strong: rgba(48,45,41,0.24);
  --shadow-soft: 0 8px 28px rgba(31,61,46,0.10);
  --shadow-lift: 0 18px 48px rgba(31,61,46,0.16);
  --radius-card: 20px;
  --radius-card-sm: 14px;

  /* ---- Type ---- */
  /* No approved font files exist in the project and no external font service is approved.
     "Hoefler Text" (preinstalled on macOS/iOS) is the closest locally available match to the
     Garamond-style serif in explFINAL.png; it is NOT the exact mockup font. Other systems fall
     back to Garamond (Windows/Office), then Iowan/Georgia. */
  --font-display: "Straight Hyphen", "GribuVaru Editorial", serif;
  --font-body: "Straight Hyphen", "GribuVaru Sans", sans-serif;

  --fs-display: clamp(2.6rem, 1.6rem + 4.2vw, 4rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.5vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;
  --fs-nav: 0.92rem;
  --fs-micro: 0.72rem;

  /* ---- Spacing / rhythm (mobile/tablet) ---- */
  --space-section-lg: clamp(3.5rem, 3rem + 3vw, 6rem);
  --space-section-md: clamp(2.5rem, 2.2rem + 2vw, 4.5rem);
  --content-max: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.section-scroll-active { scroll-behavior: auto; }

[hidden] { display: none !important; }
section[id], .program-card { scroll-margin-top: 5.5rem; }
@media (min-width: 900px) { section[id], .program-card { scroll-margin-top: calc(57 * var(--u) + 1.25rem); } }

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--ivory-on-pine);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--pine); color: var(--ivory-on-pine); }
.btn--primary:hover { background: var(--pine-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--pine); transform: translateY(-1px); }
.btn--on-dark { background: var(--ivory-on-pine); color: var(--pine); }
.btn--on-dark:hover { transform: translateY(-1px); }
.btn--small { padding: 0.65em 1.3em; font-size: var(--fs-small); }
.btn__arrow { display: inline-flex; font-size: 0.95em; transition: transform 0.3s var(--ease); }
.btn__arrow svg { width: 1.15em; height: auto; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.text-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0 0 0.15em;
  background: none;
  border-top: none; border-left: none; border-right: none;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { border-color: var(--pine); color: var(--pine); }
.text-link--small { font-size: var(--fs-small); }

.is-draft { opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 240, 233, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 240, 233, 0.97);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}
.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.site-header__logo img { display: block; height: 32px; width: auto; }
.site-header__nav { display: flex; gap: 1.6rem; }
.site-header__nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-nav);
  color: #2B2A27;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--pine);
  transition: right 0.3s var(--ease);
}
.site-header__nav a:hover { color: var(--pine); }
.site-header__nav a:hover::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.lang-switch { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.lang-switch__item {
  width: 2.1rem; height: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #2B2A27;
  cursor: default;
}
.lang-switch__item.is-active { border-color: #CFC8BF; }
/* Future locale remains unavailable and non-interactive. */
.lang-switch__item.is-unavailable { color: #8A847C; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px; min-width: 40px;
  background: none; border: none; cursor: pointer; flex: none;
}
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.5rem;
  gap: 1rem;
  background: var(--ivory-header);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a { text-decoration: none; color: var(--charcoal); font-size: 1.05rem; }
.mobile-nav .btn--primary { align-self: flex-start; color: var(--ivory-on-pine); }
.mobile-nav.is-open { display: flex; }

/* Desktop header: exact mockup geometry (57u tall, nav from x=324, actions end at x=974) */
@media (min-width: 900px) {
  .site-header__inner {
    max-width: var(--frame);
    height: calc(57 * var(--u));
    padding: 0 calc(50 * var(--u)) 0 calc(80 * var(--u));
    gap: 0;
  }
  .site-header__logo img { height: calc(32 * var(--u)); }
  .site-header__nav {
    position: absolute;
    left: calc(324 * var(--u));
    top: 50%;
    transform: translateY(-50%);
    gap: calc(25 * var(--u));
  }
  .site-header__nav a { font-size: calc(10.2 * var(--u)); }
  .site-header__actions { gap: calc(14 * var(--u)); }
  .lang-switch { gap: calc(2 * var(--u)); }
  .lang-switch__item { width: calc(33 * var(--u)); height: calc(33 * var(--u)); font-size: calc(10.5 * var(--u)); }
  .site-header .btn--small {
    height: calc(36 * var(--u));
    padding: 0 calc(17 * var(--u)) 0 calc(19 * var(--u));
    font-size: calc(10.8 * var(--u));
    font-weight: 500;
  }
}
@media (max-width: 899px) {
  .site-header__nav { display: none; }
  .site-header__actions .lang-switch { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 360px) {
  .site-header__inner { padding: 0.8rem 1rem; gap: 0.6rem; }
  .site-header__logo img { height: 28px; }
  .site-header__actions .btn--small { padding: 0.55em 0.9em; font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.35) 42%, rgba(255,255,255,0) 54%),
    var(--ivory);
  padding: 2.5rem 1.25rem 0;
}
.hero__picture { display: contents; }
.hero__art { display: block; pointer-events: none; }
.hero__content { position: relative; z-index: 1; }
.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2E3430;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.hero__headline {
  font-size: var(--fs-display);
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.35em;
}
.hero__headline-accent { color: var(--terracotta-text); }
.hero__lead { font-size: var(--fs-lead); color: var(--charcoal); line-height: 1.45; max-width: 27em; margin: 0; }
.hero__actions { display: flex; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.4rem 0 0;
}
.hero__tags li {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34332F;
}
/* Shared Hero and specialist profile rail geometry. */
:root {
  --timeline-line-width: 1px;
  --timeline-dot-size: 5px;
  --timeline-ink: #27372B;
}
.hero__timeline { display: none; }

@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  /* Show the whole approved composition (no cropping), scaled to the column */
  .hero__art { order: 2; width: 100%; max-width: 34rem; height: auto; aspect-ratio: 564 / 375; margin: 2rem 0 0 auto; }
  .hero__lead br { display: none; }
}

/* Desktop hero: 375u tall band (mockup y 57-432), art anchored at x=460 */
@media (min-width: 900px) {
  .hero {
    height: calc(375 * var(--u));
    padding: 0;
  }
  .hero__content, .hero__timeline {
    position: absolute;
    left: calc(50% - 512 * var(--u));
  }
  .hero__art {
    position: absolute;
    top: 0;
    left: calc(50% - 52 * var(--u));
    width: calc(564 * var(--u));
    height: calc(375 * var(--u));
    z-index: 0;
  }
  .hero__content {
    top: calc(43 * var(--u));
    padding-left: calc(80 * var(--u));
    width: calc(470 * var(--u));
  }
  .eyebrow { font-size: calc(9 * var(--u)); line-height: calc(16 * var(--u)); letter-spacing: 0.135em; margin-bottom: calc(15 * var(--u)); }
  .hero__headline {
    font-size: calc(52.2 * var(--u));
    line-height: calc(47 * var(--u));
    margin: 0 0 calc(17 * var(--u)) calc(2 * var(--u));
  }
  .hero__lead {
    font-size: calc(13.45 * var(--u));
    line-height: calc(19 * var(--u));
    margin-left: calc(3 * var(--u));
    max-width: none;
  }
  .hero__actions { gap: calc(14 * var(--u)); margin: calc(15 * var(--u)) 0 0 calc(3 * var(--u)); }
  .hero .btn {
    height: calc(37 * var(--u));
    font-size: calc(11.8 * var(--u));
    font-weight: 400;
    padding: 0 calc(22 * var(--u));
  }
  .hero .btn--ghost { padding: 0 calc(16 * var(--u)); background: rgba(250,246,240,0.6); border-color: #CDC5BA; }
  .hero__tags { gap: calc(26 * var(--u)); margin: calc(14 * var(--u)) 0 0 calc(3 * var(--u)); }
  .hero__tags li { font-size: calc(8.6 * var(--u)); letter-spacing: 0.17em; }

  .hero__timeline {
    display: block;
    margin-top: 0;
    top: calc(36 * var(--u));
    margin-left: calc(887 * var(--u));
    width: calc(110 * var(--u));
    height: calc(212 * var(--u));
    padding: 0;
    list-style: none;
  }
  .hero__timeline::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--timeline-line-width);
    background: #2B2E2A;
  }
  .hero__timeline li {
    position: absolute;
    left: calc(32 * var(--u));
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-variant-numeric: lining-nums;
    font-size: calc(12.4 * var(--u));
    line-height: calc(16 * var(--u));
    color: var(--muted);
    white-space: nowrap;
  }
  .hero__timeline li::before {
    content: "";
    position: absolute;
    left: calc(-32 * var(--u) - 2px);
    width: var(--timeline-dot-size); height: var(--timeline-dot-size);
    border-radius: 50%;
    background: #2B2E2A;
  }
  .hero__timeline li:nth-child(1) { top: calc(-3 * var(--u)); color: #181717; }
  .hero__timeline li:nth-child(1)::before { top: 1px; }
  .hero__timeline li:nth-child(2) { top: calc(79 * var(--u)); }
  .hero__timeline li:nth-child(2)::before { top: calc(-12 * var(--u)); }
  .hero__timeline li:nth-child(3) { top: calc(159 * var(--u)); }
  .hero__timeline li:nth-child(3)::before { top: calc(-12 * var(--u)); }
  .hero__timeline::after {
    content: "";
    position: absolute;
    left: -2px; bottom: -2px;
    width: var(--timeline-dot-size); height: var(--timeline-dot-size);
    border-radius: 50%;
    background: #2B2E2A;
  }
}

/* ---------- Section shell / rhythm ---------- */
.section { padding: var(--space-section-lg) 0; position: relative; }
.section__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.section h2 { font-size: var(--fs-h2); margin-bottom: 0.4em; }
.section__lead { font-size: var(--fs-lead); color: #4E4B43; max-width: 42em; margin-bottom: 2.5rem; }
.section__kicker {
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.5rem;
}
.lead { font-size: var(--fs-lead); color: #4E4B43; }

/* ---------- Reveal on scroll ---------- */
.reveal.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal.reveal-ready { opacity: 1; transform: none; transition: none; } }

/* ---------- Par UDHS section ---------- */
.section--udhs { position: relative; overflow: hidden; background: #F3EBE2; padding: var(--space-section-md) 0; }
.udhs__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.udhs__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
}
.udhs__lead { font-size: var(--fs-body); color: var(--charcoal); line-height: 1.55; margin: 0 0 1.25rem; }
.section--udhs h2 { color: var(--ink-navy); }
.text-link--arrow { font-weight: 500; border-bottom-color: #8E8A84; padding-bottom: 0.2em; }
.text-link--arrow span { display: inline-block; margin-left: 0.35em; transition: transform 0.3s var(--ease); }
.text-link--arrow:hover span { transform: translateX(3px); }

.udhs__accent {
  position: relative;
  background: var(--pine);
  color: var(--ivory-on-pine);
  border-radius: 10px;
  padding: 1.75rem 1.75rem 2rem;
  overflow: hidden;
}
.udhs__accent::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.udhs__accent h3 { position: relative; color: var(--ivory-on-pine); font-size: 1.6rem; font-weight: 400; line-height: 1.18; margin: 0 0 1rem; letter-spacing: -0.01em; }
.udhs__accent p { position: relative; margin: 0; color: #E9E4DA; font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 899px) {
  .udhs__lead br, .udhs__accent br { display: none; }
  .udhs__art { display: none; }
}

/* Desktop: 244u band (mockup y 432-676); text column at x=140, card at x=589 */
@media (min-width: 900px) {
  .section--udhs { height: calc(244 * var(--u)); padding: 0; }
  .udhs__art { left: calc(50% - 512 * var(--u)); width: calc(1024 * var(--u)); overflow: visible; }
  .udhs__frame { position: absolute; inset: 0; margin: 0 auto; max-width: var(--frame); padding: 0; display: block; }
  .udhs__intro { position: absolute; left: calc(140 * var(--u)); top: calc(31 * var(--u)); }
  .section--udhs .section__kicker { font-size: calc(8.2 * var(--u)); letter-spacing: 0.12em; line-height: calc(14 * var(--u)); margin: 0 0 calc(4 * var(--u)); color: #3A3A36; }
  .section--udhs h2 { font-size: calc(31 * var(--u)); line-height: calc(40 * var(--u)); margin: 0 0 calc(12 * var(--u)); letter-spacing: -0.012em; }
  .udhs__lead { font-size: calc(11.8 * var(--u)); line-height: calc(18.5 * var(--u)); margin: 0 0 calc(14 * var(--u)) calc(5 * var(--u)); }
  .section--udhs .text-link--arrow { font-size: calc(12 * var(--u)); margin-left: calc(5 * var(--u)); padding-bottom: calc(3 * var(--u)); }
  .udhs__accent {
    position: absolute;
    left: calc(589 * var(--u));
    top: calc(30 * var(--u));
    width: calc(320 * var(--u));
    height: calc(201 * var(--u));
    border-radius: calc(10 * var(--u));
    padding: calc(22 * var(--u)) calc(30 * var(--u)) 0 calc(36 * var(--u));
  }
  .udhs__accent h3 { font-size: calc(26.3 * var(--u)); line-height: calc(31 * var(--u)); margin: 0 0 calc(7 * var(--u)); }
  .udhs__accent p { font-size: calc(11.7 * var(--u)); line-height: calc(18 * var(--u)); }
}

/* ---------- UDHS var izpausties dažādi (symptom carousel) ---------- */
.section--symptoms { background: #F0E6DD; padding: var(--space-section-md) 0; }
.symptoms__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
}
.symptoms__head { grid-column: 1 / -1; }
.section--symptoms h2 { color: var(--ink-navy); margin-bottom: 0.6rem; }
.symptoms__note { font-size: var(--fs-small); color: #3F3A35; line-height: 1.55; margin: 0; }
.symptoms__controls { align-self: end; }

.carousel-controls { display: flex; gap: 0.6rem; }
.carousel-arrow {
  width: 2.6rem; height: 2.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #DCD2C7;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.carousel-arrow svg { width: 38%; height: auto; }
.carousel-arrow--filled { background: #EAE0D6; border-color: #EAE0D6; }
.carousel-arrow:hover { background: #E4D8CB; transform: translateY(-1px); }
.carousel-arrow:disabled { opacity: 0.55; cursor: default; transform: none; }

.symptom-carousel__track {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 1.25rem 0 0.25rem;
  margin-top: 0.5rem;
  cursor: grab;
  scrollbar-width: none;
}
.symptom-carousel__track::-webkit-scrollbar { display: none; }
.symptom-carousel__track:active { cursor: grabbing; }
.symptom-carousel__track.is-dragging,
.specialist-carousel__track.is-dragging { user-select: none; -webkit-user-select: none; }

.symptom-card {
  position: relative;
  flex: 0 0 11.5rem;
  min-height: 7.6rem;
  scroll-snap-align: start;
  border-radius: 8px;
  padding: 1rem 0.9rem 0.9rem;
  background: #F5EFE7;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
/* Use charcoal over light artwork and warm ivory over dark artwork. */
.symptom-card--dark { background: var(--pine); color: var(--ivory-on-pine); }

.symptom-card--dark h3 {
  text-shadow: 0 1px 2px var(--charcoal), 0 0 4px var(--charcoal);
}

.symptom-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  pointer-events: none;
}

.symptom-card--focus .symptom-card__image { left: -2%; }
html[lang="ru"] .symptom-card--time h3 { top: 0.4rem; }
.symptom-card--emotions .symptom-card__image { object-position: center 80%; }
.symptom-card--emotions h3 { top: 0.625rem; }

.symptom-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
  color: inherit;
}
.symptom-card__index {
  position: absolute;
  left: 1rem; bottom: 0.75rem;
  font-size: 0.68rem;
  color: #C4BCB1;
}
.symptom-card--terra .symptom-card__index,
.symptom-card--pine .symptom-card__index,
.symptom-card--olive .symptom-card__index { color: rgba(251,244,236,0.85); }
.symptom-card__more {
  pointer-events: none; /* decorative reference detail only - not a control */
  position: absolute;
  right: 0.8rem; bottom: 0.7rem;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: #FBF7F1;
  color: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center;
}
.symptom-card__more svg { width: 70%; height: 70%; }

@media (max-width: 899px) {
  .symptoms__note br { display: none; }
  .symptom-card h3 br { display: none; }
  .symptom-card {
    flex-basis: min(76vw, 17rem);
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 1rem 1.125rem 1.875rem;
  }
  .symptom-card h3 { font-size: 1.4375rem; line-height: 1.25; }
  .symptom-card__image { transform: scale(1.08); }
}

/* Desktop: mockup y 676-872; heading at x=86, cards x=51-973 (6 × 144 + 11 gap) */
@media (min-width: 900px) {
  .section--symptoms { height: calc(196 * var(--u)); padding: 0; }
  .symptoms__frame { display: block; max-width: var(--frame); height: 100%; padding: 0; }
  .symptoms__head { position: absolute; left: calc(86 * var(--u)); top: calc(17 * var(--u)); }
  .section--symptoms .section__kicker { font-size: calc(8.2 * var(--u)); letter-spacing: 0.12em; line-height: calc(14 * var(--u)); margin: 0 0 calc(3 * var(--u)); color: #3A3A36; }
  .section--symptoms h2 { font-size: calc(31 * var(--u)); line-height: calc(40 * var(--u)); margin: 0; letter-spacing: -0.012em; }
  .symptoms__note { position: absolute; left: calc(533 * var(--u)); top: calc(36 * var(--u)); font-size: calc(8.6 * var(--u)); line-height: calc(16 * var(--u)); }
  .symptoms__controls { position: absolute; left: calc(898 * var(--u)); top: calc(28 * var(--u)); gap: calc(6 * var(--u)); }
  .carousel-arrow { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }
  .symptom-carousel__track {
    position: absolute;
    left: calc(51 * var(--u));
    top: calc(83 * var(--u));
    width: calc(922 * var(--u));
    margin: 0;
    padding: 0;
    gap: calc(11 * var(--u));
  }
  .symptom-card {
    flex: 0 0 calc(144 * var(--u));
    height: calc(95 * var(--u));
    min-height: 0;
    border-radius: calc(8 * var(--u));
    padding: 0 calc(8 * var(--u)) calc(6 * var(--u));
  }
  .symptom-card h3 { font-size: calc(14 * var(--u)); line-height: calc(16 * var(--u)); }
  .symptom-card__index { left: calc(14 * var(--u)); bottom: calc(11 * var(--u)); font-size: calc(8.4 * var(--u)); }
  .symptom-card__more { right: calc(10 * var(--u)); bottom: calc(8 * var(--u)); width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
}

/* ---------- Programmas ---------- */
.section--programmas { position: relative; background: #F2E9E1; padding: var(--space-section-md) 0; }
.programmas__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
}
.section--programmas h2 { color: var(--ink-navy); }
.programmas__lead { color: #363834; line-height: 1.55; margin: 0 0 1.1rem; }
.programmas__tiles { position: relative; display: grid; gap: 0; border-radius: 12px; overflow: hidden; }
.programmas__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.program-tile { position: relative; padding: 1.5rem 1.4rem 1.6rem; }
.program-tile--01 { background: #ECE1D6; }
.program-tile--02 { background: #203127; color: var(--ivory-on-pine); }
.program-tile__number { display: block; font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 2.4rem; line-height: 1; color: #A05A45; margin-bottom: 0.5rem; }
.program-tile--02 .program-tile__number { color: #A68A67; }
.program-tile h3 { font-size: 1.3rem; line-height: 1.2; color: var(--ink); margin: 0 0 1rem; letter-spacing: -0.01em; }
.program-tile--02 h3 { color: #F3EEE3; }
.program-tile__list li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.88rem; color: #3C3A36; padding: 0.2rem 0; }
.program-tile--02 .program-tile__list li { color: #F3EEE3; }
.program-tile__check { flex: none; width: 1.05rem; height: 1.05rem; fill: none; stroke: #746961; stroke-width: 1; }
.program-tile__check path { stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.program-tile--02 .program-tile__check { stroke: #EDE7DC; }
.program-tile__go {
  position: absolute;
  right: 1.3rem; bottom: 1.4rem;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #A1513D;
  color: #FBF4EC;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease);
}
.program-tile__go svg { width: 42%; height: auto; }
.program-tile--02 .program-tile__go { background: #F6F1EA; color: var(--charcoal); }
.program-tile__go:hover { transform: translateX(2px); }
.udhs__accent .udhs__symptoms-link {
  position: relative;
  inset: auto;
  align-self: flex-end;
  margin-top: 1rem;
  flex: none;
}
@media (max-width: 899px) {
  .programmas__lead br, .program-tile h3 br { display: none; }
  .programmas__art { display: none; }
  .program-tile { padding-right: 4.5rem; }
}

/* Desktop: mockup y 872-1062; intro at x=86, tile panel x=430-1024 */
@media (min-width: 900px) {
  .section--programmas { padding: 0; }
  .programmas__frame { display: block; max-width: var(--frame); height: calc(190 * var(--u)); padding: 0; }
  .programmas__intro { position: absolute; left: calc(86 * var(--u)); top: calc(10 * var(--u)); }
  .section--programmas .section__kicker { font-size: calc(8.2 * var(--u)); letter-spacing: 0.12em; line-height: calc(14 * var(--u)); margin: 0 0 calc(3 * var(--u)) calc(1 * var(--u)); color: #3A3A36; }
  .section--programmas h2 { font-size: calc(31 * var(--u)); line-height: calc(40 * var(--u)); margin: 0 0 calc(5 * var(--u)); letter-spacing: -0.012em; }
  .programmas__lead { font-size: calc(12.3 * var(--u)); line-height: calc(18.5 * var(--u)); margin: 0 0 calc(9 * var(--u)) calc(1 * var(--u)); }
  .section--programmas .text-link--arrow { line-height: calc(16 * var(--u)); font-size: calc(11.8 * var(--u)); margin-left: calc(1 * var(--u)); padding-bottom: calc(3 * var(--u)); }
  .programmas__tiles {
    position: absolute;
    left: calc(430 * var(--u));
    top: 0;
    width: calc(594 * var(--u));
    height: calc(188 * var(--u));
    border-radius: 0;
    overflow: visible;
    display: block;
  }
  .program-tile { position: absolute; top: 0; height: 100%; padding: 0; background: none; }
  .program-tile--01 { left: 0; width: calc(255 * var(--u)); padding: calc(24 * var(--u)) 0 0 calc(22 * var(--u)); }
  .program-tile--02 { left: calc(255 * var(--u)); width: calc(285 * var(--u)); padding: calc(21 * var(--u)) 0 0 calc(21 * var(--u)); }
  .program-tile__number { font-size: calc(36 * var(--u)); line-height: calc(36 * var(--u)); margin: 0 0 calc(2 * var(--u)); }
  .program-tile h3 { font-size: calc(17.1 * var(--u)); line-height: calc(22 * var(--u)); margin: 0 0 calc(1 * var(--u)); }
  .program-tile__list li { font-size: calc(9.6 * var(--u)); line-height: calc(14 * var(--u)); padding: calc(4 * var(--u)) 0; gap: calc(12 * var(--u)); }
  .program-tile--02 .program-tile__list { margin-left: calc(10 * var(--u)); }
  .program-tile--02 .program-tile__list li { gap: calc(13 * var(--u)); }
  .program-tile__check { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
  .program-tile__go { width: calc(34 * var(--u)); height: calc(34 * var(--u)); right: auto; bottom: auto; top: calc(133 * var(--u)); }
  .program-tile--01 .program-tile__go { left: calc(205 * var(--u)); }
  .program-tile--02 .program-tile__go { left: calc(238 * var(--u)); top: calc(135 * var(--u)); }
}

/* Expanded detail view (existing clinical composition of both programmes) */
.programmas__details { background: var(--sand); }
.programmas__details .section__inner { padding-top: var(--space-section-md); padding-bottom: var(--space-section-md); }
.program-card__title { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.program-group h5 { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--olive-deep); margin: 0 0 0.4rem; }
.program-card--02 .program-group h5 { color: rgba(243,238,227,0.65); }

.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; position: relative; }
.program-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.program-card--02 {
  background: var(--pine);
  color: var(--ivory-on-pine);
}
.program-card--02 .program-card__title { color: var(--ivory-on-pine); }
.program-card--02 .program-card__purpose { color: rgba(243,238,227,0.82); }
.program-card--02 .program-group h4 { color: rgba(243,238,227,0.65); }
.program-card--02 .program-group ul li { color: rgba(243,238,227,0.9); border-top-color: rgba(243,238,227,0.14); }
.program-card--02 .program-card__duration { background: rgba(243,238,227,0.14); color: var(--ivory-on-pine); }
.program-card--02 .program-card__number { color: var(--terracotta); }
.program-card--02 .text-link { color: var(--ivory-on-pine); border-color: rgba(243,238,227,0.4); }
.program-card--02 .btn--primary { background: var(--ivory-on-pine); color: var(--pine); }
.program-card--02 .btn--primary:hover { background: var(--surface); }

.program-card__number { display: block; font-family: var(--font-display); font-size: 2.5rem; color: var(--terracotta); margin-bottom: 0.5rem; }
.program-card__duration {
  display: inline-block;
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sand);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin-bottom: 0.75rem;
  color: var(--olive-deep);
}
.program-card h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.program-card__purpose { color: #4E4B43; margin-bottom: 1.5rem; }
.program-card__list li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  position: relative;
}
.program-card__list li:first-child { border-top: none; }
.program-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.85em;
}

.program-groups { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.program-group h4 { font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: 0.04em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 0.4rem; }
.program-group ul li { font-size: 0.95rem; padding: 0.3rem 0; }
.program-card__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }

.program-support {
  margin-top: 1.75rem;
  padding: 1.5rem 1.6rem;
  background: var(--terracotta-tint);
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.program-support__mark { flex: none; width: 28px; height: 28px; color: var(--terracotta); margin-top: 0.15rem; }
.program-support__mark svg { width: 100%; height: 100%; }
.program-support p { margin: 0; font-size: 0.92rem; color: #4E4B43; }

@media (max-width: 900px) {
  .programs { grid-template-columns: 1fr; }
  .program-card--02 { transform: none; }
}

/* ---------- Speciālisti ---------- */
.section--specialisti { position: relative; overflow: hidden; background: #F3EBE3; padding: var(--space-section-md) 0; }
.specialisti__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.specialisti__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}
.specialisti__head { grid-column: 1 / -1; }
.section--specialisti h2 { color: var(--ink-navy); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; margin: 0; }
.is-placeholder { cursor: default; opacity: 0.6; }
.text-link.is-placeholder:hover { color: var(--charcoal); border-color: #8E8A84; }
.text-link.is-placeholder:hover span { transform: none; }
.specialisti__all { justify-self: start; font-size: var(--fs-small); }

.specialist-carousel__track {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0;
  cursor: grab;
  scrollbar-width: none;
}
.specialisti__controls .carousel-arrow { width: 32px; height: 32px; border-radius: 6px; }
.specialist-carousel__track::-webkit-scrollbar { display: none; }
.specialist-carousel__track:active { cursor: grabbing; }

.specialist-card {
  position: relative;
  flex: 0 0 82%;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  background: #F6F1EA;
}
.specialist-card__photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #DDD3C8 0%, #CFC3B6 55%, #C8BBAD 100%);
  border-radius: inherit;
  overflow: hidden;
}
.specialist-card__photo img,
#modal-specialist .modal__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.specialist-card__info { margin-top: 0; padding: 0.6rem 0.75rem 0.75rem; min-height: 4.4rem; }
.specialist-card h3 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0 0 0.2rem; }
.specialist-card__open {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 0.82rem; color: var(--charcoal); text-align: left; cursor: pointer;
  margin-top: 0.5rem; text-decoration: underline; text-underline-offset: 0.18em;
}
.specialist-card__open::after { content: ""; position: absolute; inset: 0; }
.specialist-card__open:focus-visible { outline: none; }
.specialist-card:has(.specialist-card__open:focus-visible) { outline: 2px solid var(--pine); outline-offset: 2px; }
.specialist-card__role { font-size: 0.78rem; line-height: 1.45; color: #57534E; margin: 0; }
.specialist-card { transition: transform 0.35s var(--ease); }
.specialist-card:hover { transform: translateY(-3px); }

@media (max-width: 899px) {
  .specialist-card__role br { display: none; }
  .specialisti__controls { grid-column: 1 / -1; justify-self: end; }
}

/* Desktop: mockup y 1062-1290; cards x=76-958 (6 × 136 + 12 gap) */
@media (min-width: 900px) {
  .section--specialisti { height: calc(228 * var(--u)); padding: 0; }
  .specialisti__frame { display: block; max-width: var(--frame); height: 100%; padding: 0; }
  .specialisti__head { position: absolute; left: calc(80 * var(--u)); top: calc(10 * var(--u)); }
  .section--specialisti .section__kicker { font-size: calc(8.2 * var(--u)); letter-spacing: 0.12em; line-height: calc(14 * var(--u)); margin: 0 0 calc(5 * var(--u)) calc(1 * var(--u)); color: #3A3A36; }
  .section--specialisti h2 { font-size: calc(19.5 * var(--u)); line-height: calc(28 * var(--u)); letter-spacing: -0.01em; }
  .specialisti__all { position: absolute; left: calc(725 * var(--u)); top: calc(29 * var(--u)); font-size: calc(10.4 * var(--u)); padding-bottom: calc(3 * var(--u)); }
  .specialisti__controls { position: absolute; left: calc(890 * var(--u)); top: calc(18 * var(--u)); gap: calc(11 * var(--u)); }
  .specialist-carousel__track {
    position: absolute;
    left: calc(76 * var(--u));
    top: calc(64 * var(--u));
    width: calc(882 * var(--u));
    padding: 0;
    gap: calc(12 * var(--u));
  }
  .specialist-card { flex: 0 0 calc(136 * var(--u)); height: calc(148 * var(--u)); border-radius: calc(8 * var(--u)); }
  .specialist-card__photo { aspect-ratio: auto; height: calc(91 * var(--u)); border-radius: inherit; }
  .specialist-card__info { min-height: 0; height: calc(57 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)) 0 calc(12 * var(--u)); }
  .specialist-card h3 { font-size: calc(10.6 * var(--u)); line-height: calc(14 * var(--u)); margin: 0 0 calc(2 * var(--u)); }
  .specialist-card__role { font-size: calc(9.6 * var(--u)); line-height: calc(14 * var(--u)); }
}

/* ---------- Cenas ---------- */
.section--cenas { position: relative; overflow: hidden; background: #F3EBE3; padding: var(--space-section-md) 0; }
.cenas__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cenas__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
}
.section--cenas h2 { color: var(--ink-navy); }
.cenas__lead { color: #2C2C2A; font-size: var(--fs-lead); line-height: 1.55; margin: 0 0 1rem; }
.price-summary { border-top: 1px solid #DDD6CE; padding-top: 1.5rem; }
.price-summary__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; letter-spacing: 0; color: #2D2D2B; margin: 0 0 0.4rem; }
.price-summary__figure { font-family: "GribuVaru Editorial", serif; font-variant-numeric: lining-nums; font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-navy); margin: 0 0 0.6rem; }
.price-summary__figure span:not(.price-summary__approx) { font-size: 0.7em; letter-spacing: 0; margin-left: 0.05em; }
.price-summary__note { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); margin: 0; }
.cenas__details { background: var(--sand); }
.cenas__details .section__inner { padding-top: var(--space-section-md); padding-bottom: var(--space-section-md); }
@media (max-width: 899px) {
  .cenas__lead br, .price-summary__note br { display: none; }
}

/* Desktop: mockup y 1290-1438; intro at x=82, price columns at x=457 and x=741 with hairlines at x=430/696 */
@media (min-width: 900px) {
  .section--cenas { padding: 0; }
  .cenas__frame { display: block; max-width: var(--frame); height: calc(148 * var(--u)); padding: 0; }
  .cenas__intro { position: absolute; left: calc(82 * var(--u)); top: calc(2 * var(--u)); }
  .section--cenas .text-link--arrow { font-size: calc(10.6 * var(--u)); line-height: calc(16 * var(--u)); padding-bottom: calc(3 * var(--u)); }
  .price-summary {
    position: absolute;
    top: calc(28 * var(--u));
    left: calc(430 * var(--u));
    height: calc(96 * var(--u));
    border-top: 0;
    border-left: 1px solid #DDD6CE;
    padding: 0 0 0 calc(27 * var(--u));
  }
  .price-summary--2 { left: calc(696 * var(--u)); padding-left: calc(45 * var(--u)); }
  .price-summary__figure { font-size: calc(34 * var(--u)); line-height: calc(40 * var(--u)); letter-spacing: -0.03em; margin: 0 0 calc(5 * var(--u)); }
}

.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 3rem; }
.price-card { padding: 2rem 1.75rem 2.25rem; background: var(--surface); border-radius: var(--radius-card); }
.price-card__head h3 { font-size: var(--fs-h3); margin-bottom: 0.2rem; }
.price-card__caption { color: #57544C; font-size: var(--fs-small); margin-bottom: 1.5rem; }
.price-card__figure {
  font-family: "GribuVaru Editorial", serif;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  color: var(--pine);
}
.price-card__unit { font-size: 1rem; font-family: var(--font-body); color: #57544C; }
.price-card__flag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
  color: var(--olive-deep);
  margin-bottom: 1.25rem;
}

.disclosure__toggle {
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 0.35em;
}
.disclosure__toggle span { transition: transform 0.3s var(--ease); }
.disclosure__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.disclosure__panel { overflow: hidden; transition: height 0.4s var(--ease); }
.price-breakdown { margin-top: 1.25rem; }
.price-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.price-breakdown li > span:first-child { flex: 1 1 auto; min-width: 0; }
.price-breakdown li > span:last-child { flex: none; white-space: nowrap; }
.price-breakdown li:first-child { border-top: none; }
.price-breakdown li.is-draft > span:last-child { color: var(--terracotta); }
.price-breakdown__note { font-size: var(--fs-small); color: #57544C; margin-top: 1rem; margin-bottom: 0; }

.individual-services h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.service-rows { max-width: 32em; }
.service-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.service-rows li:first-child { border-top: none; }
.service-rows li.is-draft span:last-child { color: var(--terracotta); }

@media (max-width: 760px) {
  .price-cards { grid-template-columns: 1fr; gap: 2.5rem; }
  .price-breakdown li, .service-rows li { flex-wrap: wrap; }
  .price-breakdown li > span:last-child, .service-rows li span:last-child { font-weight: 600; }
}

/* Keep approved price breakdowns readable at narrow card widths */
#visas-cenas {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 450ms ease-in-out;
}
#visas-cenas.is-expanded { grid-template-rows: 1fr; }
.cenas__clip { min-height: 0; overflow: hidden; }
.cenas__clip > .section__inner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease-in-out, transform 450ms ease-in-out;
}
#visas-cenas.is-expanded .section__inner {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  #visas-cenas, .cenas__clip > .section__inner { transition: none; }
}
#visas-cenas .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#visas-cenas .price-breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}
html[lang="ru"] .price-breakdown__qualifier { display: block; }
#visas-cenas .service-rows li span:last-child { white-space: normal; }
@media (max-width: 760px) {
  #visas-cenas .price-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Final CTA ---------- */
.section--final-cta { position: relative; overflow: hidden; background: #95503D; color: #F6EDE4; padding: var(--space-section-md) 0; }
.final-cta__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.final-cta__frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.section--final-cta h2 { color: #F6EDE4; margin: 0; flex: 1 1 18rem; letter-spacing: -0.01em; }
.section--final-cta p { color: #F2E4DA; font-size: var(--fs-small); line-height: 1.6; margin: 0; flex: 1 1 18rem; }
.section--final-cta .btn--on-dark { background: #F5EDE4; color: var(--charcoal); flex: none; font-weight: 500; }
.section--final-cta .btn--on-dark:hover { background: #FFFFFF; }
@media (max-width: 899px) {
  .section--final-cta p br { display: none; }
}

/* Desktop: mockup y 1438-1536; heading x=65, copy x=482, button x=848-974 */
@media (min-width: 900px) {
  .section--final-cta { height: calc(98 * var(--u)); padding: 0; }
  .final-cta__frame { display: block; max-width: var(--frame); height: 100%; padding: 0; }
  .section--final-cta h2 { position: absolute; left: calc(65 * var(--u)); top: calc(24 * var(--u)); font-size: calc(28.8 * var(--u)); line-height: calc(40 * var(--u)); white-space: nowrap; }
  .section--final-cta p { position: absolute; left: calc(482 * var(--u)); top: calc(31 * var(--u)); font-size: calc(9.75 * var(--u)); line-height: calc(17 * var(--u)); white-space: nowrap; }
  .section--final-cta .btn--on-dark {
    position: absolute;
    left: calc(848 * var(--u));
    top: calc(28 * var(--u));
    width: calc(126 * var(--u));
    height: calc(38 * var(--u));
    padding: 0;
    font-size: calc(11.6 * var(--u));
  }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid var(--border); padding: var(--space-section-md) 1.5rem 2rem; }
.site-footer__inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; font-size: 0.9rem; color: #57544C; }
.site-footer__logo { margin: 0 0 1rem; line-height: 0; }
.site-footer__logo img { display: block; height: 34px; width: auto; }
.site-footer__brand p { margin: 0.15rem 0; }
.site-footer__contacts { margin-top: 0.75rem; line-height: 1.35; }
.site-footer__contacts p { margin: 0; }
.site-footer__contacts p + p { margin-top: 0.25rem; }
.site-footer__contacts .site-footer__contact-title { font-size: 1rem; font-weight: 500; }
.site-footer__contacts .site-footer__contact-title + p { margin-top: 0.75rem; }
.site-footer__contacts .site-footer__registration { margin-top: 1rem; font-size: 0.8rem; opacity: 0.85; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__social { display: flex; gap: 1rem; align-self: start; }
.social-placeholder { color: #57544C; opacity: 0.55; cursor: default; }
.site-footer__copyright { max-width: var(--content-max); margin: 2.5rem auto 0; font-size: 0.78rem; color: #57544C; opacity: 0.7; }
@media (min-width: 761px) {
  .site-footer__links,
  .site-footer__social { align-self: center; justify-self: center; }
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 150;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  .back-to-top { right: 0.85rem; bottom: 5.25rem; width: 38px; height: 38px; font-size: 1rem; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(48,45,41,0.5); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative;
  background: var(--ivory);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: var(--shadow-lift);
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.modal__photo { aspect-ratio: 4/3; background: var(--sand); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.modal__photo span { width: 30%; height: 30%; border-radius: 50%; background: var(--border-strong); }
.modal__role { color: var(--olive-deep); font-size: 0.9rem; margin-bottom: 1rem; }
.modal__facts dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.04em; color: #57544C; margin-top: 1rem; }
.modal__facts dd { margin: 0.2rem 0 0; font-size: 0.92rem; }

@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal__panel { max-width: none; width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 4.5rem 1.5rem 2rem; }
}

body.modal-open { overflow: hidden; }

/* ---------- Pieteikties: multi-step apply flow ---------- */
.apply { padding-top: var(--space-section-md); }
.apply__inner { max-width: 720px; }

.apply__notice {
  font-size: 0.85rem;
  color: var(--olive-deep);
  background: var(--sand);
  border-radius: var(--radius-card-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.apply__progress {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}
.apply__progress li {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}
.apply__progress li.is-current,
.apply__progress li.is-done { background: var(--pine); }

.apply__step h1 { font-size: var(--fs-h2); }
.apply__step .lead { margin-bottom: 2rem; }

.apply__choices {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
#asrs-language-picker { min-width: 0; padding: 0; border: 0; }

.apply__choices--inline { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }

.apply__choice {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}
.apply__choice input { position: absolute; top: 1.1rem; right: 1.3rem; accent-color: var(--pine); }
.apply__choice:has(input:checked) { border-color: var(--pine); background: var(--terracotta-tint); }
.apply__choice:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: 2px; }
.apply__choice-title { font-weight: 600; padding-right: 1.75rem; }
.apply__choice-desc { font-size: 0.88rem; color: #57544C; }
.apply__choice--compact { padding: 0.85rem 1.1rem; }
.apply__choice--compact input { top: 0.85rem; right: 1.1rem; }

.apply__conditional {
  margin: 0 0 2rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--sand);
  border-radius: var(--radius-card-sm);
}
.apply__conditional-label { font-weight: 600; margin-bottom: 1rem; }
.apply__hint { font-size: 0.82rem; color: #57544C; margin: 0.75rem 0 0; }

.apply__fields, .apply__fields.apply__field--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.apply__field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; }
.apply__field--wide { grid-column: 1 / -1; }
.apply__field input, .apply__field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--charcoal);
}
.apply__field input:focus-visible, .apply__field textarea:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; }
.apply__fieldset { border: none; padding: 0; margin: 0 0 1.25rem; }
.apply__fieldset legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; padding: 0; }
.apply__checkbox { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; font-size: 0.92rem; margin-bottom: 0.6rem; }
.apply__checkbox input { accent-color: var(--pine); }

.apply__step-list { margin-top: 1.5rem; }
.apply__step-list li { padding: 0.75rem 0; border-top: 1px solid var(--border); font-size: 0.95rem; }
.apply__step-list li:first-child { border-top: none; }
.apply__step-list .is-draft { display: block; font-size: 0.82rem; margin-top: 0.2rem; }

.apply__summary {
  margin-bottom: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.apply__privacy { font-size: 0.78rem; margin: 0.75rem 0 0; }
.apply__privacy .text-link { font-size: inherit; }
.apply__summary dt:first-child { margin-top: 0; }
.questionnaire__code { white-space: nowrap; }
.apply__summary dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.04em; color: #57544C; margin-top: 1rem; }
.apply__summary dd { margin: 0.2rem 0 0; font-size: 0.95rem; }

.apply__nav { display: flex; gap: 1rem; margin-top: 2.5rem; }
.apply__back-link { margin-top: 3rem; }

@media (max-width: 640px) {
  .apply__fields { grid-template-columns: 1fr; }
}


/* "~" rendered from Georgia: the display face draws it as a low dash, the mockup shows a mid-height wave */
.price-summary__approx { font-family: var(--font-display); font-size: 0.8em; margin-right: 0.04em; position: relative; top: -0.04em; }
.specialist-card { cursor: pointer; }
.specialist-carousel__track.is-dragging .specialist-card { cursor: grabbing; }

/* ---------- Pieteikties: field errors + demo notice ---------- */
.apply__notice strong { display: block; color: var(--charcoal); margin-bottom: 0.25rem; }
.apply__field label { font-weight: 600; font-size: 0.9rem; }
.apply__req { color: var(--terracotta-text); }
.apply__required-note { margin: -1rem 0 1.25rem; }
.apply__field input[aria-invalid="true"] { border-color: #A4513A; box-shadow: 0 0 0 1px #A4513A; }
.apply__error { margin: 0.1rem 0 0; font-size: 0.85rem; font-weight: 400; color: #9A3F2A; }
.modal__photo svg { display: block; width: 70%; height: 100%; fill: #BCAE9F; opacity: 0.7; }
.modal__photo { background: linear-gradient(160deg, #DDD3C8 0%, #CFC3B6 55%, #C8BBAD 100%); align-items: flex-end; overflow: hidden; }
.modal__demo { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.75rem; }

/* Approved local typography: preserve natural widths and allow longer text to grow. */
.udhs__accent p br { display: none; }
@media(min-width:900px){.hero,.locale .hero{height:auto;min-height:calc(375 * var(--u))}.hero__content,.locale .hero__content{position:relative;top:auto;padding-top:calc(43 * var(--u));padding-bottom:calc(40 * var(--u))}.hero__headline,.locale .hero__headline{font-size:calc(52.2 * var(--u));line-height:calc(51 * var(--u))}.section--udhs{height:auto;min-height:calc(244 * var(--u))}.udhs__frame{position:relative;display:grid;grid-template-columns:calc(410 * var(--u)) calc(320 * var(--u));gap:calc(39 * var(--u));padding:calc(31 * var(--u)) calc(115 * var(--u)) calc(24 * var(--u)) calc(140 * var(--u))}.udhs__intro,.locale .udhs__intro{position:relative;left:auto;top:auto;width:auto}.udhs__accent{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:calc(201 * var(--u));padding-bottom:calc(14 * var(--u))}.udhs__accent h3,.locale .udhs__accent h3{font-size:calc(26.3 * var(--u));line-height:calc(31 * var(--u))}}@media(max-width:899px){.hero__headline,.locale .hero__headline{font-size:var(--fs-display);line-height:1.05}.udhs__accent h3,.locale .udhs__accent h3{font-size:1.6rem;line-height:1.22}}


/* Desktop presentation: shared canvas, generous scene surfaces, approved objects. */
@media (min-width: 900px) {
  main#main { --scene-gap: clamp(24px, 3vw, 48px); --scene-pad: clamp(28px, 4vw, 64px); }
  main#main > .section {
    width: calc(100% - 2 * var(--scene-gap));
    max-width: 1600px;
    margin: var(--scene-gap) auto;
    border-radius: 24px;
    padding: 0;
    height: auto;
    overflow: hidden;
    isolation: isolate;
    scroll-margin-top: calc(57 * var(--u) + var(--scene-gap));
  }
  .hero, .locale .hero {
    min-height: max(620px, calc(100svh - 57 * var(--u)));
    display: flex;
    align-items: center;
    background: #F7F0E9;
  }
  .hero__content, .locale .hero__content {
    left: calc(50% - 512 * var(--u));
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero__art { top: 50%; transform: translateY(-50%); }
  .hero__timeline { top: calc(50% - 151 * var(--u)); }
  main#main > .section--udhs { background: #FAF6F0; }
  .udhs__art { opacity: 0.2; width: 100%; left: 0; }
  .udhs__frame {
    position: relative;
    inset: auto;
    max-width: 1400px;
    min-height: max(600px, calc(88svh - 57 * var(--u)));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(48px, 6vw, 100px);
    padding: var(--scene-pad);
  }
  .udhs__intro, .locale .udhs__intro { position: relative; inset: auto; width: auto; }
  .section--udhs .section__kicker { font-size: 14px; margin-bottom: 20px; }
  .section--udhs h2 { font-size: clamp(48px, 4.6vw, 68px); line-height: 1.08; margin-bottom: 28px; }
  .udhs__lead { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.55; margin: 0 0 32px; }
  .udhs__lead br { display: none; }
  .section--udhs .text-link--arrow { font-size: 18px; margin-left: 0; }
  .udhs__accent {
    position: relative; inset: auto; width: auto; height: auto;
    min-height: max(500px, 65svh); padding: clamp(36px, 4vw, 60px);
    display: flex; flex-direction: column; justify-content: center; border-radius: 18px;
  }
  .udhs__accent h3, .locale .udhs__accent h3 {
    font-size: clamp(42px, 3.7vw, 56px); line-height: 1.12; margin: 0 0 32px;
  }
  .udhs__accent h3 br { display: none; }
  .udhs__accent p { font-size: clamp(20px, 1.55vw, 23px); line-height: 1.5; }
  main#main > .section--symptoms { background: #E9DED0; }
  .symptoms__frame {
    max-width: 1400px;
    height: auto;
    min-height: max(500px, 72svh);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-content: center;
    padding: var(--scene-pad);
  }
  .symptoms__head { position: relative; inset: auto; grid-column: 1 / -1; }
  .symptoms__note { position: relative; inset: auto; max-width: 48em; }
  .symptoms__controls { position: relative; inset: auto; align-self: center; }
  .symptom-carousel__track { position: relative; inset: auto; width: 100%; margin: 20px 0 0; padding: 4px 0; }
  main#main > .section--programmas { background: #FAF6F0; }
  .programmas__frame {
    max-width: 1400px;
    height: auto;
    min-height: max(680px, calc(90svh - 57 * var(--u)));
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
    align-content: stretch;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .programmas__intro { position: relative; inset: auto; min-width: 0; align-self: center; padding: var(--scene-pad); }
  .programmas__lead br { display: none; }
  .programmas__tiles { position: relative; inset: auto; width: auto; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programmas__art { display: none; }
  .program-tile, .program-tile--01, .program-tile--02 {
    position: relative; inset: auto; width: auto; height: auto;
    padding: clamp(32px, 3vw, 48px); display: flex; flex-direction: column;
  }
  .program-tile--01 { background: #ECE1D6; }
  .program-tile--02 { background: #203127; }
  .program-tile__number { font-size: clamp(72px, 6.5vw, 100px); line-height: 1; margin-bottom: 42px; }
  .program-tile h3 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.15; margin-bottom: 32px; }
  .program-tile h3 br { display: none; }
  .program-tile__list, .program-tile--02 .program-tile__list { margin: 0 0 32px; }
  .program-tile__list li, .program-tile--02 .program-tile__list li { font-size: 18px; line-height: 1.45; padding: 8px 0; gap: 12px; align-items: flex-start; }
  .program-tile__check { width: 20px; height: 20px; margin-top: 3px; }
  .program-tile__go, .program-tile--01 .program-tile__go, .program-tile--02 .program-tile__go {
    position: relative; inset: auto; width: 60px; height: 60px; margin-top: auto; align-self: flex-end; flex-shrink: 0;
  }
  main#main > .section--specialisti { background: #F7F0E9; }
  .specialisti__art { opacity: 0.22; }
  .specialisti__frame {
    max-width: 1400px;
    height: auto;
    min-height: max(580px, calc(86svh - 57 * var(--u)));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 32px;
    padding: var(--scene-pad);
  }
  .specialisti__head { position: relative; inset: auto; grid-column: 1; }
  .specialisti__controls { position: relative; inset: auto; align-self: end; }
  .specialisti__all { position: relative; inset: auto; }
  .specialist-carousel__track { position: relative; inset: auto; width: 100%; grid-column: 1 / -1; margin: 12px 0 0; padding: 4px 0; }
  main#main > .section--cenas { background: #FAF6F0; }
  .cenas__art { opacity: 0.16; }
  .cenas__frame {
    max-width: 1400px;
    height: auto;
    min-height: clamp(390px, 48svh, 500px);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-content: center;
    align-items: start;
    gap: 32px;
    padding: var(--scene-pad);
  }
  .cenas__intro { position: relative; inset: auto; }
  .cenas__lead br, .price-summary__note br { display: none; }
  .price-summary, .price-summary--2 { position: relative; inset: auto; height: auto; padding-left: 28px; }
  .price-summary__note { font-size: var(--fs-body); }
  main#main > .section--final-cta { background: #95503D; }
  .final-cta__frame {
    max-width: 1400px;
    height: auto;
    min-height: max(350px, 48svh);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: var(--scene-pad);
  }
  .section--final-cta h2, .section--final-cta p, .section--final-cta .btn--on-dark {
    position: relative; inset: auto; white-space: normal;
  }
  .section--final-cta p br { display: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .programmas__frame { grid-template-columns: 1fr; gap: 0; }
  .programmas__intro { max-width: 640px; }
  .programmas__tiles { justify-self: stretch; min-height: 560px; }
  .final-cta__frame { grid-template-columns: 1fr auto; }
  .section--final-cta h2 { grid-column: 1 / -1; }
}

/* Desktop scale and directional navigation. */
@media (min-width: 900px) {
  .site-header, .site-header.is-scrolled { background: #E5DACA; box-shadow: 0 1px 0 #CBBEAC; }
  .site-header { transition: transform .35s var(--ease), background .35s var(--ease); }
  .site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
  .hero, .locale .hero { min-height: calc(100svh - 57 * var(--u)); overflow: hidden; }
  .hero__art { top: 0; bottom: 0; left: 47%; width: 53%; height: 100%; transform: none; }
  .hero__content, .locale .hero__content { z-index: 1; width: 47%; left: 0; padding-left: clamp(40px, 6vw, 96px); }
  .hero__headline, .locale .hero__headline { font-size: clamp(64px, 5.4vw, 86px); line-height: 1.04; }
  .hero__lead { font-size: 21px; line-height: 1.5; }
  .hero__timeline { top: auto; bottom: 24px; }
  .udhs__frame { gap: 0; padding: 0; grid-template-columns: 1fr 1fr; }
  .udhs__intro, .locale .udhs__intro { padding: var(--scene-pad); }
  .udhs__accent { align-self: stretch; border-radius: 0; min-height: 600px; }
  .section--symptoms h2 { font-size: clamp(48px, 4.3vw, 64px); line-height: 1.1; }
  .section--symptoms .section__kicker, .section--specialisti .section__kicker, .section--cenas .section__kicker { font-size: 14px; margin-bottom: 18px; }
  .symptoms__note { font-size: 21px; line-height: 1.5; }
  .symptom-carousel__track { gap: 22px; grid-column: 1 / -1; }
  .symptom-card { flex: 0 0 clamp(240px, 21vw, 320px); height: 360px; padding: 24px 28px; }
  .symptom-card h3 { font-size: 29px; line-height: 1.25; margin: 0; }
  .symptom-card h3 br { display: none; }
  .symptom-card__index { left: 28px; bottom: 24px; font-size: 14px; }
  .symptom-card__more { width: 34px; height: 34px; right: 24px; bottom: 20px; }
  .specialisti__art { display: none; }
  .section--specialisti h2 { font-size: clamp(40px, 3.5vw, 52px); line-height: 1.15; max-width: 1050px; }
  .specialist-carousel__track { gap: 24px; }
  .specialist-card { flex: 0 0 clamp(250px, 22vw, 330px); height: auto; border-radius: 12px; }
  .specialist-card__photo { height: auto; aspect-ratio: 9 / 16; border-radius: inherit; }
  .specialist-card__info { height: auto; min-height: 115px; padding: 20px 24px; }
  .specialist-card h3 { font-size: 20px; line-height: 1.3; }
  .specialist-card__role { font-size: 17px; line-height: 1.4; }
  .specialisti__frame { padding-top: 48px; padding-bottom: 48px; }
  #modal-specialist .modal__panel { max-width: 960px; border-radius: 18px; }
  #modal-specialist .modal__facts dd { font-size: 16px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

@media (min-width: 900px) {
  .hero__timeline li, .hero__timeline li:nth-child(1) { color: #FBF4EC; text-shadow: 0 1px 5px #203127; }
  .hero__timeline::before, .hero__timeline li::before { background: #FBF4EC; }
}

/* Refined desktop proportions: original vector geometry, independent timeline. */
@media (min-width: 900px) {
  .site-header { position: relative; top: auto; transform: none; }
  .site-header, .site-header.is-scrolled { background: #F7F0E9; box-shadow: none; }
  .site-header__nav { background: #D9DDCA; padding: 12px 18px; border-radius: 30px; gap: 22px; }
  .site-header__nav a { font-size: 15px; font-weight: 500; color: #27372B; }
  .hero__art { left: 43%; width: 45%; height: 100%; }
  .hero__content, .locale .hero__content { width: 43%; padding-left: clamp(40px, 5vw, 80px); }
  .hero__headline, .locale .hero__headline { font-size: clamp(60px, 5vw, 80px); }
  .hero__timeline {
    left: auto; right: 28px; top: 22%; bottom: auto; margin: 0;
    width: 140px; height: 58%; display: grid; grid-template-rows: repeat(3, 1fr); gap: 24px;
  }
  .hero__timeline li, .hero__timeline li:nth-child(1), .hero__timeline li:nth-child(2), .hero__timeline li:nth-child(3) {
    position: relative; inset: auto; padding-left: 22px; font-size: 19px; line-height: 1.3;
    white-space: normal; color: #27372B; text-shadow: none;
  }
  .hero__timeline li::before, .hero__timeline li:nth-child(1)::before, .hero__timeline li:nth-child(2)::before, .hero__timeline li:nth-child(3)::before { left: -2px; top: 6px; background: var(--timeline-ink); }
  .hero__timeline::before, .hero__timeline::after { background: var(--timeline-ink); }
  .specialist-card { flex-basis: clamp(220px, 17vw, 265px); }
  .specialist-card__photo { aspect-ratio: 3 / 4; }
  .specialist-card__info { min-height: 105px; padding: 18px 20px; }
  .section--specialisti h2 { font-size: clamp(30px, 2.5vw, 38px); max-width: 900px; }
  .specialisti__frame { gap: 24px; min-height: 650px; }
  .section--final-cta h2 { font-size: clamp(44px, 3.9vw, 60px); line-height: 1.1; }
  .section--final-cta p { font-size: 21px; line-height: 1.5; }
  .final-cta__frame { grid-template-columns: 1.1fr 1fr auto; gap: 48px; }
}
.site-footer { background: #D3D7BF; border-top-color: #B5BCA1; }
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header__nav { gap: 12px; padding: 10px 12px; left: 30%; }
  .site-header__nav a { font-size: 13px; }
  .hero__timeline { right: 16px; width: 116px; }
  .hero__timeline li { font-size: 17px; }
  .final-cta__frame { grid-template-columns: 1fr auto; }
}

/* Social icons - destinations will be connected later. */
.site-footer__social :is(.social-placeholder, .social-link) { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #899077; border-radius: 50%; color: #27372B; }
.site-footer__social svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.site-footer__social .social-icon__dot, .site-footer__social .social-icon__fill { fill: currentColor; stroke: none; }

/* Compact team scene and layered specialist profile. */
@media (min-width: 900px) {
  .specialisti__frame { gap: 32px; }
  .specialist-card { flex-basis: 42%; }
  .specialist-card__photo { aspect-ratio: 3 / 4; }
  #modal-specialist .modal__panel { background: #D3D7BF; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: min(580px, calc(85dvh - 64px)); gap: 28px; }
  #modal-specialist .modal__content { grid-column: 2; background: #FAF6F0; border-radius: 14px; padding: 30px; }
  #modal-specialist h3 { font-size: 36px; margin: 20px 0 12px; }
  #modal-specialist .modal__role { margin-bottom: 20px; }
}

.section--specialisti .specialisti__subtitle { font-size: var(--fs-h2); margin: 0; }

.specialist-card.specialist-card--upcoming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--terracotta-deep);
  color: var(--terracotta-tint);
  cursor: auto;
  transform: none;
}
.specialist-card--upcoming p,
.specialist-card--upcoming h3 { margin: 0; }
.specialist-card--upcoming p { font-size: var(--fs-body); line-height: 1.55; }
.specialist-card.specialist-card--upcoming h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
}

#modal-specialist .modal__panel {
  max-height: 85dvh;
  overflow: hidden;
}
#modal-specialist .modal__close { z-index: 1; }
#modal-specialist .modal__photo {
  aspect-ratio: 3 / 4;
  width: min(100%, 16rem);
  margin-inline: auto;
  border-radius: 12px;
}
#modal-specialist .modal__facts {
  --section-heading-line: 1.5em;
  --section-rail-inset: 0.25rem;
  position: relative;
  color: var(--timeline-ink);
  font-size: var(--fs-micro);
}
#modal-specialist .modal__section {
  position: relative;
  padding-inline-start: 1.25rem;
}
#modal-specialist .modal__section:not(:last-child) {
  padding-bottom: 1.75rem;
}
#modal-specialist .modal__section dd {
  margin-top: 0.625rem;
  line-height: 1.55;
}
.modal__cv-entries {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}
.modal__cv-date {
  display: block;
  color: var(--muted);
  font-size: 0.875em;
  line-height: 1.4;
}
.modal__cv-group + .modal__cv-group { margin-top: 1.375rem; }
.modal__cv-group h4 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#modal-specialist .modal__facts::before {
  content: "";
  position: absolute;
  inset-block: 0 -0.25rem;
  inset-inline-start: var(--section-rail-inset);
  width: var(--timeline-line-width);
  border-radius: var(--timeline-line-width);
  background: var(--timeline-ink);
}
#modal-specialist .modal__section dt {
  margin: 0;
  line-height: var(--section-heading-line);
  color: inherit;
}
#modal-specialist .modal__section dt::before {
  content: "";
  position: absolute;
  inset-block-start: calc((var(--section-heading-line) - var(--timeline-dot-size)) / 2);
  inset-inline-start: calc(var(--section-rail-inset) + (var(--timeline-line-width) - var(--timeline-dot-size)) / 2);
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--timeline-ink);
}

@media (min-width: 900px) {
  #modal-specialist .modal__body { display: contents; }
  #modal-specialist .modal__photo {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
  }
  #modal-specialist .modal__content {
    grid-row: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 899px) {
  #modal-specialist .modal__panel { display: flex; flex-direction: column; padding: 0; }
  #modal-specialist .modal__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4.5rem 1.5rem 2rem;
  }
}
@media (max-width: 640px) {
  #modal-specialist .modal__panel { max-height: 100dvh; }
}

/* Keep the carousel track as a static grid for the current team. */
.specialisti__frame--static { grid-template-columns: minmax(0, 1fr); }
.specialisti__frame--static .specialist-carousel__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  overflow: visible;
  scroll-snap-type: none;
  cursor: auto;
}
.specialisti__frame--static .specialist-card { border-radius: 12px; }
.specialisti__frame--static .specialist-card h3 { font-size: clamp(1.125rem, 1.4vw, 1.25rem); }
.specialisti__frame--static .specialist-card__role,
.specialisti__frame--static .specialist-card__open { font-size: var(--fs-small); }
.specialisti__frame--static .specialist-card__photo { height: auto; aspect-ratio: 3 / 4; }

@media (min-width: 640px) {
  .specialisti__frame--static .specialist-carousel__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .specialisti__frame--static .specialist-carousel__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}
@media (max-width: 639px) {
  .specialisti__frame--static .specialist-carousel__track { max-width: 24rem; }
}

@media (min-width: 900px) { main#main > .section { scroll-margin-top: var(--scene-gap); } }

/* Hero reference proportions: full-height layered artwork and separate timeline */
@media (min-width: 900px) {
  #hero { height: auto; min-height: calc(100svh - 57 * var(--u)); }
  #hero .hero__art { left: 45%; top: 0; bottom: 0; width: 55%; height: 100%; }
  #hero .hero__content { position: absolute; top: 12%; width: 43%; padding-top: 0; padding-bottom: 0; }
  #hero .hero__lead { font-size: clamp(16px, 1.45vw, 21px); }
  #hero .hero__lead br { display: none; }
  #hero .hero__timeline {
    left: auto; right: 3.5%; top: 10%; bottom: auto;
    margin: 0; width: 10.5%; height: 56%; gap: 0;
  }
  #hero .hero__timeline li {
    padding-left: clamp(22px, 3vw, 42px);
    font-size: clamp(14px, 1.35vw, 19px); line-height: 1.3;
  }
  #hero .hero__timeline li::before { left: -2px; top: 5px; }
  #hero .hero__timeline li:nth-child(1) { color: #181717; }
  #hero .hero__timeline li:nth-child(2),
  #hero .hero__timeline li:nth-child(3) { color: var(--muted); }
}

/* Fixed Hero raster: transparent margins are part of the asset framing */
@media (min-width: 900px) {
  #hero { min-height: max(620px, calc(100svh - 57 * var(--u))); align-items: flex-start; }
  #hero .hero__art { left: 21%; top: auto; bottom: 0; width: 90%; height: auto; aspect-ratio: 1779 / 884; object-fit: contain; }
  #hero .hero__content { position: relative; left: 0; top: auto; padding-top: 8%; padding-bottom: 80px; width: 43%; }
  #hero .hero__timeline { top: 10%; right: 1%; height: 56%; }
  #hero .hero__timeline li { left: 0; }
}
@media (max-width: 899px) {
  #hero .hero__art { width: 135%; max-width: none; height: auto; aspect-ratio: 1779 / 884; margin-left: -35%; }
}

/* Approved master content correction pass, 2026-10-20. */
.hero__tags li + li::before { content: "·"; margin-right: 1em; }
.udhs__accent p { font-size: var(--fs-body); line-height: 1.55; }

.individual-services { padding-inline: 1.75rem; }
.section--final-cta h2 span { display: inline-block; }
@media (min-width: 900px) {
  .udhs__accent p { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.55; }
  .final-cta__frame { grid-template-columns: minmax(0, 1fr) auto; }
  .section--final-cta h2 { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .section--final-cta h2 { max-width: 10em; }
}

/* Application questionnaires inherit the approved local font and palette. */
.questionnaire { margin-block: 2.5rem; padding: clamp(1rem, 3vw, 2rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.questionnaire h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.questionnaire__question { min-width: 0; margin: 1.5rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card-sm); }
.questionnaire__question legend { float: left; width: 100%; margin-bottom: 1rem; padding: 0; font-weight: 500; }
.questionnaire__options { clear: both; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.questionnaire__options label { display: flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.questionnaire__options label { padding: .35rem .6rem; border: 1px solid transparent; border-radius: var(--radius-card-sm); }
.questionnaire__options label:has(input:checked) { background: var(--ivory); border-color: var(--border-strong); }
.questionnaire__options label:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: 2px; }
.questionnaire__options input { accent-color: var(--pine); width: 20px; height: 20px; flex-shrink: 0; }
.questionnaire__warning { background: #f1ddd3; color: #703d2b; padding: 1rem; border-radius: 12px; }
#questionnaire-review details { margin-block: 1rem; padding: 1rem; border: 1px solid #c9c8bb; border-radius: 12px; }
#questionnaire-review summary { cursor: pointer; font-weight: 500; }
#questionnaire-review li { margin-block: .8rem; }
.apply__summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
button:disabled { opacity: .65; cursor: wait; }
@media(max-width: 600px) {
  .questionnaire__options { flex-direction: column; }
  .apply__nav { flex-direction: column; align-items: stretch; }
  .apply__nav .btn { white-space: nowrap; }
}

/* Locale controls retain the approved text treatment and type scale. */
button.lang-switch__item { cursor: pointer; }
button.lang-switch__item:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (min-width: 900px) {
  /* Keep the LV line/dot anchor; translated labels wrap within the same track. */
  #hero .hero__timeline { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  #hero .hero__timeline li {
    min-width: 0;
    overflow-wrap: anywhere;
    padding-left: clamp(14px, 1.1vw, 16px);
  }
  html[lang="ru"] #hero .hero__headline {
    width: calc(45vw - clamp(40px, 5vw, 80px));
    max-width: 100%;
    font-size: clamp(36px, 4.05vw, 68px);
    line-height: clamp(62.4px, 5.2vw, 83.2px);
  }
  html[lang="en"] #hero .hero__headline { width: 7.8em; max-width: 65vw; }
}

/* LV service terms: readable document within the approved shared visual system */
.legal-page { padding: 8rem 1.5rem 5rem; }
.legal-page article { max-width: 820px; margin: 0 auto; }
.legal-page h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; hyphens: auto; overflow-wrap: anywhere; margin-bottom: 1.5rem; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; line-height: 1.25; margin: 0 0 1.25rem; }
.legal-page p, .legal-page li { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.legal-page p { margin-bottom: 1.2rem; }
.legal-page section { border-top: 1px solid var(--border-strong); padding-top: 2rem; margin-top: 3rem; }
.legal-page a { text-decoration: underline; text-underline-offset: .2em; }
.legal-number { font-weight: 600; margin-right: .35em; }
.legal-toc { background: var(--sand); border-radius: var(--radius-card-sm); padding: 1.5rem; margin: 2rem 0; }
.legal-toc ol { padding-left: 1.5rem; }
.legal-toc li + li { margin-top: .5rem; }
.legal-skip { position: fixed; top: -5rem; left: 1rem; z-index: 999; background: var(--ivory); padding: 1rem; }
.legal-skip:focus { top: 1rem; }
@media (max-width: 599px) { .legal-page { padding: 7rem 1.25rem 3rem; } .legal-toc { padding: 1.2rem; } }
@media print { .legal-page { padding: 0; } .site-header, .site-footer, .back-to-top, .legal-skip { display: none !important; } .legal-page section { break-inside: auto; } .legal-page h2 { break-after: avoid; } }

.legal-clause ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.5rem; }
.legal-clause li + li { margin-top: .4rem; }

/* Current service availability */
.service-status { color: var(--pine); margin-block: 1rem; }
.legal-notice { padding: 1.25rem; background: #f3ebe3; border-radius: 1rem; margin-block: 2rem; }

.program-tile--02 .service-status,
.program-card--02 .service-status { color: var(--ivory-on-pine); }
#programmu-detalas { scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
.specialist-card--upcoming .specialist-card__eyebrow,
.service-status {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3em 0.7em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-summary .service-status { margin-block: 0.25rem 0.65rem; }

.price-card--upcoming .service-status { margin-block: 0; color: var(--pine); }

/* Keep decorative artwork on cached layers while the page moves. */
.apple-webkit :is(.udhs__art, .programmas__art, .specialisti__art, .cenas__art, .final-cta__art) {
  transform: translateZ(0);
}
html.apple-webkit.section-scroll-active .site-header { backdrop-filter: none; }
