/* =====================================================================
   UAB REIDANA — pagrindinis stilių failas
   Struktūra:
   01. Kintamieji (spalvos, šriftai, tarpai, animacijų kreivės)
   02. Bazė ir tipografija
   03. Išdėstymo pagalbininkai
   04. Antraštė / navigacija
   05. Hero sekcija
   06. Nuotraukos ir medijos blokai
   07. Sekcijų komponentai (kortelės, plytelės, procesas, DUK)
   08. Formos ir mygtukai
   09. Poraštė
   10. Animacijos (pasirodymas, atšokimas, slinktis)
   11. Adaptyvumas (mobilieji)
   ===================================================================== */

/* ---------- 01. KINTAMIEJI ---------- */
:root {
  /* Spalvos — norint pakeisti svetainės spalvas, keiskite tik čia */
  --ink:        #0A0C0E;   /* pagrindinis tamsus fonas */
  --ink-2:      #101418;   /* šiek tiek šviesesnis fonas */
  --ink-3:      #171C21;   /* kortelių fonas */
  --paper:      #F6F4F0;   /* šviesus fonas */
  --paper-2:    #ECE8E1;
  --text:       #E9E7E2;   /* tekstas ant tamsaus */
  --text-dim:   #9AA1A8;   /* antrinis tekstas ant tamsaus */
  --text-dark:  #14181C;   /* tekstas ant šviesaus */
  --text-dark-dim: #5B646D;
  --brass:      #C9A45C;   /* akcentinė spalva (ant tamsaus fono) */
  --brass-soft: #E3C88C;
  --brass-dark: #7A5D1E;   /* ta pati akcentinė ant šviesaus fono (kontrastas 5:1) */
  --line:       rgba(255, 255, 255, .10);
  --line-dark:  rgba(10, 12, 14, .12);

  /* Tipografija */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Tarpai ir dydžiai */
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 10vw, 140px); /* vertikalus sekcijų tarpas */
  --r: 4px;                        /* kampų apvalinimas */

  /* Animacijų kreivės */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);   /* atšokimas (overshoot) */
  --ease-spring: cubic-bezier(.22, 1.3, .36, 1);    /* švelnus spyruokliavimas */
  --ease-soft:   cubic-bezier(.22, .8, .3, 1);      /* sklandus sulėtėjimas */
}

/* ---------- 02. BAZĖ IR TIPOGRAFIJA ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;         /* apsauga nuo horizontalios slinkties */
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;  /* ilgi žodžiai nesitęsia už ekrano */
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(40px, 7.2vw, 86px); }
h2 { font-size: clamp(31px, 4.6vw, 56px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brass); color: #0A0C0E; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brass); color: #0A0C0E; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 03. IŠDĖSTYMO PAGALBININKAI ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--sec); position: relative; }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--light .eyebrow { color: var(--text-dark-dim); }
.section--light .lead { color: var(--text-dark-dim); }
.section--tint { background: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--brass); flex: none;
  transform-origin: left; animation: lineGrow 1s var(--ease-soft) both;
}
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Naršymo kelias (breadcrumbs) */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 0; list-style: none;
  font-size: 13px; color: var(--text-dim);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--brass); opacity: .7; }
.crumbs a { transition: color .3s ease; }
.crumbs a:hover { color: var(--brass); }
.crumbs [aria-current="page"] { color: var(--text); }

.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.7;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 + .lead { margin-top: 22px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--light .rule { background: var(--line-dark); }

/* ---------- 04. ANTRAŠTĖ ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 12, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 30px; height: 30px; flex: none;
  transition: transform .6s var(--ease-bounce);
}
.logo:hover .logo__mark { transform: rotate(90deg) scale(1.08); }
.logo__text {
  font-weight: 800; font-size: 19px; letter-spacing: .18em;
  text-transform: uppercase;
}
.logo__text span { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  position: relative; padding: 6px 0;
  transition: color .25s ease, transform .45s var(--ease-bounce);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover { transform: translateY(-2px); }
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.header__cta { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone {
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .25s ease;
}
.header__phone:hover { color: var(--brass); }
.header__phone svg {
  width: 15px; height: 15px; color: var(--brass);
  transition: transform .5s var(--ease-bounce);
}
.header__phone:hover svg { transform: rotate(-14deg) scale(1.15); }

.burger {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; padding: 0; position: relative;
  transition: border-color .3s ease, transform .45s var(--ease-bounce);
}
.burger:active { transform: scale(.92); }
.burger span {
  position: absolute; left: 12px; width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform .45s var(--ease-bounce), opacity .3s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Per visą ekraną atsidarantis mobilus meniu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  width: 100%; height: 100vh; height: 100dvh;   /* 100dvh — be adreso juostos „šuolių“ */
  max-width: 100%; overflow-x: hidden; overflow-y: auto;
  background: var(--ink);
  padding: calc(84px + 24px) var(--pad) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: opacity .4s var(--ease-soft), clip-path .55s var(--ease-soft), visibility .55s;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }

.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-size: clamp(26px, 8vw, 34px); font-weight: 700; letter-spacing: -.03em;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-soft), transform .6s var(--ease-bounce), color .3s ease;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--brass); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .30s; }

/* Meniu apačia: mygtukai + kontaktai */
.mobile-menu__foot {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-soft), transform .6s var(--ease-bounce);
}
.mobile-menu.is-open .mobile-menu__foot {
  opacity: 1; transform: none; transition-delay: .36s;
}
.mobile-menu__actions { display: grid; gap: 12px; }
.mobile-menu .btn { font-size: 16px; padding: 17px 22px; width: 100%; }
.mobile-menu__contact {
  margin: 22px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-dim);
}
.mobile-menu__contact a { color: var(--text); font-weight: 600; }

/* ---------- 05. HERO ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding-top: 140px; padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: var(--ink);
}

/* Nuotraukos sluoksnis su lėtu priartėjimu ir parallax slinktimi */
.hero__photo {
  position: absolute; inset: -6% 0 -12% 0;
  overflow: hidden;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1; filter: none;
  transform: scale(1.14);
  animation: heroZoom 2.4s var(--ease-soft) .1s forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }

/* Perspektyvinė „lubų“ tinklelio scena virš nuotraukos */
.hero__stage {
  position: absolute; inset: 0; overflow: hidden;
  perspective: 720px; perspective-origin: 50% 92%;
  pointer-events: none;
}
.hero__plane {
  position: absolute; left: -30%; right: -30%; top: -46%; height: 150%;
  transform: rotateX(66deg) translateZ(0);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(to right, rgba(201,164,92,.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,164,92,.20) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  animation: planeDrift 38s linear infinite;
  will-change: background-position;
}
@keyframes planeDrift {
  to { background-position: 0 120px, 0 120px, 0 24px, 0 24px; }
}
.hero__glow {
  position: absolute; left: 50%; top: 18%;
  width: 120vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(201,164,92,.16), transparent 62%);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .75; }
  50%      { opacity: 1; }
}
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,12,14,.72) 0%, rgba(10,12,14,.38) 38%, transparent 66%),
    linear-gradient(to top, rgba(10,12,14,.80) 0%, rgba(10,12,14,.35) 34%, transparent 60%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 15ch; color: #FFFFFF; }
.hero .eyebrow { color: #C8CDD3; }
.hero h1 em {
  font-style: normal; color: var(--brass);
  display: inline-block;
}
.hero__lead {
  margin-top: clamp(32px, 3.4vw, 44px); max-width: 46ch;
  font-size: clamp(19px, 2.1vw, 23px); color: #F7F6F3; line-height: 1.5;
  font-weight: 500;
}
.hero__lead + .hero__sub { margin-top: 8px; }
.hero__sub {
  margin-top: 28px; max-width: 56ch;
  font-size: clamp(17px, 1.8vw, 20px); color: #C8CDD3; line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line); padding-top: 28px;
}
.hero__meta dt {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #B4BAC1; font-weight: 700;
}
.hero__meta dd {
  margin: 8px 0 0; font-size: clamp(15px, 1.5vw, 17px); font-weight: 600; color: #F7F6F3;
}

/* Slinkties užuomina hero apačioje */
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 20px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px;
  background: var(--brass);
  animation: scrollDot 1.9s var(--ease-soft) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: translateY(14px); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- 06. NUOTRAUKOS IR MEDIJOS ---------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r); background: var(--ink-3);
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-soft), filter .6s ease;
}
.media--wide { aspect-ratio: 16 / 10; }
.media--tall { aspect-ratio: 4 / 5; }
.media:hover img { transform: scale(1.05); }

/* Nuotrauka „atsidengia“ slenkant (užsklandos efektas) */
.media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--ink);
  transform-origin: bottom;
  transition: transform 1s var(--ease-soft);
}
.media.is-in::before { transform: scaleY(0); }
.section--light .media::before { background: var(--paper); }

/* ---------- 07. KOMPONENTAI ---------- */

/* Slenkanti juosta su raktiniais žodžiais */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; background: var(--ink-2);
}
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  /* Tarpai parinkti taip, kad vienas ciklas būtų platesnis už ekraną
     — kitaip tas pats pavadinimas matomas du kartus vienu metu. */
  display: inline-flex; align-items: center; gap: 52px;
  padding-right: 52px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.marquee__track span::after {
  content: ""; width: 5px; height: 5px; background: var(--brass);
  transform: rotate(45deg); flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Paslaugų kortelė */
.card {
  position: relative; overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; flex-direction: column;
  transition: border-color .4s ease, transform .55s var(--ease-bounce),
              box-shadow .55s var(--ease-soft), background .4s ease;
}
.card:hover {
  border-color: rgba(201,164,92,.45);
  transform: translateY(-8px);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,.9);
}
.card__art {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; background: #0E1215;
}
.card__art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.4) contrast(1.03) brightness(.85);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-soft), filter .6s ease;
}
.card:hover .card__art img {
  transform: scale(1.09);
  filter: grayscale(0) contrast(1.05) brightness(1);
}
.card__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,14,.85), rgba(10,12,14,.1) 60%),
              radial-gradient(120% 90% at 50% 0%, rgba(201,164,92,.22), transparent 70%);
  opacity: .85; transition: opacity .5s ease;
}
.card:hover .card__art::after { opacity: .55; }
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
/* Nuoroda kortelės apačioje – jos aktyvi zona ištempiama per visą kortelę,
   kad paspaudus bet kurioje kortelės vietoje būtų atidaromas paslaugos puslapis */
.card { cursor: pointer; }
.card__more {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin: 18px 0 0; font-size: 14px; font-weight: 700; color: var(--brass);
  text-decoration: none;
  transition: color .35s ease;
}
.card__more::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: var(--r);
}
.card__more:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.card__more:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
.card__more span { transition: transform .5s var(--ease-bounce); }
.card:hover .card__more span,
.card__more:hover span { transform: translateX(6px); }

.card__tags {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  /* Žymos – tik informacinės, jos nereaguoja į pelę */
  pointer-events: none;
}
.card__tags li {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px;
  transition: border-color .35s ease, color .35s ease, transform .45s var(--ease-bounce);
}
.card:hover .card__tags li { border-color: rgba(201,164,92,.35); color: var(--text); }

/* Objektų plytelės su nuotraukomis */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 24px 30px; color: #fff; isolation: isolate;
  transition: transform .55s var(--ease-bounce), box-shadow .5s var(--ease-soft);
}
.tile:hover { transform: translateY(-8px); box-shadow: 0 26px 60px -30px rgba(0,0,0,.65); }
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-soft);
}
.tile:hover img { transform: scale(1.08); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,12,14,.94) 6%, rgba(10,12,14,.45) 55%, rgba(10,12,14,.15));
  transition: opacity .5s ease;
}
/* Plytelė be nuotraukos (tekstinė) */
.tile--plain {
  min-height: 0; background: var(--paper-2); color: var(--text-dark);
  padding: 30px 26px 34px; border: 1px solid var(--line-dark);
  justify-content: flex-start;
}
.tile--plain::after { content: none; }

.tile__k {
  font-size: 12px; font-weight: 800; letter-spacing: .18em;
  color: var(--brass); text-transform: uppercase; margin: 0;
}
.tile h3 { margin: 12px 0 8px; color: #fff; }
.tile p { font-size: 14.5px; color: rgba(255,255,255,.78); margin: 0; }

/* Tekstinės plytelės spalvos — turi eiti PO bendrųjų .tile taisyklių,
   kitaip vienodo specifiškumo baltas tekstas nugalėtų ir šviesiame fone
   tekstas taptų neįskaitomas. */
.tile--plain .tile__k { color: var(--brass-dark); }
.tile--plain h3 { color: var(--text-dark); }
.tile--plain p { color: var(--text-dark-dim); }
.section--tint .tile--plain { background: var(--ink-3); border-color: var(--line); color: var(--text); }
.section--tint .tile--plain .tile__k { color: var(--brass); }
.section--tint .tile--plain h3 { color: var(--text); }
.section--tint .tile--plain p { color: var(--text-dim); }

/* Procesas — žingsniai */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding: 34px 0; border-top: 1px solid var(--line);
  align-items: start;
  transition: background .4s ease, padding-left .5s var(--ease-spring);
}
.step:hover { background: rgba(255,255,255,.02); padding-left: 14px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3 { color: var(--text); }
.step h3 a { position: relative; transition: color .3s ease; }
.step h3 a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.step h3 a:hover { color: var(--brass); }
.step h3 a:hover::after { transform: scaleX(1); transform-origin: left; }
.step p { color: var(--text-dim); font-size: 15.5px; }
.section--light .step { border-color: var(--line-dark); }
.section--light .step h3 { color: var(--text-dark); }
.section--light .step p { color: var(--text-dark-dim); }

/* Nuoroda „Peržiūrėti →“ paslaugų sąraše */
.step__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brass);
  text-decoration: none; transition: color .35s ease;
}
.step__more:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.step__more:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
.step__more span { transition: transform .5s var(--ease-bounce); }
.step:hover .step__more span, .step__more:hover span { transform: translateX(6px); }
.section--light .step__more:hover { color: var(--text-dark); }

/* Patalpų sąrašas žymomis (pvz. „Kur montuojame“) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
  transition: border-color .35s ease, color .35s ease, transform .45s var(--ease-bounce);
}
.chips li:hover { border-color: rgba(201,164,92,.45); color: var(--text); transform: translateY(-2px); }
.section--light .chips li { border-color: var(--line-dark); color: var(--text-dark-dim); }
.section--light .chips li:hover { color: var(--text-dark); }

/* Privalumų sąrašas su varnelėmis */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  align-items: start; font-size: 16px;
  transition: transform .45s var(--ease-bounce);
}
.checks li:hover { transform: translateX(6px); }
.checks li::before {
  content: ""; margin-top: 8px; width: 10px; height: 10px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg); flex: none;
}

/* DUK akordeonas su sklandžiu atsidarymu */
.faq { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 26px 48px 26px 0; position: relative;
  font-size: clamp(17px, 1.8vw, 20px); font-weight: 700;
  letter-spacing: -.02em; color: var(--text-dark);
  transition: color .3s ease, padding-left .45s var(--ease-spring);
}
.faq summary:hover { color: var(--brass-dark); padding-left: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 13px; height: 13px; margin-top: -8px;
  border-right: 1.5px solid var(--brass-dark); border-bottom: 1.5px solid var(--brass-dark);
  transform: rotate(45deg);
  transition: transform .5s var(--ease-bounce), margin-top .5s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
/* JS pridedamas .faq__inner leidžia animuoti aukštį */
.faq__inner {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-soft), opacity .4s ease;
  opacity: 0;
}
.faq details[open] .faq__inner { grid-template-rows: 1fr; opacity: 1; }
.faq details.is-closing .faq__inner { grid-template-rows: 0fr; opacity: 0; }
.faq details.is-closing summary::after { transform: rotate(45deg); margin-top: -8px; }
.faq__inner > div { overflow: hidden; }
.faq__inner p { padding: 0 60px 28px 0; color: var(--text-dark-dim); max-width: 78ch; margin: 0; }

/* Didelis kvietimas veiksmui */
.cta {
  background: var(--brass); color: #0A0C0E;
  padding-block: clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 20px; max-width: 52ch; color: rgba(10,12,14,.72); font-size: 17px; }
.cta__row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 36px;
}

/* Kontaktų sąrašas */
.contact-list { margin: 0; padding: 0; display: grid; gap: 2px; }
.contact-list > div {
  border-top: 1px solid var(--line); padding: 22px 0;
  transition: padding-left .45s var(--ease-spring);
}
.contact-list > div:hover { padding-left: 10px; }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700; margin-bottom: 8px;
}
.contact-list dd { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.contact-list dd a { transition: color .3s ease; }
.contact-list dd a:hover { color: var(--brass); }

/* ---------- 08. MYGTUKAI IR FORMA ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease,
              transform .5s var(--ease-bounce), box-shadow .4s var(--ease-soft);
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
/* Šviesos blyksnis perbėga per mygtuką */
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease-soft);
}
.btn:hover::after { left: 130%; }
.btn--primary { background: var(--brass); color: #0A0C0E; }
.btn--primary:hover { background: var(--brass-soft); box-shadow: 0 14px 34px -14px rgba(201,164,92,.7); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.hero .hero__actions .btn--ghost { border-color: var(--brass); }
.hero .hero__actions .btn--ghost:hover { background: var(--brass); color: #0A0C0E; }
.btn--dark { background: #0A0C0E; color: var(--paper); }
.btn--dark:hover { background: #1B2126; box-shadow: 0 14px 34px -16px rgba(0,0,0,.8); }
.btn--outline-dark { border-color: rgba(10,12,14,.35); color: #0A0C0E; }
.btn--outline-dark:hover { border-color: #0A0C0E; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim);
  transition: color .3s ease;
}
.field:focus-within label { color: var(--brass); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); font-family: inherit; font-size: 16px;
  transition: border-color .3s ease, background .3s ease, transform .4s var(--ease-spring);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255,255,255,.2); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brass); outline: none; background: var(--ink-3);
  transform: translateY(-2px);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: 13px; color: var(--text-dim); }
.form__note a { color: var(--brass); }

/* ---------- 09. PORAŠTĖ ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 84px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__about { max-width: 42ch; color: var(--text-dim); font-size: 15px; margin-top: 20px; }
.footer h4 {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a {
  font-size: 15px; color: var(--text);
  display: inline-block;
  transition: color .3s ease, transform .45s var(--ease-bounce);
}
.footer ul a:hover { color: var(--brass); transform: translateX(5px); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  align-items: center;
  font-size: 13.5px; color: var(--text-dim);
}
.footer__bottom p { margin: 0; }

/* Kūrėjo kreditas */
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit a { font-weight: 700; color: var(--text); transition: color .3s ease; }
.credit a:hover { color: var(--brass); }
.credit__heart {
  display: inline-block; color: #E0544F; font-size: 14px;
  animation: heartBeat 1.8s var(--ease-bounce) infinite;
  transform-origin: center;
}
@keyframes heartBeat {
  0%, 55%, 100% { transform: scale(1); }
  15%           { transform: scale(1.28); }
  30%           { transform: scale(1.05); }
  42%           { transform: scale(1.2); }
}

/* ---------- 10. ANIMACIJOS ---------- */

/* Bazinis pasirodymas su lengvu atšokimu */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .8s var(--ease-soft), transform .9s var(--ease-bounce);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Variantai */
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="pop"]   { transform: scale(.86); }
[data-reveal="mask"]  { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-soft); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

/* Antraštės žodžių pakilimas (JS suskaido tekstą į žodžius) */
.split-word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em; /* kad nenukirstų raidžių uodegėlių */
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transition: transform .9s var(--ease-bounce);
}
.is-in .split-word > span, .split-line.is-in .split-word > span { transform: none; }

/* Skaitymo progreso juosta */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-soft));
  z-index: 120; transition: width .12s linear;
}

/* Puslapio pasirodymas */
body { animation: pageIn .6s var(--ease-soft) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .media::before { display: none; }
  .split-word > span { transform: none; }
}

/* ---------- 11. ADAPTYVUMAS ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Navigacija, telefonas ir CTA keliauja į hamburger meniu */
  .nav, .header__phone, .header__cta > .btn { display: none; }
  .burger { display: block; }

  /* Šoninis pasirodymas mobiliajame keičiamas vertikaliu,
     kad elementas neišlįstų už ekrano krašto */
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(28px); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .step { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr; gap: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }

  /* Planšetėse / telefonuose sekcijos buvo per aukštos – mažiname
     vertikalius tarpus ir antraščių atskyrimą */
  :root { --sec: clamp(56px, 9vw, 84px); }
  .section-head { margin-bottom: clamp(28px, 5vw, 40px); }
  .media--tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  /* Tik plytelės su nuotrauka turi minimalų aukštį. Anksčiau ši taisyklė
     nugalėdavo „.tile--plain { min-height: 0 }“ (vienodas specifiškumas,
     bet vėlesnė vieta faile), todėl tekstinės plytelės telefone tapdavo
     323 px aukščio dėžėmis su dideliu tuščiu plotu. */
  .tile:not(.tile--plain) { min-height: 260px; }
  .tile--plain { padding: 20px 18px 22px; }
  .hero { min-height: auto; padding-top: 128px; }
  .hero__actions .btn { width: 100%; }
  .faq__inner p { padding-right: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Kompaktiškesnis mastelis telefone */
  :root { --sec: clamp(44px, 11vw, 64px); }
  h1 { font-size: clamp(32px, 8.4vw, 40px); }
  h2 { font-size: clamp(25px, 6.6vw, 31px); }
  h3 { font-size: 18px; }
  .lead { font-size: 16.5px; }
  .section-head { margin-bottom: 26px; }
  .card__body { padding: 20px 20px 22px; }
  .grid, .grid--2, .grid--3, .grid--4 { gap: 16px; }
}

/* Jutikliniuose ekranuose „hover“ gali užstrigti — didinimo efektų atsisakome,
   kad platus mygtukas neišplėstų puslapio į šoną */
@media (hover: none) {
  .btn:hover, .card:hover, .tile:hover, .checks li:hover,
  .footer ul a:hover, .nav a:hover { transform: none; }
  .step:hover, .faq summary:hover, .contact-list > div:hover { padding-left: 0; }
  .card:hover .card__art img, .tile:hover img, .media:hover img { transform: scale(1); }
}

@media print {
  .header, .mobile-menu, .progress, .hero__stage, .hero__photo, .marquee { display: none !important; }
  body { background: #fff; color: #000; animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
