/* Priority Care demo: dark "showroom" look with a molten-amber accent.
   Colours are tokens below; everything else references them. */
:root {
  --bg: #0b0c0f;
  --bg-2: #101217;
  --surface: #15181e;
  --surface-2: #1b1f27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f3;
  --muted: #9aa3af;
  --accent: #f5a524;
  --accent-2: #ffcf6b;
  --accent-ink: #1a1203;
  --cool: #6fd3ff;
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --danger: #ff8f8f; --soft: rgba(245, 165, 36, 0.15);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
/* width/height attributes reserve space while loading; the drawn height still follows the CSS width. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.38; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.muted { color: var(--muted); }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.demo-ribbon {
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.12), rgba(245, 165, 36, 0.04));
  border-bottom: 1px solid rgba(245, 165, 36, 0.25);
  color: var(--accent-2);
  text-align: center;
  font-size: 0.8125rem;
  padding: 6px 16px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 12px 22px; font-weight: 600; font-family: var(--font-display);
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 12px 30px -12px rgba(245, 165, 36, 0.7); }
.btn--accent:hover { box-shadow: 0 16px 36px -12px rgba(245, 165, 36, 0.85); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 0.9375rem; }
.btn--lg { padding: 15px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(11, 12, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; }
/* The business's real logo (from its public Instagram), shown on the site only. */
.brand__mark--logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.footer .brand__mark--logo { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
.brand__text strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.brand__text small { font-family: "Readex Pro", sans-serif; font-size: 0.6875rem; letter-spacing: 0.28em; color: var(--accent); direction: ltr; text-align: start; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.9875rem; }
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav__lang { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; }
.lang:hover { border-color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; place-items: center; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(245, 165, 36, 0.16), transparent 70%),
    radial-gradient(35% 45% at 20% 10%, rgba(111, 211, 255, 0.08), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.875rem; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.6rem, 2rem + 3.6vw, 4.9rem); font-weight: 700; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 45%, #ff7a18);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.1875rem; max-width: 56ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.9375rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.proof__stars { display: inline-flex; gap: 2px; }
.proof__stars .icon { width: 0.95em; height: 0.95em; }

/* Before / after paint panel */
.panel { margin: 0; }
.panel__frame {
  --pos: 52%;
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate; touch-action: pan-y;
}
.paint { position: absolute; inset: 0; }
.paint span { position: absolute; inset: 0; }
.paint--after {
  background:
    radial-gradient(90% 60% at 25% -10%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(70% 50% at 85% 110%, rgba(245, 165, 36, 0.35), transparent 60%),
    linear-gradient(160deg, #1d2534 0%, #0e131c 48%, #04060a 100%);
}
.paint__reflect {
  background:
    linear-gradient(104deg, transparent 18%, rgba(255, 255, 255, 0.55) 22%, rgba(255, 255, 255, 0.08) 27%, transparent 31%),
    linear-gradient(104deg, transparent 58%, rgba(255, 255, 255, 0.16) 61%, transparent 66%);
  mix-blend-mode: screen;
}
.paint__beads {
  background-image:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.95) 0 1.2px, rgba(255, 255, 255, 0.3) 1.8px, rgba(160, 200, 255, 0.12) 4.5px, transparent 6px),
    radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.85) 0 1px, rgba(255, 255, 255, 0.22) 1.6px, rgba(160, 200, 255, 0.1) 3.6px, transparent 4.8px),
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.8) 0 0.8px, rgba(255, 255, 255, 0.2) 1.3px, transparent 3px);
  background-size: 97px 83px, 71px 61px, 53px 43px;
  background-position: 0 0, 29px 17px, 13px 37px;
  -webkit-mask-image: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6) 70%, #000 92%);
  mask-image: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6) 70%, #000 92%);
  opacity: 0.75;
}
.paint__sweep {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep 5.5s ease-in-out infinite 1.2s;
  mix-blend-mode: screen;
}
@keyframes sweep { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.paint--before {
  background:
    radial-gradient(90% 60% at 25% -10%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(160deg, #2b313b 0%, #1d2129 50%, #14171c 100%);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
[dir="rtl"] .paint--before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.paint__swirls {
  background:
    repeating-radial-gradient(circle at 30% 38%, rgba(255, 255, 255, 0.075) 0 1px, transparent 1.2px 7px),
    repeating-radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.2px 9px),
    repeating-radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.2px 11px);
}
.paint__haze { background: linear-gradient(180deg, rgba(200, 200, 200, 0.05), rgba(120, 110, 90, 0.16)); }
.panel__handle {
  position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; margin-inline-start: -1px;
  background: linear-gradient(180deg, transparent, var(--accent-2) 15%, var(--accent-2) 85%, transparent);
  pointer-events: none; z-index: 2;
}
.panel__handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%;
  background: rgba(11, 12, 15, 0.7); border: 2px solid var(--accent-2); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 6px rgba(245, 165, 36, 0.12);
}
.panel__handle span::before, .panel__handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border-block: 6px solid transparent; translate: 0 -50%;
}
.panel__handle span::before { left: 9px; border-right: 7px solid var(--accent-2); }
.panel__handle span::after { right: 9px; border-left: 7px solid var(--accent-2); }
.panel__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.panel__range:focus-visible + .panel__handle, .panel__frame:focus-within .panel__handle span { box-shadow: 0 0 0 6px rgba(245, 165, 36, 0.35); }
.panel__tag {
  position: absolute; top: 18px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: 0.8125rem; font-family: var(--font-display);
  background: rgba(11, 12, 15, 0.6); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.panel__tag--before { inset-inline-start: 18px; }
.panel__tag--after { inset-inline-end: 18px; color: var(--accent-2); border-color: rgba(245, 165, 36, 0.4); }
.panel figcaption { margin-top: 14px; color: var(--muted); font-size: 0.875rem; text-align: center; }

/* Sections */
.section { padding: 104px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.kicker { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); font-weight: 700; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.service__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service:hover .service__media img { transform: scale(1.05); }
.service__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16, 18, 23, 0.95)); }
/* No photo for marble yet, so the card shows a polished-marble texture drawn in CSS. */
.service__media--marble {
  background:
    linear-gradient(118deg, transparent 0 30%, rgba(255, 255, 255, 0.55) 34%, transparent 40%),
    linear-gradient(152deg, transparent 0 46%, rgba(96, 92, 88, 0.45) 47%, transparent 49%, transparent 63%, rgba(96, 92, 88, 0.3) 64%, transparent 66%),
    linear-gradient(28deg, transparent 0 55%, rgba(120, 116, 110, 0.35) 56%, transparent 58%),
    radial-gradient(60% 80% at 30% 20%, #f7f5f1, #dcd7cf 70%, #c9c2b8);
}
.service__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 0 28px 26px; margin-top: -26px; flex: 1; z-index: 1; }
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(60% 50% at 50% 0%, rgba(245, 165, 36, 0.12), transparent 70%);
}
.service:hover { border-color: rgba(245, 165, 36, 0.45); transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: #1c1a16; border: 1px solid rgba(245, 165, 36, 0.35); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.3125rem; font-weight: 600; }
.service p { color: var(--muted); font-size: 0.9875rem; flex: 1; }
.origin { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text); padding-top: 14px; border-top: 1px solid var(--line); }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.flag--IT { background: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.flag--DE { background: linear-gradient(180deg, #000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag--US { background: repeating-linear-gradient(180deg, #b22234 0 1.85px, #fff 1.85px 3.7px); }
.flag--US::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 6.5px; background: #3c3b6e; }

/* Why */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why-grid .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.rating-card {
  margin-top: 32px; padding: 26px 28px; border-radius: var(--radius); display: grid; gap: 6px; justify-items: start;
  background: linear-gradient(140deg, rgba(245, 165, 36, 0.14), rgba(245, 165, 36, 0.02) 60%); border: 1px solid rgba(245, 165, 36, 0.3);
}
.why__photo { width: 100%; margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 45%; }
.rating-card__num { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; }
.rating-card__stars { display: inline-flex; gap: 3px; color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 500; margin-top: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link .icon { width: 1em; height: 1em; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why { display: flex; gap: 20px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(245, 165, 36, 0.1); }
.why h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 4px; }
.why p { color: var(--muted); font-size: 0.9875rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step__num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(245, 165, 36, 0.8); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9375rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; inset-inline-end: -14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.15);
}

/* Booking */
.section--book { background: radial-gradient(60% 60% at 80% 20%, rgba(245, 165, 36, 0.1), transparent 70%), var(--bg); }
.book { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 28px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.contact-line .icon { color: var(--accent); }
.book__form { padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 0.9375rem; }
.field > span { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 92px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.15); }
.field [aria-invalid="true"] { border-color: #ff6b6b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #ff8f8f; font-size: 0.9375rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s ease; }
.faq__item[open] { border-color: rgba(245, 165, 36, 0.4); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { color: var(--accent); transition: transform 0.25s ease; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list > li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(245, 165, 36, 0.1); color: var(--accent); }
.contact__list div { display: grid; gap: 2px; }
.contact__list strong { font-family: var(--font-display); font-weight: 600; }
.contact__list a:not(.link) { color: var(--text); }
.contact__list span, .contact__list a[dir="ltr"] { color: var(--muted); justify-self: start; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); min-height: 380px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: border-color 0.2s ease, color 0.2s ease; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile quick bar + install button */
.mobile-bar { display: none; }
/* "Install app" never floats over the page: header on wide screens, bottom bar on phones, hidden until offered. */
.install { color: var(--accent-2); }
.install[hidden], .mobile-bar__install[hidden] { display: none !important; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero__grid, .why-grid, .book, .faq, .contact { grid-template-columns: 1fr; gap: 40px; }
  .why-grid .section__head { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .panel { max-width: 520px; width: 100%; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + 30px) 16px auto; display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 20px; background: rgba(21, 24, 30, 0.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; color: var(--text); }
  .nav a:hover { background: rgba(255, 255, 255, 0.04); }
  .nav__lang { display: block; border-top: 1px solid var(--line); margin-top: 6px; }
  .menu-btn { display: grid; }
  .header__actions .btn { display: none; }
  /* Tablets have no bottom bar, so the header keeps the install button as a round icon. */
  .header__actions .install:not([hidden]) { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .header__actions .install span { display: none; }
  /* Touch screens: text links get a 44px tap height. */
  .link, .contact__list a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 76px; }
  .section { padding: 76px 0; }
  .hero { padding: 36px 0 72px; }
  .lead { font-size: 1.0625rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .services, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .book__form { padding: 24px 20px; }
  .why { padding: 22px 20px; }
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 12, 15, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .header__actions .install { display: none !important; }
  .mobile-bar:has(.mobile-bar__install:not([hidden])) { grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 6px; }
  .mobile-bar a, .mobile-bar__install { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.75rem; padding: 6px; border-radius: 14px; color: var(--muted); }
  .mobile-bar__install { border: 0; background: none; font-family: inherit; cursor: pointer; }
  .mobile-bar .icon { width: 22px; height: 22px; color: var(--text); }
  .mobile-bar__main { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink) !important; font-weight: 600; }
  .mobile-bar__main .icon { color: var(--accent-ink); }
}

/* Small phones: keep the brand name on one line beside the two header buttons (same rule as the engine sites). */
@media (max-width: 420px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 6px; }
  .brand { gap: 10px; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__text strong { white-space: nowrap; }
  .brand__text small { letter-spacing: .12em; }
}
@media (max-width: 370px) {
  .brand__mark, .brand__mark--logo { width: 38px; height: 38px; }
  .brand__text strong { font-size: 1rem; }
  .brand__text small { display: none; }
}@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
