/* ==========================================================
   Kineziterapeutės Emilijos svetainė – stiliai
   Maketas: viskas centre; skilčių poros šalia viena kitos
   dideliuose languose; vienas ryškus akcentas – judantis spalvotas fonas.
   Spalvas ir šriftus keiskite tik :root bloke.
   ========================================================== */
:root {
  /* Spalvos (šviesi tema): Avietė ir mėta */
  --bg: #fff6f8;
  --surface: #ffffff;
  --surface-2: #ffe0e8;
  --ink: #3a1a24;
  --ink-soft: #6b4050;
  --primary: #b8325f;
  --primary-hover: #94244a;
  --primary-ink: #ffffff;
  --accent: #2bb3a0;
  --line: #f1c4d0;
  --focus: #a3003b;
  --blob-1: #ffc2d3;
  --blob-2: #a9eadf;
  --blob-3: #ffe3c9;

  /* Šriftai */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Dydžiai */
  --fs-body: 1.125rem;
  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1016;
    --surface: #2a1822;
    --surface-2: #35202c;
    --ink: #fbeef2;
    --ink-soft: #dcc0ca;
    --primary: #ff8fb0;
    --primary-hover: #ffa9c3;
    --primary-ink: #2a0f19;
    --accent: #4fd1bd;
    --line: #4a3340;
    --focus: #ffd479;
    --blob-1: #6b2340;
    --blob-2: #1d5f56;
    --blob-3: #5a3a2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1016;
  --surface: #2a1822;
  --surface-2: #35202c;
  --ink: #fbeef2;
  --ink-soft: #dcc0ca;
  --primary: #ff8fb0;
  --primary-hover: #ffa9c3;
  --primary-ink: #2a0f19;
  --accent: #4fd1bd;
  --line: #4a3340;
  --focus: #ffd479;
  --blob-1: #6b2340;
  --blob-2: #1d5f56;
  --blob-3: #5a3a2a;
  color-scheme: dark;
}

/* ---------- Bazė ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
html.text-large { font-size: 118.75%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--primary-hover); }
p { margin: 0 auto 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--primary-ink);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.center-col { display: grid; gap: 1.25rem; justify-items: center; max-width: 52rem; }
.center-col > p { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.7rem 1.5rem;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--surface); color: var(--primary-hover); border-color: var(--primary-hover); }
.btn--small { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Antraštė / meniu ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.site-header__bar { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; }
.brand { display: grid; line-height: 1.15; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand strong { font-family: var(--font-display); font-size: 1.3rem; }
.brand small { font-size: 0.85rem; color: var(--ink-soft); }
.nav-list { display: none; gap: 0.25rem; }
.nav-list a { white-space: nowrap; display: block; padding: 0.6rem 0.8rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 8px; }
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current="true"] { background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--accent); }
.menu-btn, .size-btn {
  min-height: 2.75rem; padding: 0.4rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--ink); background: transparent; border: 2px solid var(--line); border-radius: 999px;
}
.menu-btn[aria-expanded="true"], .size-btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--primary); }
.size-btn--header { display: none; min-width: 2.75rem; padding-inline: 0.7rem; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav ul { display: grid; padding-block: 0.5rem 1rem; }
.mobile-nav a { display: block; padding: 0.95rem 0.25rem; font-size: 1.2rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.size-btn--menu { margin-top: 1rem; width: 100%; font-size: 1.1rem; }

@media (min-width: 64rem) {
  .nav-list { display: flex; }
  .size-btn--header { display: inline-flex; align-items: center; justify-content: center; }
  .menu-btn, .mobile-nav { display: none; }
}
@media (max-width: 30rem) {
  .site-header__bar { gap: 0.5rem; }
  .site-header .btn--small, .menu-btn { padding-inline: 0.8rem; font-size: 0.95rem; }
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; justify-items: center; }
.hero__text { display: grid; gap: 1.4rem; justify-items: center; min-width: 0; }
.h1-sub {
  display: block; margin-top: 1rem; max-width: 26ch; margin-inline: auto;
  font-family: var(--font-body); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4; letter-spacing: 0; color: var(--ink-soft);
}
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0; max-width: 40ch; }
.hero__underline { width: min(14rem, 60%); height: 14px; margin-top: -0.2rem; }
.hero__underline path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.4s 0.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: center; color: var(--ink-soft); font-size: 1rem; }
.facts li { display: flex; align-items: center; gap: 0.5rem; text-align: left; }
.facts li::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); flex: none; }
.photo { margin: 0; width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px 28px 28px 120px; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

/* ---------- Poros šalia viena kitos ---------- */
.pair { display: grid; gap: 3.5rem; align-items: start; }
.pair__col { display: grid; gap: 1.25rem; justify-items: center; align-content: start; min-width: 0; }
.pair__col > * { max-width: 100%; }
.pair__col > p { margin-bottom: 0; color: var(--ink-soft); }
.pair__col > p:not(:last-of-type) { margin-bottom: 0; }
@media (min-width: 60rem) {
  .pair { grid-template-columns: 1fr 1fr; gap: 0; }
  .pair__col { padding-inline: clamp(1.5rem, 3vw, 3rem); }
  .pair__col:first-child { padding-left: 0; border-right: 1px solid var(--line); }
  .pair__col:last-child { padding-right: 0; }
}

/* Apie mane */
.creds { display: grid; gap: 0.8rem; width: 100%; max-width: 26rem; margin-top: 0.5rem; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: var(--radius); }
.creds li { display: grid; gap: 0.1rem; }
.creds span { color: var(--ink-soft); font-size: 0.95rem; }
.principles { display: grid; gap: 1.6rem; }
.principles h3 { margin-bottom: 0.35rem; }
.principles p { margin: 0 auto; color: var(--ink-soft); }

/* Akordeonai (Kam padedu, tikslai, DUK) */
.acc { width: 100%; max-width: 34rem; border-top: 1px solid var(--line); text-align: center; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.9rem;
  padding: 1.1rem 0.25rem; min-height: 3.5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font-family: var(--font-body); font-size: 1.5rem; line-height: 1; color: var(--primary); border: 2px solid currentColor;
}
.acc details[open] summary::after { content: "–"; }
.acc summary:hover { color: var(--primary); }
.acc__a { padding-bottom: 1.25rem; color: var(--ink-soft); }
.acc__a p:last-child { margin-bottom: 0; }
.acc--faq { max-width: 44rem; }

/* Pastaba po stulpeliu */
.panel-note { margin: 0.5rem auto 0; }

.help-note { margin: 3rem auto 0; padding: 1.1rem 1.4rem; background: var(--surface); border-radius: var(--radius); border-top: 5px solid var(--accent); width: 100%; max-width: 44rem; }
.help-note p { margin: 0; max-width: none; color: var(--ink); }

/* Paslaugos / nauda */
/* Kainų lentelė */
.price-table { width: 100%; max-width: 36rem; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.price-table thead th { padding: 0.7rem 1rem; background: var(--primary); color: var(--primary-ink); font-size: 0.95rem; font-weight: 600; }
.price-table th, .price-table td { padding: 1.1rem 1rem; vertical-align: middle; border-top: 1px solid var(--line); }
.price-table thead th { border-top: 0; }
.price-table tbody th { text-align: center; font-weight: 400; }
.price-table .pt-title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.35rem; }
.price-table .pt-desc { display: block; font-size: 1rem; color: var(--ink-soft); line-height: 1.55; }
.price-table .pt-price { width: 6.5rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; white-space: nowrap; }
.price-table .pt-incl { width: 6.5rem; font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.price-table__label td { padding: 0.6rem 1rem; background: var(--surface-2); font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.price-table__inc .pt-title { font-size: 1.05rem; }

.benefit-list { display: grid; gap: 1.2rem; max-width: 34rem; }
.benefit-list li::before { content: ""; display: block; margin: 0 auto 0.6rem; width: 2.5rem; height: 4px; border-radius: 2px; background: var(--accent); }
.disclaimer { font-size: 1rem; color: var(--ink-soft); padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 34rem; }

/* ---------- Pirmo vizito skirtukai ---------- */
.tabs { width: 100%; display: grid; gap: 1.25rem; justify-items: center; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.tab {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.5rem 1.25rem 0.5rem 0.6rem;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--primary); }
.tab__n { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface-2); font-family: var(--font-display); }
.tab[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.tab[aria-selected="true"] .tab__n { background: var(--primary-ink); color: var(--primary); }
.tabpanel { width: 100%; max-width: 40rem; padding: 1.75rem 1.5rem; background: var(--surface); border-radius: var(--radius); display: grid; gap: 0.6rem; }
.tabpanel p { margin: 0 auto; color: var(--ink-soft); }
.tabpanel[hidden] { display: none; }

/* ---------- Kontaktai ---------- */
.contact-card { width: 100%; max-width: 40rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 1.5rem; }
.contact-card dl { display: grid; gap: 1.1rem; margin: 0; }
.contact-card dt { font-size: 0.95rem; color: var(--ink-soft); }
.contact-card dd { margin: 0; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.copy-status { margin: -0.5rem auto 0; min-height: 1.5rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--surface-2); padding-block: 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 1rem; justify-items: center; }
.site-footer p { margin: 0; max-width: 70ch; }
.site-footer a { color: var(--ink); }

/* ---------- Atgal į viršų ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 2px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); font: inherit; font-size: 1.4rem; cursor: pointer;
}
.to-top[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__underline path { animation: none; stroke-dashoffset: 0; }
  .btn, .tab { transition: none; }
}

/* ---------- Judantis fonas (valdomas slinkimu: --sy nustato main.js) ---------- */
.bg-motion { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -22vmax; background: radial-gradient(circle, var(--blob-1) 0%, transparent 68%);
  transform: translate3d(calc(sin(var(--sy, 0) * 0.0021) * 9vmax), calc(var(--sy, 0) * 0.07px), 0); }
.blob--2 { width: 64vmax; height: 64vmax; right: -24vmax; top: 18vh; background: radial-gradient(circle, var(--blob-2) 0%, transparent 68%);
  transform: translate3d(calc(cos(var(--sy, 0) * 0.0017) * 9vmax), calc(var(--sy, 0) * -0.05px), 0); }
.blob--3 { width: 58vmax; height: 58vmax; left: 12vw; bottom: -30vmax; background: radial-gradient(circle, var(--blob-3) 0%, transparent 68%);
  transform: translate3d(calc(sin(var(--sy, 0) * 0.0014 + 2) * 10vmax), calc(var(--sy, 0) * -0.09px), 0); }
.wave { position: absolute; left: 0; right: 0; height: 90px; background-repeat: repeat-x; background-size: 360px 90px; opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 8%, transparent 22%, transparent 78%, #000 92%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 8%, transparent 22%, transparent 78%, #000 92%, #000 100%); }
.wave--1 { top: 24%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='90' viewBox='0 0 360 90'%3E%3Cpath d='M0 45 C45 5 135 5 180 45 S315 85 360 45' fill='none' stroke='%232bb3a0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position-x: calc(var(--sy, 0) * -0.35px); }
.wave--2 { top: 70%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='90' viewBox='0 0 360 90'%3E%3Cpath d='M0 45 C45 5 135 5 180 45 S315 85 360 45' fill='none' stroke='%23e0608a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position-x: calc(var(--sy, 0) * 0.22px); }
@media (prefers-reduced-motion: reduce) {
  .blob, .wave { transform: none; background-position-x: 0; }
}
