/* ============================================
   Pagaliau — design system
   ============================================ */

:root {
  /* Colors */
  --paper:           #F7F3ED;
  --paper-alt:       #ECE4D8;
  --paper-strong:    #FFFDF8;
  --ink:             #171310;
  --ink-deep:        #171310;
  --muted:           #6C625A;
  --accent:          #4B2D1F;
  --accent-hover:    #6A3F28;
  --accent-soft:     #D8C5B4;
  --hairline:        rgba(23, 19, 16, .12);
  --hairline-strong: rgba(23, 19, 16, .20);
  --hairline-light:  rgba(255, 253, 248, .18);

  /* Typography */
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 1px 2px rgba(23,19,16,.04), 0 6px 18px rgba(23,19,16,.06);
  --shadow-modal: 0 40px 90px rgba(23,19,16,.30);
  --wall-frame-shadow:
    18px 10px 18px -8px rgba(23,19,15,.30),
    42px 18px 52px -24px rgba(23,19,15,.24),
    4px 3px 7px rgba(23,19,15,.16);

  /* Image */
  --default-photo: url('../assets/default.jpg');
}

/* ============================================
   Base / Reset
   ============================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }
.page { position: relative; }
.page,
.container,
.section,
.modal,
.modal .shell {
  max-width: 100%;
}
.container > *,
.hero-shell > *,
.included-grid > *,
.about-shell > *,
.final-shell > *,
.quality-grid > *,
.prices > *,
.quotes-grid > * {
  min-width: 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
p { margin: 0; }

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
  overflow-wrap: anywhere;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}
.kicker-light { color: var(--accent-soft); }

/* ============================================
   Layout
   ============================================ */

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}
.bg-paper      { background: var(--paper); }
.bg-paper-alt  { background: var(--paper-alt); }
.bg-ink        { background: var(--ink); color: var(--paper); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.narrow { max-width: 740px; }
.section-head .kicker { display: block; margin-bottom: 16px; }
.section-head h2 { max-width: 18ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 18px; }
.section-head .btn { margin-top: 28px; }
.pricing-discount-note {
  margin: 14px auto 0;
  max-width: 62ch;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--paper); }
.bg-ink .lead, .bg-ink p { color: rgba(255, 253, 248, .76); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper-strong);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: rgba(23,19,16,.04); }

.btn-on-dark.btn-primary {
  background: var(--paper-strong);
  color: var(--ink);
}
.btn-on-dark.btn-primary:hover {
  background: #ffffff;
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 237, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-logo {
  width: auto;
  height: 34px;
  max-width: 160px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 16px;
  color: var(--muted);
}
.nav-links a {
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 22px; font-size: 14px; }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 64px 0 96px;
  background: var(--paper);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { padding: 12px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-copy h1 {
  margin: 24px 0 20px;
}
.hero-copy .lead {
  font-size: 19px;
  max-width: 540px;
}
.hero-points-inline {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* Hero stage / room */
.stage {
  position: relative;
  min-height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e4dacd;
}
.room-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.room-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.04));
}
.hero-card {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.hero-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.hero-card-bottom { left: 24px; bottom: 24px; }

/* ============================================
   Frame (CSS-rendered, real cm scale)
   ============================================ */

.frame, .order-frame {
  --scale: 5px;
  --outer-w: 105;
  --outer-h: 75;
  --frame-cm: 3;
  --mat-cm: 6;
  --wood-px: calc(var(--frame-cm) * var(--scale));
  --mat-px: calc(var(--mat-cm) * var(--scale));
  background: #111;
  width: calc(var(--outer-w) * var(--scale));
  height: calc(var(--outer-h) * var(--scale));
  padding: var(--wood-px);
  box-shadow: var(--wall-frame-shadow);
  transition: background .18s ease;
}
.frame {
  position: absolute;
  left: 54.5%;
  top: 30%;
  transform: translate(-50%, -50%);
  border: 0;
  cursor: pointer;
  z-index: 4;
}
.order-frame {
  max-width: 98%;
  max-height: 72vh;
  flex: none;
}
.black-frame { background: #111 !important; }
.white-frame {
  background: #fff !important;
  box-shadow: var(--wall-frame-shadow), inset 0 0 0 1px rgba(25,20,17,.08) !important;
}
.oak-frame { background: linear-gradient(135deg, #d0aa76, #a97845) !important; }

.mat {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: var(--mat-px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.photo-window {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,0,0,.10), rgba(255,255,255,.08)),
    radial-gradient(circle at 48% 35%, rgba(230,230,230,.95), rgba(208,208,208,.55) 28%, rgba(70,70,70,.30) 29%, rgba(40,40,40,.78) 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,.10), inset 0 1px 2px rgba(0,0,0,.08);
  cursor: grab;
  touch-action: none;
}
.photo-window.dragging { cursor: grabbing; }
.photo-window img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: width, height, transform;
}
.photo-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.15), transparent 32%, rgba(255,255,255,.05));
}

/* ============================================
   Section: Ką gaunate (included)
   ============================================ */

.included-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: 64px;
  row-gap: 0;
  align-items: start;
}
.included-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  border-top: 1px solid var(--hairline);
}
.included-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.included-list li:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--hairline);
}
.included-list li:nth-child(even) {
  padding-left: 28px;
}
.included-list .num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}
.included-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.included-list p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.included-assurance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-strong);
}
.included-assurance strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.included-assurance p {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================
   Section: Pricing
   ============================================ */

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.price-card:hover {
  border-color: var(--hairline-strong);
}
.price-card .badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 0;
  margin-bottom: 18px;
}
.price-card .size {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.price-card .eur {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1;
}
.price-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
}
.price-card.featured .badge { color: var(--accent-soft); }
.price-card.featured .size,
.price-card.featured .eur { color: var(--paper-strong); }
.price-card.featured p { color: rgba(255, 253, 248, .68); }

/* ============================================
   Section: Steps (timeline)
   ============================================ */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  top: 20px;
  height: 1px;
  background: var(--hairline-strong);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  padding: 0 12px 0 0;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}
.timeline-step h3 {
  margin-bottom: 8px;
}
.timeline-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================
   Section: Problem
   ============================================ */

.section-problem {
  padding: 80px 0;
}
.section-problem .problem-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.section-problem .problem-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.section-problem.bg-ink .problem-text p {
  color: rgba(255, 253, 248, .76);
}
.section-problem .problem-text-compact {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ============================================
   Section: About
   ============================================ */

.section-about {
  padding: 80px 0;
}
.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.about-shell .section-head { margin-bottom: 0; }
.about-shell .section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  max-width: 16ch;
}
.about-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.about-body p + p { margin-top: 16px; }

/* ============================================
   Section: Testimonials
   ============================================ */

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-card {
  padding: 32px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
}
.quote-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
  font-weight: 400;
}
.quote-card span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   Section: Gift
   ============================================ */

.gift-shell {
  display: block;
}
.gift-shell .section-head {
  max-width: 680px;
}
.gift-shell .section-head .btn {
  margin-top: 28px;
}
.gift-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.gift-list li {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.gift-list li:last-child {
  border-right: 0;
}
.gift-list strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.gift-list p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================
   Section: Quality
   ============================================ */

.section-quality {
  padding: 96px 0;
}
.quality-shell .section-head {
  max-width: 800px;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.quality-item {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quality-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 253, 248, .14);
}
.quality-item h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.quality-item p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 34em;
}

/* ============================================
   Section: FAQ
   ============================================ */

.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0;
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================
   Section: Final CTA
   ============================================ */

.section-final {
  padding: 96px 0;
}
.final-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.final-copy h2 {
  margin: 16px 0 16px;
  max-width: 18ch;
}
.final-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 253, 248, .76);
  max-width: 56ch;
}
.final-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.final-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 253, 248, .55);
  max-width: 36ch;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 28px 0 48px;
  background: var(--ink);
  color: rgba(255, 253, 248, .55);
  font-size: 13px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255, 253, 248, .55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

/* ============================================
   Modal
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 19, 16, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal.active { display: flex; }
.modal .shell {
  width: min(1540px, 100%);
  max-height: calc(100vh - 36px);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: minmax(660px, 1.18fr) minmax(520px, .82fr);
  overflow: hidden;
}
.modal-preview {
  padding: 28px;
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  border-right: 1px solid var(--hairline);
  overflow: hidden;
}
.order-wall {
  position: relative;
  width: min(760px, 100%, calc(100vh - 170px));
  aspect-ratio: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8dfd2;
}
.order-wall .order-frame {
  position: absolute;
  left: 54.5%;
  top: 30%;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: grab;
}
.frame-measure {
  --measure-color: var(--accent);
  --measure-shadow: rgba(255, 253, 248, .72);
  position: absolute;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--measure-color);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 1px 1px var(--measure-shadow);
  pointer-events: none;
}
.frame-measure.is-visible { display: flex; }
.frame-measure::before,
.frame-measure::after {
  content: "";
  position: absolute;
  border-color: var(--measure-color);
  filter: drop-shadow(0 1px 1px var(--measure-shadow));
}
.frame-measure.is-horizontal {
  left: 0;
  right: 0;
  bottom: -44px;
  height: 36px;
  align-items: flex-end;
}
.frame-measure.is-horizontal::before {
  left: 0;
  right: 0;
  top: 8px;
  border-top: 2px solid var(--measure-color);
}
.frame-measure.is-horizontal::after {
  left: 0;
  right: 0;
  top: 2px;
  height: 12px;
  border-left: 2px solid var(--measure-color);
  border-right: 2px solid var(--measure-color);
}
.frame-measure.is-horizontal {
  padding: 0 12px 3px;
  text-align: center;
}
.frame-measure.is-vertical {
  top: 0;
  bottom: 0;
  right: -78px;
  width: 66px;
  justify-content: flex-end;
  padding-left: 18px;
}
.frame-measure.is-vertical::before {
  top: 0;
  bottom: 0;
  left: 8px;
  border-left: 2px solid var(--measure-color);
}
.frame-measure.is-vertical::after {
  top: 0;
  bottom: 0;
  left: 2px;
  width: 12px;
  border-top: 2px solid var(--measure-color);
  border-bottom: 2px solid var(--measure-color);
}
.note {
  max-width: 470px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}
.crop-hint {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-strong);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
.crop-hint.is-visible { display: inline-flex; }
.crop-hint b { color: var(--ink); font-weight: 600; }

.modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 36px);
  background: var(--paper);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 0;
}
.top h2 {
  font-size: 22px;
  font-weight: 600;
}
.close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color .15s ease;
}
.close:hover { background: rgba(23,19,16,.06); }

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 28px 0;
}
.progress span {
  height: 3px;
  border-radius: 99px;
  background: var(--hairline);
}
.progress span.active { background: var(--ink); }

.order-side-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 12px 28px 0;
}
.step-scroll {
  overflow: auto;
  padding: 14px 28px 84px;
  min-height: 0;
}
.step { display: none; }
.step.active {
  display: block;
  animation: fade .22s ease;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.step > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.option-grid,
.colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.step > p.size-description {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
}
.option {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--hairline);
  background: var(--paper-strong);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  text-align: left;
}
.option:hover { border-color: var(--hairline-strong); }
.option.disabled {
  cursor: default;
  opacity: .55;
}
.option.disabled:hover { border-color: var(--hairline); }
.option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.option.selected small { color: var(--accent-soft); }
.option.selected span { color: rgba(255, 253, 248, .68); }
.option small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.option strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.option span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.swatch {
  height: 54px;
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  border: 1px solid var(--hairline);
}
.sw-black { background: #111; }
.sw-white { background: #fff; }
.sw-oak   { background: linear-gradient(135deg, #d0aa76, #a97845); }
.option.selected .swatch { border-color: rgba(255, 253, 248, .3); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
}
.field { display: block; }
.field span {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.field.required span::after {
  content: " *";
  color: #C84F43;
  font-weight: 800;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-strong);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}
.full { grid-column: 1 / -1; }

.buyer-type {
  display: grid;
  gap: 6px;
}
.buyer-type > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.buyer-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.buyer-type-options label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--paper-strong);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.buyer-type-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.buyer-type-options label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.company-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
}
.company-fields.is-hidden,
.js-company-vat-code.is-hidden {
  display: none;
}
.form-section-title {
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.company-fields .form-section-title {
  margin-top: 0;
}
.vat-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.vat-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.vat-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.print-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--ink);
  cursor: pointer;
}
.print-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.print-check strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.print-check small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.color-comment.is-hidden {
  display: none;
}
.optional-note {
  border-top: 1px solid var(--hairline);
  padding-top: 4px;
}
.optional-note summary {
  cursor: pointer;
  display: inline-flex;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.optional-note summary::-webkit-details-marker { display: none; }
.optional-note summary::before {
  content: "+";
  margin-right: 8px;
}
.optional-note[open] summary::before {
  content: "−";
}
.optional-note .field {
  margin-top: 9px;
}

.summary {
  padding: 0;
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
}
.discount-code-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0 4px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
}
.discount-code-box .field {
  min-width: 0;
}
.discount-code-box .btn {
  min-height: 42px;
  padding-inline: 16px;
}
.discount-code-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.discount-code-status.is-success {
  color: #256b45;
  font-weight: 700;
}
.discount-code-status.is-error {
  color: #a13b31;
  font-weight: 700;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
.row:last-child {
  border-bottom: 0;
  font-size: 16px;
  padding-top: 12px;
}
.row strong {
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}
.row.is-hidden {
  display: none;
}

.actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.buy {
  opacity: 1;
  cursor: pointer;
}

.modal-preview .order-frame.upload-ready { cursor: pointer; }

/* Gallery strip in modal */
.gallery-strip {
  width: 100%;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1px 2px 4px;
}
.thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--paper-strong);
  padding: 3px;
  cursor: pointer;
  transition: border-color .15s ease;
  position: relative;
  overflow: hidden;
  flex: none;
}
.thumb:hover { border-color: var(--hairline-strong); }
.thumb.active {
  border-color: var(--ink);
  border-width: 2px;
  padding: 2px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.thumb small {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: var(--radius-pill);
  background: rgba(23, 19, 16, .85);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
  padding: 3px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.thumb .remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(23, 19, 16, .7);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 10;
}
.thumb:hover .remove-thumb { opacity: 1; }
.thumb .remove-thumb:hover { background: #8a2d20; }

.thumb-add {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--hairline-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  transition: border-color .15s ease, color .15s ease;
  flex: none;
}
.thumb-add:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.thumb-add b { font-size: 18px; line-height: 1; font-weight: 500; }
.thumb-add span { font-size: 10px; }

.gallery-discount-hint {
  max-width: 360px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #f6efe5;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  flex: 1 1 240px;
}

.multi-note {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.multi-note strong {
  color: var(--ink);
  font-weight: 700;
}
.multi-note.is-summary {
  padding: 10px 12px;
}
.cart-summary-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.cart-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.cart-summary-grid.is-single {
  grid-template-columns: 1fr;
}
.cart-summary-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.cart-summary-cell.is-total {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  background: var(--ink);
  border-color: var(--ink);
}
.cart-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.cart-summary-cell.is-total .cart-summary-label {
  color: rgba(255, 255, 255, .7);
}
.cart-summary-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cart-summary-cell.is-total .cart-summary-value {
  color: var(--paper);
}
.cart-summary-included {
  justify-self: end;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}
.cart-summary-value.is-discount {
  color: #b14a2a;
}
.cart-summary-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 520px) {
  .cart-summary-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary-cell {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cart-summary-cell.is-total {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .cart-summary-included {
    justify-self: start;
    text-align: left;
  }
}
.apply-row.is-hidden { display: none; }

.apply-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}
.apply-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.cart-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
}
.cart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.cart-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.cart-item b {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.empty-state {
  border: 1.5px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.draft-notice {
  display: none;
  margin: 0 0 18px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(75, 45, 31, .08);
  border: 1px solid rgba(75, 45, 31, .20);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
.draft-notice.active { display: block; }
.draft-notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.frame.empty-preview .photo-window {
  background-image: var(--default-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.order-frame.empty-preview .photo-window {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.36), rgba(255,255,255,.08)),
    linear-gradient(180deg, #d6d1c8, #aaa49b);
  color: var(--muted);
  cursor: pointer;
}
.order-frame.empty-preview .photo-window::before {
  content: "Spauskite čia";
  position: relative;
  z-index: 2;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-strong);
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.order-frame.empty-preview .photo-window::after { display: none; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  .hero-shell,
  .included-grid,
  .gift-shell,
  .about-shell,
  .final-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .quotes-grid,
  .timeline,
  .section-problem .problem-text {
    grid-template-columns: 1fr 1fr;
  }
  .timeline::before { display: none; }
  .included-list { grid-template-columns: 1fr; }
  .included-list li:nth-child(odd),
  .included-list li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 960px) {
  .modal .shell { grid-template-columns: 1fr; }
  .modal-preview {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 18px;
  }
  .order-wall { width: min(520px, 100%); }
  .stage { min-height: 480px; }
  .prices { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner { gap: 10px; }
  .nav-links { display: none; }
  .brand-logo { max-width: 118px; height: 30px; }
  .nav .btn {
    flex: 0 1 auto;
    max-width: 170px;
    padding: 10px 14px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.15;
  }

  .section { padding: 64px 0; }
  .section-final { padding: 80px 0; }
  .section-problem,
  .section-about { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }

  .hero { padding: 40px 0 56px; }
  .hero-shell { gap: 36px; }
  .hero-copy,
  .section-head,
  .about-body,
  .quote-card,
  .faq {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 16px; }
  .hero-trust li { min-width: 0; }
  .stage { min-height: 380px; }
  .hero-card-bottom { left: 16px; bottom: 16px; padding: 12px 14px; max-width: 220px; }
  .hero-card strong { font-size: 12px; }
  .hero-card span { font-size: 11px; }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }
  .timeline::before {
    display: block;
    left: 19px;
    top: 20px;
    bottom: 20px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 20px;
    row-gap: 6px;
    padding: 0 0 32px;
  }
  .timeline-step:last-child { padding-bottom: 0; }
  .step-num { margin-bottom: 0; }
  .timeline-step h3 {
    grid-column: 2;
    margin: 0;
    align-self: center;
  }
  .timeline-step p {
    grid-column: 2;
  }

  .included-list { grid-template-columns: 1fr; }
  .included-list li {
    padding: 20px 0 !important;
    border-right: 0 !important;
  }

  .section-problem .problem-text { grid-template-columns: 1fr; gap: 16px; }

  .about-shell .section-head h2 { font-size: 26px; }

  .quotes-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 24px; }

  .gift-list li {
    padding: 18px 0 !important;
    border-right: 0 !important;
  }
  .gift-list { grid-template-columns: 1fr; }
  .gift-list {
    margin-top: 36px;
  }
  .gift-list li {
    min-height: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .gift-list li:last-child {
    border-bottom: 0;
  }

  .quality-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .quality-item img {
    width: 100%;
    max-width: 100%;
  }
  .quality-item {
    gap: 16px;
  }

  .final-shell { gap: 28px; }
  .final-action { align-items: stretch; }
  .final-action .btn { width: 100%; }
  .final-note { max-width: none; }

  h1 { font-size: 44px; }
  h1, h2, h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .modal { padding: 0; }
  .modal .shell {
    border-radius: 0;
    max-height: 100vh;
    min-height: 100vh;
    overflow: auto;
  }
  .modal-content {
    max-height: none;
  }
  .step-scroll {
    overflow: visible;
  }
  .modal-preview { padding: 14px; }
  .order-wall { width: min(430px, 100%); }
  .modal-preview .note,
  .crop-hint { display: none; }
  .top { padding: 22px 22px 0; }
  .progress { margin-left: 22px; margin-right: 22px; }
  .order-side-gallery { padding-left: 22px; padding-right: 22px; }
  .step-scroll { padding: 20px 22px 140px; }
  .actions { padding: 16px 22px 22px; }
  .option-grid, .colors, .form { grid-template-columns: 1fr; }
  .company-fields,
  .vat-line,
  .buyer-type-options { grid-template-columns: 1fr; }
  .discount-code-box { grid-template-columns: 1fr; }
  .discount-code-box .btn { width: 100%; }
  .foot { flex-direction: column; }
}
