/* =========================================================================
   Lankos klinika
   1. Fonts        5. Layout
   2. Tokens       6. Components
   3. Reset        7. Sections
   4. Typography   8. Motion
   ========================================================================= */

/* -------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: "LT Superior";
  src: url("/assets/fonts/lt-superior-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior";
  src: url("/assets/fonts/lt-superior-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior";
  src: url("/assets/fonts/lt-superior-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior";
  src: url("/assets/fonts/lt-superior-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior Serif";
  src: url("/assets/fonts/lt-superior-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior Serif";
  src: url("/assets/fonts/lt-superior-serif-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior Serif";
  src: url("/assets/fonts/lt-superior-serif-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Superior Mono";
  src: url("/assets/fonts/lt-superior-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------- 2. Tokens */

:root {
  --light: #f8f7f5;
  --surface: #f8f8f8;
  --surface-alt: #f1f1f1;
  --white: #fff;
  --dark: #020120;
  --black: #0e0e0e;
  --accent: #6d0b0a;
  --accent-hover: #560807;
  --accent-tint: #6d0b0a0f;
  --bg-1: #eceff4;
  --border-dark: #02012029;
  --border-strong: #02012033;

  /* Muted body text. The Webflow original used opacity .5, which measures
     3.9:1 — below AA. .6 keeps the same look at 5.5:1. */
  --muted-ink: rgb(2 1 32 / 0.6);

  --font-body: "LT Superior", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "LT Superior Serif", Georgia, "Times New Roman", serif;
  --font-mono: "LT Superior Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-label: 12px;
  --text-small: 14px;
  --text-body: 16px;
  --text-big: 20px;

  --h1: 80px;
  --h2: 56px;
  --h3: 40px;
  --h4: 32px;
  --h5: 24px;

  --tracking-4: -0.04em;
  --tracking-2: -0.02em;
  --tracking-8: 0.08em;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 40px;

  --gutter: 32px;
  --shell: 1800px;

  --section-y: 80px;      /* base .section padding */
  --section-top: 144px;   /* sections on the tinted background */

  --shadow-nav: 0 15px 20px #02012014;
  --shadow-menu: 0 15px 20px 0 var(--border-dark);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

@media (max-width: 991px) {
  :root { --section-y: 64px; --h1: 64px; --h2: 48px; }
}
@media (max-width: 767px) {
  :root { --h1: 56px; --h2: 40px; --h3: 36px; }
}
@media (max-width: 479px) {
  :root {
    --gutter: 16px; --section-y: 48px;
    --h1: 13vw; --h2: 36px; --h3: 32px; --h4: 24px; --h5: 20px;
  }
}

/* -------------------------------------------------------------- 3. Reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` would make body a scroll container and break
     position: sticky in the hero. */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dd, dl { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
/* <picture> must never affect layout — the <img> inside is what positions. */
picture { display: contents; }
picture source { display: none; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.visually-hidden, .sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 12px 20px; border-radius: var(--radius-xs);
  background: var(--accent); color: var(--light); font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------- 4. Type scale */

.text-h1 {
  font-family: var(--font-body);
  font-size: var(--h1);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
}
.text-h1.serif { font-family: var(--font-serif); font-weight: 400; }

.text-h2 {
  font-family: var(--font-body);
  font-size: var(--h2);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
}
.text-h2, .section__title { font-family: var(--font-serif); font-weight: 400; }

.section__title {
  font-size: var(--h2);
  line-height: 100%;
  letter-spacing: var(--tracking-4);
}

.text-h3 {
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-2);
}

.text-h4 {
  font-size: var(--h4);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-2);
}

.text-h5 {
  font-size: var(--h5);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-2);
}

.text-big { font-size: 16px; font-weight: 400; line-height: 140%; }
.text-body { font-size: var(--text-body); font-weight: 400; line-height: 140%; }

@media (max-width: 767px) { .text-big { font-size: 20px; } }
@media (max-width: 479px) {
  .text-big { font-size: 16px; line-height: 150%; }
  .text-body { font-size: 14px; }
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 16px;
  letter-spacing: var(--tracking-8);
  text-transform: uppercase;
}
.label--light { color: var(--light); }
@media (max-width: 479px) { .label { font-size: 10px; line-height: 12px; } }

/* A 1px rule that opens several sections. */
.rule { display: block; width: 100%; height: 1px; background-color: var(--border-dark); }
.prices__headline .rule,
.testimonials__headline .rule,
.faq__headline .rule,
.rule--about { margin-bottom: 64px; }

@media (max-width: 479px) {
  .prices__headline .rule,
  .testimonials__headline .rule,
  .faq__headline .rule,
  .rule--about { margin-bottom: 48px; }
}

/* ------------------------------------------------------------- 5. Layout */

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background-color: var(--light);
}

/* Every section but the services band sits on the tinted background and
   opens with a taller 144px gap. */
.section--surface { background-color: var(--surface); padding-top: var(--section-top); }

/* --------------------------------------------------------- 6. Components */

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--light);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 150%;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s, color 0.2s;
}

.btn--sm { padding: 8px 16px; font-size: var(--text-small); }

.btn--ghost { background-color: transparent; color: var(--dark); }

/* Block, like the original wraps its label — a bare text node becomes an
   anonymous flex item with a taller line box. */
.btn__label { display: block; }

/* The arrow is hidden at rest and animates in on hover — Webflow's
   "CTA / Hover": width 0 -> 20px (250ms), x -10px -> 5px (300ms) and
   opacity 0 -> 1 (250ms). The button's overflow:hidden clips it until then. */
.btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: width 250ms ease, opacity 250ms ease, transform 300ms ease;
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  width: 20px;
  opacity: 1;
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .btn__arrow { transition: none; }
}

@media (max-width: 479px) {
  .btn { padding: 10px 24px; font-size: var(--text-label); }
  .btn__arrow { display: none; }
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 999;
  top: 16px;
  left: 24px;
  right: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px 24px;
  border-radius: var(--radius-pill);
  background-color: var(--white);
  box-shadow: var(--shadow-nav);
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

/* Transparent only while sitting over the hero. */
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav {
  background-color: transparent;
  box-shadow: none;
}

.nav__brand { flex: none; }
.nav__logo { width: 115px; height: 29px; }
.nav__logo--light { display: none; }
.nav__logo--dark { display: block; }
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav__logo--light { display: block; }
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav__logo--dark { display: none; }

.nav__list { display: flex; align-items: center; gap: 24px; }

.nav__link { color: var(--dark); font-weight: 500; transition: color 0.2s, opacity 0.2s; }
.nav__link:hover { opacity: 0.5; }
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav__link { color: var(--white); }

/* Section currently in view. */
.nav__link[aria-current] { color: var(--accent); }
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav__link[aria-current] {
  color: var(--white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
}
.nav__toggle-bars { display: block; width: 20px; }
.nav__toggle-bars i {
  display: block; height: 1.5px; background: var(--dark);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav__toggle-bars i:first-child { margin-bottom: 6px; }
.site-header[data-overlay="true"]:not([data-pinned="true"]):not([data-menu-open="true"]) .nav__toggle-bars i { background: var(--white); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 991px) {
  .site-header { top: 12px; left: 16px; right: 16px; }
  .nav { padding: 12px 16px; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: inline-flex; align-self: flex-start; margin-top: 8px; }

  .nav__menu {
    position: absolute;
    inset: calc(100% + 20px) 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    max-height: 80svh;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--white);
    box-shadow: var(--shadow-menu);
    overflow: auto;
  }
  .nav__menu[data-open="true"] { display: flex; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; color: var(--dark); padding-block: 16px; }
}

/* ----------------------------------------------------------- 7. Sections */

/* Hero ------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  /* The Webflow original pinned for 300vh, which meant three screens of
     scrolling before any content. Shortened; --hero-shrink in site.js is
     matched to it. */
  height: 180vh;
  padding: 8px 8px 0;
  background-color: var(--surface);
}

.hero__sticky {
  position: sticky;
  top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 98vh;
}

/* The element the scroll interaction resizes. Everything visible in the hero
   lives inside it, so the card and its headline shrink together. */
.hero__frame {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  margin-top: auto;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--black);
  opacity: 0.2;
}

.hero__container { position: relative; z-index: 2; }

.hero__master {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 80px;
}

.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__headline { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.hero__brand { display: flex; flex-direction: column; justify-content: center; height: 32px; }
.hero__brand img { height: 100%; width: auto; }

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
  color: var(--light);
}

@media (max-width: 991px) {
  .hero { height: auto; }
  /* No longer pinned, but still the containing block for the image. */
  .hero__sticky { position: relative; top: auto; }
  .hero__master { padding-bottom: 64px; }
  .hero__brand { height: 25px; }
}
@media (max-width: 767px) {
  .hero__sticky { height: auto; }
  .hero__master { padding-top: 250px; }
}
@media (max-width: 479px) {
  .hero__master { padding-bottom: 48px; }
  .hero__image { object-position: -170px 0; }
  /* .text-h1.serif.white gains 10px of vertical padding at this step, and
     the second line pulls back up by the same amount. Applied to the text
     inside each mask, not the mask itself. */
  .hero__title [data-reveal],
  .cta-band__title [data-reveal] { padding-block: 10px; }
  .hero__title .reveal-line + .reveal-line { margin-top: -20px; }
}

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

.section--about { padding-bottom: 120px; }
@media (max-width: 991px) { .section--about { padding-bottom: 64px; } }
@media (max-width: 767px) { .section--about { padding-bottom: 128px; overflow: hidden; } }
@media (max-width: 479px) { .section--about { padding-bottom: 96px; } }

.about__doodle { position: absolute; z-index: -1; bottom: -241px; left: 20px; pointer-events: none; }

.about__halves { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }

.about__right { display: flex; flex-direction: column; gap: 80px; }

.about__lead {
  font-size: var(--h4);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-2);
}

.stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 64px; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 32px;
  border-left: 1px solid var(--border-dark);
}

.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
}

.stat__label { font-size: var(--text-body); }

@media (max-width: 991px) {
  .about__halves { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 479px) {
  .stats { grid-template-columns: 1fr; column-gap: 8px; row-gap: 32px; }
  .stat { gap: 24px; padding-left: 16px; }
}
@media (max-width: 767px) { .about__halves { gap: 32px; } }

/* Highlights ------------------------------------------------------------- */

.section--highlights { background-color: var(--surface); }
@media (max-width: 767px) { .section--highlights { padding-top: 0; } }

.highlights { display: flex; gap: 24px; }

.highlight {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 50%;
  min-height: 500px;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--light);
  transition: width 0.5s;
}
/* The hovered card grows and pushes the other one narrower. */
@media (hover: hover) and (min-width: 992px) {
  .highlight:hover { width: 120%; }
}

.highlight__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
/* The original layers a flat 20% black wash over each card photo. */
.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: rgb(0 0 0 / 0.2);
}

.highlight__text { display: flex; flex-direction: column; }
.highlight__title { color: var(--light); }

/* The link sits in a collapsed mask and slides out on hover, as in the
   original. Pointer-less devices get it permanently, since they cannot hover. */
.highlight__reveal {
  display: block;
  max-height: 56px;
  overflow: hidden;
}
.highlight__cta { display: block; padding-top: 16px; color: var(--white); text-decoration: underline; }

@media (hover: hover) {
  .highlight__reveal {
    max-height: 0;
    transition: max-height 0.4s var(--ease-out);
  }
  .highlight:hover .highlight__reveal,
  .highlight:focus-visible .highlight__reveal { max-height: 56px; }
}

/* Decorative torn-paper strips that overlap the neighbouring sections. */
.strip { width: 100%; height: 70px; background-position: 0 0; background-size: cover; }
.strip--top { background-image: url("/assets/images/top-part.svg"); margin-bottom: -30px; }
.strip--bottom { background-image: url("/assets/images/bottom-part.svg"); margin-top: -40px; }

@media (max-width: 991px) { .highlights { gap: 16px; } }
@media (max-width: 767px) {
  .highlights { flex-direction: column; }
  .highlight { width: 100%; height: 400px; min-height: 400px; }
}
@media (max-width: 479px) {
  .highlight { height: auto; min-height: 350px; padding: 32px; border-radius: var(--radius-md); }
}

/* Services --------------------------------------------------------------- */

.section--services {
  background-color: var(--surface-alt);
  padding-top: 120px;
  overflow: clip;
}

.services__doodle { position: absolute; pointer-events: none; }
.services__doodle--a { width: 300px; top: 40px; right: -70px; }
.services__doodle--b { width: 200px; top: 170px; right: 260px; }

.services__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 120px;
}
.services__headline .section__title { max-width: 640px; }

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 32px;
  /* Full-bleed to the right edge whatever the container width, plus trailing
     room so the final card can reach a snap position. */
  margin-right: calc(50% - 50vw);
  padding-right: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.carousel__track, .carousel__slide { height: 528px; }
.carousel__slide { flex: none; width: min(30vw, 480px); scroll-snap-align: start; }

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 528px;
  padding: 40px;
  border-radius: var(--radius-md);
  background-color: var(--white);
}

.service-card__top { display: flex; flex-direction: column; gap: 32px; }
.service-card__number { color: var(--accent); }

/* The original parks the arrows as an absolute overlay level with the
   section heading, not in a row under the cards. */
.carousel__nav {
  position: absolute;
  z-index: 3;
  top: 24%;
  right: 4%;
  display: flex;
  gap: 8px;
}

.carousel__btn {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-xs);
  background-color: var(--white);
  color: var(--dark);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.carousel__btn:hover { background-color: var(--accent); color: var(--light); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__btn[disabled]:hover { background-color: var(--white); color: var(--dark); }

@media (max-width: 991px) {
  .services__headline { margin-bottom: 80px; }
  .carousel__nav { top: 21%; }
  .carousel__slide { width: min(45vw, 480px); }
  .carousel__track { gap: 16px; }
}
@media (max-width: 767px) {
  .carousel__nav { top: 20%; }
  .carousel__slide { width: 80vw; }
  .service-card { height: 420px; gap: 56px; }
}
@media (max-width: 479px) {
  .services__headline { margin-bottom: 48px; }
  .carousel__nav { top: 19%; }
  .carousel__slide { width: 90vw; }
  .service-card { padding: 32px; }
  .service-card__top { gap: 24px; }
}

/* Team ------------------------------------------------------------------- */

.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

.team__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.team__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
}

.team__photo {
  max-width: 1000px;
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
}
.team__list > li:last-child .team-card { margin-bottom: 0; }

.team-card__name { font-size: 16px; font-weight: 500; }
.team-card__role { font-size: 16px; color: var(--muted-ink); }

.team-card__licenses {
  display: flex;
  flex-direction: column;
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 140%;
  color: var(--muted-ink);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .team__grid { grid-template-columns: 1fr; }
  .team__headline { max-width: 1000px; }
  .team__headline { max-width: 1000px; }
  .team__photo { width: 100%; height: 400px; }
}
@media (max-width: 767px) { .team__grid { gap: 56px; } .team__photo { height: 350px; } }
@media (max-width: 479px) {
  .team__grid { gap: 32px; }
  .team__photo { height: 300px; }
  .team-card { flex-direction: column; }
}

/* CTA band --------------------------------------------------------------- */

.section--cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 144px 8px 40px;
  background-color: var(--surface);
}

.cta-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--shell);
  height: 800px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band__scrim { position: absolute; inset: 0; z-index: -1; background-color: var(--black); opacity: 0.4; border-radius: var(--radius-md); }

.cta-band__doodle { position: absolute; pointer-events: none; }
.cta-band__doodle--a { z-index: 10; width: 180px; bottom: -20px; left: -30px; }
.cta-band__doodle--b { z-index: 11; width: 180px; bottom: 40px; right: 0; }

.cta-band__inner { display: flex; }

/* The original centres a max-863px column and left-aligns it on mobile. */
.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 863px;
  margin-inline: auto;
  text-align: center;
  color: var(--light);
}

/* Heading is h1-sized here, not h2. */
.cta-band__title {
  font-family: var(--font-serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
  color: var(--light);
}

@media (max-width: 991px) {
  .cta-band__content { align-items: flex-start; }
}
@media (max-width: 767px) {
  .cta-band__content { text-align: left; }
}

@media (max-width: 991px) {
  .section--cta { padding: 144px 24px 40px; }
  .cta-band { height: auto; padding-block: 200px; }
  .cta-band__doodle--a { width: 140px; left: -10px; }
  .cta-band__doodle--b { width: 140px; }
}
@media (max-width: 767px) { .cta-band { padding-block: 150px; } }
@media (max-width: 479px) { .section--cta { padding-inline: 16px; } }
@media (max-width: 479px) { .cta-band { padding-block: 100px; overflow: hidden; } }

/* Why us ----------------------------------------------------------------- */

/* Behind the cards, like the other decorations — it sits inside .container,
   so without this it paints over the text. */
.why__doodle { position: absolute; z-index: -1; width: 250px; bottom: 0; left: 0; pointer-events: none; }

.why__halves { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }

.why__headline { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.why__headline .text-h2 { display: flex; flex-direction: column; }

.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.why-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  border-radius: var(--radius-md);
  background-color: var(--white);
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--accent-tint);
}
.why-card__icon img { width: 32px; height: 32px; }

.why-card__text { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 991px) {
  .why__halves { grid-template-columns: 1fr; }
  .why__grid { gap: 16px; }
}
@media (max-width: 767px) { .why__grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .why-card { gap: 24px; padding: 32px; }
  .why-card__icon { width: 48px; height: 48px; }
  .why-card__icon img { width: 20px; height: 20px; }
}

/* Prices ----------------------------------------------------------------- */

.prices__headline { margin-bottom: 120px; }
.prices__headline .section__title { max-width: 640px; }

/* Positioning context for the "back to top" button, which the original
   parks partway down the tab list rather than after it. */
.prices__body { position: relative; }

.tabs { display: flex; }

.tabs__side {
  width: 30%;
  flex: none;
  margin-right: 64px;
  position: sticky;
  /* clears the fixed navbar */
  top: 116px;
  align-self: flex-start;
}

.tabs__list { display: flex; flex-direction: column; }

.tabs__tab {
  padding: 19px 30px 19px 0;
  border-bottom: 1px solid var(--border-strong);
  font-size: var(--text-big);
  font-weight: 500;
  line-height: 100%;
  text-align: left;
  color: var(--dark);
  transition: color 0.2s, border-color 0.2s;
}
.tabs__tab:hover { color: var(--accent); }
.tabs__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); letter-spacing: 0; }

.tabs__panel { width: 70%; flex: 1; }

.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

.price-row__name { font-size: 16px; line-height: 24px; }

.price-row__value {
  min-width: 80px;
  align-self: center;
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
  text-align: right;
}

.prices__foot { margin-top: 32px; display: flex; align-items: flex-start; }

@media (max-width: 991px) {
  .prices__headline { margin-bottom: 64px; }
  .price-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tabs { flex-direction: column; }
  .tabs__side { width: 100%; margin-right: 0; position: static; }
  .tabs__panel { width: 100%; margin-top: 120px; }
}
@media (max-width: 479px) {
  .prices__headline { margin-bottom: 48px; }
  .tabs__panel { margin-top: 100px; }
  .price-row { margin-inline: 8px; }
}

/* Testimonials ----------------------------------------------------------- */

.testimonials__headline { margin-bottom: 120px; }

.testimonials__head { display: flex; justify-content: space-between; }
.testimonials__actions { display: flex; justify-content: flex-start; align-items: center; gap: 16px; }

.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 416px;
  padding: 40px;
  border-radius: var(--radius-md);
  background-color: var(--white);
}
.testimonial > figure { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

.testimonial__quote {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 140%;
}

.testimonial__author {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

@media (max-width: 991px) {
  .testimonials__headline { margin-bottom: 64px; }
  .testimonials { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 767px) { .testimonials__head { flex-direction: column; gap: 24px; } }
@media (max-width: 767px) {
  .testimonials { grid-template-columns: 1fr; }
  .testimonial { height: 300px; }
}
@media (max-width: 479px) {
  .testimonials__headline { margin-bottom: 48px; }
  .testimonial { height: 360px; padding: 32px; }
}

/* FAQ -------------------------------------------------------------------- */

.faq__headline { margin-bottom: 120px; }

/* Two independent columns, so the questions read top-to-bottom down the
   left column and then down the right — as in the original. */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.faq__column { display: block; }

.faq__details { border-bottom: 1px solid var(--border-dark); }

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-block: 24px;
  font-size: var(--text-big);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: var(--tracking-2);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }

.faq__marker { position: relative; flex: none; width: 12px; height: 12px; margin-top: 4px; }
.faq__marker::before, .faq__marker::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.faq__marker::before { inset: 5.25px 0; height: 1.5px; }
.faq__marker::after  { inset: 0 5.25px; width: 1.5px; }
.faq__details[open] .faq__marker::after { transform: rotate(90deg); opacity: 0; }

.faq__answer { padding-top: 24px; padding-bottom: 24px; font-size: var(--text-body); line-height: 140%; }

@supports (interpolate-size: allow-keywords) {
  .faq__details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
  }
  .faq__details[open]::details-content { block-size: auto; }
}

@media (max-width: 991px) {
  .faq__headline { margin-bottom: 64px; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .faq__headline { margin-bottom: 48px; }
  .faq__question { gap: 16px; }
  .faq__answer { padding-top: 20px; }
}

/* Contacts --------------------------------------------------------------- */

.contacts__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.contacts__photo { max-width: 557px; height: 848px; border-radius: var(--radius-md); overflow: hidden; }
.contacts__photo img { width: 100%; height: 100%; object-fit: cover; }

.contacts__body { display: flex; flex-direction: column; gap: 64px; padding-top: 32px; }
.contacts__headline { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contacts > li { display: flex; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  height: 100%;
  padding: 40px;
  border-radius: var(--radius-md);
  background-color: var(--white);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  flex: none;
  border-radius: var(--radius-md);
  background-color: var(--accent-tint);
}
.contact-card__icon img { width: 32px; height: 32px; }

.contact-card__text { display: flex; flex-direction: column; gap: 16px; }
.contact-card__value { font-size: 16px; line-height: 140%; }
.contact-card__hours { display: block; }

@media (max-width: 991px) {
  .contacts__layout { grid-template-columns: 1fr; gap: 48px; }
  .contacts__photo { max-width: none; height: 500px; }
  .contacts__body { gap: 48px; }
}
@media (max-width: 767px) { .contacts { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 479px) {
  .section--contacts { padding-bottom: 64px; }
  .contacts__photo { height: 300px; }
  .contacts__body { padding-top: 0; }
  .contact-card { gap: 24px; padding: 32px; }
  .contact-card__icon { width: 48px; height: 48px; }
  .contact-card__icon img { width: 20px; height: 20px; }
}

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

.site-footer { background-color: var(--surface); padding-block: 60px; overflow: hidden; }

.footer__halves { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.footer__left { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.footer__brand { display: block; height: 32px; }
.footer__brand img { height: 100%; width: auto; }
.footer__blurb { max-width: 450px; font-size: var(--text-body); line-height: 140%; }

.footer__right { display: flex; gap: 107px; margin-right: 75px; }
.footer__column { display: flex; flex-direction: column; gap: 28px; flex: none; }
.footer__heading { opacity: 0.6; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }

.footer__link { display: block; font-size: var(--text-big); font-weight: 500; line-height: 150%; }
.footer__link:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding-block: 32px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
}

.text-small { font-size: var(--text-small); font-weight: 400; line-height: 142%; }
.footer__credit { text-decoration: underline; }

@media (max-width: 991px) {
  .footer__halves { grid-template-columns: 1fr; gap: 56px; }
  .footer__right { margin-right: 0; }
}
@media (max-width: 767px) {
  .footer__right { flex-wrap: wrap; column-gap: 64px; row-gap: 56px; }
  .footer__bottom { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 479px) {
  .footer__right { flex-direction: column; column-gap: 56px; row-gap: 48px; }
  .footer__link { font-size: var(--text-body); }
  .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Legal + error pages ---------------------------------------------------- */

.section--legal { padding-top: 200px; background-color: var(--white); }
.legal { display: flex; flex-direction: column; gap: 56px; }

.legal__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: var(--tracking-4);
}

.legal__body { max-width: 78ch; display: flex; flex-direction: column; gap: 12px; }
.legal__body h2 { margin-top: 32px; font-size: var(--h5); font-weight: 600; letter-spacing: var(--tracking-2); }
.legal__body p { line-height: 160%; }
.legal__body a { color: var(--accent); text-decoration: underline; }
.legal__body ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }

.section--error { padding-top: 200px; min-height: 70svh; }
.error { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.error__code { font-family: var(--font-mono); color: var(--accent); letter-spacing: var(--tracking-8); }
.error__title { font-family: var(--font-serif); font-size: var(--h2); font-weight: 400; line-height: 100%; }
.error__body { max-width: 46ch; }
.error .btn { margin-top: 12px; }

/* ------------------------------------------------------------- 8. Motion */

/* Masked line reveal. The original wrapped each line in a .hide box that
   pads for descenders and pulls the padding back off with negative margins,
   so the mask never changes the layout height. */
.reveal-line {
  display: block;
  margin: -8px 0 -15px;
  padding: 8px 0 15px;
  overflow: hidden;
}

/* Only the masked lines need forcing to block — anything else keeps its own
   display, or a `display: block` here would flatten .btn's inline-flex. */
.reveal-line > [data-reveal] { display: block; }

[data-reveal] {
  transform: translateY(200%);
  transition:
    transform 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    opacity 0.6s ease var(--reveal-delay, 0ms);
}

/* Anything not inside a mask fades and rises a short distance instead. */
:not(.reveal-line) > [data-reveal] { transform: translateY(24px); opacity: 0; }

[data-reveal].is-revealed { transform: translateY(0); opacity: 1; }
.no-js [data-reveal] { transform: none; opacity: 1; }

/* Scroll-linked hero shrink.
   Driven from site.js rather than a CSS scroll timeline, because the original
   interaction carries Webflow's `smoothing: 90` — the animated value chases
   the scroll position by 10% per frame instead of tracking it exactly, and
   that trailing lag is a visible part of the effect. Without JS the hero
   simply stays at full size. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { transform: none !important; opacity: 1 !important; }
  .hero__frame { width: 100% !important; height: 100% !important; }
}

/* --------------------------------------------------- 9. Price search */

.price-search { position: relative; margin-bottom: 24px; }

.price-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-search__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.price-search__icon { flex: none; color: var(--muted-ink); }

.price-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-small);
  color: inherit;
  outline: none;
}
.price-search__input::placeholder { color: var(--muted-ink); }

.price-search__clear {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  line-height: 1;
  color: var(--muted-ink);
}
.price-search__clear:hover { background-color: var(--surface-alt); color: var(--dark); }

.price-search__results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 340px;
  padding: 6px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: var(--shadow-menu);
  overflow-y: auto;
}

.price-search__result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.price-search__result:hover,
.price-search__result[aria-selected="true"] { background-color: var(--surface-alt); }

.price-search__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-search__name { font-size: var(--text-small); line-height: 1.35; }
.price-search__name mark { background: none; color: var(--accent); font-weight: 600; }

.price-search__category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-8);
  text-transform: uppercase;
  color: var(--muted-ink);
}

.price-search__price {
  flex: none;
  font-size: var(--text-small);
  color: var(--accent);
}

.price-search__empty {
  padding: 12px;
  font-size: var(--text-small);
  color: var(--muted-ink);
}

/* Flash the row the patient picked. */
.price-row.is-found {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  animation: price-found 2.4s ease-out;
}
@keyframes price-found {
  0%, 60% { background-color: var(--accent-tint); }
  100% { background-color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  .price-row.is-found { animation: none; }
}

/* ------------------------------------------------ 10. Cookie consent */

.consent {
  position: fixed;
  z-index: 900;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1040px;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: 0 16px 40px rgb(2 1 32 / 0.16);
  pointer-events: auto;

  /* Slides up once JS decides it should be shown. */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.consent[data-open="true"] .consent__inner { opacity: 1; transform: translateY(0); }

.consent__text { display: flex; flex-direction: column; gap: 4px; }

.consent__title {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-8);
  text-transform: uppercase;
}

.consent__text a { color: var(--accent); text-decoration: underline; }

.consent__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.consent__actions .btn--ghost { box-shadow: inset 0 0 0 1px var(--border-strong); }
.consent__actions .btn--ghost:hover { background-color: var(--surface-alt); }

/* Reopen link in the footer. */
.footer__cookies {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer__cookies:hover { color: var(--accent); }

@media (max-width: 767px) {
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .consent__actions { justify-content: stretch; }
  .consent__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .consent__inner { transition: none; }
}

@media print { .consent { display: none !important; } }

/* --------------------------------------------------------- 11. Print */

@media print {
  .site-header,
  .site-footer,
  .hero,
  .section--highlights,
  .section--services,
  .section--cta,
  .section--why,
  .section--testimonials,
  .strip,
  .prices__foot,
  .price-search,
  .carousel__nav,
  .skip-link,
  .about__doodle,
  .why__doodle { display: none !important; }

  /* Print the price list as a plain document: every category, no tabs. */
  .section,
  .section--surface { padding: 0 !important; background: #fff !important; }

  .container { max-width: none; padding: 0; }

  .tabs { display: block; }
  .tabs__list { display: none; }
  .tabs__panel {
    display: block !important;
    width: 100%;
    margin: 0 0 24px;
    break-inside: auto;
  }
  .tabs__panel[hidden] { display: block !important; }

  /* Repeat the category name as a heading above each block. */
  .tabs__panel::before {
    content: attr(data-category);
    display: block;
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 600;
  }

  .price-list { display: block; }

  .price-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: none;
    break-inside: avoid;
  }
  .price-row__value { color: #000; }

  #kainos::before {
    content: "Lankos klinika – paslaugų kainynas";
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
  }

  .section--faq, .section--team, .section--about, .section--contacts { display: none; }

  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

/* -------------------------------------------------- 12. Price notes */

/* Sits in the same column as the price list: the category rail is 30% wide
   with a 64px gutter, so the notes start exactly where the rows do. */
.price-notes {
  margin-top: 24px;
  margin-left: calc(30% + 64px);
  padding: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

.price-notes__title { margin-bottom: 14px; color: var(--muted-ink); }

.price-notes__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-small);
  line-height: 1.5;
}

.price-notes__list li { position: relative; padding-left: 18px; }
.price-notes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
}

@media (max-width: 767px) {
  .price-notes { margin-left: 0; padding: 20px; }
}
