/* ==========================================================================
   Medlaja — baldų gamintojų šablonas
   Tokenai → bazė → komponentai → sekcijos
   ========================================================================== */

/* ---------- Šriftai (savi, be Google Fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokenai ---------- */
:root {
  --ink: #14120f;
  --ink-2: #1c1915;
  --ink-3: #27221b;
  --paper: #f2ede4;
  --paper-dim: #b9b1a3;
  --paper-deep: #e9e2d4;
  --line: rgba(242, 237, 228, 0.14);
  --line-strong: rgba(242, 237, 228, 0.28);
  --bronze: #b08d57;
  --bronze-lit: #d2b07a;
  --bronze-deep: #7a5f35;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.5rem + 5vw, 6.2rem);

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 68px;
  --section-y: clamp(72px, 10vw, 148px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Bazė ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* plėvelės grūdėtumas, kad nuotraukos atrodytų kaip vieno fotografo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--bronze-lit);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Tipografija ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.display em { font-style: italic; font-weight: 300; color: var(--bronze-lit); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-lit);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--paper-dim); max-width: 52ch; }

/* ---------- Mygtukai ---------- */
.btn {
  --btn-bg: var(--bronze);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { --btn-bg: var(--bronze-lit); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(242, 237, 228, 0.08); border-color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-lit);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 16px; }

/* ---------- Antraštė ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav { display: none; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.25s;
}
.nav a:hover { color: var(--paper); }
.header-cta { display: none; min-height: 42px; padding: 10px 20px; }
.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  margin-right: -10px;
}
.burger span { display: block; width: 24px; height: 1.5px; background: var(--paper); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 300;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 28px; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  /* baldai nuotraukoje dešinėje, todėl kraštą kerpam iš kairės (ten tuščia siena po tekstu) */
  object-position: 100% 40%;
  transform-origin: 85% 40%;
  animation: hero-settle 2.6s var(--ease) both;
}
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (max-width: 759px) {
  /* telefone naudojama vertikali nuotrauka: baldai viršuje, tuščia tamsi siena apačioje po tekstu */
  .hero__media img { object-position: 82% 12%; transform-origin: 75% 20%; }
}
/* nuotrauka pati tamsi, kairė pusė tuščia, todėl tamsinimas tik lengvas */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 18, 15, 0.7) 0%, rgba(20, 18, 15, 0.3) 34%, rgba(20, 18, 15, 0) 58%),
    linear-gradient(to right, rgba(20, 18, 15, 0.3) 0%, rgba(20, 18, 15, 0) 55%);
}
.hero h1, .hero__lead { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55); }
.hero__lead { color: var(--paper); }
.hero__inner { padding-block: calc(var(--header-h) + 40px) clamp(40px, 7vw, 88px); }
.hero__text { display: grid; gap: 28px; max-width: 880px; }
.hero h1 { font-size: var(--step-4); }
/* kompiuteryje antraštė visada lūžta po „sukurti": antra eilutė „jūsų erdvei." */
@media (min-width: 760px) { .hero h1 em { display: block; } }
.hero__lead { max-width: 46ch; color: rgba(242, 237, 228, 0.86); font-size: var(--step-1); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vw, 88px);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--bronze-lit), transparent);
}
@media (min-width: 960px) { .hero__scroll { display: flex; } }

/* ---------- Kategorijos ---------- */
.cards { display: grid; gap: 14px; }
.card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 15, 0.82), rgba(20, 18, 15, 0) 55%);
  transition: opacity 0.5s;
}
.card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 30px);
}
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.card__arrow {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover img { transform: scale(1.05); }
.card:hover .card__arrow { background: var(--bronze); border-color: var(--bronze); color: var(--ink); transform: rotate(-45deg); }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(12, 1fr); }
  .card { aspect-ratio: auto; height: clamp(300px, 34vw, 480px); }
  .card:nth-child(1) { grid-column: span 7; }
  .card:nth-child(2) { grid-column: span 5; }
  .card:nth-child(3) { grid-column: span 5; }
  .card:nth-child(4) { grid-column: span 7; }
  .card:nth-child(5) { grid-column: span 7; }
  .card:nth-child(6) { grid-column: span 5; }
}

/* ---------- Apdailos pasirinkimas (parašas) ---------- */
@property --tint {
  syntax: "<color>";
  inherits: false;
  initial-value: #2b2116;
}
.finish {
  --tint: #2b2116;
  background: radial-gradient(120% 90% at 80% 20%, var(--tint) 0%, var(--ink) 70%);
  transition: --tint 0.9s;
  overflow: hidden;
}
.finish__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.finish__intro { display: grid; gap: 22px; }
.finish__intro h2 { font-size: var(--step-3); }
.finish__intro > p { color: var(--paper-dim); max-width: 44ch; }
.finish__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1;
  color: var(--bronze-lit);
  min-height: 1.1em;
  margin-top: 6px;
}
/* kompiuteryje pavadinimas mažesnis ir telpa į vieną eilutę siauroje kolonoje */
@media (min-width: 900px) {
  .finish__name { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; min-height: 1.2em; }
}
.finish__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  padding: 4px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.chip span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.chip:hover { transform: translateY(-3px); }
.chip[aria-pressed="true"] { border-color: var(--bronze-lit); }
.chip[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(210, 176, 122, 0.35);
}

.stage { position: relative; }
.stage__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.stage__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.stage__frame img.is-active { opacity: 1; }

.hs {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.hs::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 0 rgba(242, 237, 228, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
  animation: hs-pulse 2.6s infinite;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.hs:hover::before { transform: scale(1.25); }
.hs[aria-expanded="true"]::before { background: var(--bronze-lit); animation: none; box-shadow: 0 0 0 6px rgba(210, 176, 122, 0.3); }
@keyframes hs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 237, 228, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(242, 237, 228, 0), 0 2px 10px rgba(0, 0, 0, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(242, 237, 228, 0), 0 2px 10px rgba(0, 0, 0, 0.35); }
}

.stage__note {
  margin-top: 14px;
  min-height: 7.2rem;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(20, 18, 15, 0.5);
}
.stage__note h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: 4px; }
.stage__note p { color: var(--paper-dim); font-size: 0.95rem; max-width: 52ch; }
.stage__note .hint { font-size: var(--step--1); letter-spacing: 0.04em; }

@media (min-width: 1000px) {
  .finish__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); }
  .stage__note {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 4;
    width: min(340px, calc(100% - 40px));
    min-height: 0;
    margin: 0;
    background: rgba(20, 18, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .stage__note[data-empty="true"] { display: none; }
  .stage__note[data-side="right"] { left: auto; right: 20px; }
  .stage__caption { display: block; }
}
.stage__caption { display: none; margin-top: 14px; font-size: var(--step--1); color: var(--paper-dim); }

/* ---------- Procesas (šviesi sekcija) ---------- */
.process { background: var(--paper-deep); color: var(--ink-2); }
.process .eyebrow { color: var(--bronze-deep); }
.process .section-head p { color: #5a5348; }
.process .display em { color: var(--bronze-deep); }
.process__grid { display: grid; gap: 0; }
.process__figure {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  height: 34svh;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--ink-3);
}
.process__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.process__figure img.is-active { opacity: 1; }
.steps { counter-reset: step; }
.step {
  display: grid;
  gap: 8px;
  padding: 34px 0;
  min-height: 42svh;
  align-content: center;
  border-bottom: 1px solid rgba(28, 25, 21, 0.14);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step__n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--bronze-deep); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.step p { max-width: 44ch; color: #4a443a; }

@media (min-width: 900px) {
  .process__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
  .process__figure {
    top: calc(var(--header-h) + 28px);
    height: calc(100svh - var(--header-h) - 56px);
    max-height: 720px;
    margin-inline: 0;
  }
  .step { min-height: 62svh; }
}

/* ---------- Prieš / po ---------- */
.ba__frame { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 13px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(20, 18, 15, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba__tag--before { left: 18px; }
.ba__tag--after { right: 18px; }
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.ba__handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; box-shadow: 0 0 14px rgba(0, 0, 0, 0.35); }
.ba__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.ba__handle i::before, .ba__handle i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.ba__handle i::before { left: 14px; transform: rotate(-45deg); }
.ba__handle i::after { right: 14px; transform: rotate(135deg); }
.ba__range:focus-visible ~ .ba__handle i { outline: 3px solid var(--bronze-lit); outline-offset: 3px; }
.ba__cta { margin-top: 24px; }
/* kompiuteryje vaizdas turi tilpti į ekraną visas: plotis ribojamas pagal likusį ekrano aukštį (kadras 16:9) */
@media (min-width: 900px) {
  .ba__frame {
    width: min(100%, calc((100vh - var(--header-h) - 64px) * 16 / 9));
    width: min(100%, calc((100svh - var(--header-h) - 64px) * 16 / 9));
    margin-inline: auto;
  }
  .ba__cta { text-align: center; }
}
@media (max-width: 600px) { .ba__frame { aspect-ratio: 4 / 3; } .ba__handle i { width: 44px; height: 44px; margin: -22px 0 0 -22px; } .ba__handle i::before { left: 11px; } .ba__handle i::after { right: 11px; } }

/* ---------- Projektai ---------- */
.projects { display: grid; gap: clamp(56px, 8vw, 120px); }
.project { display: grid; gap: 22px; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.project__media img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; }
.project__tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); }
.project h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.05; margin-block: 10px 14px; }
.project__text { display: grid; align-content: center; gap: 4px; }
.project__text p { color: var(--paper-dim); max-width: 42ch; }
.project__mats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.project__mats li { font-size: 0.74rem; padding: 6px 12px; border: 1px solid var(--line-strong); letter-spacing: 0.06em; }

@media (min-width: 900px) {
  .project { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(28px, 4vw, 64px); align-items: center; }
  .project__media { grid-column: 1 / span 8; }
  .project__text { grid-column: 9 / span 4; }
  .project:nth-child(even) .project__media { grid-column: 5 / span 8; grid-row: 1; }
  .project:nth-child(even) .project__text { grid-column: 1 / span 4; grid-row: 1; }
}

/* telefone ir planšetėje projektai yra horizontalūs slides */
.slider__dots { display: none; }
@media (max-width: 899px) {
  .projects {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .projects::-webkit-scrollbar { display: none; }
  .projects:focus-visible { outline-offset: -2px; }
  .project { flex: 0 0 min(86%, 440px); scroll-snap-align: start; align-content: start; gap: 18px; }
  .project__media { aspect-ratio: 4 / 3; }
  .project__text { align-content: start; }
  .slider__dots { display: flex; justify-content: center; gap: 4px; margin-top: 22px; }
  .slider__dot { width: 24px; height: 24px; display: grid; place-items: center; }
  .slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: width 0.35s var(--ease), background 0.3s; }
  .slider__dot[aria-current="true"]::before { width: 24px; border-radius: 4px; background: var(--bronze-lit); }
}

/* ---------- Medžiagos ---------- */
.materials { background: var(--ink-2); border-block: 1px solid var(--line); }
.materials__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.mat__view { display: grid; gap: 22px; }
.mat__swatch { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.mat__swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); }
.mat__swatch img.is-active { opacity: 1; }
.mat__info h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.05; margin-bottom: 12px; }
.mat__info p { color: var(--paper-dim); max-width: 44ch; }
.mat__use { margin-top: 18px; font-size: var(--step--1); letter-spacing: 0.04em; }
.mat__use b { font-weight: 700; color: var(--bronze-lit); letter-spacing: 0.16em; text-transform: uppercase; margin-right: 8px; font-size: 0.7rem; }

@media (min-width: 900px) {
  .mat__view { grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
}

/* ---------- Dirbtuvė ---------- */
.workshop { position: relative; isolation: isolate; min-height: min(86svh, 760px); display: flex; align-items: center; overflow: hidden; }
.workshop__media { position: absolute; inset: 0; z-index: -2; }
.workshop__media img { width: 100%; height: 100%; object-fit: cover; }
.workshop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 18, 15, 0.8); }
@media (min-width: 900px) {
  .workshop::after { background: linear-gradient(to right, rgba(20, 18, 15, 0.94) 0%, rgba(20, 18, 15, 0.84) 45%, rgba(20, 18, 15, 0.35) 100%); }
}
.workshop__text { display: grid; gap: 22px; max-width: 560px; }
.workshop h2 { font-size: var(--step-3); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.workshop p, .workshop li { color: var(--paper); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.workshop ul { display: grid; gap: 10px; margin-top: 6px; }
.workshop li { position: relative; padding-left: 28px; }
.workshop li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 16px; height: 1px; background: var(--bronze-lit); }

/* ---------- Konfigūratorius ---------- */
[hidden] { display: none !important; }

.cfg { background: var(--ink-2); border-top: 1px solid var(--line); }
.cfg__shell { display: grid; gap: 28px; align-items: start; }
.cfg__form { min-width: 0; }

.cfg__progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 36px; counter-reset: p; }
.cfg__progress li { min-width: 0; }
.cfg__progress button { display: grid; gap: 8px; width: 100%; padding: 12px 0 0; text-align: left; cursor: default; }
.cfg__progress button::before { content: ""; height: 2px; background: var(--line-strong); transition: background 0.4s var(--ease); }
.cfg__progress span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); opacity: 0; transition: opacity 0.3s, color 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg__progress li.is-done button::before { background: var(--bronze); }
.cfg__progress li.is-current button::before { background: var(--bronze-lit); }
.cfg__progress li.is-current span { opacity: 1; color: var(--bronze-lit); }
.cfg__progress button:not(:disabled) { cursor: pointer; }
.cfg__progress button:not(:disabled):hover span { color: var(--paper); }
.cfg__progress li.is-current button:hover span { color: var(--bronze-lit); }
@media (min-width: 600px) { .cfg__progress span { opacity: 1; } }

.cfg__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.cfg__q {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.15;
}
.cfg__q:focus { outline: none; }

.opts { display: grid; gap: 12px; }
.opts--cats { grid-template-columns: repeat(2, 1fr); }
.opts--fin { grid-template-columns: repeat(2, 1fr); }
.opts--list { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .opts--cats { grid-template-columns: repeat(3, 1fr); }
  .opts--fin { grid-template-columns: repeat(3, 1fr); }
}
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(242, 237, 228, 0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.opt__box img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.opt__box i { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.opt__box b { padding: 12px 14px; font-size: 0.88rem; font-weight: 600; line-height: 1.3; transition: color 0.3s; }
.opts--list .opt__box b { padding: 18px 20px; font-size: 1rem; }
.opt:hover .opt__box { border-color: rgba(242, 237, 228, 0.5); }
.opt input:checked + .opt__box { border-color: var(--bronze-lit); background: rgba(210, 176, 122, 0.08); }
.opt input:checked + .opt__box b { color: var(--bronze-lit); }
.opt input:checked + .opt__box::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.opts--list .opt input:checked + .opt__box::after { top: 50%; transform: translateY(-50%); right: 16px; }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--bronze-lit); outline-offset: 3px; }

.range { display: grid; gap: 14px; margin-bottom: 28px; }
.range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.range__top label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); }
.range__top output { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 300; color: var(--bronze-lit); line-height: 1; }
.range input[type="range"] {
  --pct: 30%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--bronze-lit) var(--pct), var(--line-strong) var(--pct)); }
.range input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
.range input[type="range"]::-moz-range-progress { height: 2px; background: var(--bronze-lit); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.range input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.range input[type="range"]:focus-visible { outline: 2px solid var(--bronze-lit); outline-offset: 4px; }
.hint { color: var(--paper-dim); font-size: var(--step--1); }

.toggle { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-strong); cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.toggle:hover { border-color: rgba(242, 237, 228, 0.5); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui { flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--line-strong); transition: background 0.3s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform 0.35s var(--ease); }
.toggle input:checked ~ .toggle__ui { background: var(--bronze); }
.toggle input:checked ~ .toggle__ui::after { transform: translateX(20px); }
.toggle:has(input:checked) { border-color: var(--bronze-lit); background: rgba(210, 176, 122, 0.08); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--bronze-lit); outline-offset: 3px; }
.toggle__text { display: grid; line-height: 1.35; }
.toggle__text b { font-weight: 600; }
.toggle__text small { color: var(--paper-dim); }

.cfg__step .form__row, .cfg__step .field, .cfg__step .check { margin-bottom: 20px; }
.cfg__stage { position: relative; }
.cfg__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.cfg__nav .btn { min-width: 150px; transition: opacity 0.3s, background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.cfg__nav .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cfg__nav .btn:disabled:hover { --btn-bg: var(--bronze); }
.cfg__nav .btn--ghost.is-off { visibility: hidden; }
.cfg__nav .btn--ghost:disabled:hover { --btn-bg: transparent; }

.cfg__summary { padding: 26px; border: 1px solid var(--line); background: rgba(20, 18, 15, 0.5); }
.cfg__sum-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-lit); margin-bottom: 8px; }
.cfg__summary dl { margin: 0; }
.cfg__summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cfg__summary dt { color: var(--paper-dim); font-size: 0.88rem; }
.cfg__summary dd { margin: 0; text-align: right; font-size: 0.95rem; }
.cfg__price { display: grid; gap: 4px; margin-top: 22px; }
.cfg__price span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); }
.cfg__price strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.1; color: var(--bronze-lit); }
.cfg__price small { color: var(--paper-dim); font-size: 0.8rem; line-height: 1.45; }

.cfg__live { min-height: 4.9rem; transition: opacity 0.35s var(--ease); margin-top: 26px; padding: 14px 16px; border-left: 2px solid var(--bronze-lit); background: rgba(210, 176, 122, 0.07); font-size: 0.95rem; }
.cfg__live.is-empty { opacity: 0; }
.cfg__live strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--bronze-lit); }
@media (min-width: 1000px) { .cfg__live { display: none !important; } }

.cfg__done { grid-column: 1 / -1; display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--bronze); background: rgba(210, 176, 122, 0.06); }
.cfg__done:focus { outline: none; }
.cfg__done h3 { font-size: var(--step-3); }
.cfg__done p { color: var(--paper-dim); max-width: 52ch; }
.cfg__done .cfg__done-sum { color: var(--paper); font-size: var(--step-1); }

@media (min-width: 1000px) {
  .cfg__shell { grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 5vw, 80px); }
  .cfg__summary { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Užklausa ---------- */
.contact__grid { display: grid; gap: clamp(36px, 6vw, 96px); }
.contact__intro { display: grid; gap: 22px; align-content: start; }
.contact__intro h2 { font-size: var(--step-3); }
.contact__intro > p { color: var(--paper-dim); max-width: 44ch; }
.contact__list { display: grid; gap: 16px; margin-top: 10px; }
.contact__list dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-lit); }
.contact__list dd { margin: 2px 0 0; font-size: var(--step-1); }
.contact__list a { border-bottom: 1px solid var(--line-strong); }
.contact__list a:hover { border-color: var(--bronze-lit); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  color: var(--paper);
  background: rgba(242, 237, 228, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%), linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242, 237, 228, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-lit); background: rgba(242, 237, 228, 0.07); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bronze-lit); outline-offset: 2px; }
.form__row { display: grid; gap: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--paper-dim); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bronze); }
.form__status { min-height: 1.5em; font-size: 0.95rem; color: var(--bronze-lit); }
.form__status[data-state="error"] { color: #e7a090; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---------- Poraštė ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 36px; color: var(--paper-dim); font-size: 0.9rem; }
.site-footer .container { display: grid; gap: 36px; }
.footer__top { display: grid; gap: 32px; }
.footer__brand { display: grid; gap: 12px; align-content: start; max-width: 32ch; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col h2 { margin: 0 0 6px; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-lit); }
.footer__col a:hover { color: var(--paper); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.8rem; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .footer__top { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } .footer__brand { grid-column: auto; } }

/* ==========================================================================
   Vidiniai puslapiai
   ========================================================================== */

/* meniu su išskleidžiamu sąrašu */
.nav__item { position: relative; }
.nav a[aria-current="page"] { color: var(--paper); }
.nav__drop {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 280px;
  padding: 22px 0 8px;
  display: grid;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}
.nav__drop::before { content: ""; position: absolute; inset: 14px 0 0 0; z-index: -1; background: rgba(20, 18, 15, 0.97); border: 1px solid var(--line); }
.nav__item--sub:hover .nav__drop, .nav__item--sub:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { padding: 11px 22px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--paper-dim); }
.nav__drop a:hover { color: var(--paper); background: rgba(242, 237, 228, 0.05); }

/* inkaro šuolis (iš kito puslapio ar su #) palieka vietos fiksuotai antraštei */
main [id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.note { font-size: var(--step--1); font-style: italic; color: var(--paper-dim); }

/* kelias */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.78rem; color: var(--paper-dim); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: 0.5; }
.crumbs a { transition: color 0.25s; }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--paper); }

/* puslapio viršus su nuotrauka */
.phero { position: relative; min-height: min(82svh, 780px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.phero--short { min-height: min(66svh, 600px); }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 18, 15, 0.72) 0, rgba(20, 18, 15, 0) 150px),
    linear-gradient(to top, rgba(20, 18, 15, 0.95) 0%, rgba(20, 18, 15, 0.74) 34%, rgba(20, 18, 15, 0.2) 64%, rgba(20, 18, 15, 0) 80%),
    linear-gradient(to right, rgba(20, 18, 15, 0.8) 0%, rgba(20, 18, 15, 0.42) 40%, rgba(20, 18, 15, 0) 66%);
}
.phero__inner { padding-block: calc(var(--header-h) + 56px) clamp(36px, 6vw, 80px); }
.phero__text { display: grid; gap: 22px; max-width: 820px; }
.phero h1, .phead h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 5rem); }
.phero h1, .phero__lead { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55); }
.phero__lead { max-width: 50ch; color: var(--paper); font-size: var(--step-1); line-height: 1.55; }

/* puslapio viršus be nuotraukos */
.phead { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(8px, 2vw, 24px); }
.phead .container { display: grid; gap: 22px; }
.phead__lead { max-width: 54ch; color: var(--paper-dim); font-size: var(--step-1); }
.phead--full { min-height: 80svh; display: flex; align-items: center; }

/* įvadas + kas įskaičiuota */
.intro2 { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro2__text { display: grid; gap: 20px; }
.intro2__text h2 { font-size: var(--step-3); }
.intro2__text p { color: var(--paper-dim); max-width: 58ch; }
.incl { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: rgba(242, 237, 228, 0.03); }
.incl h3 { margin-bottom: 14px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-lit); }
.checks li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 16px; height: 1px; background: var(--bronze-lit); }
@media (min-width: 900px) { .intro2 { grid-template-columns: 1.2fr 0.8fr; } }

.stage__frame--wide { aspect-ratio: 16 / 9; }

/* medžiagos */
.matrow { display: grid; gap: 4px 36px; }
.matrow li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.matrow__sw { flex: none; width: 84px; height: 84px; background-size: cover; background-position: center; border: 1px solid var(--line-strong); }
.matrow b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.matrow p { color: var(--paper-dim); font-size: 0.95rem; max-width: 40ch; }
@media (min-width: 900px) { .matrow { grid-template-columns: repeat(3, 1fr); } .matrow li { flex-direction: column; } .matrow__sw { width: 100%; height: 120px; } }

/* procesas */
.pstrip { display: grid; gap: 0 28px; }
.pstrip li { padding: 22px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 6px; }
.pstrip span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--bronze-lit); }
.pstrip h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.pstrip p { color: var(--paper-dim); max-width: 32ch; }
.pstrip__more { margin-top: 24px; }
@media (min-width: 760px) { .pstrip { grid-template-columns: repeat(4, 1fr); } }

/* DUK */
.faq__list { max-width: 880px; }
.faq__item { border-top: 1px solid var(--line-strong); }
.faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-body); font-size: 1.1rem; color: var(--bronze-lit); transition: transform 0.35s var(--ease), background 0.3s; }
.faq__item[open] summary::after { transform: rotate(45deg); background: rgba(210, 176, 122, 0.12); }
.faq__item summary:hover { color: var(--bronze-lit); }
.faq__item p { padding: 0 52px 24px 0; color: var(--paper-dim); max-width: 64ch; }

/* kvietimas veikti */
.cta-band { display: grid; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--bronze); background: rgba(210, 176, 122, 0.06); }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 10px; }
.cta-band p { color: var(--paper-dim); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

/* kitos kategorijos */
.cards.cards--mini { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards.cards--mini { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cards--mini { grid-template-columns: repeat(3, 1fr); } }
.cards.cards--mini > .card:nth-child(n) { grid-column: auto; height: auto; aspect-ratio: 4 / 3; }

/* apie mus */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__text { display: grid; gap: 20px; }
.split__text h2 { font-size: var(--step-3); }
.split__text p:not(.note) { color: var(--paper-dim); max-width: 52ch; }
.split__fig { margin: 0; overflow: hidden; }
.split__fig img { width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.values { display: grid; gap: 0 36px; }
.values li { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.values h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
.values p { color: var(--paper-dim); max-width: 36ch; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.band { position: relative; min-height: min(60svh, 560px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(20, 18, 15, 0.9) 0%, rgba(20, 18, 15, 0.7) 50%, rgba(20, 18, 15, 0.3) 100%); }
.band__text { max-width: 24ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.18; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }

/* kontaktai */
.contact__fig { margin: 0; }
.contact__fig img { width: 100%; }
.contact__intro .contact__list { margin-bottom: 8px; }

/* projektai */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { padding: 11px 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; border: 1px solid var(--line-strong); color: var(--paper-dim); transition: color 0.3s, background 0.3s, border-color 0.3s; }
.filter:hover { color: var(--paper); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.pgrid { display: grid; gap: 28px 18px; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: grid; width: 100%; text-align: left; gap: 14px; cursor: zoom-in; }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard__body { display: grid; gap: 4px; }
.pcard__tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-lit); }
.pcard__title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; }
.pcard__mats { color: var(--paper-dim); font-size: 0.88rem; }
.pgrid__item { overflow: hidden; }
.pgrid__item .pcard img { transform-origin: center; }
.pcard:hover img { transform: scale(1.04); }
.pgrid__empty { margin-top: 24px; color: var(--paper-dim); }

.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14, 12, 10); color: var(--paper); }
.lb[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lb::backdrop { background: rgba(14, 12, 10, 0.96); }
.lb__fig { margin: 0; display: grid; gap: 14px; justify-items: center; min-width: 0; padding: 56px 0; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: contain; }
.lb__fig figcaption { display: grid; gap: 2px; text-align: center; padding-inline: 12px; }
.lb__fig figcaption b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.lb__fig figcaption span { color: var(--paper-dim); font-size: 0.88rem; }
.lb__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; font-size: 2rem; line-height: 1; border: 1px solid var(--line-strong); border-radius: 50%; transition: background 0.3s; }
.lb__nav { width: 48px; height: 48px; margin-inline: auto; display: grid; place-items: center; font-size: 1.3rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: background 0.3s, border-color 0.3s; }
.lb__close:hover, .lb__nav:hover { background: rgba(242, 237, 228, 0.1); border-color: var(--paper); }
@media (max-width: 700px) {
  .lb[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lb__fig { grid-column: 1 / -1; grid-row: 1; padding: 64px 12px 0; }
  .lb__prev { grid-column: 1; grid-row: 2; margin: 14px 0 24px 24px; margin-right: auto; }
  .lb__next { grid-column: 2; grid-row: 2; margin: 14px 24px 24px 0; margin-left: auto; }
}

/* ---------- Judesio mažinimas ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__media img { animation: none; }
}
