:root {
  --page-bg: #fffaf0;
  --paper: #fffdf8;
  --ink: #0a0a0a;
  --muted: #625f58;
  --line: #e5e0d5;
  --accent: #0a0a0a;
  --accent-dark: #1f1f1f;
  --accent-soft: #f5f0e0;
  --gold: #e8b94a;
  --pink: #ff7aa8;
  --teal: #1a3a3a;
  --lavender: #b8a4ed;
  --peach: #ffb084;
  --mint: #a4d4c5;
  --shadow: 0 12px 32px rgba(40, 32, 20, 0.07);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --content: 1280px;
  --memorial-thumb-ratio: 3 / 4;
  --memorial-thumb-max-height: min(52vh, 400px);
  --fall-duration: 0.75s;
  --fall-step: 0.14s;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 180ms ease-out both page-fade-out;
}

::view-transition-new(root) {
  animation: 260ms ease-out both page-fade-in;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

details:not([open]) > :not(summary) {
  display: none;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  view-transition-name: site-brand;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__name {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #35322d;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.site-nav .site-nav__cta {
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
}

.site-nav .site-nav__cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.site-main {
  padding: 48px 0 96px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
  min-height: min(680px, calc(100vh - 128px));
  padding: 48px 0 72px;
}

.home-hero__content {
  min-width: 0;
  width: 100%;
  max-width: 620px;
}

.home-hero h1 {
  margin: 0 0 16px;
  max-width: 100%;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.home-hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.home-hero__media {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border: 0;
  border-radius: var(--radius-xl);
  background: #faf5e8;
  box-shadow: none;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  background: #faf5e8;
}

.home-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.home-band h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.home-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-access {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: none;
}

.auth-page {
  max-width: 620px;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 700;
}

.client-access__intro h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.client-access__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.client-access__form {
  display: grid;
  gap: 10px;
}

.client-access__form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.admin-toolbar label {
  display: grid;
  gap: 7px;
  color: #35322d;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-form input,
.admin-toolbar input,
.admin-table select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: none;
}

.admin-panel[hidden] {
  display: none;
}

.admin-subsection {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(26, 58, 58, 0.2);
  border-radius: var(--radius-lg);
  background: var(--mint);
}

.admin-session[hidden],
.admin-overview[hidden] {
  display: none;
}

.admin-session div {
  display: grid;
  gap: 4px;
}

.admin-session span {
  color: #315a52;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-session strong {
  font-size: 1.1rem;
}

.admin-session .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.admin-overview article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.admin-overview span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-overview strong {
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-overview small {
  color: var(--muted);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-toolbar h2 {
  margin: 0;
}

.admin-toolbar__actions {
  display: flex;
  gap: 12px;
  align-items: end;
}

.admin-toolbar__actions label {
  min-width: min(320px, 34vw);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f5f0e0;
  color: #3d3832;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table input,
.admin-table textarea,
.admin-table select {
  width: 100%;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-table textarea {
  margin-top: 8px;
  resize: vertical;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #4f493d;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-badge--success {
  border: 1px solid var(--status-success-border);
  background: var(--status-success-soft);
  color: var(--status-success);
}

.admin-badge--warning {
  border: 1px solid var(--status-warning-border);
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.admin-badge--danger {
  border: 1px solid var(--status-danger-border);
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.admin-orders-table {
  min-width: 1080px;
}

.admin-settings-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffdf8;
}

.admin-settings-card > summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
}

.admin-settings-card[open] > summary {
  margin-bottom: 18px;
}

.admin-settings-form,
.admin-settings-form fieldset {
  display: grid;
  gap: 16px;
}

.admin-settings-form fieldset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-price-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-price-groups fieldset {
  align-content: start;
  margin: 0;
  background: #fffdf8;
}

.admin-price-groups legend {
  padding: 0 7px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 850;
}

.admin-price-groups .form-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .admin-price-groups {
    grid-template-columns: 1fr;
  }
}

.admin-availability-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-availability-toggle input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.admin-availability-toggle strong,
.admin-availability-toggle small {
  display: block;
}

.admin-availability-toggle small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.admin-service-table {
  min-width: 1540px;
}

.admin-service-table label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-actions {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.admin-preserve-lines {
  white-space: pre-line;
}

.client-access__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.client-access__row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.editor-page {
  background: #252a31;
  color: #f6f7f8;
}

.editor-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 64px 1fr;
  background: #252a31;
}

.editor-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 0 18px;
  background: #363a42;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-brand {
  color: #fff;
}

.editor-topbar__title {
  display: grid;
  gap: 4px;
  color: #fff;
}

.editor-topbar__title span {
  color: #c1c6cf;
  font-size: 0.86rem;
}

.editor-topbar__nav {
  display: flex;
  gap: 16px;
  color: #d6d9df;
  font-size: 0.92rem;
}

.editor-topbar__nav a {
  text-decoration: none;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(420px, 1fr) 300px;
  min-height: calc(100vh - 64px);
}

.editor-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 8px;
  background: #30343b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-tool {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8cdd5;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.editor-tool.is-active,
.editor-tool:hover {
  background: #454b55;
  color: #fff;
}

.editor-panel,
.editor-db-panel {
  padding: 22px;
  overflow: auto;
  background: #444950;
  color: #f8f8f8;
}

.editor-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-panel h1,
.editor-db-panel h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form label {
  display: grid;
  gap: 8px;
  color: #f2f3f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #69717c;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: #202020;
  font: inherit;
}

.editor-date-grid {
  display: grid;
  gap: 12px;
}

.editor-date-picker {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(158, 212, 195, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 212, 195, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.editor-date-picker--memorial {
  border-color: rgba(232, 185, 74, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 185, 74, 0.13), transparent 46%),
    rgba(255, 255, 255, 0.055);
}

.editor-date-picker:focus-within {
  border-color: #9ed4c3;
  box-shadow: 0 0 0 3px rgba(158, 212, 195, 0.12);
}

.editor-date-picker--memorial:focus-within {
  border-color: #e8b94a;
  box-shadow: 0 0 0 3px rgba(232, 185, 74, 0.12);
}

.editor-date-picker.has-error {
  border-color: #ef796d;
  background: rgba(239, 121, 109, 0.08);
  box-shadow: 0 0 0 3px rgba(239, 121, 109, 0.1);
}

.editor-date-picker legend {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 7px;
  color: #fff;
  font-weight: 800;
}

.editor-date-picker__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(158, 212, 195, 0.6);
  border-radius: 50%;
  color: #bce8da;
  font-size: 0.78rem;
  background: rgba(158, 212, 195, 0.09);
}

.editor-date-picker--memorial .editor-date-picker__icon {
  border-color: rgba(232, 185, 74, 0.62);
  color: #f5d98e;
  background: rgba(232, 185, 74, 0.09);
}

.editor-date-picker__fields {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr;
  gap: 8px;
}

.editor-date-picker__fields label {
  gap: 5px;
  color: #cfd4db;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.editor-date-picker__fields select {
  min-width: 0;
  min-height: 48px;
  padding: 0 34px 0 10px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #1f2529;
  font-size: 16px;
  font-weight: 700;
  background-color: #fff;
  cursor: pointer;
}

.editor-date-picker__fields select:disabled {
  color: #7d8389;
  background-color: #dfe2e4;
  cursor: not-allowed;
}

.editor-date-picker__footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-top: 9px;
}

.editor-date-picker__footer p {
  margin: 0;
  color: #bdc3ca;
  font-size: 0.76rem;
  line-height: 1.4;
}

.editor-date-picker.has-error .editor-date-picker__footer p {
  color: #ffd1cc;
  font-weight: 700;
}

.editor-date-picker__footer button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 10px;
  border: 0;
  border-radius: 10px;
  color: #dbe0e6;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.editor-date-picker__footer button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.editor-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dce0e6;
  font-weight: 500;
}

.editor-form input[type="color"] {
  width: 56px;
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

.editor-color-current {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.editor-color-row output {
  min-width: 7ch;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.editor-color-picker {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #69717c;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.editor-color-picker legend {
  padding: 0 6px;
  color: #f2f3f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.editor-color-exact {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.editor-color-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-color-palette button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 9px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #f4f5f6;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.editor-color-palette button::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: var(--swatch-color, #fff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.editor-color-palette button:hover {
  border-color: rgba(188, 228, 185, 0.72);
  background: rgba(188, 228, 185, 0.1);
  transform: translateY(-1px);
}

.editor-color-palette button.is-selected {
  border-color: #bce4b9;
  background: rgba(188, 228, 185, 0.16);
  box-shadow: 0 0 0 1px rgba(188, 228, 185, 0.22);
}

.editor-color-palette button.is-selected::before {
  box-shadow: inset 0 0 0 2px rgba(32, 37, 43, 0.5), 0 0 0 2px #bce4b9;
}

.editor-color-palette button:focus-visible {
  outline: 3px solid #bce4b9;
  outline-offset: 2px;
}

.editor-color-picker .editor-field-help {
  margin: 12px 0 0;
}

.editor-form textarea {
  min-height: 120px;
  padding: 11px;
  resize: vertical;
}

.editor-word-count,
.editor-note {
  margin: -6px 0 0;
  color: #c8cdd5;
  font-size: 0.84rem;
  line-height: 1.4;
}

.editor-word-count.is-limit {
  color: #ffd27a;
}

.editor-transform-tools {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #69717c;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

#editor-section-text,
#editor-section-colors,
#editor-section-files,
#editor-section-positions,
#editor-section-preview {
  scroll-margin-top: 18px;
}

.editor-section-flash {
  animation: editor-section-flash 700ms ease-out;
}

@keyframes editor-section-flash {
  0% { outline: 2px solid #a4d4c5; outline-offset: 5px; }
  100% { outline-color: transparent; outline-offset: 9px; }
}

.editor-transform-tools span {
  color: #dce0e6;
  font-size: 0.86rem;
  font-weight: 700;
}

.editor-transform-tools div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editor-transform-tools button {
  min-height: 34px;
  border: 1px solid #6f7884;
  border-radius: 6px;
  background: #3a4049;
  color: #f5f6f7;
  cursor: pointer;
}

.editor-transform-tools button.is-active {
  background: var(--accent);
  border-color: #91ad8b;
}

.editor-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.editor-check input {
  width: 18px;
  min-height: 18px;
}

.editor-canvas {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px 28px 30px;
  overflow: auto;
  background: #282d34;
}

.editor-preview-surface {
  min-width: 0;
  padding-bottom: 30px;
  color: #202020;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.editor-canvas__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #d8dce3;
  margin-bottom: 18px;
}

.editor-canvas__toolbar h2 {
  margin: 0;
  font-size: 1rem;
}

.editor-canvas__toolbar span {
  color: #aeb5bf;
  font-size: 0.9rem;
}

.editor-story-photo-tools {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100% - 20px));
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(158, 212, 195, 0.42);
  border-radius: 14px;
  color: #f7faf9;
  background: rgba(31, 43, 42, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-family: Arial, Helvetica, sans-serif;
}

.editor-story-photo-tools[hidden] {
  display: none;
}

.editor-story-photo-tools__header,
.editor-story-photo-tools__header > div,
.editor-story-photo-tools__size label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-story-photo-tools__header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.editor-story-photo-tools button {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: #f7faf9;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.editor-story-photo-tools button:hover,
.editor-story-photo-tools button:focus-visible,
.editor-story-photo-tools button[aria-pressed="true"] {
  border-color: #9ed4c3;
  color: #17352f;
  background: #9ed4c3;
}

.editor-story-photo-tools__header [data-story-photo-close] {
  width: 40px;
  padding: 0;
  font-size: 1.35rem;
}

.editor-story-photo-tools__size {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: end;
}

.editor-story-photo-tools__size > button {
  width: 44px;
  padding: 0;
  font-size: 1.35rem;
}

.editor-story-photo-tools__size label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #dce8e4;
  font-size: 0.86rem;
  font-weight: 700;
}

.editor-story-photo-tools__size output {
  color: #fff;
}

.editor-story-photo-tools__size input {
  width: 100%;
  min-height: 24px;
  margin: 0;
  accent-color: #9ed4c3;
  cursor: ew-resize;
}

.editor-story-photo-tools__fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editor-story-photo-tools__fit[hidden] {
  display: none;
}

.editor-prototype-notice,
.admin-payment-readiness {
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid #8ebead;
  border-radius: 10px;
  color: #174f4a;
  background: #e9f4ef;
  font-weight: 700;
}

.admin-payment-readiness[data-state="error"] {
  border-color: #d7a1a1;
  color: #7b2929;
  background: #fff1f1;
}

.editor-phone-preview {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 100 / 355;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
  color: #202020;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
}

.editor-piece {
  position: absolute;
  cursor: grab;
  touch-action: none;
}

.editor-piece:active {
  cursor: grabbing;
}

.editor-phone-preview header {
  text-align: center;
}

.editor-phone-preview h3 {
  margin: 0 0 0.25em;
  font-size: 58px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
}

.editor-phone-preview p {
  margin: 0 0 14px;
  color: #536463;
  font-family: Arial, Helvetica, sans-serif;
}

.editor-phone-preview .builder-epitaph {
  margin: 0.55rem 0 0;
  color: #334241;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  line-height: 1.4;
}

.editor-header-card,
.builder-header-card {
  padding: 16px 18px;
  border: 1px solid rgba(49, 62, 61, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.editor-phone-preview > blockquote {
  margin: 0;
  color: #334241;
  font-size: 1.2rem;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.editor-preview-text {
  min-height: 120px;
  padding: 12px;
  max-width: 92%;
  overflow: hidden;
}

.editor-preview-story {
  position: relative;
  overflow: visible;
}

.editor-story-layout-piece,
.memorial-story-block--positioned {
  position: relative;
  left: var(--story-offset-x, 0%);
  top: var(--story-offset-y, 0px);
}

.editor-story-layout-piece.is-dragging,
.editor-story-layout-piece.is-resizing {
  z-index: 6;
  outline: 2px solid rgba(49, 104, 87, 0.74);
  outline-offset: 3px;
}

.editor-story-layout-handle {
  position: absolute;
  z-index: 7;
  top: 6px;
  right: 6px;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(49, 62, 61, 0.34);
  border-radius: 10px;
  color: #f7fbf9;
  background: rgba(38, 63, 56, 0.9);
  box-shadow: 0 4px 12px rgba(24, 36, 32, 0.24);
  cursor: grab;
  touch-action: none;
}

.editor-story-layout-handle:active {
  cursor: grabbing;
}

.editor-phone-preview:not(.is-simple-layout) ~ .editor-preview-story .editor-story-layout-handle {
  display: grid;
}

.editor-preview-story__placeholder {
  margin: 0 !important;
  color: #536463;
  line-height: 1.55;
  text-align: center;
}

.editor-preview-story__blocks {
  display: flow-root;
}

.editor-preview-story__text {
  margin: 0 0 18px;
  color: #334241;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(1.08rem * var(--story-text-scale, 1));
  line-height: 1.6;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.editor-story-text-select {
  display: inline;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  white-space: inherit;
  overflow-wrap: inherit;
  cursor: text;
}

.editor-story-text-select[contenteditable="true"] {
  min-height: 1.5em;
  border-radius: 4px;
}

.editor-story-text-select:focus-visible {
  outline: 2px dashed rgba(47, 128, 104, 0.78);
  outline-offset: 2px;
}

.editor-preview-story__photo {
  z-index: 2;
  width: min(var(--story-photo-width, 100%), 100%);
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(49, 62, 61, 0.22);
  border-radius: 8px;
  background: transparent;
}

.editor-preview-story__photo--full {
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.editor-preview-story__photo--left,
.editor-preview-story__photo--right {
  width: min(var(--story-photo-width, 42%), 100%);
  margin-bottom: 10px;
}

.editor-preview-story__photo--left {
  float: left;
  clear: left;
  margin-right: 14px;
}

.editor-preview-story__photo--right {
  float: right;
  clear: right;
  margin-left: 14px;
}

.editor-preview-story__photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: transparent;
}

.editor-preview-story__photo--fit-cover img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.editor-story-photo-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.editor-story-photo-select:disabled {
  cursor: default;
}

.editor-phone-preview:not(.is-simple-layout) ~ .editor-preview-story .editor-preview-story__photo {
  cursor: pointer;
  touch-action: manipulation;
}

.editor-preview-story__photo.is-selected,
.editor-preview-story__photo:focus-within {
  z-index: 5;
  outline: 3px solid #2f8068;
  outline-offset: 4px;
}

.editor-preview-story__text.is-selected {
  outline: 3px solid #2f8068;
  outline-offset: 4px;
}

.editor-story-resize-handle {
  position: absolute;
  z-index: 9;
  right: 6px;
  bottom: 6px;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  color: #fff;
  background: rgba(30, 79, 66, 0.94);
  box-shadow: 0 5px 14px rgba(24, 36, 32, 0.3);
  font: 800 1.15rem/1 Arial, Helvetica, sans-serif;
  cursor: nwse-resize;
  touch-action: none;
}

.editor-phone-preview:not(.is-simple-layout) ~ .editor-preview-story .is-selected > .editor-story-resize-handle {
  display: grid;
}

.editor-story-resize-handle:active {
  cursor: grabbing;
}

.editor-preview-story__photo figcaption {
  padding: 9px 11px;
  color: #334241;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.editor-phone-preview.has-story-blocks > .editor-photo-slot {
  display: none;
}

.editor-photo-slot,
.editor-video-slot {
  position: absolute;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
  border: 1px dashed rgba(49, 62, 61, 0.35);
  background: rgba(255, 255, 255, 0.35);
}

.editor-photo-slot.is-selected {
  outline: 2px solid #78a86f;
  outline-offset: 3px;
}

.editor-photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
}

.editor-video-slot video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

.editor-photo-small {
  min-height: 0;
}

.editor-empty-photo {
  color: rgba(49, 62, 61, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.editor-resize-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(49, 62, 61, 0.45);
  border-left: 2px solid rgba(49, 62, 61, 0.45);
  background: rgba(255, 255, 255, 0.72);
  cursor: nwse-resize;
  z-index: 2;
}

.editor-resize-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.editor-resize-sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}

.editor-resize-ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}

.editor-resize-nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}

.editor-crop-handle {
  position: absolute;
  z-index: 4;
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(49, 62, 61, 0.48);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.editor-photo-slot.is-selected .editor-crop-handle {
  display: block;
}

.editor-crop-up {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.editor-crop-down {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.editor-crop-left {
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
}

.editor-crop-right {
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.editor-stretch-handle {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(49, 62, 61, 0.42);
}

.editor-stretch-x {
  top: 50%;
  right: -1px;
  width: 14px;
  height: 34px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.editor-stretch-left {
  top: 50%;
  left: -1px;
  width: 14px;
  height: 34px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.editor-stretch-y {
  left: 50%;
  bottom: -1px;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.editor-stretch-top {
  left: 50%;
  top: -1px;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  cursor: ns-resize;
}


.editor-db-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-db-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.editor-db-panel dt {
  color: #aeb5bf;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.editor-db-panel dd {
  margin: 0 0 10px;
  line-height: 1.45;
}

.editor-db-panel code,
.editor-topbar code {
  color: #bce4b9;
}

.editor-result {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-result h3 {
  margin: 0;
}

.editor-success-dialog {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(5, 24, 22, 0.42);
}

.editor-success-dialog::backdrop {
  background: rgba(5, 18, 17, 0.72);
  backdrop-filter: blur(4px);
}

.editor-success-dialog__content {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.editor-success-dialog__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--status-success);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.editor-success-dialog .eyebrow,
.editor-success-dialog h2,
.editor-success-dialog p {
  margin: 0;
}

.editor-success-dialog h2 {
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  letter-spacing: -0.035em;
}

.editor-success-dialog p:last-of-type {
  color: var(--muted);
  line-height: 1.55;
}

.editor-success-dialog .button {
  width: 100%;
  margin-top: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs span + span::before,
.breadcrumbs a + span::before,
.breadcrumbs a + a::before {
  content: ">";
  margin-right: 8px;
  color: #9b9288;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: start;
}

.shop-side {
  display: grid;
  gap: 18px;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #faf5e8;
  box-shadow: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery--single .product-media img {
  object-fit: contain;
  padding: 28px;
  background: #faf5e8;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-thumb {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: none;
}

.memorial-preview {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.memorial-preview h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.memorial-preview__phone {
  overflow: hidden;
  border: 1px solid #cbd8d8;
  border-radius: 18px;
  background: #e7f6f6;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42);
  font-family: Georgia, "Times New Roman", serif;
}

.memorial-preview__header {
  padding: 24px 18px 14px;
  text-align: center;
}

.memorial-preview__header h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.memorial-preview__header p {
  margin: 0 0 10px;
  color: #536463;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.memorial-preview__header blockquote {
  margin: 0;
  color: #334241;
  font-size: 1rem;
  line-height: 1.4;
}

.memorial-preview__image {
  width: min(82%, 260px);
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.memorial-preview__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.memorial-preview__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px 20px;
}

.memorial-preview__tiles span {
  display: block;
  min-height: 54px;
  border-radius: 4px;
  background: rgba(94, 124, 88, 0.16);
}

.product-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.product-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.product-price {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 1.7rem;
  font-weight: 700;
}

.product-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.product-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.option-row {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.option-row label {
  font-size: 0.92rem;
  font-weight: 700;
}

.option-row select,
.grave-search input,
.grave-search select,
.memorial-form input,
.memorial-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.memorial-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.button--ghost {
  background: var(--page-bg);
  color: var(--ink);
  border-color: #aaa59b;
}

.button--ghost:hover {
  background: var(--accent-soft);
}

.button--danger {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.button--danger:hover {
  background: #8f1b13;
  border-color: #8f1b13;
}

.button--danger:focus-visible {
  outline: 3px solid rgba(180, 35, 24, 0.3);
  outline-offset: 3px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.info-grid--single {
  grid-template-columns: 1fr;
}

.how-it-works {
  margin-top: 64px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.how-it-works__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}

.how-it-works__heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
}

.how-it-works__heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.how-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.how-step {
  min-width: 0;
  height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.how-step__visual {
  display: grid;
  place-items: center;
  height: 160px;
  margin-bottom: 18px;
}

.how-step__visual svg {
  width: 100%;
  height: 100%;
}

.how-step__number {
  margin: 0 0 8px;
  color: #8a7341;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.how-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.how-step > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.how-flow__arrow {
  color: var(--teal);
}

.how-flow__arrow svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-illustration__line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-illustration__paper { fill: #fffdf8; }
.how-illustration__ink { fill: var(--teal); }
.how-illustration__soft { fill: var(--mint); }
.how-illustration__accent { fill: var(--gold); }
.how-illustration__scan { stroke: #c96363; }

.info-box,
.grave-search {
  min-height: 180px;
  padding: 32px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--lavender);
}

.info-box:nth-child(2n) {
  background: var(--peach);
}

.info-box h2,
.grave-search h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.info-box p,
.grave-search p {
  margin: 0;
  color: #272421;
  line-height: 1.55;
}

.user-page-card {
  display: grid;
  gap: 14px;
}

.user-card-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.user-card-heading .eyebrow {
  margin: 0;
}

.user-card-visibility {
  padding: 5px 9px;
  border-radius: 999px;
  color: #665f56;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 800;
}

.user-card-visibility.is-public,
.user-card-visibility.is-success {
  border: 1px solid var(--status-success-border);
  color: var(--status-success);
  background: var(--status-success-soft);
}

.user-card-visibility.is-info {
  border: 1px solid var(--status-info-border);
  color: var(--status-info);
  background: var(--status-info-soft);
}

.user-card-visibility.is-warning {
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning);
  background: var(--status-warning-soft);
}

.user-card-visibility.is-danger {
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger);
  background: var(--status-danger-soft);
}

.user-card-product {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.user-card-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.user-card-status span {
  color: #6c655c;
  font-size: 0.78rem;
}

.user-card-status strong {
  text-align: right;
}

.user-card-primary {
  width: 100%;
  min-height: 48px;
}

.user-card-more {
  border-top: 1px solid rgba(52, 47, 40, 0.12);
  padding-top: 12px;
}

.user-card-more summary {
  width: max-content;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.user-card-more .actions {
  margin-top: 12px;
}

.user-card-qr-note {
  flex: 1 1 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--status-info-soft);
  color: var(--status-info);
  font-size: 0.86rem;
  line-height: 1.45;
}

.user-card-more .button {
  min-height: 40px;
  font-size: 0.84rem;
}

.grave-search {
  margin-top: 28px;
}

.order-start {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 26px;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.order-start__intro h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.order-start__intro p,
.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.memorial-form {
  display: grid;
  gap: 16px;
}

.memorial-form label {
  display: grid;
  gap: 8px;
  color: #35322d;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.db-requirements {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf8f3;
}

.db-requirements h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.db-requirements ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.db-requirements code {
  color: var(--accent-dark);
  font-weight: 700;
}

.grave-search__form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #faf5e8;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  gap: 20px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner > :first-child {
  grid-column: 1;
  grid-row: 1;
}

.site-footer__inner > :last-child {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.site-footer__support {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 14px;
  border-top: 1px solid rgba(105, 99, 92, 0.22);
  color: #45413c;
  text-align: left;
}

.site-footer__privacy {
  grid-column: 1 / -1;
  grid-row: 3;
  width: fit-content;
  color: #35322d;
  text-underline-offset: 3px;
}

.site-footer__privacy:hover {
  color: var(--ink);
}

.auth-privacy {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.auth-privacy a {
  color: var(--ink);
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  padding: 72px 0 96px;
}

.legal-page__header {
  margin-bottom: 32px;
}

.legal-page__header h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.legal-page__header > p:last-child {
  color: var(--muted);
}

.legal-notice {
  margin-bottom: 26px;
  padding: 20px 22px;
  border: 1px solid #d4a629;
  border-radius: var(--radius);
  background: #fff4c7;
  line-height: 1.6;
}

.legal-notice p {
  margin: 6px 0 0;
}

.legal-content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.legal-content section {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
}

.legal-content p,
.legal-content li {
  color: #45413c;
  line-height: 1.7;
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.business-details,
.product-facts {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px 20px;
  margin: 0;
}

.business-details dt,
.product-facts dt {
  font-weight: 800;
}

.business-details dd,
.product-facts dd {
  margin: 0;
}

.is-missing {
  color: #9c2f22;
  font-weight: 800;
}

.shop-legal-notice {
  margin-bottom: 24px;
}

.legal-form,
.legal-form label,
.editor-alt-fields,
.legal-confirmations {
  display: grid;
  gap: 12px;
}

.legal-form input,
.legal-form select,
.legal-form textarea,
.editor-alt-fields input,
.editor-alt-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.legal-form label,
.editor-alt-fields label {
  font-weight: 700;
}

.editor-field-help,
.editor-file-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.editor-file-help {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.editor-photo-description-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.editor-photo-description {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.editor-photo-description__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.editor-photo-description__title small {
  color: var(--muted);
  font-weight: 500;
}

.editor-photo-description__title .editor-photo-description__name {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #c3c9d0;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-layout-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(158, 212, 195, 0.3);
  border-radius: 16px;
  color: #eef8f4;
  background: rgba(158, 212, 195, 0.1);
}

.editor-layout-summary > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #17352f;
  background: #9ed4c3;
  font-weight: 900;
}

.editor-layout-summary div {
  display: grid;
  gap: 3px;
}

.editor-layout-summary small {
  color: #c7d0d2;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.editor-advanced-layout {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
}

.editor-advanced-layout[hidden] {
  display: none;
}

.editor-phone-preview.is-simple-layout .editor-piece {
  pointer-events: none;
}

.legal-form .check-label,
.auth-form .check-label,
.legal-confirmations label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
}

.legal-form .check-label input,
.auth-form .check-label input,
.legal-confirmations input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.legal-confirmations label {
  grid-template-columns: 22px minmax(0, 1fr);
}

.legal-confirmations label > span {
  min-width: 0;
  line-height: 1.55;
}

.editor-alt-fields,
.legal-confirmations {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.editor-alt-fields legend,
.legal-confirmations legend {
  padding: 0 6px;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid #1a6d62;
  outline-offset: 3px;
}

.checkout-page {
  padding-top: 56px;
  padding-bottom: 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-form h2,
.checkout-summary h2 {
  margin: 4px 0 8px;
}

.checkout-summary {
  position: sticky;
  top: 24px;
}

.checkout-price-lines {
  display: grid;
  gap: 8px;
  margin: 22px 0 14px;
}

.checkout-price-lines p {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.checkout-total {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 18px;
  padding: 17px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.checkout-total span {
  font-weight: 800;
}

.checkout-total strong {
  color: var(--accent-dark);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.checkout-main-action {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.legal-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.legal-table th {
  background: var(--accent-soft);
}

.memorial-page {
  min-height: 100vh;
  width: 98%;
  margin: 1% auto 0;
  background-color: var(--memorial-page-background, #f2ede4);
  border-top: 1px solid var(--memorial-page-border, rgba(61, 83, 72, 0.38));
  border-right: 1px solid var(--memorial-page-border, rgba(61, 83, 72, 0.38));
  border-left: 1px solid var(--memorial-page-border, rgba(61, 83, 72, 0.38));
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", serif;
}

.memorial-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0.7rem 1rem;
  background-color: var(--memorial-page-background, #f2ede4);
  border-bottom: 1px solid var(--memorial-page-border, rgba(61, 83, 72, 0.2));
  backdrop-filter: blur(8px);
}

.memorial-site-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--memorial-site-ink, #233c33);
  text-decoration: none;
}

.memorial-site-link:hover,
.memorial-site-link:focus-visible {
  color: var(--memorial-site-hover, #0f6d55);
}

.memorial-site-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 3px;
}

.memorial-site-link__title {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.memorial-site-link__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.memorial-site-link__hint {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.memorial-bg {
  min-height: 100%;
  background-color: var(--memorial-page-background, #f2ede4);
}

.kraunama,
.klaida {
  max-width: 560px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius);
}

.klaida {
  background: #fde8e8;
  color: #7a1a1a;
  border: 1px solid #e8a0a0;
}

.duomenu-busena {
  max-width: 560px;
  margin: 0 auto 1rem;
  padding: 0.7rem 0.9rem;
  color: #4b3925;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(116, 86, 54, 0.25);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.duomenu-busena[hidden],
#turinys[hidden],
.turinys-video[hidden] {
  display: none !important;
}

.antmastis {
  position: relative;
  margin: 0 0 1rem;
  padding: 1.25rem 0.75rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.antmastis h1,
.antmastis .memorial-dates,
.antmastis .memorial-epitaph {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0.35em 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.antmastis h1 {
  font-size: clamp(1.8rem, 7vw, 3.5rem);
  font-weight: 600;
}

.antmastis .memorial-dates {
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 400;
}

.antmastis .memorial-epitaph {
  font-size: clamp(0.95rem, 3.4vw, 1.25rem);
  font-weight: 400;
}

.memorial-long-text {
  max-width: 680px;
  margin: 1.25rem auto 0;
  padding: 1rem;
  color: #334241;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(49, 62, 61, 0.2);
  border-radius: 6px;
}

.nuotraukos-krenta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.nuotrauka-kortele {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2rem);
  animation: nuotrauka-krenta-zemyn var(--fall-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nuotrauka-kortele:nth-child(1) { animation-delay: calc(var(--fall-step) * 0); }
.nuotrauka-kortele:nth-child(2) { animation-delay: calc(var(--fall-step) * 1); }
.nuotrauka-kortele:nth-child(3) { animation-delay: calc(var(--fall-step) * 2); }

@keyframes nuotrauka-krenta-zemyn {
  from { opacity: 0; transform: translateY(-2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }

  .nuotrauka-kortele {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Aiškesnė pagrindinio puslapio kelionė ir atskira priežiūros užklausa */
.landing-wordmark {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.landing-wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) rotate(2deg);
  animation: landing-letter-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.08s + var(--letter-index) * 0.055s);
}

.landing-intro .landing-title {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  color: #211e1a;
  font-size: clamp(2.75rem, 7.4vw, 6.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.landing-intro__eyebrow {
  margin-bottom: 18px;
}

.landing-intro__lead {
  max-width: 700px;
  margin-top: 26px;
}

.home-paths {
  padding: clamp(70px, 9vw, 116px) 0 clamp(56px, 8vw, 96px);
  scroll-margin-top: 90px;
}

.home-paths__header {
  width: min(100%, 760px);
  margin: 0 auto 34px;
  text-align: center;
}

.home-paths__header h2 {
  max-width: 690px;
  margin: 0 auto 14px;
  color: #211e1a;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-paths__header > p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-path {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  min-height: 310px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 38px rgba(49, 39, 25, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-path::after {
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(164, 212, 197, 0.16);
  content: "";
}

.home-path--primary {
  border-color: rgba(31, 84, 76, 0.35);
  background: linear-gradient(150deg, #eff8f4, #fffdf8 72%);
  box-shadow: 0 20px 52px rgba(31, 84, 76, 0.1);
}

.home-path:hover,
.home-path:focus-visible {
  border-color: rgba(31, 84, 76, 0.55);
  box-shadow: 0 22px 52px rgba(49, 39, 25, 0.12);
  transform: translateY(-4px);
}

.home-path:focus-visible {
  outline: 3px solid rgba(31, 84, 76, 0.2);
  outline-offset: 3px;
}

.home-path__badge {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.22);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-path__number {
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-path > strong {
  align-self: end;
  max-width: 260px;
  color: #211e1a;
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.home-path > small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-path__action {
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(203, 194, 177, 0.66);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.home-support {
  border-top: 1px solid var(--line);
}

.home-support__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.home-support__card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 44px rgba(49, 39, 25, 0.06);
}

.home-support__card.home-grave-search {
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.home-support__card .home-grave-search__copy {
  max-width: 620px;
}

.home-support__card h3 {
  margin: 5px 0 12px;
  color: #211e1a;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.home-support__card p {
  line-height: 1.6;
}

.home-care-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: linear-gradient(150deg, #f7f2e5, #eef3ee);
}

.home-care-card__number {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(31, 84, 76, 0.12);
  font-family: var(--display-font);
  font-size: 4.6rem;
  line-height: 1;
}

.home-care-card > p:not(.eyebrow) {
  color: var(--muted);
}

.home-care-card ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.home-care-card li {
  position: relative;
  padding-left: 25px;
  color: #3f4945;
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-care-card li::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  color: var(--teal-dark);
  content: "✓";
  font-weight: 900;
}

.home-care-card .button {
  width: 100%;
  margin-top: auto;
}

.service-page__main {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(80px, 10vw, 126px);
}

.service-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: end;
  padding: clamp(34px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 14%, rgba(164, 212, 197, 0.3), transparent 34%),
    linear-gradient(145deg, #fffaf0, #f1f4ed);
  box-shadow: 0 22px 60px rgba(49, 39, 25, 0.08);
}

.service-page__hero h1 {
  max-width: 760px;
  margin: 6px 0 18px;
  color: #211e1a;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.service-page__hero > div > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-page__promises {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-page__promises li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(31, 84, 76, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.service-page__promises strong {
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.service-page__promises span {
  color: var(--muted);
  font-size: 0.8rem;
}

.service-page .response-promise {
  margin: 0;
}

.service-page__form {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 54px rgba(49, 39, 25, 0.06);
  scroll-margin-top: 90px;
}

.service-page__form-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.service-page__form-heading h2 {
  margin: 4px 0 12px;
  color: #211e1a;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-page__form-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .home-paths__grid,
  .home-support__grid,
  .service-page__hero {
    grid-template-columns: 1fr;
  }

  .home-path {
    min-height: 250px;
  }

  .service-page__promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-page__promises li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 620px) {
  .landing-intro {
    min-height: calc(100svh - 92px);
    padding-top: 46px;
  }

  .landing-wordmark {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

  .landing-intro .landing-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .landing-intro__lead {
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-paths {
    padding-top: 58px;
  }

  .home-paths__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .home-paths__header h2 {
    margin-left: 0;
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .home-paths__grid {
    gap: 12px;
  }

  .home-path {
    min-height: 230px;
    padding: 20px;
    border-radius: 21px;
  }

  .home-path__number {
    margin-top: 8px;
  }

  .home-path > strong {
    max-width: 280px;
    font-size: 1.85rem;
  }

  .home-support__card,
  .service-page__hero,
  .service-page__form {
    border-radius: 22px;
  }

  .home-support__card.home-grave-search,
  .home-care-card {
    padding: 22px 18px;
  }

  .service-page__hero {
    padding: 28px 20px;
  }

  .service-page__hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .service-page__promises {
    grid-template-columns: 1fr;
  }

  .service-page__promises li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .service-page__form {
    padding: 22px 14px;
  }

  .service-page .service-step-actions,
  .service-page .service-submit {
    position: sticky;
    z-index: 12;
    bottom: calc(var(--dock-height) + 18px + env(safe-area-inset-bottom));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 34px rgba(49, 39, 25, 0.16);
    backdrop-filter: blur(12px);
  }

  .service-page .service-step-actions .button,
  .service-page .service-submit .button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-wordmark span,
  .home-path {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Ramios, nuspėjamos įkėlimo būsenos */
.skeleton-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  width: 100%;
}

.skeleton-card {
  display: grid;
  gap: 12px;
  min-height: 174px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.skeleton-line,
.skeleton-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(100deg, #e7e1d6 28%, #f7f4ed 46%, #e7e1d6 64%);
  background-size: 240% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line {
  width: 100%;
  height: 15px;
}

.skeleton-line--eyebrow {
  width: 34%;
  height: 11px;
}

.skeleton-line--title {
  width: 70%;
  height: 24px;
}

.skeleton-line--short {
  width: 52%;
}

.grave-photo__loading {
  display: block;
  min-height: 180px;
  padding: 0;
}

.grave-photo__loading .skeleton-media {
  width: 100%;
  min-height: 180px;
  border-radius: 14px;
}

.grave-result-more {
  min-width: min(100%, 190px);
}

.grave-result-more > summary {
  list-style: none;
}

.grave-result-more > summary::-webkit-details-marker {
  display: none;
}

.grave-result-more[open] > summary {
  border-color: var(--status-info-border);
  color: var(--status-info);
  background: var(--status-info-soft);
}

.grave-result-more .actions {
  margin-top: 9px;
}

@keyframes skeleton-shimmer {
  to { background-position: -140% 0; }
}

@media (max-width: 860px) {
  body.has-mobile-dock .site-header .site-nav,
  body.has-mobile-dock .site-menu-toggle {
    display: none;
  }
}

@media (max-width: 620px) {
  .grave-result-more,
  .grave-result-more .actions,
  .grave-result-more .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-loading]::after,
  .skeleton-line,
  .skeleton-media {
    animation: none;
  }
}

/* Paleidimo turinys: atsakymo pažadas, DUK, būsenų ir sutikimo puslapiai */
.response-promise {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid rgba(34, 91, 79, 0.18);
  border-radius: 18px;
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.2);
}

.response-promise > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-size: 1.25rem;
}

.response-promise strong {
  font-size: 1.04rem;
}

.response-promise p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-faq {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(203, 194, 177, 0.78);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "+";
  color: var(--teal-dark);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumbs--generated {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  padding-top: 4px;
}

.status-page__main {
  display: grid;
  place-items: center;
  min-height: min(720px, calc(100vh - 190px));
  padding-top: 38px;
  padding-bottom: 70px;
}

.status-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(30px, 6vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(203, 194, 177, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(164, 212, 197, 0.2), transparent 20rem),
    #fffdf8;
  box-shadow: var(--shadow-md);
}

.status-card h1 {
  max-width: 620px;
  margin: 8px 0 16px;
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.status-card > p:not(.eyebrow):not(.status-card__code) {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.status-card__code {
  position: absolute;
  top: -26px;
  right: 18px;
  margin: 0;
  color: rgba(34, 91, 79, 0.07);
  font-family: var(--display-font);
  font-size: clamp(8rem, 24vw, 14rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.status-card__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(34, 91, 79, 0.2);
  font-size: 1.7rem;
  font-weight: 900;
}

.status-card__note {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--teal-dark) !important;
  background: rgba(164, 212, 197, 0.2);
  font-size: 0.92rem !important;
}

.analytics-consent {
  position: fixed;
  z-index: 100003;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 18px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 36px));
  margin: auto;
  padding: 18px 20px;
  border: 1px solid rgba(203, 194, 177, 0.9);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 24px 70px rgba(28, 35, 32, 0.25);
  backdrop-filter: blur(18px);
}

.analytics-consent strong {
  display: block;
  margin-bottom: 4px;
}

.analytics-consent p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.analytics-consent__actions .button {
  min-height: 44px;
  padding: 9px 14px;
}

.analytics-consent__actions > a {
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 750;
}

.analytics-settings {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .analytics-consent {
    bottom: calc(var(--dock-height) + 22px + env(safe-area-inset-bottom));
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .analytics-consent__actions,
  .analytics-consent__actions .button {
    width: 100%;
  }

  .analytics-consent__actions .button {
    justify-content: center;
  }

  .status-card .actions,
  .status-card .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .response-promise {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .response-promise > span {
    width: 40px;
    height: 40px;
  }

  .status-card {
    padding: 28px 22px;
    border-radius: 22px;
  }
}

/* Kapaviečių paieška ir administravimas */
.home-grave-search,
.grave-search-hero {
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f7f2e5, #eef3ee);
}

.home-grave-search { display: grid; gap: 18px; }
.home-grave-search__copy { max-width: 760px; }
.home-grave-search h2,
.grave-search-hero h1 { margin: 4px 0 12px; }
.grave-search-page { display: grid; gap: 34px; }
.grave-search-hero { text-align: center; }
.grave-search-hero > p,
.grave-search-hero .grave-search-form { margin-left: auto; margin-right: auto; }
.grave-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: min(720px, 100%); }
.grave-search-form input,
.grave-admin-form input,
.grave-admin-form textarea,
.grave-admin-form select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--ink); font: inherit;
}
.grave-search-advanced { grid-column: 1 / -1; text-align: left; }
.grave-search-advanced summary { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.grave-search-advanced summary::after { content: "+"; font-size: 1.1rem; }
.grave-search-advanced[open] summary::after { content: "−"; }
.grave-search-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.grave-search-filters label { text-align: left; }
.grave-admin-form { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #faf8f1; }
.grave-admin-form label { display: grid; gap: 7px; font-weight: 700; }
.grave-admin-form__three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grave-results { display: grid; gap: 18px; }
.grave-results__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.grave-result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grave-result-grid--compact .grave-list-item:nth-child(n+4) { display: none; }
.grave-list-item { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.grave-list-item[open] { border-color: rgba(23, 79, 74, 0.38); box-shadow: 0 12px 30px rgba(23, 79, 74, 0.08); }
.grave-list-item__summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; cursor: pointer; list-style: none; }
.grave-list-item__summary::-webkit-details-marker { display: none; }
.grave-list-item__summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9eee8; color: var(--accent-dark); font-size: 1.35rem; }
.grave-list-item[open] .grave-list-item__summary::after { content: "−"; }
.grave-list-item__person { display: grid; gap: 3px; min-width: 0; }
.grave-list-item__person strong { font-family: var(--font-display); font-size: 1.25rem; }
.grave-list-item__person > span:last-child { color: var(--muted); }
.grave-list-item__action { margin-left: auto; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.grave-list-item__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 20px 22px; border-top: 1px solid var(--line); background: #faf8f1; }
.grave-list-item__details p { display: grid; gap: 3px; margin: 0; }
.grave-list-item__details p span { color: var(--muted); font-size: 0.86rem; }
.grave-list-item__details .button { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.grave-list-item__location { grid-column: 1 / -1; color: var(--muted); }
.grave-photo { grid-column: 1 / -1; display: grid; gap: 12px; margin: 2px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.grave-photo__loading { min-height: 180px; display: block; padding: 0; color: var(--muted); }
.grave-photo__loading .skeleton-media { width: 100%; min-height: 180px; border-radius: 14px; }
.grave-photo > img { display: block; width: 100%; max-height: 620px; aspect-ratio: 4 / 3; object-fit: contain; background: #eceae4; }
.grave-photo > img[hidden],
.grave-photo > figcaption[hidden],
.grave-photo__empty[hidden],
.grave-photo__loading[hidden] { display: none; }
.grave-photo > figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px 14px; color: var(--muted); font-size: 0.9rem; }
.grave-photo > figcaption .button { grid-column: auto; flex: 0 0 auto; margin: 0; }
.grave-photo__empty { display: grid; justify-items: start; gap: 8px; padding: 20px; }
.grave-photo__empty strong { font-family: var(--font-display); font-size: 1.15rem; }
.grave-photo__empty span { color: var(--muted); }
.grave-photo__empty .button { margin-top: 4px; }
.grave-photo-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(13, 31, 29, 0.3); }
.grave-photo-dialog::backdrop { background: rgba(12, 25, 24, 0.62); backdrop-filter: blur(3px); }
.grave-photo-form { position: relative; display: grid; gap: 18px; padding: 28px; }
.grave-photo-form h2 { margin: 4px 0 0; }
.grave-photo-form > label { display: grid; gap: 7px; font-weight: 700; }
.grave-photo-form input[type="file"],
.grave-photo-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--ink); font: inherit; }
.grave-photo-form small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.grave-photo-consent { display: flex !important; align-items: flex-start; gap: 11px !important; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f1; font-weight: 400 !important; }
.grave-photo-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-dark); }
.grave-photo-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 1.4rem; cursor: pointer; }
.grave-photo-review__preview { width: 112px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: #eceae4; }
.grave-photo-review__description { max-width: 360px; white-space: pre-wrap; }
.grave-empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.grave-empty--search-help { max-width: 720px; margin-inline: auto; background: rgba(255, 253, 246, 0.78); }
.grave-empty--search-help p { max-width: 580px; margin: 10px auto 0; color: var(--muted); }
.grave-empty--search-help .actions { justify-content: center; margin-top: 22px; }
.grave-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0; }
.grave-source { margin-top: 28px; }
.button--danger { background: #8b3434; border-color: #8b3434; color: #fff; }

@media (max-width: 760px) {
  .grave-search-filters { grid-template-columns: 1fr; }
  .grave-list-item__action { display: none; }
  .grave-list-item__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grave-empty--search-help { padding: 24px 18px; }
  .grave-search-form,
  .grave-admin-form__three { grid-template-columns: 1fr; }
  .grave-search-form .button { width: 100%; }
  .grave-list-item__summary { padding: 16px; }
  .grave-list-item__details { grid-template-columns: 1fr; padding: 16px; }
  .grave-list-item__details .button { width: 100%; }
  .grave-photo > figcaption { align-items: stretch; flex-direction: column; }
  .grave-photo > figcaption .button,
  .grave-photo__empty .button { width: 100%; }
  .grave-photo-form { padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .grave-loader__spinner { animation-duration: 1.8s; }
}

/* Ženkliuko medžiagos pasirinkimas */
.shop-heading {
  width: min(100%, 780px);
  margin: 42px 0 30px;
}

.shop-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.shop-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.product-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 0 42px;
  padding: 0;
  border: 0;
}

.product-choice {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition:
    border-color 220ms ease-out,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease-out;
}

.product-choice:has(input:checked) {
  border-color: var(--accent);
  background: #fffdf8;
  box-shadow: 0 18px 46px rgba(115, 86, 35, 0.12);
}

.product-choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.product-choice:has(input:focus-visible) {
  outline: 3px solid rgba(142, 109, 50, 0.28);
  outline-offset: 3px;
}

.product-recommendation {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(72, 51, 19, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-availability {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  max-width: calc(100% - 26px);
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-availability--unavailable {
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning);
  background: var(--status-warning-soft);
}

.product-availability--available {
  border: 1px solid var(--status-success-border);
  color: var(--status-success);
  background: var(--status-success-soft);
}

.product-choice--unavailable {
  border-style: dashed;
  background: rgba(246, 242, 234, 0.78);
  cursor: not-allowed;
}

.product-choice--unavailable .product-choice__image img {
  filter: grayscale(0.42);
  opacity: 0.72;
}

.product-choice--unavailable .product-choice__content {
  opacity: 0.8;
}

.product-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.product-choice__image {
  min-height: 184px;
  overflow: hidden;
  background: #f4ead7;
}

.product-choice__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .product-choice:not(.product-choice--unavailable):hover {
    border-color: rgba(130, 103, 52, 0.42);
    box-shadow: 0 22px 48px rgba(58, 45, 27, 0.12);
    transform: translateY(-4px);
  }

  .product-choice:not(.product-choice--unavailable):hover .product-choice__image img {
    transform: scale(1.035);
  }
}

.product-choice__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.product-choice__content strong,
.product-choice__content small {
  display: block;
}

.product-choice__content strong {
  margin-bottom: 8px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.product-choice__content small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-choice__price {
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-choice__price--status {
  max-width: 132px;
  color: #6d6559;
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: right;
  white-space: normal;
}

.shop-layout--selected {
  padding-top: 8px;
}

@media (max-width: 1100px) {
  .product-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-choice {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .product-choice__image {
    min-height: 158px;
  }

  .product-choice__content {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
}

.nuotrauka-kortele img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.nuotrauka-kortele__caption {
  display: block;
  padding: 0.8rem 0.9rem;
  color: #334241;
  background: rgba(255, 255, 255, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.pixel-art {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.turinys-video {
  max-width: 560px;
  margin: 1.25rem auto 0;
  padding-bottom: 1.25rem;
}

.builder-view {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 100 / 355;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.builder-piece {
  position: absolute;
}

.builder-header {
  text-align: center;
}

.builder-header h1 {
  margin: 0 0 0.25em;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.builder-header p {
  margin: 0;
  color: #536463;
  font-family: Arial, Helvetica, sans-serif;
}

.builder-epitaph {
  margin: 0.55rem 0 0;
  color: #334241;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  line-height: 1.4;
}

.builder-text {
  margin: 0;
  color: #334241;
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
}

.builder-photo {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(49, 62, 61, 0.2);
  background: transparent;
  cursor: pointer;
}

.builder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
}

.editor-photo-caption,
.builder-photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  max-height: 45%;
  overflow: hidden;
  padding: 0.45rem 0.6rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.68rem, 2.4vw, 0.9rem);
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
}

.memorial-story,
.memorial-story-gallery,
.memorial-photo-sources {
  width: min(680px, calc(100% - 24px));
  margin: 1.5rem auto 0;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid rgba(49, 62, 61, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.memorial-story h2,
.memorial-story-gallery h2,
.memorial-photo-sources h2 {
  margin: 0 0 1rem;
  color: #233c33;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.memorial-story__text {
  color: #334241;
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.memorial-story-blocks {
  display: flow-root;
  min-width: 0;
  padding-bottom: var(--story-offset-padding, 0px);
}

.memorial-story-blocks > h2 {
  margin-bottom: clamp(1.15rem, 4vw, 1.8rem);
}

.memorial-story-block--text {
  margin: 0 0 clamp(1.15rem, 4vw, 1.8rem);
  color: #334241;
  font-size: calc(1.05rem * var(--story-text-scale, 1));
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.memorial-story-block--text > :first-child {
  margin-top: 0;
}

.memorial-story-block--text > :last-child {
  margin-bottom: 0;
}

.memorial-story-block--photo {
  width: min(var(--story-photo-width, 100%), 100%);
  min-width: 0;
  margin: 0 0 clamp(1.15rem, 4vw, 1.8rem);
}

.memorial-story-block--photo-full {
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.memorial-story-block--photo-left,
.memorial-story-block--photo-right {
  width: min(var(--story-photo-width, 42%), 100%);
  margin-bottom: 0.75rem;
}

.memorial-story-block--photo-left {
  float: left;
  clear: left;
  margin-right: clamp(0.85rem, 3vw, 1.35rem);
}

.memorial-story-block--photo-right {
  float: right;
  clear: right;
  margin-left: clamp(0.85rem, 3vw, 1.35rem);
}

.memorial-story-blocks > :last-child {
  margin-bottom: 0;
}

figure.memorial-story-block--photo,
.memorial-story-block--photo > figure {
  overflow: hidden;
  border: 1px solid rgba(49, 62, 61, 0.18);
  border-radius: 10px;
  background: transparent;
}

.memorial-story-block--photo button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.memorial-story-block--photo img {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: transparent;
}

.memorial-story-block--photo-fit-cover img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.memorial-story-block--photo figcaption {
  padding: 0.8rem 0.9rem;
  border-top: 1px solid rgba(49, 62, 61, 0.12);
  color: #334241;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.memorial-story-video {
  width: min(680px, calc(100% - 24px));
  margin: 1.5rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(49, 62, 61, 0.2);
  border-radius: 10px;
  background: #111;
}

.memorial-story-video video {
  display: block;
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

.editor-video-slot.memorial-story-video {
  position: relative;
  display: block;
  min-height: 0;
  border-style: solid;
}

.editor-video-slot.memorial-story-video[hidden] {
  display: none;
}

.editor-video-slot.memorial-story-video video {
  height: auto;
}

.memorial-story-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.memorial-story-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 62, 61, 0.18);
  border-radius: 8px;
  background: #fff;
}

.memorial-story-gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.memorial-story-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.memorial-story-gallery figcaption {
  padding: 0.75rem 0.85rem;
  color: #334241;
  font-size: 0.95rem;
  line-height: 1.45;
}

.builder-video video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

.video-fs-wrap {
  position: relative;
  width: 100%;
  background: #111;
}

.video-fs-wrap video {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.video-fs-play,
.video-fs-close {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.video-fs-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(120px, 30vw);
  height: min(120px, 30vw);
  border-radius: 50%;
  padding: 0 0 0 0.2em;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: clamp(2.2rem, 10vw, 3.8rem);
  z-index: 3;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.video-fs-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.75rem;
}

.video-fs-play[hidden],
.video-fs-close[hidden] {
  display: none !important;
}

.video-fs-wrap:fullscreen,
.video-fs-wrap:-webkit-full-screen,
.video-fs-wrap.fs-fake {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #000;
}

.video-fs-wrap:fullscreen video,
.video-fs-wrap:-webkit-full-screen video,
.video-fs-wrap.fs-fake video {
  flex: 1;
  width: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.video-fs-wrap.fs-fake {
  position: fixed;
  inset: 0;
  z-index: 99990;
}

.gallery {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
}

.gallery-inner {
  display: flex;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  touch-action: pan-y;
}

.gallery-inner figure {
  min-width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  scroll-snap-align: start;
}

.gallery-inner img {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  object-fit: contain;
}

.gallery-inner figcaption {
  max-height: 30vh;
  overflow-y: auto;
  padding: 0.8rem 4.5rem 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-align: center;
}

.gallery-nav,
.gallery-close {
  position: fixed;
  z-index: 100001;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
}

.gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.25em 0.4em;
}

.gallery-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-close {
  top: 10px;
  right: 15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
}

@media (min-width: 861px) and (max-width: 1280px) {
  .editor-workspace {
    grid-template-columns: minmax(340px, 400px) minmax(360px, 1fr);
  }

  .editor-db-panel {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

}

@media (max-width: 860px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .shop-layout,
  .info-grid,
  .home-hero,
  .home-band,
  .order-start,
  .grave-search__form {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero > *,
  .shop-layout > *,
  .info-grid > * {
    min-width: 0;
  }

  .home-hero__media {
    min-height: 360px;
  }

  .client-access__row {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    grid-template-rows: auto 1fr;
  }

  .editor-topbar,
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-topbar {
    gap: 12px;
    padding: 14px;
  }

  .editor-topbar__nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .editor-workspace {
    grid-template-areas:
      "rail"
      "canvas"
      "panel"
      "database";
  }

  .editor-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-area: rail;
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    padding: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .editor-tool {
    min-height: 46px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .editor-panel {
    grid-area: panel;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 0;
  }

  .editor-canvas {
    grid-area: canvas;
    min-width: 0;
    padding: 16px;
    overflow: visible;
  }

  .editor-db-panel {
    grid-area: database;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .editor-canvas__toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .editor-canvas__toolbar span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .editor-phone-preview {
    width: min(560px, 100%);
    min-height: 0;
  }

  .editor-form input,
  .editor-form textarea,
  .editor-form select,
  .editor-transform-tools button {
    min-height: 48px;
    font-size: 16px;
  }

  .editor-transform-tools button {
    padding: 8px;
  }

  .product-media {
    min-height: 420px;
  }

  .product-panel {
    padding: 22px;
  }

  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-toolbar__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar__actions label {
    min-width: 0;
  }

  .how-it-works__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-flow {
    grid-template-columns: 1fr;
  }

  .how-flow__arrow {
    width: 42px;
    margin: -4px auto;
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .site-main,
  .site-footer__inner {
    width: min(var(--content), calc(100% - 24px));
  }

  .site-header__inner {
    gap: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .site-nav a,
  .site-nav .site-nav__cta {
    display: inline-flex;
    justify-content: center;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  .actions,
  .form-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-session,
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-session .button {
    width: 100%;
  }

  .how-it-works {
    margin-top: 42px;
    padding: 26px 18px;
  }

  .editor-photo-description-grid,
  .memorial-story-gallery__grid {
    grid-template-columns: 1fr;
  }

  .editor-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  #editor-section-text,
  #editor-section-colors,
  #editor-section-files,
  #editor-section-positions,
  #editor-section-preview {
    scroll-margin-top: 112px;
  }

  .editor-topbar__title span {
    display: none;
  }

  .editor-topbar__nav {
    font-size: 0.85rem;
  }

  .editor-panel,
  .editor-db-panel {
    padding: 18px 14px;
  }

  .editor-canvas {
    padding: 14px 8px 22px;
  }

  .editor-phone-preview {
    padding: 0;
  }

  .editor-transform-tools div {
    grid-template-columns: 1fr;
  }

  .gallery-inner figcaption {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
    font-size: 0.9rem;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .home-hero,
  .home-hero__content,
  .home-hero p,
  .home-hero .actions,
  .home-hero .button {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .home-hero__media {
    width: 100%;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-footer__inner > :last-child {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .site-footer__support {
    grid-row: 3;
  }

  .site-footer__privacy {
    grid-column: 1;
    grid-row: 4;
  }

  .legal-page {
    width: min(100% - 24px, 920px);
    padding: 48px 0 72px;
  }

  .legal-content section {
    padding: 22px 18px;
  }

  .business-details,
  .product-facts {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .business-details dd,
  .product-facts dd {
    margin-bottom: 10px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .product-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .product-media {
    min-height: 320px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .memorial-page {
    width: calc(100% - 12px);
    margin: 6px auto 0;
  }

  .memorial-site-header {
    padding: 0.6rem 0.75rem;
  }

  .memorial-site-link__hint {
    font-size: 0.7rem;
  }
}

@media (pointer: coarse) {
  .editor-resize-handle,
  .editor-crop-handle {
    width: 30px;
    height: 30px;
  }

  .editor-stretch-x,
  .editor-stretch-left {
    width: 24px;
    height: 46px;
  }

  .editor-stretch-y,
  .editor-stretch-top {
    width: 46px;
    height: 24px;
  }
}

/* Naujas pradžios puslapis */
html {
  scroll-behavior: smooth;
}

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

.home-main {
  position: relative;
}

.landing-intro,
.home-section {
  scroll-margin-top: 86px;
}

.landing-intro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(72px, 10vw, 132px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 76%, rgba(92, 99, 70, 0.1), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.72), transparent 34%);
  text-align: center;
  isolation: isolate;
}

.landing-intro__glow {
  position: absolute;
  z-index: -1;
  width: min(62vw, 720px);
  aspect-ratio: 4 / 5;
  border-radius: 72px;
  background: linear-gradient(145deg, rgba(212, 182, 116, 0.2), rgba(237, 222, 188, 0.1) 48%, transparent 76%);
  filter: blur(34px);
  animation: landing-breathe 7s ease-in-out infinite;
}

.landing-intro__product {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: -2;
  display: block;
  width: clamp(430px, 46vw, 640px);
  margin: 0;
  overflow: hidden;
  border-radius: clamp(30px, 4vw, 58px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-intro__product::after {
  position: absolute;
  inset: -2px;
  content: "";
  background:
    linear-gradient(90deg, #fffaf0 0, rgba(255, 250, 240, 0.76) 8%, transparent 28%, transparent 72%, rgba(255, 250, 240, 0.76) 92%, #fffaf0 100%),
    linear-gradient(180deg, #fffaf0 0, rgba(255, 250, 240, 0.68) 10%, transparent 27%, transparent 73%, rgba(255, 250, 240, 0.72) 91%, #fffaf0 100%);
}

.landing-intro__product img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.24;
  filter: saturate(0.5) contrast(0.9);
}

.landing-intro__content {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
}

.landing-intro__eyebrow {
  margin-bottom: 24px;
  animation: landing-copy-in 0.8s 0.15s both;
}

.landing-title {
  display: flex;
  justify-content: center;
  margin: 0;
  color: #211e1a;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.landing-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) rotate(2deg);
  animation: landing-letter-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.18s + var(--letter-index) * 0.075s);
}

.landing-intro__lead {
  max-width: 620px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  animation: landing-copy-in 0.8s 0.92s both;
}

.landing-intro__actions {
  justify-content: center;
  margin-top: 34px;
  animation: landing-copy-in 0.8s 1.08s both;
}

.landing-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(67, 58, 46, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
}

.landing-scroll span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: landing-scroll-dot 1.8s ease-in-out infinite;
}

.landing-proof {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -28px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 194, 177, 0.78);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 20px 55px rgba(42, 34, 23, 0.09);
  list-style: none;
  backdrop-filter: blur(16px);
}

.landing-proof li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-width: 0;
  padding: 20px 22px;
}

.landing-proof li + li {
  border-left: 1px solid rgba(203, 194, 177, 0.62);
}

.landing-proof li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.24);
  font-size: 0.72rem;
  font-weight: 850;
}

.landing-proof strong,
.landing-proof small {
  display: block;
}

.landing-proof strong {
  margin: 1px 0 5px;
  font-size: 0.96rem;
  line-height: 1.3;
}

.landing-proof small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.landing-proof a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-section {
  padding: clamp(76px, 10vw, 128px) 0;
}

.home-section--qr {
  border-top: 1px solid var(--line);
}

.home-section--qr .home-hero {
  min-height: auto;
  padding: 0;
}

.home-section--qr .home-hero h2,
.home-section__header h2 {
  margin: 0 0 18px;
  color: #211e1a;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-section--qr .info-grid {
  margin-top: 42px;
}

.home-services {
  border-top: 1px solid var(--line);
}

.home-section__header {
  width: min(100%, 790px);
  margin-bottom: 42px;
}

.home-section__header p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.service-request,
.service-request label {
  display: grid;
  gap: 8px;
}

.memorial-photo-sources ol {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.35rem;
}

.memorial-photo-sources li {
  padding-left: 0.25rem;
  color: #334241;
  line-height: 1.5;
}

.memorial-photo-sources strong,
.memorial-photo-sources a,
.memorial-photo-sources span {
  display: block;
}

.memorial-photo-sources a {
  margin-top: 0.25rem;
  color: #174f4a;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.memorial-photo-sources span {
  color: #68716d;
  font-size: 0.88rem;
}

.service-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.service-stepper button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #6d665c;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.service-stepper button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7e1d7;
}

.service-stepper button.is-active {
  border-color: var(--accent);
  color: var(--ink);
  background: #fffdf8;
}

.service-stepper button.is-active span {
  color: #fff;
  background: var(--accent);
}

.service-step-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(93, 78, 53, 0.1);
}

.service-step-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 220ms ease;
}

.service-step-status {
  min-height: 24px;
  margin: 4px 0 0;
}

.service-step {
  display: grid;
  gap: 20px;
  scroll-margin-top: 100px;
}

.service-step[hidden] {
  display: none;
}

.service-step__header {
  display: grid;
  gap: 5px;
}

.service-step__header > span {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-step__header h3,
.service-step__header p {
  margin: 0;
}

.service-step__header h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.service-step__header p {
  color: var(--muted);
}

.service-step-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.service-saved-grave {
  padding: 15px;
  border: 1px solid rgba(142, 109, 50, 0.22);
  border-radius: 14px;
  background: var(--accent-soft);
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-choice {
  position: relative;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  min-height: 236px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 103, 52, 0.42);
  box-shadow: 0 18px 42px rgba(58, 45, 27, 0.08);
}

.service-choice:has(input:checked) {
  border-color: var(--accent);
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(115, 86, 35, 0.12);
}

.service-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.service-choice__check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.service-choice:has(input:focus-visible) {
  outline: 3px solid rgba(142, 109, 50, 0.28);
  outline-offset: 3px;
}

.service-choice:has(input:checked) .service-choice__check {
  border-color: var(--accent);
  background: var(--accent);
}

.service-choice:has(input:checked) .service-choice__check::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.service-choice__number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-choice__body {
  grid-column: 1 / -1;
  align-self: end;
  padding-right: 42px;
}

.service-choice__body strong,
.service-choice__body small,
.service-choice__price small,
.service-choice__price strong {
  display: block;
}

.service-choice__body strong {
  margin-bottom: 9px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.service-choice__body small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.service-choice__price {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  text-align: right;
}

.service-choice__price small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-details {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.service-details[hidden],
.service-extra[hidden] {
  display: none;
}

.service-details__intro {
  margin-bottom: 4px;
}

.service-details__intro h3 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.service-details__intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-details__grid {
  grid-template-columns: 1fr 1fr;
}

.service-details label {
  color: #35322d;
  font-size: 0.94rem;
  font-weight: 700;
}

.service-details input,
.service-details textarea,
.service-details select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.service-details textarea {
  resize: vertical;
  line-height: 1.5;
}

.service-details input:focus,
.service-details textarea:focus,
.service-details select:focus {
  outline: 3px solid rgba(142, 109, 50, 0.16);
  border-color: var(--accent);
}

.service-extra {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.service-variant-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-variant-group legend {
  margin-bottom: 12px;
  color: #35322d;
  font-size: 0.94rem;
  font-weight: 700;
}

.service-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.service-variant-grid--cleaning {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-details .service-variant {
  position: relative;
  display: block;
  min-width: 0;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.service-details .service-variant:hover {
  border-color: rgba(142, 109, 50, 0.55);
}

.service-details .service-variant:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(142, 109, 50, 0.13);
}

.service-details .service-variant input {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.service-variant strong,
.service-variant small {
  display: block;
}

.service-variant strong {
  line-height: 1.3;
}

.service-variant small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
}

.service-variant--wide {
  grid-column: 1 / -1;
}

.service-estimate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.service-estimate > span {
  font-weight: 700;
}

.service-estimate > strong {
  color: var(--accent-dark);
  font-size: 1.35rem;
  text-align: right;
}

.service-estimate__total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.service-estimate > small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.4;
}

.service-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.service-quote-box {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(23, 79, 74, 0.25);
  border-radius: 14px;
  background: var(--mint);
}

.service-quote-box span,
.service-quote-box small {
  color: var(--muted);
}

.service-quote-box strong {
  color: var(--accent-dark);
  font-size: 1.45rem;
}

.service-quote-box p {
  margin: 0;
  white-space: pre-line;
}

.user-page-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 79, 74, 0.12);
}

.service-details .service-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .service-stepper {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-stepper button {
    grid-template-columns: 1fr;
    justify-items: center;
    font-size: 0.7rem;
    text-align: center;
  }

  .service-step-actions,
  .service-submit {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-step-actions .button,
  .service-submit .button {
    width: 100%;
  }
}

.service-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.service-submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.service-submit .form-status {
  margin: 0;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

@keyframes landing-letter-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes landing-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes landing-scroll-dot {
  0% { transform: translate(-50%, 0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

@media (max-width: 860px) {
  .landing-intro {
    min-height: calc(100svh - 116px);
  }

  .service-picker,
  .service-details__grid {
    grid-template-columns: 1fr;
  }

  .service-variant-grid--cleaning {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-choice {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .landing-intro {
    min-height: calc(100svh - 148px);
    padding: 62px 0 82px;
    background:
      radial-gradient(circle at 86% 80%, rgba(92, 99, 70, 0.09), transparent 34%),
      radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 36%);
  }

  .landing-intro__product {
    top: 53%;
    left: 50%;
    width: min(90vw, 430px);
    border-radius: 30px;
    transform: translate(-50%, -50%);
  }

  .landing-intro__product::after {
    background:
      linear-gradient(90deg, #fffaf0 0, rgba(255, 250, 240, 0.76) 7%, transparent 25%, transparent 75%, rgba(255, 250, 240, 0.76) 93%, #fffaf0 100%),
      linear-gradient(180deg, #fffaf0 0, rgba(255, 250, 240, 0.7) 9%, transparent 25%, transparent 75%, rgba(255, 250, 240, 0.74) 92%, #fffaf0 100%);
  }

  .landing-intro__product img {
    opacity: 0.2;
    filter: saturate(0.46) contrast(0.88);
  }

  .landing-title {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .landing-intro__actions,
  .landing-intro__actions .button,
  .service-submit,
  .service-submit .button {
    width: 100%;
  }

  .service-choice {
    min-height: 176px;
    padding: 18px;
  }

  .service-details {
    padding: 22px 16px;
  }

  .service-variant-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .landing-intro__glow,
  .landing-intro__product,
  .landing-title span,
  .landing-intro__eyebrow,
  .landing-intro__lead,
  .landing-intro__actions,
  .landing-scroll span {
    animation: none;
  }

  .landing-title span,
  .landing-intro__eyebrow,
  .landing-intro__lead,
  .landing-intro__actions {
    opacity: 1;
    transform: none;
  }
}
body[data-loading]::before,
body[data-loading]::after {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  animation: page-loader-reveal 180ms ease 160ms forwards;
  transition: opacity 220ms ease;
}

body[data-loading]::before {
  content: "";
  inset: 0;
  background:
    linear-gradient(90deg, #e8e2d6 0, #f5f1e8 48%, #e8e2d6 100%) center calc(50% - 126px) / min(74vw, 360px) 22px no-repeat,
    linear-gradient(90deg, #e8e2d6 0, #f5f1e8 48%, #e8e2d6 100%) center calc(50% - 82px) / min(86vw, 520px) 118px no-repeat,
    linear-gradient(90deg, #e8e2d6 0, #f5f1e8 48%, #e8e2d6 100%) calc(50% - 78px) calc(50% + 68px) / min(34vw, 190px) 16px no-repeat,
    linear-gradient(90deg, #e8e2d6 0, #f5f1e8 48%, #e8e2d6 100%) calc(50% - 28px) calc(50% + 102px) / min(58vw, 310px) 16px no-repeat,
    #f8f4eb;
  background-attachment: fixed;
}

body[data-loading]::after {
  content: "";
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.62) 50%, transparent 65%);
  transform: translateX(-55%);
  animation: page-loader-reveal 180ms ease 160ms forwards, skeleton-sweep 1.35s ease-in-out 160ms infinite;
}

body[data-loading].page-loaded::before,
body[data-loading].page-loaded::after {
  opacity: 0;
  animation: none;
}

@keyframes page-loader-reveal {
  to { opacity: 1; }
}

@keyframes skeleton-sweep {
  to { transform: translateX(55%); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-loading]::before,
  body[data-loading]::after {
    animation-delay: 0s;
    transition: none;
  }

  body[data-loading]::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 2026-07 mobilios patirties ir vizualinės sistemos atnaujinimas */
:root {
  --display-font: Georgia, "Times New Roman", serif;
  --surface: rgba(255, 253, 248, 0.88);
  --surface-strong: #fffdf8;
  --line-strong: #cbc2b1;
  --teal-dark: #102f2d;
  --teal-bright: #1c665f;
  --gold-soft: #f3dfaa;
  --focus-ring: #1a6d62;
  --dock-height: 70px;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(184, 164, 237, 0.09), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(164, 212, 197, 0.11), transparent 32rem),
    var(--page-bg);
}

h1,
h2,
.shop-heading h1,
.home-section--qr .home-hero h2,
.home-section__header h2,
.client-access__intro h1,
.grave-search-hero h1 {
  font-family: var(--display-font);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.brand__mark {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--teal-dark);
  box-shadow: 0 8px 22px rgba(16, 47, 45, 0.16);
}

.brand__mark img {
  object-fit: cover;
}

.brand__name {
  font-family: var(--display-font);
  font-size: 1.22rem;
}

.site-header {
  box-shadow: 0 8px 30px rgba(45, 38, 27, 0.035);
}

.site-nav a,
.site-nav button,
.button {
  transition:
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button {
  min-height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.09);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.13);
}

.button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.1);
}

.button--ghost {
  box-shadow: none;
}

.button--ghost:hover {
  box-shadow: 0 8px 20px rgba(58, 45, 27, 0.06);
}

.site-nav a[aria-current="page"],
.legal-links a[aria-current="page"] {
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.24);
  font-weight: 800;
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-menu-toggle span + span {
  margin-top: 5px;
}

.site-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-dock {
  position: fixed;
  z-index: 45;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: var(--dock-height);
  padding: 7px;
  border: 1px solid rgba(203, 194, 177, 0.82);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 18px 50px rgba(30, 38, 34, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-dock a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 3px 6px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.mobile-dock a::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 13px;
  background: transparent;
  transform: scale(0.84);
  transition: transform 180ms ease, background 180ms ease;
}

.mobile-dock a[aria-current="page"] {
  color: var(--teal-dark);
}

.mobile-dock a[aria-current="page"]::before {
  background: rgba(164, 212, 197, 0.34);
  transform: scale(1);
}

.mobile-dock svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.context-back {
  padding: 4px 8px 4px 0;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.context-back::after {
  content: "";
  display: inline-block;
  height: 16px;
  margin-left: 10px;
  border-right: 1px solid var(--line);
  vertical-align: middle;
}

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease-out, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: none;
}

.product-choice.reveal-item {
  transition:
    opacity 260ms ease-out,
    border-color 220ms ease-out,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease-out;
}

.site-toast {
  position: fixed;
  z-index: 100002;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 14px 34px rgba(16, 47, 45, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: none;
}

.home-grave-search,
.grave-search-hero,
.product-panel,
.product-choice,
.service-choice,
.service-details,
.client-access,
.auth-card,
.checkout-form,
.checkout-summary,
.legal-content section {
  box-shadow: 0 18px 55px rgba(58, 45, 27, 0.055);
}

body[data-loading]::before,
body[data-loading]::after {
  animation-delay: 520ms;
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: 64px;
    padding: 9px 0;
    align-items: center;
    flex-direction: row;
  }

  .site-menu-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-menu-ready .site-nav {
    position: fixed;
    z-index: 50;
    top: 74px;
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: min(70vh, 520px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 70px rgba(28, 35, 32, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  }

  .site-menu-ready.site-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-menu-ready .site-nav a,
  .site-menu-ready .site-nav button,
  .site-menu-ready .site-nav .site-nav__cta {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 10px 12px;
    text-align: center;
  }

  body.site-menu-open::after {
    content: "";
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(20, 27, 25, 0.2);
    backdrop-filter: blur(2px);
  }

  .mobile-dock {
    display: grid;
  }

  body.has-mobile-dock {
    padding-bottom: calc(var(--dock-height) + 28px + env(safe-area-inset-bottom));
  }

  body.has-mobile-dock .site-toast {
    bottom: calc(var(--dock-height) + 34px + env(safe-area-inset-bottom));
  }

  .home-section,
  .site-main {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 560px) {
  .site-menu-ready .site-nav {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 9px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 1.12rem;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .site-main {
    padding-top: 30px;
  }

  .site-toast {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .landing-proof {
    grid-template-columns: 1fr;
    margin-top: -18px;
    border-radius: 18px;
  }

  .landing-proof li {
    padding: 16px 18px;
  }

  .landing-proof li + li {
    border-top: 1px solid rgba(203, 194, 177, 0.62);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .site-nav,
  .button,
  .mobile-dock a::before,
  .product-choice,
  .product-choice__image img {
    transition: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* Redaktoriaus žingsniai */
#product-image,
#editor-product-image {
  view-transition-name: selected-product-image;
}

.editor-product-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.editor-product-card img {
  width: 68px;
  height: 72px;
  padding: 5px;
  border-radius: 10px;
  background: #f7f1e4;
  object-fit: contain;
}

.editor-product-card .editor-note {
  margin: 0 0 7px;
}

.editor-utility-bar {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: space-between;
  margin: 0 0 10px;
}

.editor-history-actions {
  display: flex;
  gap: 6px;
}

.editor-history-actions button,
.editor-quick-preview {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #f5f6f7;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-quick-preview {
  border-color: rgba(158, 212, 195, 0.4);
  color: #e4f6ef;
  background: rgba(158, 212, 195, 0.12);
}

.editor-history-actions button:hover:not(:disabled),
.editor-history-actions button:focus-visible,
.editor-quick-preview:hover,
.editor-quick-preview:focus-visible {
  border-color: rgba(158, 212, 195, 0.72);
  background: rgba(158, 212, 195, 0.2);
}

.editor-history-actions button:disabled {
  opacity: 0.38;
  cursor: default;
}

.editor-completion {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.1);
}

.editor-completion summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #f5f6f7;
  font-size: 0.8rem;
  cursor: pointer;
  list-style: none;
}

.editor-completion summary::-webkit-details-marker {
  display: none;
}

.editor-completion summary::after {
  color: #9ed4c3;
  content: "+";
  font-size: 1.05rem;
  font-weight: 900;
}

.editor-completion[open] summary::after {
  content: "−";
}

.editor-completion summary span {
  margin-left: auto;
  color: #9ed4c3;
  font-weight: 850;
}

.editor-completion ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editor-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-person-details,
.editor-story-help-details {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.editor-person-details > summary,
.editor-story-help-details > summary {
  position: relative;
  padding: 13px 42px 13px 14px;
  color: #e9ebee;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.editor-person-details > summary::-webkit-details-marker,
.editor-story-help-details > summary::-webkit-details-marker {
  display: none;
}

.editor-person-details > summary::after,
.editor-story-help-details > summary::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #9ed4c3;
  content: "+";
  font-size: 1.15rem;
  transform: translateY(-50%);
}

.editor-person-details[open] > summary::after,
.editor-story-help-details[open] > summary::after {
  content: "−";
}

.editor-person-details > summary span,
.editor-person-details > summary strong,
.editor-person-details > summary small {
  display: block;
}

.editor-person-details > summary small {
  margin-top: 3px;
  color: #bfc6cd;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.editor-person-details__content {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-story-help-details .editor-story-quick-guide {
  padding: 0 12px 12px;
}

.editor-completion li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border-radius: 9px;
  color: #c9ced5;
  background: rgba(255, 255, 255, 0.05);
}

.editor-completion li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.editor-completion li div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.editor-completion li strong,
.editor-completion li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-completion li strong {
  font-size: 0.68rem;
}

.editor-completion li small {
  color: #aeb5bd;
  font-size: 0.61rem;
}

.editor-completion li.is-complete {
  color: #e7f6f0;
  background: rgba(121, 197, 157, 0.12);
}

.editor-completion li.is-complete > span {
  border-color: #79c59d;
  color: #183b32;
  background: #9ed4c3;
}

.editor-draft-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7d9d1;
  font-size: 0.76rem;
  line-height: 1.35;
}

.editor-draft-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79c59d;
  box-shadow: 0 0 0 4px rgba(121, 197, 157, 0.12);
}

.editor-draft-state[data-state="saving"]::before {
  background: var(--gold);
  animation: draft-pulse 1s ease-in-out infinite;
}

.editor-draft-state[data-state="error"] {
  color: #ffd1cc;
}

.editor-draft-state[data-state="error"]::before {
  background: #ef796d;
}

.editor-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.editor-stepper button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 10px;
  color: #bec4cc;
  background: transparent;
  font: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}

.editor-stepper button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.editor-stepper button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.editor-stepper button.is-active span {
  border-color: #9ed4c3;
  color: #172f2b;
  background: #9ed4c3;
}

.editor-stepper button.is-complete {
  color: #d9eee7;
}

.editor-stepper button.is-complete span {
  border-color: rgba(158, 212, 195, 0.72);
  color: #d9eee7;
  background: rgba(158, 212, 195, 0.14);
}

.editor-stepper button:focus-visible {
  outline: 3px solid #bce4b9;
  outline-offset: 2px;
}

.editor-step-status {
  margin: 12px 0 0;
  color: #d9eee7;
  font-size: 0.78rem;
  font-weight: 750;
}

.editor-product-unavailable {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 194, 94, 0.55);
  border-radius: 12px;
  color: #fff2c9;
  background: rgba(122, 82, 13, 0.24);
}

.editor-product-unavailable[hidden] {
  display: none;
}

.editor-product-unavailable a {
  color: #fff;
  font-weight: 800;
}

.editor-step-progress {
  height: 3px;
  margin: 6px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.editor-step-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ed4c3, #e8b94a);
  transition: width 260ms ease;
}

.editor-step {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0 0 18px;
  border-bottom: 0;
}

.editor-step:not(.is-active) {
  display: none;
}

.editor-step.is-active {
  display: grid;
  animation: editor-step-in 240ms ease both;
}

.editor-step:last-child {
  border-bottom: 0;
}

.editor-step__header {
  display: grid;
  gap: 5px;
  margin: 2px 0 4px;
}

.editor-step__header > span {
  color: #9ed4c3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-step__header h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.35rem;
}

.editor-step__header p {
  margin: 0;
  color: #c3c8d0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

.editor-step-actions,
.editor-final-actions {
  position: sticky;
  z-index: 16;
  bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 18px -2px 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(48, 52, 59, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.editor-step-actions .button,
.editor-final-actions .button {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 12px;
  padding-left: 12px;
}

.editor-final-actions {
  flex-wrap: wrap;
}

.editor-final-actions .button {
  flex-basis: 130px;
}

.editor-open-preview {
  width: 100%;
}

.editor-preview-close {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.8rem;
  cursor: pointer;
}

.editor-preview-open {
  overflow: hidden;
}

.editor-preview-open .editor-canvas {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 14px 10px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  background: #20252b;
}

.editor-preview-open .editor-canvas__toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 8px 4px 12px;
  background: #20252b;
}

.editor-preview-open .editor-canvas__toolbar span {
  grid-column: 1;
}

.editor-preview-open .editor-preview-close {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  place-items: center;
}

.editor-story-builder {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(158, 212, 195, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 212, 195, 0.1), transparent 38%),
    rgba(0, 0, 0, 0.09);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.editor-story-builder > legend {
  padding: 0 7px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.editor-story-builder > .editor-field-help {
  margin: 0;
  color: #c8ced5;
}

.editor-story-wrap-help {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(158, 212, 195, 0.72);
  border-radius: 0 10px 10px 0;
  color: #e4ebe8;
  background: rgba(158, 212, 195, 0.09);
  font-size: 0.8rem;
  line-height: 1.5;
}

.editor-story-quick-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: story-guide;
}

.editor-story-quick-guide li {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(158, 212, 195, 0.22);
  border-radius: 11px;
  color: #cbd2d7;
  background: rgba(158, 212, 195, 0.07);
  font-size: 0.74rem;
  line-height: 1.4;
  counter-increment: story-guide;
}

.editor-story-quick-guide strong {
  color: #f5f8f7;
  font-size: 0.78rem;
}

.editor-story-quick-guide strong::before {
  content: counter(story-guide) ". ";
  color: #9ed4c3;
}

.editor-story-upload {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #f4f6f5;
  background: rgba(0, 0, 0, 0.1);
}

.editor-story-upload > span:first-child {
  display: grid;
  gap: 3px;
}

.editor-story-upload strong {
  color: #fff;
  font-size: 0.9rem;
}

.editor-story-upload small {
  color: #c8ced5;
  font-weight: 500;
  line-height: 1.45;
}

.editor-story-upload input[type="file"] {
  min-height: 50px;
  cursor: pointer;
}

.editor-photo-order--story {
  margin-top: -4px;
}

.editor-story-blocks {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.editor-story-blocks:empty::before {
  content: "Pridėkite pirmą teksto arba nuotraukos bloką.";
  display: block;
  padding: 18px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #c7cdd4;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.editor-story-block,
[data-story-block] {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.editor-story-block.is-dragging {
  z-index: 2;
  border-color: rgba(158, 212, 195, 0.82);
  background: rgba(158, 212, 195, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.editor-story-block.is-drop-target {
  border-color: #e8b94a;
  box-shadow: 0 0 0 3px rgba(232, 185, 74, 0.16);
}

[data-story-block].is-moving,
[data-story-block].is-dragging {
  border-color: rgba(158, 212, 195, 0.72);
  background: rgba(158, 212, 195, 0.13);
}

.editor-story-block__header,
.editor-story-block__head,
.editor-story-block__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.editor-story-block__drag {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(158, 212, 195, 0.32);
  border-radius: 9px;
  color: #d9eee7;
  background: rgba(158, 212, 195, 0.1);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: grab;
  touch-action: none;
}

.editor-story-block__drag:active {
  cursor: grabbing;
}

.editor-story-block__drag:hover,
.editor-story-block__drag:focus-visible {
  border-color: rgba(158, 212, 195, 0.75);
  background: rgba(158, 212, 195, 0.18);
}

.editor-story-block__title,
.editor-story-block__header > strong,
[data-story-block] > header strong {
  min-width: 0;
  margin: 0;
  color: #f6f7f8;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.editor-story-block__type {
  color: #9ed4c3;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-story-block__actions,
.editor-story-block__controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.editor-story-block__actions button,
.editor-story-block__controls button,
.editor-story-block [data-story-move],
.editor-story-block [data-story-delete],
[data-story-block] [data-story-move],
[data-story-block] [data-story-delete] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #f5f6f7;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.editor-story-block__actions button:hover,
.editor-story-block__controls button:hover,
.editor-story-block [data-story-move]:hover,
[data-story-block] [data-story-move]:hover {
  border-color: rgba(158, 212, 195, 0.58);
  background: rgba(158, 212, 195, 0.13);
}

.editor-story-block [data-story-delete],
[data-story-block] [data-story-delete] {
  border-color: rgba(239, 121, 109, 0.3);
  color: #ffd5d0;
}

.editor-story-block [data-story-delete]:hover,
[data-story-block] [data-story-delete]:hover {
  border-color: rgba(239, 121, 109, 0.68);
  background: rgba(239, 121, 109, 0.13);
}

.editor-story-block__actions button:disabled,
.editor-story-block__controls button:disabled,
.editor-story-block [data-story-move]:disabled,
.editor-story-block [data-story-delete]:disabled,
[data-story-block] [data-story-move]:disabled,
[data-story-block] [data-story-delete]:disabled {
  opacity: 0.38;
  cursor: default;
}

.editor-story-block textarea[data-story-text],
.editor-story-block__text {
  min-height: 148px;
}

.editor-story-block__field,
.editor-story-block__photo-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.editor-story-block__field {
  color: #f2f3f5;
  font-size: 0.86rem;
  font-weight: 700;
}

.editor-photo-position,
.editor-photo-fit-options {
  display: grid;
  gap: 6px;
}

.editor-photo-position {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-photo-fit-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-photo-position button,
.editor-photo-fit-options button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  color: #d9dde2;
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.editor-photo-position__icon {
  color: #9ed4c3;
  font-size: 1.2rem;
  line-height: 1;
}

.editor-photo-position button[aria-pressed="true"],
.editor-photo-fit-options button[aria-pressed="true"] {
  border-color: #9ed4c3;
  color: #fff;
  background: rgba(158, 212, 195, 0.18);
  box-shadow: inset 0 0 0 1px rgba(158, 212, 195, 0.24);
}

.editor-photo-position button:hover,
.editor-photo-position button:focus-visible,
.editor-photo-fit-options button:hover,
.editor-photo-fit-options button:focus-visible {
  border-color: rgba(158, 212, 195, 0.76);
}

.editor-story-block__photo {
  display: grid;
  grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.editor-story-block__thumbnail-button {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.13);
  cursor: pointer;
}

.editor-story-block__thumbnail-button > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(24, 43, 39, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.editor-story-block__thumbnail-button:hover > span,
.editor-story-block__thumbnail-button:focus-visible > span {
  background: #315a51;
}

.editor-story-block__photo-grid,
.editor-story-block__photo-layout {
  display: grid;
  grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.editor-story-block__photo-preview,
[data-story-photo-preview]:not(img) {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 154px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #c7cdd4;
  background: rgba(0, 0, 0, 0.13);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.editor-story-block__photo-preview img,
img[data-story-photo-preview],
.editor-story-block__thumbnail {
  display: block;
  width: 100%;
  min-height: 154px;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.13);
}

.editor-story-block__thumbnail-button .editor-story-block__thumbnail {
  border: 0;
}

.editor-story-block__direct-controls {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(158, 212, 195, 0.22);
  border-radius: 10px;
  background: rgba(158, 212, 195, 0.07);
}

.editor-story-block__size {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.editor-story-block__size output {
  color: #9ed4c3;
  font-size: 0.78rem;
  font-weight: 850;
}

.editor-story-block__size input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 38px;
  padding: 0;
  cursor: ew-resize;
}

.editor-story-block__edit-preview {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
}

.editor-story-block__photo-preview [data-story-photo-placeholder] {
  padding: 14px;
}

.editor-story-block [data-story-photo-order],
.editor-story-block [data-story-photo-select],
.editor-story-block [data-story-photo-align],
.editor-story-block [data-story-photo-fit] {
  cursor: pointer;
}

.editor-story-block input[data-story-photo-file] {
  min-width: 0;
  min-height: 48px;
  padding: 8px;
}

.editor-story-block textarea[data-story-caption],
.editor-story-block textarea[data-story-photo-caption] {
  min-height: 82px;
}

.editor-story-block__empty {
  display: grid;
  gap: 9px;
  margin: 0;
  color: #c8ced5;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.editor-story-block__insert {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px dashed rgba(158, 212, 195, 0.34);
  border-radius: 9px;
  color: #d9eee7;
  background: rgba(158, 212, 195, 0.06);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-story-block__insert:hover,
.editor-story-block__insert:focus-visible {
  border-color: rgba(158, 212, 195, 0.75);
  background: rgba(158, 212, 195, 0.13);
}

.editor-story-block__open-files {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
}

.editor-additional-settings {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.editor-additional-settings summary {
  padding: 13px 14px;
  color: #e9ebee;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.editor-additional-settings[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.editor-additional-settings__content {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.editor-story-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.editor-story-order-status {
  min-height: 1.3em;
  margin: 0;
  color: #cbd2d7;
  font-size: 0.76rem;
  line-height: 1.45;
}

.editor-story-add-actions .button {
  flex: 1 1 160px;
  min-height: 48px;
  padding: 10px 14px;
}

.editor-story-builder .editor-word-count {
  justify-self: end;
  margin: 0;
}

.editor-save-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.editor-save-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
}

.editor-save-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, #9ed4c3, #e8b94a);
}

.editor-save-progress::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #9ed4c3, #e8b94a);
}

.editor-photo-order {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.editor-photo-order__item {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease;
}

.editor-photo-order__item.is-dragging {
  z-index: 2;
  background: rgba(158, 212, 195, 0.2);
  transform: scale(1.02);
}

.editor-photo-order__item > img {
  width: 48px;
  height: 44px;
  border-radius: 7px;
  background: #fff;
  object-fit: cover;
}

.editor-photo-order__item > span:not(.editor-photo-order__controls) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.editor-photo-order__item strong,
.editor-photo-order__item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-photo-order__item small {
  color: #c4c9d1;
}

.editor-photo-order__handle,
.editor-photo-order__controls button {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  touch-action: none;
}

.editor-photo-order__controls {
  display: flex;
  gap: 4px;
}

.editor-photo-order__controls button {
  cursor: pointer;
}

.editor-photo-order__controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

@keyframes draft-pulse {
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (max-width: 860px) {
  .editor-shell {
    grid-template-rows: auto 1fr;
  }

  .editor-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .editor-workspace {
    display: block;
    min-height: 0;
  }

  .editor-rail {
    display: none;
  }

  .editor-panel {
    min-height: calc(100svh - 86px);
    padding: 18px 14px 110px;
    border: 0;
  }

  .editor-stepper {
    position: sticky;
    z-index: 18;
    top: 78px;
    margin-right: -6px;
    margin-left: -6px;
    padding: 7px 6px;
    overflow-x: auto;
    border-radius: 14px;
    background: rgba(68, 73, 80, 0.96);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
  }

  .editor-stepper::-webkit-scrollbar {
    display: none;
  }

  .editor-stepper button {
    min-width: 66px;
  }

  .editor-step.is-active {
    display: grid;
    min-height: 48svh;
    border-bottom: 0;
    animation: editor-step-in 240ms ease both;
  }

  .editor-step-actions,
  .editor-final-actions {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .editor-canvas {
    display: none;
  }

  .editor-preview-open .editor-phone-preview {
    width: min(560px, 100%);
    min-height: 0;
  }

  .editor-preview-story {
    touch-action: pan-y;
  }

  .editor-db-panel {
    display: none;
  }

  .preview-actions {
    position: static;
    bottom: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
    padding: 8px;
  }

  .preview-actions .button {
    flex: 0 0 auto;
    flex-basis: auto;
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .editor-topbar {
    grid-template-columns: auto 1fr;
  }

  .editor-topbar__nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .editor-product-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .editor-product-card img {
    width: 58px;
    height: 64px;
  }

  .editor-product-card .editor-note {
    display: none;
  }

  .editor-utility-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .editor-history-actions button,
  .editor-quick-preview {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .editor-completion {
    padding: 9px;
  }

  .editor-completion li {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 6px;
  }

  .editor-completion li > span {
    width: 22px;
    height: 22px;
  }

  .editor-completion li small {
    display: none;
  }

  .editor-completion li strong {
    font-size: 0.62rem;
  }

  .editor-photo-order__item {
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .editor-photo-order__item > img {
    width: 42px;
    height: 40px;
  }

  .editor-photo-order__controls {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  .editor-story-builder {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .editor-name-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .editor-story-quick-guide {
    grid-template-columns: 1fr;
  }

  .editor-story-block,
  [data-story-block] {
    padding: 10px;
  }

  .editor-story-block__header,
  .editor-story-block__head,
  .editor-story-block__toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .editor-story-block__header > strong {
    align-self: center;
  }

  .editor-story-block__actions,
  .editor-story-block__controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .editor-story-block__actions button,
  .editor-story-block__controls button,
  .editor-story-block [data-story-move],
  .editor-story-block [data-story-delete],
  [data-story-block] [data-story-move],
  [data-story-block] [data-story-delete] {
    width: 100%;
    min-height: 44px;
    padding: 8px 5px;
    font-size: 0.76rem;
  }

  .editor-story-block__photo,
  .editor-story-block__photo-grid,
  .editor-story-block__photo-layout {
    grid-template-columns: 1fr;
  }

  .editor-story-block__photo-preview,
  [data-story-photo-preview]:not(img) {
    min-height: 140px;
  }

  .editor-story-block__thumbnail {
    min-height: 140px;
  }

  .editor-story-add-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .editor-story-add-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
  }

  .editor-story-layout-piece,
  .memorial-story-block--positioned {
    left: clamp(-45%, var(--story-offset-x, 0%), 45%);
  }

  .memorial-story-block--text {
    font-size: calc(1rem * var(--story-text-scale, 1));
    line-height: 1.7;
  }

  .memorial-story-block--photo figcaption {
    padding: 0.72rem 0.8rem;
    font-size: 0.9rem;
  }

  .editor-date-picker {
    padding: 12px 10px;
    border-radius: 16px;
  }

  .editor-date-picker__fields {
    grid-template-columns: minmax(92px, 1.2fr) minmax(82px, 1fr) minmax(70px, 0.8fr);
    gap: 7px;
  }

  .editor-date-picker__fields label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: stretch;
  }

  .editor-date-picker__footer {
    align-items: flex-start;
  }
}

@keyframes editor-step-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .editor-step.is-active,
  .editor-draft-state::before {
    animation: none;
  }
}

/* Kapavietės paieška telefone */
.grave-search-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  text-align: left;
}

.grave-search-tools span {
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.grave-list-item__distance {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
}

.grave-map-preview {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.grave-map-preview iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.grave-map-preview small {
  display: block;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.7rem;
}

.grave-result-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 4px;
}

.grave-result-actions .button.is-saved {
  border-color: var(--teal-bright);
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.34);
}

.saved-graves {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(26, 102, 95, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(164, 212, 197, 0.17);
}

.saved-graves h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.saved-graves__list {
  display: grid;
  gap: 9px;
}

.saved-graves__list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.86);
}

.saved-graves__list article > div:first-child {
  display: grid;
  gap: 3px;
}

.saved-graves__list article span {
  color: var(--muted);
  font-size: 0.84rem;
}

.saved-graves__list .button {
  min-height: 40px;
}

@media (max-width: 620px) {
  .grave-search-tools,
  .grave-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grave-search-tools .button,
  .grave-result-actions .button {
    width: 100%;
  }

  .grave-map-preview iframe {
    height: 220px;
  }

  .saved-graves__list article {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-graves__list .actions {
    flex-direction: row;
  }
}

/* Atminimo puslapio telefono veiksmai ir bendruomenė */
.memorial-page {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.memorial-action-bar {
  position: fixed;
  z-index: 80;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  max-width: 760px;
  min-height: 72px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(35, 60, 51, 0.2);
  border-radius: 22px;
  background: rgba(247, 253, 251, 0.94);
  box-shadow: 0 18px 55px rgba(25, 54, 44, 0.22);
  backdrop-filter: blur(18px);
}

.memorial-action-bar button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 15px;
  color: #39584d;
  background: transparent;
  font: 700 0.68rem/1 Arial, sans-serif;
  cursor: pointer;
}

.memorial-action-bar button span {
  font-size: 1.28rem;
}

.memorial-action-bar button:hover,
.memorial-action-bar button.is-active {
  color: #103f31;
  background: rgba(121, 197, 157, 0.2);
}

.memorial-community {
  width: min(920px, calc(100% - 24px));
  margin: 42px auto 24px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(61, 83, 72, 0.22);
  border-radius: 24px;
  color: #213a32;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 20px 60px rgba(35, 60, 51, 0.09);
  font-family: Arial, sans-serif;
}

.memorial-community__heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.memorial-community__heading h2 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.memorial-community__heading > p:last-child {
  margin: 0;
  color: #5f6e68;
  line-height: 1.6;
}

.memorial-candle-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(243, 223, 170, 0.45), rgba(255, 250, 240, 0.9));
}

.memorial-candle-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.memorial-candle-card strong {
  font-family: var(--display-font);
  font-size: 1.6rem;
}

.memorial-candle-card span {
  color: #67726e;
  font-size: 0.86rem;
}

.memorial-candle-flame {
  position: relative;
  display: grid;
  place-items: end center;
  width: 66px;
  height: 84px;
}

.memorial-candle-flame::before {
  content: "";
  width: 38px;
  height: 55px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(90deg, #e7dfcf, #fff, #ddd2bd);
  box-shadow: inset -7px 0 10px rgba(91, 73, 48, 0.08);
}

.memorial-candle-flame span {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 19px;
  height: 28px;
  border-radius: 70% 30% 65% 35%;
  background: radial-gradient(circle at 55% 68%, #fff7b8 0 18%, #f7aa35 45%, #d75e28 75%);
  filter: drop-shadow(0 0 8px rgba(232, 152, 47, 0.46));
  opacity: 0.62;
  transform: translateX(-50%) rotate(5deg) scale(0.9);
  transform-origin: center bottom;
  animation: memorial-flame 2.4s ease-in-out infinite;
}

.memorial-candle-flame.is-lit span {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.memorial-memories {
  margin-top: 34px;
}

.memorial-memories h3 {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-size: 1.7rem;
}

.memorial-memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.memorial-memory-list article,
.memorial-memory-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(61, 83, 72, 0.16);
  border-radius: 16px;
  background: rgba(231, 246, 246, 0.54);
}

.memorial-memory-list blockquote {
  margin: 0;
  color: #29443b;
  font-family: var(--display-font);
  font-size: 1.06rem;
  line-height: 1.55;
}

.memorial-memory-list footer {
  margin-top: 12px;
  color: #65756f;
  font-size: 0.78rem;
}

.memorial-memory-form {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(61, 83, 72, 0.18);
}

.memorial-memory-form label {
  display: grid;
  gap: 7px;
  color: #29443b;
  font-weight: 750;
}

.memorial-memory-form input,
.memorial-memory-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(61, 83, 72, 0.28);
  border-radius: 12px;
  color: #213a32;
  background: #fff;
  font: inherit;
}

.memorial-memory-form textarea {
  resize: vertical;
}

.memorial-memory-form .check-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
  line-height: 1.45;
}

.memorial-memory-form .check-label input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.memorial-memory-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.memorial-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

@keyframes memorial-flame {
  0%, 100% { transform: translateX(-50%) rotate(4deg) scale(0.94, 1.02); }
  50% { transform: translateX(-50%) rotate(-5deg) scale(1.04, 0.95); }
}

@media (max-width: 720px) {
  .memorial-action-bar {
    grid-template-columns: repeat(6, minmax(58px, 1fr));
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .memorial-candle-card {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .memorial-candle-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .memorial-memory-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .memorial-page {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .memorial-action-bar {
    right: 6px;
    bottom: max(6px, env(safe-area-inset-bottom));
    left: 6px;
    min-height: 66px;
    border-radius: 18px;
  }

  .memorial-action-bar button {
    min-width: 57px;
    font-size: 0.62rem;
  }

  .memorial-community {
    width: calc(100% - 12px);
    padding: 24px 16px;
    border-radius: 18px;
  }

  .memorial-memory-form__actions,
  .memorial-memory-form__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-candle-flame span {
    animation: none;
  }
}

/* 2026-07-24 ramesnė formų ir bendrų komponentų UX sistema */
:root {
  --control-bg: rgba(255, 255, 255, 0.9);
  --control-border: #d8d1c4;
  --control-border-hover: #aea596;
  --status-info: #174f4a;
  --status-info-soft: #edf4f1;
  --status-info-border: #b6d3ca;
  --status-success: #155c41;
  --status-success-soft: #e5f4ec;
  --status-success-border: #9fcdb4;
  --status-warning: #6f4c00;
  --status-warning-soft: #fff4cc;
  --status-warning-border: #dfbd5d;
  --status-danger: #8a2b25;
  --status-danger-soft: #fbebe8;
  --status-danger-border: #e2aaa4;
  --success: var(--status-success);
  --success-soft: var(--status-success-soft);
  --danger: var(--status-danger);
  --danger-soft: var(--status-danger-soft);
  --info-soft: var(--status-info-soft);
  --shadow-sm: 0 8px 24px rgba(42, 34, 23, 0.055);
  --shadow-md: 0 20px 60px rgba(42, 34, 23, 0.08);
}

::selection {
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.5);
}

body.site-menu-open {
  overflow: hidden;
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select,
  textarea
) {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  color: var(--ink);
  background: var(--control-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  caret-color: var(--teal-bright);
  font: inherit;
  line-height: 1.35;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select
) {
  padding: 0 15px;
}

body:not(.editor-page):not(.memorial-page) .site-shell textarea {
  min-height: 112px;
  padding: 13px 15px;
  line-height: 1.5;
  resize: vertical;
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select,
  textarea
):hover {
  border-color: var(--control-border-hover);
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select,
  textarea
):focus {
  border-color: var(--teal-bright);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px var(--focus-ring), 0 8px 24px rgba(26, 102, 95, 0.07);
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffaf9;
  box-shadow: 0 0 0 4px rgba(166, 59, 50, 0.11);
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select,
  textarea
):disabled {
  border-color: var(--line);
  color: #706d66;
  background: #f2f0eb;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(input, textarea)::placeholder {
  color: #918b81;
  opacity: 1;
}

body:not(.editor-page):not(.memorial-page) .site-shell :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--teal-bright);
}

.auth-page {
  position: relative;
  max-width: 580px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 44px);
  border-color: rgba(203, 194, 177, 0.8);
  background:
    radial-gradient(circle at 100% 0, rgba(164, 212, 197, 0.16), transparent 18rem),
    rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-md);
}

.auth-page::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--teal-dark), var(--mint), var(--gold-soft));
}

.auth-form {
  gap: 17px;
}

.auth-form .form-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.auth-form label:not(.check-label) {
  gap: 8px;
  letter-spacing: 0.005em;
}

.auth-form .button[type="submit"] {
  width: 100%;
  margin-top: 2px;
  color: #fff;
  background: var(--teal-dark);
}

.auth-form .button[type="submit"]:hover {
  background: #174844;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 84px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 66px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--teal-dark);
  background: rgba(164, 212, 197, 0.23);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(164, 212, 197, 0.38);
}

.password-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.form-field-error {
  display: block;
  margin: -1px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field-error:not([hidden]) {
  animation: form-message-in 180ms ease-out both;
}

.form-field-error::before {
  content: "●";
  margin-right: 7px;
  font-size: 0.62em;
  vertical-align: 0.14em;
}

.auth-form .form-field.has-success > input,
.auth-form .form-field.has-success .password-control > input {
  border-color: #3f8b6c;
  background: #fbfffd;
  box-shadow: 0 0 0 3px rgba(63, 139, 108, 0.1);
}

.auth-form .form-field.has-success:not(:has(.password-control)) > input {
  padding-right: 48px;
}

.auth-form .form-field.has-success:not(:has(.password-control))::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  content: "✓";
  border-radius: 50%;
  color: #fff;
  background: #3f8b6c;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  animation: form-message-in 180ms ease-out both;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Išankstinio užsakymo srautas */
.preorder-page {
  padding-bottom: 96px;
}

.preorder-hero {
  width: min(100%, 850px);
  margin: 42px 0 34px;
}

.preorder-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.preorder-hero > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.preorder-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.preorder-promises li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--status-success-border);
  border-radius: 999px;
  color: var(--status-success);
  background: var(--status-success-soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.shop-flow-label {
  margin: 42px 0 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-product-card--digital {
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(23, 79, 74, 0.34);
  background: rgba(235, 248, 243, 0.12);
}

.preorder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(480px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.preorder-summary,
.preorder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.preorder-summary {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.preorder-summary__image {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 22px;
  background: #faf5e8;
}

.preorder-summary__image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.preorder-summary > div:last-child {
  padding: 26px;
}

.preorder-summary h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.preorder-summary__price {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 1.12rem;
  font-weight: 800;
}

.preorder-card {
  padding: clamp(24px, 4vw, 42px);
}

.preorder-card__heading {
  margin-bottom: 24px;
}

.preorder-card__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.preorder-product-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.preorder-product-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 800;
}

.preorder-product-picker label {
  position: relative;
  display: block;
  cursor: pointer;
}

.preorder-product-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.preorder-product-picker label > span {
  display: grid;
  gap: 5px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.preorder-product-picker label:has(input:checked) > span {
  border-color: var(--teal-dark);
  background: var(--status-success-soft);
  box-shadow: 0 0 0 2px rgba(23, 79, 74, 0.12);
}

.preorder-product-picker label:has(input:focus-visible) > span {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.preorder-product-picker small,
.preorder-form label small {
  color: var(--muted);
  font-weight: 500;
}

.preorder-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.preorder-form textarea {
  min-height: 112px;
  resize: vertical;
}

.preorder-consent {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8f3;
  line-height: 1.5;
}

.preorder-submit {
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr;
  gap: 16px;
  align-items: center;
}

.preorder-submit .button {
  width: auto !important;
  margin: 0 !important;
}

.preorder-submit p,
.product-preorder-price-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-preorder-table label {
  display: grid;
  gap: 6px;
  min-width: 170px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-preorder-table textarea {
  min-width: 220px;
}

@media (max-width: 900px) {
  .preorder-layout {
    grid-template-columns: 1fr;
  }

  .preorder-summary {
    position: static;
    display: grid;
    grid-template-columns: minmax(160px, 0.72fr) 1fr;
  }

  .preorder-summary__image {
    min-height: 270px;
  }
}

@media (max-width: 620px) {
  .preorder-page {
    padding-bottom: 48px;
  }

  .preorder-hero {
    margin-top: 28px;
  }

  .preorder-promises {
    display: grid;
  }

  .preorder-summary,
  .preorder-product-picker,
  .preorder-contact-grid,
  .preorder-submit {
    grid-template-columns: 1fr;
  }

  .preorder-summary__image {
    min-height: 250px;
  }

  .preorder-card {
    padding: 22px;
  }

  .preorder-submit .button {
    width: 100% !important;
  }
}

.form-field-suggestion {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(110, 91, 54, 0.18);
  border-radius: 11px;
  color: #5e4c2f;
  background: #faf3df;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  animation: form-message-in 180ms ease-out both;
}

.form-field-suggestion button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 7px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-status {
  font-size: 0.9rem;
}

.form-status[data-state]:not(:empty) {
  position: relative;
  min-height: 44px;
  padding: 11px 13px 11px 38px;
  border: 1px solid var(--status-info-border);
  border-radius: 13px;
  color: var(--status-info);
  background: var(--status-info-soft);
}

.form-status[data-state]:not(:empty)::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  content: "i";
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.form-status[data-state="error"]:not(:empty) {
  border-color: var(--status-danger-border);
  color: var(--status-danger);
  background: var(--status-danger-soft);
}

.form-status[data-state="error"]:not(:empty)::before {
  content: "!";
}

.form-status[data-state="success"]:not(:empty) {
  border-color: var(--status-success-border);
  color: var(--status-success);
  background: var(--status-success-soft);
}

.form-status[data-state="success"]:not(:empty)::before {
  content: "\2713";
  border: 0;
  font-size: 1rem;
}

.form-status[data-state="warning"]:not(:empty) {
  border-color: var(--status-warning-border);
  color: var(--status-warning);
  background: var(--status-warning-soft);
}

.form-status[data-state="warning"]:not(:empty)::before {
  content: "!";
}

.form-status[data-state="loading"]:not(:empty)::before,
.button[aria-busy="true"]::before {
  content: "";
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ux-progress-spin 700ms linear infinite;
}

.button {
  letter-spacing: 0.005em;
}

.button:hover {
  transform: none;
}

.button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button[aria-busy="true"] {
  gap: 9px;
  cursor: wait;
  opacity: 0.86;
}

.button[aria-busy="true"]::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border-radius: 50%;
}

:where(
  .client-access,
  .admin-panel,
  .legal-content section,
  .checkout-form,
  .checkout-summary,
  .product-panel,
  .grave-list-item,
  .user-page-card
) {
  border-color: rgba(203, 194, 177, 0.72);
  box-shadow: var(--shadow-sm);
}

.editor-form :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
  select,
  textarea
) {
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.editor-form :where(input, select, textarea):focus {
  border-color: #9ed4c3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(158, 212, 195, 0.18);
}

.editor-form :where(input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

@keyframes ux-progress-spin {
  to { transform: rotate(360deg); }
}

@keyframes form-message-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .client-access,
  .auth-page {
    gap: 20px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .admin-panel {
    padding: 18px;
  }

  .mobile-dock a {
    font-size: 0.72rem;
  }

  .mobile-dock a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .password-toggle {
    min-width: 62px;
    min-height: 44px;
    font-size: 0.76rem;
  }
}

@media (forced-colors: active) {
  body:not(.editor-page):not(.memorial-page) .site-shell :where(input, select, textarea):focus,
  .editor-form :where(input, select, textarea):focus,
  .password-toggle:focus-visible,
  .button:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  body:not(.editor-page):not(.memorial-page) .site-shell :where(input, select, textarea),
  .button,
  .password-toggle {
    transition: none;
  }

  .form-status[data-state="loading"]:not(:empty)::before,
  .button[aria-busy="true"]::before {
    animation-duration: 1.4s;
  }

  .form-field-error:not([hidden]),
  .form-field-suggestion,
  .auth-form .form-field.has-success::after {
    animation: none;
  }
}
