/* =====================================================================
   Arnold Dental — public website stylesheet
   Brand pulled from the existing Arnold Dental logo (arnolddentalca.com):
   black + logo blue #2878F8 on white. Buttons use a slightly deeper
   blue (#1E63D6, AA contrast for white text); accents use the logo blue.
   Type: Barlow (DIN-style grotesque, close to the old site's DIN Neuzeit).
   Radius system: cards 14px · buttons/inputs 10px · badges pill.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
  --brand:        #2270f0;   /* buttons, links, eyebrows (logo blue, AA on white) */
  --brand-bright: #2878f8;   /* the exact logo blue: accents, focus, dots */
  --brand-deep:   #0a0c0f;   /* logo black: dark sections */
  --brand-soft:   #4a8bf7;
  --brand-tint:   #e9f0fe;
  --band:         #0b0d10;
  --amber:        #2270f0;   /* legacy token name: primary CTA color */
  --amber-deep:   #1a5fd4;
  --ink:          #0b0d10;   /* logo black for text */
  --muted:        #566072;
  --faint:        #8791a3;
  --paper:        #ffffff;
  --paper-2:      #f3f6fb;
  --paper-3:      #e6ebf4;
  --line:         rgba(11, 13, 16, 0.12);
  --line-soft:    rgba(11, 13, 16, 0.07);
  --on-brand:     rgba(255, 255, 255, 0.76);
  --shadow:       0 10px 30px rgba(11, 13, 16, 0.08);
  --display: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --sans:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --r-card: 12px;
  --r-btn: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); color-scheme: light !important; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.04rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(40, 120, 248, 0.25); }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--brand { background: var(--band); color: #fff; }
.section--brand .h2, .section--brand .h1 { color: #fff; }
.section--brand p { color: var(--on-brand); }
.grow { flex: 1; }
.hide { display: none !important; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 34em; }
p { color: var(--muted); text-wrap: pretty; }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.9rem; }
.section--brand .eyebrow { color: var(--brand-bright); }
.sechead { max-width: 40em; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.sechead p { margin-top: 0.8rem; }
.sechead--row { display: flex; align-items: flex-end; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.sechead--row .txt { max-width: 34em; }
.sechead--row .grow { flex: 1; }
.tlink { font-weight: 600; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.2s; }
.tlink:hover { border-color: var(--brand); }
.tlink::after { content: " \2192"; }
.tlink--back { border: 0; }
.tlink--back::after { content: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.82rem 1.35rem; border-radius: var(--r-btn); font-weight: 600; font-size: 0.95rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--brand { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--brand:hover { background: #000; border-color: #000; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.section--brand .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.section--brand .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.brand__logo { width: 44px; height: 44px; flex: none; display: block; }
.brand > span:not(.mark) { white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.25rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; margin-left: 1.5rem; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.on { color: var(--ink); }
.nav__acts { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }
.nav__phone { font-weight: 600; font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.nav__call { display: none; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--line); color: var(--brand); align-items: center; justify-content: center; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav__burger span { display: block; width: 16px; height: 1.6px; background: var(--ink); }
.nav__menu { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__call:not(.hide) { display: inline-flex; }
  .nav__menu { display: none; border-top: 1px solid var(--line-soft); padding: 0.6rem 0 1rem; }
  .nav__menu.open { display: block; }
  .nav__menu a { display: block; padding: 0.7rem 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .nav__menu a:last-child { border-bottom: 0; }
}

/* ---------- Hero (split) ---------- */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy .h1 { max-width: 16ch; }
.hero__copy .lead { margin: 1.4rem 0 2rem; }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__img { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; order: -1; }
  .hero__copy .h1 { max-width: none; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 1.4rem 1.4rem 1.4rem 0; border-right: 1px solid var(--line-soft); }
.trust__item + .trust__item { padding-left: 1.4rem; }
.trust__item:last-child { border-right: 0; }
.trust__item b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.trust__item span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
@media (max-width: 760px) {
  .trust__in { grid-template-columns: 1fr 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 1rem 0; }
  .trust__item + .trust__item { padding-left: 0; }
  .trust__item:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 1rem; }
  .trust__item:nth-child(even) { padding-left: 1rem; }
  .trust__item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.bento__cell { border-radius: var(--r-card); border: 1px solid var(--line-soft); background: var(--paper); box-shadow: 0 8px 24px rgba(11,13,16,0.04); padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; min-height: 190px; }
.bento__cell .h3 { margin-bottom: 0.45rem; }
.bento__cell p { font-size: 0.93rem; line-height: 1.55; max-width: 34em; }
.bento__cell--img { padding: 0; min-height: 320px; }
.bento__cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__cell--img .cap { position: relative; margin-top: auto; padding: 1.6rem; background: linear-gradient(to top, rgba(10, 12, 15, 0.88), rgba(10, 12, 15, 0)); color: #fff; }
.bento__cell--img .cap .h3 { color: #fff; }
.bento__cell--img .cap p { color: rgba(255,255,255,0.8); }
.bento__cell--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.bento__cell--brand .h3 { color: #fff; }
.bento__cell--brand p { color: rgba(255,255,255,0.78); }
.bento__cell--tint { background: var(--brand-tint); }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento__cell { grid-column: span 1 !important; grid-row: auto !important; }
  .bento__cell--img { min-height: 260px; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Equipment cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-card); border: 1px solid var(--line-soft); background: var(--paper); overflow: hidden; color: var(--ink); box-shadow: 0 8px 24px rgba(11,13,16,0.04); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); }
.pcard__img { aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__img .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 0.8rem; font-weight: 500; }
.pcard__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.pcard__brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.pcard__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.25; }
.pcard__sum { font-size: 0.88rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.7rem; }
.pcard__price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.pcard__price small { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-left: 0.2rem; }
.pill { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand); white-space: nowrap; }
.pill--sold { background: var(--paper-3); color: var(--muted); }
.pill--new { background: rgba(40,120,248,0.14); color: #1a4fb0; }
.pcard--sold .pcard__img img { filter: grayscale(0.7); opacity: 0.75; }
.pempty { padding: 2.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--r-card); text-align: center; color: var(--muted); }
.pempty b { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.3rem; }
.skel { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 37%, var(--paper-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* filters (equipment page) */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.chip { font-size: 0.85rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 1.8rem 1.6rem 1.8rem 0; border-right: 1px solid var(--line-soft); }
.step + .step { padding-left: 1.6rem; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; color: var(--brand); line-height: 1; opacity: 0.9; }
.step .h3 { margin: 0.9rem 0 0.4rem; }
.step p { font-size: 0.93rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 1.4rem 0; }
  .step + .step { padding-left: 0; }
  .step:last-child { border-bottom: 0; }
}

/* ---------- About split ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__copy p + p { margin-top: 1rem; }
.about__copy .h2 { margin-bottom: 1.2rem; }
.brands { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.brands small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.brands span { display: inline-block; font-size: 0.9rem; font-weight: 500; color: var(--ink); background: var(--paper-2); border-radius: 8px; padding: 0.35rem 0.7rem; margin: 0 0.4rem 0.4rem 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__img { aspect-ratio: 16 / 10; } }

/* ---------- CTA band ---------- */
.cta { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta .h2 { max-width: 16ch; }
.cta__acts { margin-left: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.cta__phone { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: -0.01em; }
@media (max-width: 760px) { .cta__acts { margin-left: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line-soft); padding: 3.5rem 0 2rem; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.footer__logo { display: inline-block; }
.footer a { display: block; color: var(--ink); padding: 0.22rem 0; }
.footer a:hover { color: var(--brand); }
.footer p { color: var(--muted); max-width: 30em; margin-top: 0.8rem; font-size: 0.9rem; }
.footer__bar { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--muted); }
.footer__bar a { display: inline; color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page head (inner pages) ---------- */
.phead { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.phead .lead { margin-top: 1rem; }
.phead--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
@media (max-width: 860px) { .phead--split { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 0.75rem 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566072' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40, 120, 248, 0.18); }
.field .help { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.field .err { font-size: 0.8rem; color: #b3341f; margin-top: 0.35rem; display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #b3341f; }
.field.bad .err { display: block; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.radios label { display: block; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 0.75rem 0.85rem; cursor: pointer; font-size: 0.88rem; font-weight: 500; color: var(--ink); background: var(--paper); transition: all 0.2s; }
.radios label small { display: block; font-weight: 400; color: var(--muted); font-size: 0.76rem; margin-top: 0.15rem; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label.on { border-color: var(--brand); background: var(--brand-tint); }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.form__acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form__note { font-size: 0.82rem; color: var(--muted); }
.form__msg { grid-column: 1 / -1; font-size: 0.9rem; color: #b3341f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .radios { grid-template-columns: 1fr; } }

/* booking layout: form + aside */
.book { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.aside { position: sticky; top: 92px; }
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(11,13,16,0.04); padding: 1.4rem 1.5rem; }
.card--brand { background: var(--band); border-color: var(--band); color: #fff; }
.card--brand .h3 { color: #fff; }
.card--brand p, .card--brand li { color: var(--on-brand); }
.card + .card { margin-top: 1rem; }
.card ul { list-style: none; }
.card li { padding: 0.45rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--muted); }
.card--brand li { border-color: rgba(255,255,255,0.12); }
.card li:last-child { border-bottom: 0; }
.card li b { color: inherit; font-weight: 600; }
.card .h3 { margin-bottom: 0.6rem; }
.done { text-align: center; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.done .mark-big { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem; }
.done p { max-width: 36em; margin: 0.8rem auto 0; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Product detail ---------- */
.pdetail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.gallery__main { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--paper-2); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.gallery__thumbs button { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--paper-2); cursor: pointer; }
.gallery__thumbs button.on { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo .pcard__brand { margin-bottom: 0.5rem; }
.pinfo .h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pinfo__meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.pinfo__price { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; }
.pinfo__price small { font-family: var(--sans); font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.pinfo p.desc { white-space: pre-line; line-height: 1.65; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.4rem 0; }
.spec { background: var(--paper-2); border-radius: 10px; padding: 0.7rem 0.9rem; }
.spec small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec b { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-top: 0.15rem; }
.inquire { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.inquire .h3 { margin-bottom: 0.9rem; }
@media (max-width: 860px) { .pdetail { grid-template-columns: 1fr; } .gallery__thumbs { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line-soft); align-items: start; }
.svc:first-of-type { border-top: 0; }
.svc__title .h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc__title p { margin-top: 0.7rem; max-width: 30em; }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; }
.svc__list div { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; color: var(--ink); }
.svc__list div small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc__list { grid-template-columns: 1fr; } }
.svc__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact__rows { display: grid; gap: 0.2rem; margin-top: 1.5rem; }
.contact__row { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.contact__row:last-child { border-bottom: 0; }
.contact__row small { flex: 0 0 90px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__row b { font-weight: 500; color: var(--ink); font-size: 1rem; }
.contact__row a { color: var(--brand); font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Invoice page ---------- */
.inv { max-width: 860px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gut) 4rem; }
.inv__paper { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.inv__top { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 2rem; }
.inv__top .brand { align-items: flex-start; }
.inv__meta { margin-left: auto; text-align: right; }
.inv__meta .n { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.inv__meta small { display: block; color: var(--muted); font-size: 0.85rem; }
.inv__status { display: inline-flex; margin-top: 0.4rem; }
.inv__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.inv__parties h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.inv__parties b { display: block; font-weight: 600; }
.inv__parties p { color: var(--muted); text-wrap: pretty; }
.inv table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 0.93rem; }
.inv th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.inv td { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.inv th.num, .inv td.num { text-align: right; white-space: nowrap; }
.inv td .k { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-left: 0.5rem; }
.inv__totals { margin-left: auto; width: min(320px, 100%); margin-top: 1rem; }
.inv__totals div { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.93rem; color: var(--muted); }
.inv__totals div.t { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.8rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.inv__pay { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--paper-2); border-radius: 10px; font-size: 0.92rem; }
.inv__pay h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.inv__pay p { color: var(--ink); white-space: pre-line; }
.inv__foot { margin-top: 1.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.inv__acts { display: flex; gap: 0.6rem; justify-content: flex-end; margin-bottom: 1rem; }
.pill--paid { background: #e2f1e6; color: #1f6b3a; }
.pill--open { background: rgba(40,120,248,0.14); color: #1a4fb0; }
.pill--void { background: var(--paper-3); color: var(--muted); }
@media (max-width: 640px) { .inv__parties { grid-template-columns: 1fr; } .inv__meta { margin-left: 0; text-align: left; } }
@media print {
  .nav, .footer, .inv__acts, .no-print { display: none !important; }
  body { background: #fff; }
  .inv { padding: 0; max-width: none; }
  .inv__paper { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Error block ---------- */
.errblk { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.errblk .code { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 5rem); color: var(--brand); letter-spacing: -0.04em; line-height: 1; opacity: 0.9; }
.errblk .h2 { margin: 0.8rem 0 0.6rem; }
.errblk p { max-width: 34em; margin: 0 auto 1.6rem; }

/* ---------- Reveal (subtle, motivated: content enters as it arrives) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pcard, .pcard__img img, .btn { transition: none; }
}

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.toast { background: var(--brand-deep); color: #fff; font-size: 0.88rem; border-radius: 10px; padding: 0.7rem 1.2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.25); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; max-width: min(480px, 90vw); text-align: center; }
.toast.in { opacity: 1; transform: translateY(0); }
.toast--err { background: #6e2f2a; }

/* ---------- Mobile call / request bar (phones only) ---------- */
.mcta { display: none; }
@media (max-width: 760px) {
  .nav__acts .btn { display: none; }
  .mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.55rem 0.9rem calc(0.55rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); }
  .mcta .btn { justify-content: center; padding: 0.85rem 0.8rem; font-size: 0.92rem; }
  .mcta .btn--ghost { background: var(--paper); }
  .mcta .btn.hide + .btn { grid-column: 1 / -1; }
  body:has(.mcta) .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .field input, .field select, .field textarea { font-size: 16px; }
  .hero { padding-top: 1.2rem; }
  .hero__img { aspect-ratio: 4 / 3; }
  .section { padding: 3rem 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
  .btn { padding: 0.8rem 1.1rem; }
  .nav__in { gap: 0.8rem; }
  .nav__acts { gap: 0.5rem; }
  .nav__acts .btn { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
  .brand { font-size: 1.05rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .h1 { font-size: 2.2rem; }
}
