/*
Theme Name: Danukas 3
Theme URI: https://danukas.lt/
Description: Nestandartinių baldų gamintojo „Danukas“ svetainės tema. Nuotraukos įkeliamos, šalinamos ir rikiuojamos viename „Nuotraukos“ lange.
Version: 3.4.0
Requires at least: 5.5
Requires PHP: 7.4
Author: Danukas
Text Domain: danukas
*/

/* ---------- Šriftas (vietinis, su lietuviškomis raidėmis) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-ext-wdth-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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-wdth-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: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/geist-mono-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: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/geist-mono-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;
}

/* ---------- Dizaino žetonai (semantiniai, kaip shadcn/ui) ---------- */
:root {
  /* paviršiai */
  --background: #f3f0e8;        /* šilta smėlio spalva */
  --card: #fffdf9;
  --muted: #ebe7dc;
  --inverse: #1f221e;           /* tamsūs blokai */
  /* tekstas */
  --foreground: #252824;        /* grafitas */
  --muted-foreground: #62665d;
  --inverse-foreground: #f3f0e8;
  --inverse-muted: #b7b7aa;
  /* linijos ir akcentas – vienas */
  --border: #dedad0;
  --border-strong: #c9c4b6;
  --inverse-border: rgba(243, 240, 232, .14);
  --accent: #dde3c8;            /* švelni žalsva */
  --accent-strong: #c9d3a8;
  --ring: #6f7d4c;
  --danger: #a4260f;
  --success: #4f6b3a;
  /* forma */
  --radius: 14px;
  --radius-sm: calc(var(--radius) * .57);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) * 1.43);
  --radius-xl: calc(var(--radius) * 2);
  --pill: 999px;
  /* ritmas */
  --pad: clamp(16px, 3.4vw, 40px);
  --gap: clamp(10px, 1.2vw, 14px);
  --section: clamp(72px, 9vw, 132px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(37, 40, 36, .06), 0 8px 24px rgba(37, 40, 36, .06);
  --shadow-lg: 0 24px 60px rgba(31, 34, 30, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 420; font-stretch: 108%; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 5.6rem); }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3.3rem); }
h3 { font-size: 1.2rem; font-weight: 520; letter-spacing: -.015em; }
kbd { font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--muted-foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--radius-sm); }
main:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--foreground); color: var(--card); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }
.mono, .kind-count, .page-meta-count, .filter a span, .group-head span { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Vaizdų laukimo būsena: švelnus „skeleton“ blyksnis, kol nuotrauka kraunasi */
.shot, .kind-media, .about-photo, .hero-card { background-color: var(--muted); }
.shot::before, .kind-media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 253, 249, .55) 50%, transparent 70%) var(--muted);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
.shot img, .kind-media img { position: relative; z-index: 1; }
.is-loaded::before { display: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 24px; border: 1px solid transparent; border-radius: var(--pill);
  font: inherit; font-weight: 520; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; transition: transform .3s var(--ease); }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-ico { transform: rotate(45deg); }
.btn-solid { background: var(--foreground); color: var(--card); }
.btn-solid .btn-ico { background: var(--accent); color: var(--foreground); }
.btn-solid:hover { background: #121411; }
.btn-sage { background: var(--accent); color: var(--foreground); }
.btn-sage .btn-ico { background: var(--foreground); color: var(--accent); }
.btn-sage:hover { background: #e9edd9; }
.btn-glass { background: rgba(255, 253, 249, .12); border-color: rgba(255, 253, 249, .34); color: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass .btn-ico { background: rgba(255, 253, 249, .16); }
.btn-glass:hover { background: rgba(255, 253, 249, .22); }
.btn-line { border-color: var(--foreground); color: var(--foreground); }
.btn-line .btn-ico { background: var(--foreground); color: var(--card); }
.btn-line:hover { background: var(--card); }
button.btn { padding: 0 24px; }
.link { font-weight: 520; text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--foreground); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 46px; height: 46px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--pill); background: var(--card); color: var(--foreground); font: inherit; cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--foreground); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Viršutinė juosta ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; }
.admin-bar .top { top: 32px; }
.top-bar {
  position: relative; max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 20px;
  background: rgba(255, 253, 249, .82); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(37, 40, 36, .08); border-radius: var(--pill); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 38px; width: auto; mix-blend-mode: multiply; }
.brand-word { font-stretch: 120%; font-weight: 650; font-size: 1.2rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a { padding: 10px 16px; border-radius: var(--pill); text-decoration: none; font-weight: 480; font-size: .97rem; transition: background-color .2s; }
.nav > a:hover { background: rgba(37, 40, 36, .06); }
.nav > a[aria-current="page"] { background: var(--accent); }
.nav-head, .nav-foot, .nav-home { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.cmd-kbd { display: none; }
.nav-cta { min-height: 46px; padding-left: 20px; }
.nav-cta .btn-ico { width: 34px; height: 34px; }
.menu-btn { display: none; }
@media (min-width: 1100px) {
  .cmd-open { padding: 0 8px 0 14px; }
  .cmd-kbd { display: inline-block; }
}

/* Telefone meniu – šoninis skydelis (sheet) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(31, 34, 30, .42); animation: fade .2s ease both; }
.scrim[hidden] { display: none; }
body.is-locked .top { z-index: 80; } /* atidarytas meniu virš tamsinimo */
@keyframes fade { from { opacity: 0; } }
@media (max-width: 900px) {
  /* backdrop-filter sukurtų atskaitos tašką skydeliui, todėl telefone juosta – vientisa */
  .top-bar { border-radius: var(--radius-lg); padding-left: 16px; background: rgba(255, 253, 249, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
    background: var(--foreground); color: var(--card); border: 0; border-radius: var(--pill); font: inherit; font-weight: 520; cursor: pointer;
  }
  .menu-icon, .menu-icon::before { display: block; width: 18px; height: 1.5px; background: currentColor; }
  .menu-icon { position: relative; transform: translateY(-3px); }
  .menu-icon::before { content: ""; position: absolute; top: 6px; }
  .nav {
    position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--card); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateX(105%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
  .nav-title { font-size: .9rem; color: var(--muted-foreground); }
  .nav > a { display: block; padding: 14px 12px; border-radius: var(--radius-md); font-size: 1.35rem; font-stretch: 106%; letter-spacing: -.02em; }
  .nav-home { display: block; }
  .nav-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
  .nav-phone { padding: 0 12px; font-size: 1.05rem; font-variant-numeric: tabular-nums; text-decoration: none; }
  .admin-bar .nav { top: 46px; }
}
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }

/* ---------- Paieška (Ctrl K) ---------- */
.cmd {
  width: min(92vw, 620px); max-height: min(72vh, 560px); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--foreground); box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmd[open] { display: flex; flex-direction: column; animation: pop .18s var(--ease) both; }
.cmd::backdrop { background: rgba(31, 34, 30, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.cmd-form { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 18px; border-bottom: 1px solid var(--border); }
.cmd-form svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--muted-foreground); stroke-width: 1.8; stroke-linecap: round; }
.cmd-input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.05rem; outline: none; }
.cmd-input::-webkit-search-cancel-button { display: none; }
.cmd-list { overflow-y: auto; padding: 8px; }
.cmd-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.cmd-list small { font-size: .84rem; color: var(--muted-foreground); white-space: nowrap; }
.cmd-list [aria-selected="true"] a { background: var(--accent); }
.cmd-list li[hidden] { display: none; }
.cmd-empty { padding: 18px 20px; color: var(--muted-foreground); }
.cmd-help { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--background); font-size: .8rem; color: var(--muted-foreground); }
.cmd-help span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .cmd { margin-top: 10px; max-height: 80vh; } .cmd-help { display: none; } }

/* ---------- Pradžios ekranas ---------- */
.hero { padding-top: 14px; }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; gap: 28px;
  min-height: clamp(600px, calc(100svh - 110px), 920px);
  padding: clamp(22px, 3.4vw, 48px);
  border-radius: var(--radius-xl); background-color: var(--inverse); color: var(--card);
}
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-on img { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } }
.hero-shade { z-index: -1; background:
  linear-gradient(90deg, rgba(31, 34, 30, .82) 0%, rgba(31, 34, 30, .5) 42%, rgba(31, 34, 30, .08) 75%),
  linear-gradient(0deg, rgba(31, 34, 30, .55) 0%, rgba(31, 34, 30, 0) 40%); }

/* Techninės linijos: matavimo žiedas ir kadro kampai */
.hero-ring { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(56vw, 620px); transform: translateY(-50%); fill: none; stroke: rgba(255, 253, 249, .28); stroke-width: .8; pointer-events: none; }
.hero-ring .dash { stroke-dasharray: 2 7; stroke: rgba(221, 227, 200, .5); transform-origin: 200px 200px; animation: ring 2.4s var(--ease) both; }
@keyframes ring { from { transform: rotate(-90deg); opacity: 0; } }

.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border: 1px solid rgba(255, 253, 249, .32); border-radius: var(--pill); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(221, 227, 200, .22); }
.hero-place { font-size: .88rem; opacity: .85; }

.hero-copy { align-self: end; max-width: 760px; }
.hero-copy h1 { font-weight: 360; font-stretch: 104%; letter-spacing: -.045em; line-height: .98; }
.h-accent { color: var(--accent); }
.hero-text { margin-top: 22px; max-width: 46ch; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 253, 249, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-panel {
  display: flex; gap: 8px; padding: 8px; justify-self: start;
  border: 1px solid rgba(255, 253, 249, .3); border-radius: var(--radius-lg); background: rgba(31, 34, 30, .34);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  overflow-x: auto; max-width: 100%;
}
.pick {
  display: flex; flex-direction: column; gap: 7px; flex: none; width: 128px; padding: 6px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: none; color: var(--card); font: inherit; font-size: .84rem; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.pick img { width: 100%; height: 72px; object-fit: cover; border-radius: var(--radius-sm); opacity: .7; transition: opacity .2s; }
.pick span { padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick:hover img { opacity: 1; }
.pick[aria-pressed="true"] { background: rgba(255, 253, 249, .12); border-color: rgba(255, 253, 249, .3); }
.pick[aria-pressed="true"] img { opacity: 1; }
.pick:focus-visible { outline-color: var(--accent); }

@media (min-width: 1000px) {
  .hero-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; }
  .hero-top { grid-column: 1 / -1; }
  .hero-panel { align-self: end; justify-self: end; flex-direction: column; }
  .pick { width: 176px; flex-direction: row; align-items: center; }
  .pick img { width: 64px; height: 52px; flex: none; }
}
@media (max-width: 640px) {
  .hero-shade { background: linear-gradient(0deg, rgba(31, 34, 30, .9) 0%, rgba(31, 34, 30, .55) 55%, rgba(31, 34, 30, .25) 100%); }
  .hero-ring { width: 120vw; right: -50vw; top: 30%; }
  .hero-place { display: none; }
  .hero-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; overflow: visible; }
  .pick { width: auto; }
  .pick img { height: 58px; }
}

.hero-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--gap); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.hero-services li { display: grid; gap: 2px; padding: 18px 20px; }
.hero-services li + li { border-left: 1px solid var(--border); }
.hero-services li:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
.hero-services li:nth-child(4) { border-top: 1px solid var(--border); }
.hero-services b { font-weight: 560; font-stretch: 110%; font-size: 1.05rem; }
.hero-services li:last-child b { font-family: var(--mono); font-weight: 500; font-stretch: normal; }
.hero-services span { color: var(--muted-foreground); font-size: .9rem; }
@media (min-width: 900px) {
  .hero-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-services li:nth-child(n) { border-top: 0; }
  .hero-services li:nth-child(3) { border-left: 1px solid var(--border); }
}

/* ---------- Skyriai ---------- */
.block { padding-top: var(--section); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(24px, 3vw, 44px); }
.block-head p { max-width: 42ch; color: var(--muted-foreground); }

/* Kategorijų kortelės: nuotrauka + apatinė eilutė */
.kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.kind { display: flex; flex-direction: column; height: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.kind:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kind-media { position: relative; display: block; overflow: hidden; height: clamp(220px, 28vw, 400px); border-radius: var(--radius-lg); }
.kind-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.kind:hover .kind-media img { transform: scale(1.04); }
.kind-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 16px 12px 10px 14px; }
.kind-name { font-stretch: 108%; font-weight: 450; font-size: clamp(1.25rem, 1vw + .9rem, 1.7rem); letter-spacing: -.03em; line-height: 1.1; }
.kind-count { grid-row: 2; font-size: .8rem; color: var(--muted-foreground); }
.kind-go { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--foreground); transition: transform .35s var(--ease), background-color .2s; }
.kind:hover .kind-go, .kind:focus-visible .kind-go { transform: rotate(45deg); background: var(--accent-strong); }
@media (min-width: 760px) {
  .kinds { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .kinds li:nth-child(4n+1), .kinds li:nth-child(4n+4) { grid-column: span 7; }
  .kinds li:nth-child(4n+2), .kinds li:nth-child(4n+3) { grid-column: span 5; }
}

/* Nuotraukų tinklelis: vienodo aukščio eilutės, nuotraukos neapkarpomos */
.shots { --h: 160px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.shots::after { content: ""; flex-grow: 999; }
.shot {
  position: relative; display: block; min-width: 0; overflow: hidden; isolation: isolate;
  flex-grow: calc(var(--r) * 100); flex-shrink: 1; flex-basis: calc(var(--r) * var(--h));
  aspect-ratio: var(--r); border-radius: var(--radius-md);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot::after {
  content: ""; position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card) no-repeat center / 15px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252824' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 10V4h6M20 14v6h-6M4 4l6 6M20 20l-6-6'/%3E%3C/svg%3E");
  box-shadow: var(--shadow); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease);
}
.shot:hover img { transform: scale(1.035); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 640px) { .shots { --h: 220px; gap: 10px; } }
@media (min-width: 1100px) { .shots { --h: 270px; } }

/* Kaip dirbame */
.process { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 72px); border-radius: var(--radius-xl); background: var(--inverse); color: var(--inverse-foreground); }
.process::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 253, 249, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 253, 249, .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.process > * { position: relative; }
.process .block-head p { color: var(--inverse-muted); }
.process :focus-visible { outline-color: var(--accent); }
.steps { counter-reset: step; display: grid; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--accent); border-radius: 50%; background: var(--inverse); color: var(--accent); font-family: var(--mono); font-size: .82rem;
}
/* jungianti linija – kaip brėžinio matmenų linija */
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--inverse-border); }
.steps h3 { padding-top: 6px; }
.steps p { margin-top: 6px; max-width: 32ch; color: var(--inverse-muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); padding-top: 8px; }
  .steps li { padding: 70px 0 0; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { left: 52px; right: calc(-1 * clamp(16px, 2vw, 32px)); top: 22px; bottom: auto; width: auto; height: 1px; }
  .steps h3 { padding-top: 0; }
}

/* Tekstas */
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 + * { margin-top: .8em; }
.prose .lead { font-stretch: 106%; font-weight: 480; font-size: 1.32rem; line-height: 1.3; letter-spacing: -.015em; }
.prose-big { font-size: 1.18rem; }
.prose .btn { margin-top: 1.6em; }
.prose .link { display: inline-block; margin-top: 1.4em; }
.about-home { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.about-photo { overflow: hidden; border-radius: var(--radius-xl); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .about-home { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.entry a { text-decoration-color: var(--border-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- Vidiniai puslapiai ---------- */
.page-head { position: relative; isolation: isolate; padding-top: clamp(34px, 5vw, 72px); padding-bottom: clamp(22px, 3vw, 36px); }
.page-head::before { content: ""; position: absolute; z-index: -1; inset: -120px 0 0; pointer-events: none;
  background-image: linear-gradient(rgba(37, 40, 36, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 40, 36, .055) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 10%, transparent 70%); }
.page-head h1 { margin-top: 18px; font-weight: 380; }
.page-meta { margin-top: 16px; color: var(--muted-foreground); max-width: 56ch; font-size: 1.1rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: .88rem; }
.crumbs a { text-decoration: none; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--pill); background: var(--card); color: var(--foreground); }
.crumbs a:hover { border-color: var(--foreground); }

.filter { position: sticky; top: 82px; z-index: 30; padding-block: 10px; background: linear-gradient(var(--background) 70%, rgba(243, 240, 232, 0)); }
.admin-bar .filter { top: 114px; }
.filter-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 18px;
  border: 1px solid var(--border); border-radius: var(--pill); background: var(--card);
  text-decoration: none; font-weight: 480; font-size: .96rem; white-space: nowrap; transition: border-color .2s;
}
.filter a:hover { border-color: var(--foreground); }
.filter a span { min-width: 30px; padding: 3px 8px; border-radius: var(--pill); background: var(--muted); color: var(--muted-foreground); font-size: .76rem; text-align: center; }
.filter a[aria-current="page"] { background: var(--foreground); border-color: var(--foreground); color: var(--card); }
.filter a[aria-current="page"] span { background: var(--accent); color: var(--foreground); }
@media (max-width: 782px) { .admin-bar .filter { top: 128px; } }

.gallery { padding-top: clamp(18px, 2.4vw, 30px); }
.gallery > .prose { margin-bottom: clamp(26px, 3vw, 44px); }
.prose-cols { padding: clamp(22px, 3vw, 36px); max-width: none; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.prose-cols > * { max-width: 70ch; }
.group + .group { margin-top: clamp(48px, 6vw, 88px); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.group-head h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2.1rem); }
.group-head a { text-decoration: none; }
.group-head a:hover { text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.group-head span { color: var(--muted-foreground); font-size: .8rem; white-space: nowrap; }
.prose-after { margin-top: clamp(48px, 7vw, 96px); }
.empty { display: grid; justify-items: start; gap: 18px; padding: clamp(24px, 3vw, 36px); border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); color: var(--muted-foreground); font-size: 1.1rem; }

.about-page { display: grid; gap: clamp(32px, 5vw, 64px); }
.single-shot { display: grid; gap: 22px; justify-items: start; }
.single-shot img { max-height: 80vh; width: auto; border-radius: var(--radius-lg); }

/* Kontaktai */
.contact { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 2vw, 28px); } }
.contact-list { display: grid; gap: var(--gap); }
.contact-list > div { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.contact-list dt { color: var(--muted-foreground); font-size: .9rem; }
.contact-big { display: inline-block; margin-top: 6px; font-stretch: 106%; font-weight: 420; font-size: clamp(1.35rem, 1.6vw + .8rem, 2rem); letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
a.contact-big:hover { text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.contact-list small { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: .95rem; }
.form-card { padding: clamp(24px, 3vw, 40px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 20px; }
.form-card p { margin-bottom: 16px; }
.form-card label, .search label { display: block; font-weight: 520; font-size: .95rem; }
.form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .form-card textarea, .search input {
  width: 100%; margin-top: 6px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font: inherit; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .search input:focus { outline: none; border-color: var(--ring); background: var(--card); box-shadow: 0 0 0 3px rgba(111, 125, 76, .2); }
.form-card .wpcf7-not-valid { border-color: var(--danger) !important; }
.form-card input[type="submit"], .form-card button[type="submit"] {
  min-height: 52px; padding: 0 30px; border: 0; border-radius: var(--pill); background: var(--foreground); color: var(--card); font: inherit; font-weight: 520; cursor: pointer;
}
.form-card input[type="submit"]:hover { background: #121411; }
.form-card input[type="submit"]:disabled { opacity: .6; cursor: progress; }
.wpcf7-spinner { margin-left: 12px; vertical-align: middle; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--danger); font-size: .9rem; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius-md); background: var(--background); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--success); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--danger); }

.results { display: grid; gap: 24px; justify-items: start; }
.search { width: 100%; max-width: 600px; }
.search div { display: flex; gap: 8px; align-items: end; }
.result-list { width: 100%; max-width: 780px; display: grid; gap: var(--gap); }
.result-list a { display: block; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); text-decoration: none; transition: border-color .2s; }
.result-list a:hover { border-color: var(--foreground); }
.result-list h2 { font-size: 1.35rem; }
.result-list p { margin-top: 6px; color: var(--muted-foreground); }

/* ---------- Poraštė ---------- */
.foot { padding: var(--section) var(--pad) var(--pad); }
.foot > .wrap { position: relative; overflow: hidden; max-width: var(--max); padding: clamp(28px, 5vw, 72px) clamp(24px, 5vw, 72px) 26px; border-radius: var(--radius-xl); background: var(--inverse); color: var(--inverse-foreground); }
.foot :focus-visible { outline-color: var(--accent); }
.foot-cta { display: grid; gap: 28px; padding-bottom: clamp(36px, 5vw, 64px); }
.foot-cta h2 { font-size: clamp(2rem, 3.6vw + .8rem, 4.2rem); font-weight: 360; max-width: 14ch; }
.foot-contact { display: grid; gap: 10px; justify-items: start; align-content: end; }
.foot-contact a:not(.btn) { text-decoration: none; font-size: 1.05rem; color: #d6d4c8; }
.foot-contact a:not(.btn):hover { color: var(--card); }
.foot-contact a.foot-phone { color: var(--card); font-stretch: 106%; font-weight: 400; font-size: clamp(1.7rem, 2.4vw + .8rem, 2.8rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.foot-contact .btn { margin-top: 16px; }
@media (min-width: 900px) { .foot-cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; border-top: 1px solid var(--inverse-border); color: var(--inverse-muted); font-size: .92rem; }
.foot-base .brand-word { color: var(--card); font-size: 1.05rem; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--card); }

/* ---------- Nuotraukos peržiūra ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(27, 29, 26, .96); color: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox::backdrop { background: rgba(27, 29, 26, .5); }
.lightbox[open] { display: grid; grid-template: "bar bar bar" auto "prev stage next" minmax(0, 1fr) / auto minmax(0, 1fr) auto; align-items: center; animation: fade .22s ease both; }
.lb-bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 4px 22px; }
.lb-info { display: flex; gap: 14px; align-items: center; font-size: .96rem; }
#lb-count { padding: 3px 10px; border-radius: var(--pill); background: var(--accent); color: var(--foreground); font-family: var(--mono); font-size: .78rem; font-variant-numeric: tabular-nums; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 12px; padding: 0; border: 1px solid rgba(255, 253, 249, .24); border-radius: 50%; background: rgba(255, 253, 249, .08); color: var(--card); cursor: pointer; transition: background-color .2s, color .2s; }
.lb-btn:hover { background: var(--accent); color: var(--foreground); }
.lb-btn:focus-visible { outline-color: var(--accent); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { margin: 0; }
.lb-prev { grid-area: prev; }
.lb-next { grid-area: next; }
.lb-stage { position: relative; grid-area: stage; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; padding: 10px 0 20px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); transition: opacity .18s; }
.lb-stage img.is-loading { opacity: .25; }
.lb-stage:has(img.is-loading)::after { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 253, 249, .25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .lightbox[open] { grid-template: "bar bar" auto "stage stage" minmax(0, 1fr) "prev next" auto / 1fr 1fr; }
  .lb-prev { justify-self: end; margin-bottom: 18px; }
  .lb-next { justify-self: start; margin-bottom: 18px; }
  .lb-stage { padding: 8px 0 12px; }
  .lb-stage img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
}

/* ---------- Sklandus perėjimas tarp puslapių (jei naršyklė palaiko) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

@media print {
  .top, .filter, .foot-cta, .lightbox, .cmd, .hero-panel, .hero-ring { display: none !important; }
  body { background: #fff; }
}
