@charset "UTF-8";
/* Karan Singla Surgical & General Hospital — the public home page.
   One style sheet, no framework. The colours are the hospital's own: the blue wave and gold edge of its printed file
   cover, the blue and green of its logo. The wave is drawn twice (under the first screen, above the contact section);
   the logo's double ring comes back around the doctors' initials. Everything that moves is at the end of the file,
   inside one "the visitor has not asked for less motion" block. */

:root {
  --blue-950: #06183a;
  --blue-900: #082454;
  --blue-800: #0a3577;
  --blue-700: #0b4ea2;   /* the brochure's blue */
  --blue-600: #1d64bd;
  --blue-500: #347cd3;   /* the logo's blue */
  --blue-200: #c4dbf5;
  --blue-100: #e2eefb;
  --blue-50: #f3f8fe;
  --green-700: #4a7325;
  --green-500: #8daf63;  /* the logo's green */
  --green-100: #edf4e4;
  --gold-500: #e3a82b;   /* the brochure's gold edge */
  --gold-300: #f6d68b;
  --wa: #12813f;         /* WhatsApp's green, darkened so white text on it is easy to read */
  --wa-dark: #0c6831;
  --ink: #0c1f33;
  --ink-2: #3a4c62;
  --ink-3: #586a80;
  --line: #d9e3ef;
  --shadow-1: 0 1px 2px rgba(8, 36, 84, .05), 0 6px 18px rgba(8, 36, 84, .06);
  --shadow-2: 0 2px 4px rgba(8, 36, 84, .05), 0 22px 50px rgba(8, 36, 84, .11);
  --r-m: 14px;
  --r-l: 24px;
  --font: "Anek Latin", "Anek Gurmukhi", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-pa: "Anek Gurmukhi", "Anek Latin", "Raavi", "Gurmukhi MN", "Noto Sans Gurmukhi", sans-serif;
  --ease: cubic-bezier(.22, .8, .26, 1);
  --head-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 14px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[lang="pa"] { font-family: var(--font-pa); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue-200); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 100; padding: 10px 16px; background: var(--blue-900); color: #fff; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .68em 1.3em; border: 1.5px solid transparent; border-radius: var(--r-m); font-weight: 600; font-size: 1.02rem; line-height: 1.1; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 10px 24px rgba(11, 78, 162, .28); }
.btn--primary:hover { background: var(--blue-800); box-shadow: 0 14px 30px rgba(11, 78, 162, .34); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(18, 129, 63, .24); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 14px 30px rgba(18, 129, 63, .3); }
.btn--ghost { background: #fff; color: var(--blue-800); border-color: var(--blue-200); }
.btn--ghost:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn--light { background: #fff; color: var(--blue-800); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.btn--light:hover { background: var(--blue-50); }
.btn--call { min-height: 46px; background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-100); font-variant-numeric: tabular-nums; }
.btn--call:hover { background: var(--blue-100); border-color: var(--blue-200); }

/* ───────── the bar at the top ───────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); transition: box-shadow .3s; }
.top.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(8, 36, 84, .07); }
.top__in { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; border-radius: 12px; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand__text { display: grid; min-width: 0; line-height: 1.12; }
.brand__memorial { font-size: .76rem; font-weight: 600; color: var(--green-700); }
.brand__name { font-size: 1.14rem; font-weight: 700; color: var(--blue-800); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__rest { font-weight: 500; color: var(--ink-2); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 13px; border-radius: 10px; font-weight: 500; font-size: 1rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav a.is-here { color: var(--blue-700); font-weight: 600; }
.top__menu { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--blue-100); border-radius: 12px; background: #fff; color: var(--blue-800); }
.top__menu .ico { width: 22px; height: 22px; stroke-width: 2; }

/* ───────── the first screen ───────── */
.hero { --ribbon-h: clamp(84px, 12vw, 170px); position: relative; overflow: hidden; background: radial-gradient(60% 70% at 78% 34%, #e3effc 0%, rgba(227, 239, 252, 0) 70%), linear-gradient(180deg, #fff 0%, #f4f9fe 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(34px, 5.4vw, 76px) calc(var(--ribbon-h) + clamp(10px, 2.4vw, 34px)); }
.hero__name { font-size: clamp(1.04rem, 1.45vw, 1.2rem); font-weight: 700; line-height: 1.3; color: var(--blue-700); }
.hero__name::before { content: ""; display: block; width: 46px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--gold-500); }
.hero__name span { display: block; font-weight: 500; color: var(--ink-2); }
.hero__line { margin-top: 16px; font-size: clamp(2.3rem, 4.9vw, 3.9rem); font-weight: 700; line-height: 1.03; letter-spacing: -.03em; color: var(--blue-900); text-wrap: balance; }
.hero__lead { margin-top: 20px; max-width: 33em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; margin-top: clamp(28px, 3.6vw, 44px); }
.hero__facts li { display: flex; align-items: center; gap: 12px; padding-inline: 22px; border-left: 1px solid var(--line); font-size: .93rem; line-height: 1.25; color: var(--ink-3); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts b { display: block; font-size: 1.04rem; font-weight: 700; color: var(--blue-900); }
.hero__facts img { width: auto; height: 42px; }
.is-crest { border-radius: 4px; }
.fact__n { font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--blue-700); }

.hero__art { display: grid; place-items: center; }
.emblem { position: relative; width: min(100%, 450px); aspect-ratio: 1; }
.emblem__ring { position: absolute; inset: 13%; border-radius: 50%; border: 1.5px solid rgba(52, 124, 211, .4); opacity: 0; }
.emblem__dash, .emblem__arc { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.emblem__dash { stroke: #a9c9ee; stroke-width: 1.6; stroke-dasharray: 1.5 9; }
.emblem__arc path { stroke-width: 3; }
.emblem__arc path:first-child { stroke: var(--gold-500); }
.emblem__arc path:last-child { stroke: var(--green-500); }
.emblem__disc { position: absolute; inset: 13%; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 34px 70px rgba(11, 78, 162, .2), 0 6px 16px rgba(11, 78, 162, .09), inset 0 0 0 1px rgba(11, 78, 162, .05); }
.emblem__disc img { width: 78%; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-2); font-size: .95rem; font-weight: 600; color: var(--blue-900); white-space: nowrap; }
.tag .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); stroke-width: 1.9; }
.tag--a { top: 7%; right: -3%; }
.tag--b { bottom: 17%; left: -7%; }
.tag--b .ico { background: var(--green-100); color: var(--green-700); }
.tag--c { right: 2%; bottom: 0; }
.tag--a .ico { background: #fdf1d3; color: #8a5f06; }

/* the wave: a blue body with a gold line running along its edge */
.ribbon { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--ribbon-h); pointer-events: none; }
.ribbon__blue { fill: var(--blue-700); }
.ribbon__white { fill: #fff; }
.ribbon__gold { fill: none; stroke: var(--gold-500); stroke-width: 5; stroke-linecap: round; }

/* ───────── day and night ───────── */
.always { position: relative; background: linear-gradient(180deg, var(--blue-700) 0%, #0a4592 100%); color: #fff; }
.always__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 14px clamp(34px, 5vw, 54px); }
.always__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .55em; font-size: clamp(1.2rem, 2.3vw, 1.7rem); font-weight: 600; line-height: 1.15; }
.always__big span { font-size: 2.1em; font-weight: 800; line-height: .95; letter-spacing: -.03em; color: var(--gold-300); }
.always__phones { display: flex; flex-wrap: wrap; gap: 12px; }
.always__phones a { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .26); border-radius: var(--r-m); background: rgba(255, 255, 255, .1); font-size: 1.14rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s, border-color .2s; }
.always__phones a:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.always__phones .ico { color: var(--gold-300); }

/* ───────── sections ───────── */
.section { position: relative; padding-block: clamp(64px, 9vw, 118px); }
.section--tint { background: var(--blue-50); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: clamp(26px, 4vw, 46px); }
.section__head h2, .contact__main h2 { font-size: clamp(1.85rem, 3.7vw, 2.8rem); font-weight: 700; line-height: 1.06; letter-spacing: -.024em; text-wrap: balance; }
.section__head h2 { color: var(--blue-900); }
.section__head p { max-width: 35em; margin-top: 12px; font-size: 1.1rem; color: var(--ink-2); text-wrap: pretty; }

/* English / ਪੰਜਾਬੀ */
.lang { display: none; padding: 4px; border: 1px solid var(--blue-100); border-radius: 999px; background: var(--blue-50); }
.js .lang { display: inline-flex; }
.lang button { min-height: 42px; padding: 8px 20px; border: 0; border-radius: 999px; background: none; font-weight: 600; line-height: 1.2; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.lang button.is-on { background: #fff; color: var(--blue-800); box-shadow: var(--shadow-1); }

/* ───────── what we treat ───────── */
.depts { display: grid; gap: clamp(16px, 2.6vw, 34px); align-items: start; }
.depts__list { display: none; gap: 4px; }
.js .depts__list { display: grid; }
.depts__list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 11px 16px; border: 1px solid transparent; border-radius: var(--r-m); background: none; font-size: 1.05rem; font-weight: 600; line-height: 1.25; text-align: left; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .3s var(--ease), border-color .2s; }
.depts__list button .ico { width: 27px; height: 27px; stroke-width: 1.5; color: var(--blue-500); transition: color .2s; }
.depts__list button:hover { background: var(--blue-50); color: var(--blue-800); }
.depts__list button.is-on { background: var(--blue-700); color: #fff; box-shadow: inset 5px 0 0 var(--gold-500), 0 12px 26px rgba(11, 78, 162, .26); }
.depts__list button.is-on .ico { color: #fff; }

.depts__panels { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3.4vw, 42px); border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-2); }
.panel + .panel { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.js .panel { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.js .panel.is-on { display: block; }
.panel h3 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); font-weight: 700; line-height: 1.14; letter-spacing: -.016em; color: var(--blue-900); }
.panel__note { max-width: 42em; margin-top: 10px; font-size: 1.08rem; color: var(--ink-2); }
.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 30px; margin-top: 20px; }
.ticks li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--blue-100); font-weight: 500; line-height: 1.35; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 23px; height: 23px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7325' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.depts__ask { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }

/* ───────── the doctors: a register, one line each ───────── */
.register { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-1); }
.register li { display: grid; grid-template-columns: 58px minmax(0, 1.1fr) minmax(0, 1fr) 7.2rem; align-items: center; gap: 6px 24px; padding: 22px clamp(18px, 3vw, 36px); border-top: 1px solid var(--line); }
.register li:first-child { border-top: 0; }
.mono { display: grid; place-items: center; width: 54px; height: 54px; margin: 2px; border: 2px solid var(--blue-500); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green-500); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; color: var(--blue-700); }
.register__who h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.012em; color: var(--blue-900); }
.register__who p { margin-top: 2px; color: var(--ink-2); }
.register__role b { display: block; font-weight: 600; color: var(--blue-700); }
.register__role span { display: block; margin-top: 2px; font-size: .93rem; line-height: 1.35; color: var(--ink-3); }
.register__reg { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.register__reg span { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-3); }

/* ───────── ECHS, Ayushman Bharat, insurance ───────── */
.marks { display: flex; flex-wrap: wrap; gap: 12px; }
.markcard { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-1); }
.markcard img { flex: none; width: auto; height: 56px; }
.markcard b { display: block; font-size: 1.04rem; line-height: 1.25; color: var(--blue-900); }
.markcard span { display: block; margin-top: 2px; font-size: .92rem; line-height: 1.35; color: var(--ink-2); }
.finder { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-2); }
.finder__box { display: none; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px; border: 1.5px solid var(--blue-200); border-radius: var(--r-m); background: var(--blue-50); cursor: text; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.js .finder__box { display: flex; }
.finder__box:focus-within { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(29, 100, 189, .15); }
.finder__box .ico { width: 22px; height: 22px; stroke-width: 2; color: var(--blue-600); }
.finder__box input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: none; font-size: 1.1rem; }
.finder__box input::placeholder { color: var(--ink-3); opacity: 1; }
.finder__box input::-webkit-search-cancel-button { cursor: pointer; }
.finder__count { display: none; margin-top: 16px; font-size: .96rem; font-weight: 600; color: var(--ink-2); }
.js .finder__count { display: block; }
/* one tile per name on the panel: the company's own logo, its name under it (a name without a logo yet shows initials) */
.finder__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 10px; margin-top: 10px; }
.tile { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.tile:hover { border-color: var(--blue-200); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.tile__logo { display: grid; place-items: center; width: 100%; height: 64px; }
.tile__logo img { width: auto; max-width: min(100%, 160px); height: auto; max-height: 64px; object-fit: contain; }
.tile__logo--none { width: 50px; height: 50px; margin-block: 7px; border: 1.5px solid var(--blue-100); border-radius: 50%; background: var(--blue-50); font-size: .95rem; font-weight: 700; letter-spacing: .02em; color: var(--blue-700); }
.tile__name { font-size: .86rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.tile.is-key { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.tile.is-key .tile__name { font-weight: 700; color: var(--blue-800); }
.finder__list mark { padding: 0 1px; border-radius: 3px; background: #fbe6ac; color: inherit; }
.finder__more { display: none; align-items: center; min-height: 46px; margin-top: 14px; padding: 0 18px; border: 1.5px solid var(--blue-200); border-radius: var(--r-m); background: #fff; font-weight: 600; color: var(--blue-800); }
.finder__none { margin-top: 14px; padding: 14px 16px; border: 1px solid #f0dca0; border-radius: var(--r-m); background: #fff8e3; font-weight: 500; color: #5a4205; }
.finder__hint { margin-top: 18px; font-size: .93rem; color: var(--ink-3); }

/* ───────── find us ───────── */
.section--deep { --ribbon-h: clamp(64px, 10.4vw, 150px); overflow: hidden; padding-top: calc(var(--ribbon-h) + clamp(34px, 5vw, 64px)); background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%); color: #fff; }
.ribbon--top { top: -1px; bottom: auto; }
.contact { display: grid; gap: clamp(26px, 5vw, 72px); align-items: start; }
.contact__addr { max-width: 25em; margin-top: 18px; font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 500; line-height: 1.38; text-wrap: balance; }
.contact__addr--pa { margin-top: 10px; font-size: clamp(1.02rem, 1.5vw, 1.14rem); font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__side { padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-l); background: rgba(255, 255, 255, .06); }
.contact__side h3 { font-size: 1.02rem; font-weight: 600; color: var(--gold-300); }
.bigphone { display: flex; align-items: center; gap: 12px; width: fit-content; margin-top: 12px; border-radius: 10px; font-size: clamp(1.55rem, 2.7vw, 2.05rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .2s; }
.bigphone .ico { width: 24px; height: 24px; color: var(--gold-300); }
.bigphone:hover { color: var(--gold-300); }
.landmarks { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88); }
.landmarks li { display: flex; align-items: center; gap: 10px; }
.landmarks .ico { width: 18px; height: 18px; stroke-width: 2.4; color: var(--green-500); }

/* ───────── the foot of the page ───────── */
.foot { padding-block: 40px 34px; background: var(--blue-950); font-size: .96rem; color: rgba(255, 255, 255, .8); }
.foot__in { display: grid; gap: 20px; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__brand img { flex: none; width: 60px; height: 60px; padding: 5px; border-radius: 50%; background: #fff; }
.foot__name { font-size: 1.14rem; font-weight: 700; line-height: 1.25; color: #fff; }
.foot__pa { color: rgba(255, 255, 255, .86); }
.foot__small { font-size: .9rem; color: rgba(255, 255, 255, .66); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 16px; border-block: 1px solid rgba(255, 255, 255, .13); }
.foot__nav a { padding-block: 6px; border-radius: 6px; transition: color .2s; }
.foot__nav a:hover { color: #fff; }
.foot__legal { max-width: 62em; font-size: .88rem; color: rgba(255, 255, 255, .66); }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal a:hover { color: #fff; }

/* ───────── WhatsApp, always within reach ───────── */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; box-shadow: 0 16px 36px rgba(12, 104, 49, .36), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .25s var(--ease), background-color .2s; }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--wa-dark); }
.wa-float::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--wa); border-radius: inherit; opacity: 0; pointer-events: none; }
.dock { display: none; }

/* ───────── "this page is not here" ───────── */
.lost { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 100vh; min-height: 100dvh; padding: 40px 22px; text-align: center; background: radial-gradient(70% 60% at 50% 30%, #e3effc 0%, rgba(227, 239, 252, 0) 70%), #fff; }
.lost h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; line-height: 1.08; letter-spacing: -.024em; color: var(--blue-900); }
.lost p { max-width: 30em; color: var(--ink-2); }
.lost__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ───────── wider screens: two columns ───────── */
@media (min-width: 900px) {
  .js .depts { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); }
  .js .depts__panels { min-height: 100%; }
  .contact { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
}
@media (min-width: 1040px) {
  .marks { display: grid; flex: none; }
}

/* ───────── narrower screens ───────── */
@media (max-width: 1039px) {
  .brand__memorial { display: none; }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 899px) {
  :root { --head-h: 64px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 6px clamp(18px, 4vw, 40px) 16px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 26px 40px rgba(8, 36, 84, .12); }
  .top.is-open .nav { display: grid; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--blue-100); border-radius: 0; font-size: 1.08rem; }
  .nav a:last-child { border-bottom: 0; }
  .js .top__menu { display: grid; }
  .top__in { gap: 10px; }
  .brand__name { display: grid; font-size: 1.08rem; }
  .brand__rest { font-size: .8rem; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
  .top__call { width: 46px; padding: 0; }
  .top__call span { display: none; }

  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: 2; }
  .emblem { width: min(78%, 330px); }
  .tag { font-size: .86rem; padding: 6px 13px 6px 6px; }
  .tag .ico { width: 26px; height: 26px; padding: 5px; }
  .tag--a { right: -12%; }
  .tag--b { left: -14%; }
  .tag--c { right: -8%; }

  .depts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .depts__list button { flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 96px; padding: 14px 6px 12px; border-color: var(--line); background: #fff; font-size: .88rem; line-height: 1.2; text-align: center; }
  .depts__list button.is-on { box-shadow: inset 0 -4px 0 var(--gold-500), 0 10px 22px rgba(11, 78, 162, .24); border-color: var(--blue-700); }

  .register li { grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 4px 16px; padding-block: 20px; }
  .register li > :nth-child(n + 3) { grid-column: 2; }
  .register__reg { margin-top: 6px; text-align: left; }
  .register__reg span { display: inline; margin-right: 4px; font-size: .88rem; }
}
@media (max-width: 759px) {
  .wa-float { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: .82fr 1.16fr 1.02fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 28px rgba(8, 36, 84, .1); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid var(--blue-100); border-radius: 13px; background: var(--blue-50); font-size: .97rem; font-weight: 700; white-space: nowrap; color: var(--blue-800); }
  .dock a.dock__wa { border-color: transparent; background: var(--wa); color: #fff; box-shadow: 0 8px 18px rgba(18, 129, 63, .28); }
  .dock .ico { width: 20px; height: 20px; }
  .foot { padding-bottom: calc(34px + 68px + env(safe-area-inset-bottom, 0px)); }
  .js .finder__list:not(.is-open):not(.is-searching) li:nth-child(n + 9) { display: none; }
  .js .finder__more { display: inline-flex; }
  .js .finder__list.is-searching + .finder__more { display: none; }
  .marks { width: 100%; }
  .markcard { flex: 1 1 260px; }
}
@media (max-width: 559px) {
  body { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 calc(50% - 6px); }
  .hero__cta .btn--primary { flex-basis: 100%; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__facts li { flex-direction: column; justify-content: flex-start; gap: 8px; padding-inline: 8px; font-size: .86rem; text-align: center; }
  .hero__facts li:first-child { padding-left: 8px; }
  .hero__facts img, .fact__n { height: 38px; }
  .fact__n { display: grid; place-items: center; font-size: 1.6rem; }
  .always__phones { width: 100%; }
  .always__phones a { flex: 1 1 0; justify-content: center; padding-inline: 10px; font-size: 1.04rem; }
  .depts__ask .btn, .contact__cta .btn { flex: 1 1 100%; }
  .finder__box input { font-size: 1rem; }
  .finder__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .top, .dock, .wa-float, .ribbon, .hero__art, .lang, .finder__box { display: none !important; }
  .section--deep, .always, .foot { background: none; color: var(--ink); }
}

/* ───────── everything that moves ─────────
   One arrival when the page opens (the words rise, the logo settles, the gold line draws itself along the wave), then
   each part of the page comes up once as it is reached. Nothing here is needed to read the page: a visitor who has
   asked their device for less motion gets none of it, and sees everything in place from the start. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .rise { animation: rise .85s var(--ease) both; }
  .hero__text > .rise:nth-child(1) { animation-delay: .08s; }
  .hero__text > .rise:nth-child(2) { animation-delay: .17s; }
  .hero__text > .rise:nth-child(3) { animation-delay: .27s; }
  .hero__text > .rise:nth-child(4) { animation-delay: .37s; }
  .hero__text > .rise:nth-child(5) { animation-delay: .47s; }

  .emblem { animation: settle 1.2s var(--ease) .12s both; }
  .emblem__ring { animation: ripple 5.6s cubic-bezier(.2, .6, .3, 1) 1.2s infinite; }
  .emblem__ring--late { animation-delay: 4s; }
  .emblem__dash { animation: turn 90s linear infinite; }
  .emblem__arc { animation: turn 44s linear infinite reverse; }
  .tag { animation: float 7s ease-in-out infinite; }
  .tag--b { animation-delay: -2.3s; }
  .tag--c { animation-delay: -4.6s; }

  .hero .ribbon__gold { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; animation: draw 2.4s var(--ease) .5s forwards; }
  .js .ribbon--top .ribbon__gold { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; transition: stroke-dashoffset 2.3s var(--ease) .2s; }
  .js .ribbon--top.is-in .ribbon__gold { stroke-dashoffset: 0; }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.is-now { transition: none; }
  .register li:nth-child(2) { transition-delay: 70ms; }
  .register li:nth-child(3) { transition-delay: 140ms; }
  .register li:nth-child(4) { transition-delay: 210ms; }
  .register li:nth-child(5) { transition-delay: 280ms; }

  /* choosing a department: the panel comes in, its lines follow one after another */
  .js .panel.is-on { animation: rise .45s var(--ease) both; }
  .js .panel.is-on .ticks li { animation: rise .5s var(--ease) both; }
  .js .panel.is-on .ticks li:nth-child(2) { animation-delay: 35ms; }
  .js .panel.is-on .ticks li:nth-child(3) { animation-delay: 70ms; }
  .js .panel.is-on .ticks li:nth-child(4) { animation-delay: 105ms; }
  .js .panel.is-on .ticks li:nth-child(5) { animation-delay: 140ms; }
  .js .panel.is-on .ticks li:nth-child(6) { animation-delay: 175ms; }
  .js .panel.is-on .ticks li:nth-child(7) { animation-delay: 210ms; }
  .js .panel.is-on .ticks li:nth-child(8) { animation-delay: 245ms; }
  .js .panel.is-on .ticks li:nth-child(9) { animation-delay: 280ms; }
  .js .panel.is-on .ticks li:nth-child(10) { animation-delay: 315ms; }
  .js .panel.is-on .ticks li:nth-child(11) { animation-delay: 350ms; }

  .wa-float::after { animation: halo 7s ease-out 4s infinite; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }
@keyframes ripple { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.46); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes halo { 0% { opacity: .75; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.16, 1.5); } }
