/* ============================================================
   VEIDRODŽIŲ STUDIJA — template site CSS
   Silver / champagne-gold on warm paper + ink. No glow shadows:
   contrast is carried by colour pairs, per Kat's site rules.
   ============================================================ */

:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --ink-3: #2a2e36;
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --muted: #5c6169;
  --muted-on-dark: #b9bfc9;
  --silver: #c9ced8;
  --silver-2: #e6e8ec;
  --gold: #b8860b;
  --gold-ink: #8a5f08;      /* gold readable ON LIGHT plates (5.0:1 vs --paper) */
  --gold-2: #d4b165;
  --gold-soft: #f3ead6;
  --line: #e2e1dc;
  --line-dark: rgba(255, 255, 255, .12);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .05), 0 20px 48px rgba(20, 22, 26, .10);
  --maxw: 1200px;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;        /* never let width/height attributes win over CSS */
  display: block;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--paper2 { background: var(--paper-2); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero .eyebrow, .section--dark .eyebrow { color: var(--gold-2); }

.lead { font-size: 1.09rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--muted-on-dark); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* dark plates that are not .section--dark (hero, wizard preview card) */
.hero .btn-ghost, .section--dark .btn-ghost, .preview-body .btn-ghost { color: #fff; border-color: var(--line-dark); }
.hero .btn-ghost:hover, .section--dark .btn-ghost:hover, .preview-body .btn-ghost:hover { border-color: #fff; }

.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(247, 246, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247, 246, 243, .98); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .22s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 177, 101, .16), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lead { color: var(--muted-on-dark); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-stat-num { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .82rem; color: var(--muted-on-dark); margin-top: 6px; display: block; max-width: 100%; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero { padding: 122px 0 66px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 420px; }
}

/* ---------------- shape chooser (catalog filter) ---------------- */
.shape-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.shape-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2); cursor: pointer; font: inherit; font-size: .9rem;
  transition: border-color .18s ease, background .18s ease;
}
.shape-tab svg { width: 20px; height: 20px; }
.shape-tab:hover { border-color: var(--silver); }
.shape-tab.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.shape-tab.active svg * { stroke: #fff; }

/* ---------------- product grid ---------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.product {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--silver); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { background: linear-gradient(165deg, #23262d 0%, #14161a 100%); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; }
.product-media svg { max-height: 100%; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.product-meta { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.product-price { font-size: 1.15rem; font-weight: 600; margin-top: auto; }
.product-price small { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); margin-top: 3px; }
.product-actions { display: flex; gap: 8px; margin-top: 14px; }
.product-actions .btn { flex: 1; padding: 11px 12px; font-size: .86rem; }

.badge-stock {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold-soft); color: #7a5a06; border-radius: 999px; padding: 3px 9px; margin-bottom: 10px;
  align-self: flex-start;
}

/* ---------------- creator wizard ---------------- */
.creator-head { padding: 132px 0 40px; }
.wizard {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  padding-bottom: 90px;
}
@media (max-width: 1040px) {
  .wizard { grid-template-columns: 1fr; }
}

.steps-bar { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-bottom: 30px; }
.step-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted); padding: 6px 10px 6px 6px; border-radius: 999px;
}
.step-chip b {
  width: 22px; height: 22px; border-radius: 50%; background: var(--silver-2); color: var(--muted);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.step-chip.active { background: var(--ink); color: #fff; }
.step-chip.active b { background: var(--gold); color: #fff; }
.step-chip.done b { background: #1f7a4d; color: #fff; }
.step-chip.done { color: var(--ink); }

.wizard-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.wizard-panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.wizard-panel .hint { font-size: .87rem; color: var(--muted); margin-bottom: 22px; }

.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opt-grid--2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.opt {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  padding: 16px 14px; cursor: pointer; transition: border-color .18s ease, background .18s ease;
  font: inherit; text-align: left;
}
.opt:hover { border-color: var(--silver); }
.opt.selected { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt-title { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 9px; }
.opt-title svg { width: 22px; height: 22px; flex: none; }
.opt-desc { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.opt-price { font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
.opt.selected .opt-title svg * { stroke: var(--ink); }

.opt-swatch { width: 100%; height: 34px; border-radius: 3px; border: 1px solid rgba(0,0,0,.10); }

.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
@media (max-width: 620px) { .size-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 8px; }
.field .unit { color: var(--muted); font-weight: 500; }
.field input[type="number"], .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field .help { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .78rem; color: #b3261e; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #b3261e; }

.quick-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-size {
  padding: 7px 12px; border: 1px solid var(--line); background: var(--paper-2);
  border-radius: 999px; font: inherit; font-size: .82rem; cursor: pointer;
}
.quick-size:hover { border-color: var(--ink); }

.check {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); cursor: pointer; font-size: .9rem;
}
.check input { margin-top: 4px; flex: none; width: 17px; height: 17px; }
.check span small { display: block; color: var(--muted); font-size: .79rem; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* summary / preview column */
.preview-card {
  position: sticky; top: 96px;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.preview-stage {
  background: linear-gradient(165deg, #23262d 0%, #14161a 100%);
  padding: 34px 26px; display: grid; place-items: center; min-height: 268px; position: relative;
}
.preview-stage svg { max-width: 100%; height: auto; }
.preview-note {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: .72rem; color: var(--muted-on-dark);
}
.preview-body { padding: 24px 26px 26px; }
.preview-body h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.spec-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: .86rem; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-dark); }
.spec-list li span:first-child { color: var(--muted-on-dark); }
.spec-list li span:last-child { text-align: right; font-weight: 500; }
.spec-empty { font-size: .86rem; color: var(--muted-on-dark); }

.estimate {
  background: rgba(255,255,255,.06); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px;
}
.estimate-label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.estimate-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; margin-top: 6px; }
.estimate-value small { font-family: var(--font-body); font-size: .78rem; color: var(--muted-on-dark); display: block; margin-top: 6px; font-weight: 500; }
.preview-body .btn { width: 100%; }
.preview-hint { font-size: .76rem; color: var(--muted-on-dark); margin-top: 12px; text-align: center; }

@media (max-width: 1040px) {
  .preview-card { position: static; }
  .preview-stage { min-height: 220px; }
}

/* ---------------- generic cards / steps ---------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* dviejų kolonų blokas (kontaktai) — sugriūna į vieną koloną telefone */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* slenkanti lentelė telefone */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin-top: 26px; }
.table-scroll table { min-width: 620px; }

.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.card .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.section--dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .card .num { background: var(--gold); }

/* ---------------- gallery (CSS columns masonry) ---------------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; background: #e8e9ec; }
.gallery img { width: 100%; }
.gallery figcaption { font-size: .8rem; color: var(--muted); padding: 10px 12px; background: var(--paper-2); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }

/* ---------------- form ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.form-note.ok { color: #1f7a4d; }
.form-note.bad { color: #b3261e; }

/* ---------------- footer ---------------- */
.footer { background: var(--ink); color: var(--muted-on-dark); padding: 66px 0 30px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.footer-list li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .82rem;
}
.footer-credits { font-size: .74rem; opacity: .7; margin-top: 14px; }

/* ---------------- legal pages ---------------- */
.legal { padding: 132px 0 80px; max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 38px; font-size: 1.5rem; }
.legal p, .legal li { color: #2c3037; }
.legal ul { padding-left: 20px; }
.legal .meta { font-size: .84rem; color: var(--muted); margin-bottom: 30px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- kalbų perjungiklis (LT / EN / RU) ---------- */
.lang-sw {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2);
}
.lang-sw button {
  appearance: none; border: 0; background: none; font: inherit;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); padding: 5px 9px; border-radius: 999px;
  cursor: pointer; transition: color .18s ease, background .18s ease;
}
.lang-sw button:hover { color: var(--ink); }
.lang-sw button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-sw button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) {
  .lang-sw { padding: 2px; }
  .lang-sw button { padding: 5px 7px; font-size: .68rem; }
}

/* ---------- teisinių puslapių kalbos pastaba ---------- */
.legal-lang-note {
  margin: 0 0 28px; padding: 12px 16px; font-size: .82rem; line-height: 1.6;
  color: var(--muted); background: var(--gold-soft);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.legal-lang-note strong { color: var(--ink); margin-right: 4px; }
