/* Groom Galaxy — light-first theme with dark mode, RTL-aware (logical properties) */
:root {
  --pink: #e8407a; --cyan: #3aa9d1; --lime: #b9c83a; --orange: #f39a2b; --navy: #1f2129;
  --bg: #f7f8fc; --bg2: #ffffff; --card: #ffffff; --ink: #1c1e26; --ink2: #4a4f5e; --mute: #7a8092;
  --line: #e6e8f0; --soft: #eef2f8; --brand: #2a9cc4; --brand-ink: #ffffff; --brand-soft: #e4f4fa;
  --ok: #1f9d5a; --bad: #d23a5a;
  --shadow: 0 10px 30px -12px rgba(28, 30, 38, .18); --shadow-lg: 0 30px 60px -20px rgba(28, 30, 38, .25);
  --r: 18px; --r-sm: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-d: "Unbounded", "Manrope", system-ui, sans-serif;
  --appbar: 0px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16171d; --bg2: #1c1e26; --card: #21232c; --ink: #f0f2f8; --ink2: #c3c7d4; --mute: #8e94a6;
  --line: #2f3240; --soft: #262935; --brand: #4fb8de; --brand-ink: #0f1a20; --brand-soft: #1c3440;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; --font-d: "IBM Plex Sans Arabic", system-ui, sans-serif; }
:root[lang="ru"] { --font-d: "Manrope", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Themed scrollbars */
:root { --sb-thumb: color-mix(in srgb, var(--brand) 55%, var(--line)); --sb-thumb-hover: var(--brand); --sb-track: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) var(--sb-track); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
::-webkit-scrollbar-corner, ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-track { background: var(--bg); }
.days::-webkit-scrollbar { height: 6px; }
.days::-webkit-scrollbar-thumb { border-width: 1px; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--ink); overflow-x: hidden; padding-bottom: var(--appbar); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.mute { color: var(--mute); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--navy); }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.linkbtn { background: none; border: 0; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--brand); font-weight: 700; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; padding-top: env(safe-area-inset-top); }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 50%; box-shadow: 0 4px 14px -4px rgba(0,0,0,.25); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: "Unbounded", var(--font); font-size: 16px; letter-spacing: -.01em; }
.brand-txt small { color: var(--mute); font-size: 12px; }
.mainnav { display: flex; gap: 4px; margin-inline-start: auto; }
.mainnav a { padding: 8px 14px; border-radius: 99px; color: var(--ink2); font-weight: 600; font-size: 15px; }
.mainnav a:hover { background: var(--soft); color: var(--ink); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: var(--soft); border-radius: 99px; padding: 3px; }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 99px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--mute); min-width: 36px; }
.lang button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 70px; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; }
.orbs i:nth-child(1) { width: 380px; height: 380px; background: var(--cyan); top: -120px; inset-inline-start: -100px; }
.orbs i:nth-child(2) { width: 320px; height: 320px; background: var(--pink); bottom: -140px; inset-inline-end: 10%; opacity: .32; }
.orbs i:nth-child(3) { width: 240px; height: 240px; background: var(--lime); top: 10%; inset-inline-end: -60px; opacity: .3; }
.orbs i:nth-child(4) { width: 200px; height: 200px; background: var(--orange); bottom: 0; inset-inline-start: 30%; opacity: .2; }
:root[data-theme="dark"] .orbs i { opacity: .22; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; }
.hero h1 { font-family: var(--font-d); font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.03em; }
:root[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--pink), var(--orange) 45%, var(--lime) 75%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--ink2); max-width: 540px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--ink2); font-size: 15px; flex-wrap: wrap; }
.rating { display: inline-flex; align-items: center; gap: 6px; }
.rating svg { color: #f5b301; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.branch-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.bchip:hover { border-color: var(--brand); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.status-dot.open { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.bchip small { color: var(--mute); font-weight: 500; }
.hero-art { position: relative; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); transform: rotate(2deg); }
[dir="rtl"] .hero-photo { transform: rotate(-2deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img.fallback { object-fit: contain; padding: 15%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; animation: bob 5s ease-in-out infinite; }
.float-card svg { color: var(--pink); }
.fc1 { top: 12%; inset-inline-start: -28px; }
.fc2 { bottom: 10%; inset-inline-end: -18px; animation-delay: -2.5s; }
.fc2 svg { color: var(--brand); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 72px 0; }
.sec-head { margin-bottom: 32px; max-width: 680px; }
.sec-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-d); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; }
:root[lang="ar"] .sec-head h2 { letter-spacing: 0; line-height: 1.35; }
.sec-head p { color: var(--ink2); margin: 12px 0 0; }
h3.sub { font-size: 18px; margin: 36px 0 14px; }

.seg { display: inline-flex; background: var(--soft); padding: 4px; border-radius: 99px; margin-bottom: 24px; }
.seg button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; font-weight: 700; cursor: pointer; color: var(--mute); display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.svc::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--brand)); }
.svc .pet { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.svc h3 { font-size: 18px; }
.svc p { margin: 0; color: var(--ink2); font-size: 14.5px; flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-weight: 800; font-size: 20px; }
.price small { font-size: 12px; color: var(--mute); font-weight: 600; margin-inline-end: 4px; }
.dur { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--mute); }
.dur svg { width: 15px; height: 15px; }
.svc .btn { padding: 8px 16px; font-size: 14px; }
.addon-row { display: flex; gap: 10px; flex-wrap: wrap; }
.addon { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 99px; background: var(--card); border: 1px dashed var(--line); font-weight: 600; font-size: 14px; }
.addon b { color: var(--brand); }
.skeleton { height: 210px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), var(--card), var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { border-radius: var(--r); padding: 26px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.why-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; inset-inline-end: -40px; top: -40px; background: var(--c); opacity: .18; filter: blur(4px); }
.why-card b { display: block; font-size: 18px; margin-bottom: 8px; }
.why-card p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.c1 { --c: var(--pink); } .c2 { --c: var(--cyan); } .c3 { --c: var(--lime); } .c4 { --c: var(--orange); }

/* Branches */
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.branch { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.branch-map { height: 180px; background: var(--soft); position: relative; }
.branch-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }
:root[data-theme="dark"] .branch-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.branch-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.branch-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.branch h3 { font-family: var(--font-d); font-size: 24px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--soft); color: var(--mute); white-space: nowrap; }
.open-badge.open { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.branch-line { display: flex; gap: 10px; align-items: start; color: var(--ink2); font-size: 15px; }
.branch-line svg { color: var(--brand); margin-top: 3px; }
.hours { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; font-size: 14.5px; }
.hours li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; }
.hours li.today { background: var(--brand-soft); font-weight: 700; }
.hours li.closed span:last-child { color: var(--bad); }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--ink2); }
.branch-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.branch-actions .btn { padding: 11px 12px; font-size: 14px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.g1 { grid-row: span 2; }
.g4 { grid-column: span 2; }
.insta-tile { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; border-radius: var(--r); color: #fff; background: linear-gradient(120deg, var(--pink), var(--orange) 50%, var(--lime)); font-size: 18px; }
.insta-tile svg { width: 40px; height: 40px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink2); }

/* CTA */
.cta-band { border-radius: 32px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(58,169,209,.85), transparent 45%), radial-gradient(circle at 85% 90%, rgba(232,64,122,.85), transparent 45%), radial-gradient(circle at 80% 10%, rgba(185,200,58,.6), transparent 40%), var(--navy); }
.cta-band h2 { font-family: var(--font-d); font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { margin: 10px 0 0; opacity: .9; max-width: 520px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 12px; }
.footer p { font-size: 14.5px; }
.foot-link { display: block; padding: 4px 0; font-weight: 600; }
.foot-link:hover { color: var(--brand); }
[dir="rtl"] .foot-link[dir="ltr"] { text-align: right; }
.foot-branch { margin-bottom: 12px; font-size: 14.5px; color: var(--ink2); }
.foot-branch b { color: var(--ink); display: block; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); }
.socials a:hover { background: var(--brand); color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; flex-wrap: wrap; }

/* Mobile app bar */
.appbar { display: none; }

/* Sheets (dialog) */
.sheet { border: 0; padding: 0; background: transparent; max-width: 560px; width: 100%; max-height: min(92vh, 860px); color: var(--ink); }
.sheet::backdrop { background: rgba(12, 14, 20, .5); backdrop-filter: blur(4px); }
.sheet[open] { animation: up .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-in { background: var(--bg); border-radius: 28px; display: flex; flex-direction: column; max-height: min(92vh, 860px); overflow: hidden; box-shadow: var(--shadow-lg); }
.sheet-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.sheet-title { text-align: center; }
.sheet-title b { font-size: 17px; }
.steps { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
.steps i { width: 26px; height: 4px; border-radius: 99px; background: var(--line); transition: background .2s; }
.steps i.on { background: var(--brand); }
.sheet-body { padding: 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); }
.sum { font-size: 14px; color: var(--mute); line-height: 1.3; }
.sum b { color: var(--ink); font-size: 18px; display: block; }
.bk-h { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.bk-h + .bk-h, .bk-block + .bk-h { margin-top: 22px; }
.bk-block { margin-bottom: 4px; }
.opt-grid { display: grid; gap: 10px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; text-align: start; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; width: 100%; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: none; }
.opt.on .ic { background: var(--brand); color: var(--brand-ink); }
.opt .ic svg { width: 24px; height: 24px; }
.opt .t { flex: 1; min-width: 0; }
.opt .t b { display: block; font-size: 15.5px; }
.opt .t small { color: var(--mute); font-size: 13px; display: block; }
.opt .pr { font-weight: 800; white-space: nowrap; font-size: 15px; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.opt.on .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt .tick svg { width: 14px; height: 14px; opacity: 0; }
.opt.on .tick svg { opacity: 1; }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.day { scroll-snap-align: start; flex: none; width: 62px; padding: 10px 0; border-radius: 16px; border: 2px solid var(--line); background: var(--card); text-align: center; cursor: pointer; line-height: 1.2; }
.day small { display: block; font-size: 12px; color: var(--mute); text-transform: uppercase; }
.day b { display: block; font-size: 20px; margin: 2px 0; }
.day span { font-size: 11px; color: var(--mute); }
.day.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.day.on small, .day.on span { color: inherit; opacity: .85; }
.day:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { padding: 11px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; text-align: center; }
.time:hover:not(:disabled) { border-color: var(--brand); }
.time.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.time:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.empty { padding: 26px; text-align: center; color: var(--mute); background: var(--card); border-radius: 16px; border: 1px dashed var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field label small { color: var(--mute); font-weight: 500; }
.field input, .field textarea { font: inherit; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.phone-wrap { display: flex; direction: ltr; }
.phone-wrap span { display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--line); border-inline-end: 0; border-radius: 14px 0 0 14px; background: var(--soft); font-weight: 700; }
.phone-wrap input { border-radius: 0 14px 14px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; font-size: 15px; }
.review div { display: flex; justify-content: space-between; gap: 12px; }
.review div span:first-child { color: var(--mute); }
.review div span:last-child { font-weight: 700; text-align: end; }
.note { font-size: 13px; color: var(--mute); margin-top: 12px; }
.success { text-align: center; padding: 10px 0; }
.success .big-tick { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); animation: pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.success .big-tick svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success h3 { font-size: 22px; margin-bottom: 6px; }
.success .ref { display: inline-block; font-family: ui-monospace, monospace; background: var(--soft); padding: 4px 10px; border-radius: 8px; margin: 8px 0 18px; font-weight: 700; direction: ltr; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.visit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 10px; display: grid; gap: 4px; }
.visit.past { opacity: .55; }
.visit b { font-size: 16px; }
.visit small { color: var(--mute); }

.toast { position: fixed; z-index: 100; inset-inline: 0; bottom: calc(24px + var(--appbar)); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .mainnav { display: none; }
  .tools { margin-inline-start: auto; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .branch-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --appbar: calc(68px + env(safe-area-inset-bottom)); }
  .container { padding-inline: 16px; }
  .topbar-in { height: 62px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand-txt small { display: none; }
  .brand-txt b { font-size: 14px; }
  .hide-sm { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .lang button { padding: 5px 8px; min-width: 32px; }
  .hero { padding: 24px 0 48px; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1; }
  .fc1 { inset-inline-start: -6px; } .fc2 { inset-inline-end: -6px; }
  .section { padding: 52px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 110px; }
  .g1 { grid-row: auto; grid-column: span 2; }
  .g4 { grid-column: span 2; }
  .cta-band { padding: 30px 24px; }
  .cta-band .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div:first-child { grid-column: auto; }
  .branch-actions { grid-template-columns: 1fr 1fr; }
  .branch-actions .btn:first-child { grid-column: span 2; }
  .appbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; z-index: 45; inset-inline: 0; bottom: 0; height: var(--appbar); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .appbar a, .appbar > button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--mute); background: none; border: 0; cursor: pointer; padding: 6px 0; }
  .appbar svg { width: 22px; height: 22px; }
  .appbar .appbar-book { width: 56px; height: 56px; margin: -24px auto 0; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--brand)); color: #fff; box-shadow: 0 10px 24px -8px var(--brand); justify-content: center; }
  .appbar .appbar-book svg { width: 26px; height: 26px; }
  .sheet { max-width: 100%; width: 100%; max-height: 94dvh; inset: auto 0 0 0; margin: 0; }
  .sheet-in { border-radius: 26px 26px 0 0; max-height: 94dvh; }
  .sheet[open] { animation: upm .3s cubic-bezier(.2, .9, .3, 1); }
  @keyframes upm { from { transform: translateY(100%); } }
  .opt-grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); }
}
