/* Littera — shared base styles (all versions).
   Colours, type and accessibility rules follow Littera_Brand_Guide:
   plum #45233F, light plum #9A6A93 (icons, lines, text > 24px only), white,
   text #1B2433, grey text #524A55, light background #F7F4F6, dark plum #2A1527 (footer).
   Golos Text for all site text (replaces Spectral). Buttons ≥ 44px, visible 3px plum focus,
   body text 16px (mobile minimum), UI text 14px, inputs 16px (prevents iOS zoom). */

:root {
  --plum: #45233F;
  --plum-light: #9A6A93;
  --plum-dark: #2A1527;
  --white: #FFFFFF;
  --ink: #1B2433;
  --muted: #524A55;
  --soft: #F7F4F6;
  --line: #E6DCE3;          /* hairlines on white */
  --field: #8C7F8A;         /* form field border, 3.8:1 on white */
  --on-dark: #FFFFFF;
  --on-dark-muted: #E6DCE3; /* 10:1 on plum */

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 10px;
  --radius-s: 6px;
  --section: clamp(64px, 9vw, 120px);

  --fs-xs: 0.8125rem;   /* 13 — hints, meta, copyright */
  --fs-ui: 0.875rem;    /* 14 — menus, buttons, labels, pills, footer */
  --fs-s: 0.9375rem;    /* 15 — secondary text, descriptions, 'more' links */
  --fs-m: 1rem;         /* 16 — body */
  --fs-l: 1.125rem;     /* 18 — lead text */
  --fs-h3: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --fs-h1: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);
}

.ftr__h { font-weight: 600; letter-spacing: .08em; }

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-m); line-height: 1.65; color: var(--ink); background: var(--white); font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
h3 { letter-spacing: -0.005em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
main { display: block; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

/* ---- focus (3px plum, white on dark areas) ---- */
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--plum); color: var(--white); padding: 12px 18px; border-radius: var(--radius-s); text-decoration: none; }
.skip:focus { top: 12px; outline-color: var(--white); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; }

/* ---- placeholders (data still to be supplied by the owner) ---- */
.ph { display: inline-block; padding: 0 .4em; border: 1px dashed currentColor; border-radius: 4px; opacity: .85; }
.map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; border: 1px dashed var(--field); border-radius: var(--radius); background: var(--soft); color: var(--muted); }
.map-ph .icon { width: 32px; height: 32px; color: var(--plum-light); }

/* ---- buttons (≥ 44px; white on plum 13.4:1) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .75em 1.5em; border: 2px solid var(--plum); border-radius: var(--radius-s); font-size: var(--fs-ui); font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--plum); color: var(--white); }
.btn--primary:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
.btn--secondary { background: transparent; color: var(--plum); }
.btn--secondary:hover { background: var(--soft); }
.btn--light { background: var(--white); color: var(--plum); border-color: var(--white); }
.btn--light:hover { background: var(--soft); border-color: var(--soft); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn:disabled { opacity: .6; cursor: progress; }

.more { display: inline-flex; align-items: center; gap: .45em; font-size: var(--fs-s); font-weight: 500; }
.more .icon { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }

/* ---- menu button ---- */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: var(--radius-s); background: transparent; color: inherit; cursor: pointer; font-size: var(--fs-ui); }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }

/* ---- language switcher (appears once a 2nd language exists) ---- */
.lang ul { display: flex; gap: 4px; list-style: none; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: var(--fs-ui); text-decoration: none; }
.lang a[aria-current] { font-weight: 600; text-decoration: underline; }

/* ---- forms ---- */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }
.field__star { color: var(--plum); margin-left: 2px; }
.field__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: var(--radius-s); background: var(--white); font-size: 1rem; line-height: 1.4; color: var(--ink); }
textarea.input { resize: vertical; min-height: 112px; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345233F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.input:hover { border-color: var(--plum); }
.input:focus-visible { outline: 3px solid var(--plum); outline-offset: 1px; border-color: var(--plum); }
.input:user-invalid { border-color: #9B1C31; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field); border-radius: 999px; font-size: var(--fs-ui); background: var(--white); cursor: pointer; }
.choice input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }

.field--check { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--plum); }
.field--check label { font-size: var(--fs-ui); color: var(--muted); }

.file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; padding: 12px 16px; border: 1px dashed var(--field); border-radius: var(--radius-s); background: var(--white); cursor: pointer; }
.file .icon { color: var(--plum-light); }
.file__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--plum); border-radius: var(--radius-s); color: var(--plum); font-weight: 500; font-size: var(--fs-ui); }
.file__names { font-size: var(--fs-ui); color: var(--muted); overflow-wrap: anywhere; }
.file:hover { border-color: var(--plum); }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__input:focus-visible + .field__hint, .file:has(+ .file__input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.field--file { position: relative; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form__status { margin: 0; font-size: var(--fs-ui); }
.form__status.is-ok { color: var(--plum); font-weight: 600; }
.form__status.is-err { color: #9B1C31; font-weight: 600; }
.form__status.is-demo { color: var(--muted); }
.form__note { margin: 0 0 16px; font-size: var(--fs-xs); color: var(--muted); }

/* ---- segmented control (calculator) ---- */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--field); border-radius: var(--radius-s); overflow: hidden; background: var(--white); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; font-size: var(--fs-ui); color: var(--ink); cursor: pointer; }
.seg__opt input:checked + span { background: var(--plum); color: var(--white); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: -3px; }

/* ---- calculator (base) ---- */
.calc__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
@media (max-width: 860px) { .calc__body { grid-template-columns: 1fr; } }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
@media (max-width: 480px) { .calc__fields { grid-template-columns: 1fr; } }
.calc__result { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--plum); color: var(--white); }
.calc__label { font-size: var(--fs-ui); color: var(--on-dark-muted); }
.calc__price { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 600; line-height: 1.1; }
.calc__meta { font-size: var(--fs-ui); color: var(--on-dark-muted); }
.calc__note { font-size: var(--fs-ui); color: var(--on-dark-muted); margin: 0; }
.calc__result .btn { margin-top: auto; background: var(--white); color: var(--plum); border-color: var(--white); }
.calc__result .btn:hover { background: var(--soft); }
.calc__result :focus-visible { outline-color: var(--white); }

/* ---- price table (base) ---- */
.ptable th, .ptable td { padding: 16px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ptable thead th { font-size: var(--fs-ui); font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--plum); }
.ptable tbody th { font-weight: 400; padding-right: 24px; }
.ptable td { text-align: right; font-weight: 600; white-space: nowrap; color: var(--plum); }
.ptable thead th:last-child { text-align: right; }
.ptable__extra th, .ptable__extra td { color: var(--muted); }
.ptable__extra td { font-weight: 600; }

/* ---- FAQ (base, native <details>) ---- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; font-size: var(--fs-m); font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { color: var(--plum); transition: transform .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--muted); }
.faq__q:hover span { color: var(--plum); }

/* ---- hours ---- */
.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-variant-numeric: tabular-nums; }

/* ---- breadcrumb ---- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: var(--fs-ui); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs [aria-current] { text-decoration: none; }

/* ---- prose ---- */
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }

/* Google Maps embed (when a location's `map` is set to an embed URL) */
.map { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
