/* Landing page: the SB monogram and every live design option.
   Neutral by default (ivory, ink, a single gold rule). A card may carry its own
   design's theme instead: see .option--door (v1 Design D) and .option--clinic (v3). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}
/* Design D's faces, taken from the v1 prototype (SIL OFL, latin subset). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/rethink-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
}
/* Russian: PT Serif and PT Sans. Arabic: Noto Naskh Arabic and Noto Sans Arabic.
   All SIL OFL; each loads only for the characters that need it. */
@font-face {
  font-family: "PT Serif";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "PT Serif";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Sans";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ground: #f6f3ec;
  --paper: #fffdf8;
  --ink: #1d242b;
  --body: #4a525a;
  --muted: #7b8289;
  --rule: #ded7c9;
  --gold: #a8823c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 96px);
  --tracking-caps: 0.2em;
}
:lang(ru) {
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(ar) {
  --serif: "Newsreader", "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --tracking-caps: 0;
}
:lang(en) {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-caps: 0.2em;
}
html {
  scrollbar-gutter: stable;
}
[hidden] {
  display: none !important;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .option__arrow {
  display: inline-block;
  transform: scaleX(-1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.landing {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(40px, 6vw, 72px);
}

/* ── Monogram ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
}
.monogram {
  display: grid;
  place-items: center;
  width: clamp(96px, 11vw, 132px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--rule);
}
.monogram span {
  font: 300 clamp(40px, 4.8vw, 56px)/1 var(--serif);
  letter-spacing: 0.06em;
  padding-inline-start: 0.06em;
}
.name {
  margin: clamp(26px, 3vw, 36px) 0 0;
  font: 300 clamp(34px, 4.6vw, 58px)/1.05 var(--serif);
  letter-spacing: -0.01em;
}
.post {
  margin: 14px 0 0;
  font: 500 13px/1.4 var(--sans);
  letter-spacing: 0.26em;
  color: var(--muted);
}
.intro {
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--gold);
  max-width: 34em;
  font: 400 clamp(18px, 1.7vw, 21px)/1.6 var(--serif);
  color: var(--body);
}

/* ── Options ────────────────────────────────────────────────────────────── */

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
.option a {
  display: grid;
  align-content: start;
  height: 100%;
  padding: clamp(14px, 1.4vw, 18px) clamp(14px, 1.4vw, 18px) clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.option a:hover {
  border-color: #cbbf9f;
  box-shadow: 0 22px 50px rgba(29, 36, 43, 0.1);
  transform: translateY(-3px);
}
.option__frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #ece6da;
  box-shadow: inset 0 0 0 1px rgba(29, 36, 43, 0.06);
}
.option__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.option a:hover .option__frame img {
  transform: scale(1.025);
}
.option__meta {
  margin: 22px 6px 0;
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold);
}
.option__title {
  margin: 8px 6px 0;
  font: 400 clamp(28px, 2.8vw, 36px)/1.15 var(--serif);
}
.option__body {
  margin: 10px 6px 0;
  font: 400 17px/1.6 var(--serif);
  color: var(--body);
}
.option__open {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  margin: 18px 6px 0;
  font: 500 15px/1.4 var(--sans);
  letter-spacing: 0.02em;
}
.option__arrow {
  transition: transform 0.25s ease;
}
.option a:hover .option__arrow {
  transform: translateX(4px);
}
[dir="rtl"] .option a:hover .option__arrow {
  transform: scaleX(-1) translateX(4px);
}

/* v3 "Clinic": the card in v3's own theme. Colours match versions/v3/assets/css/site.css. */
.option--clinic a {
  --c-ink: #0c171a;
  --c-body: #5c6360;
  --c-line: #e7eaea;
  --c-tint: #dceaee;
  --c-red: #d8321c;
  --c-red-hover: #b82913;
  --c-red-text: #b92a16;
  border-color: var(--c-line);
  border-radius: 16px;
  background: #fff;
  color: var(--c-ink);
  font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.option--clinic a:hover {
  border-color: var(--c-tint);
  box-shadow: 0 24px 54px rgba(12, 23, 26, 0.12);
}
.option--clinic a:focus-visible {
  outline-color: var(--c-red);
}
.option--clinic .option__frame {
  padding: 10px 10px 0;
  border-radius: 10px;
  background: var(--c-tint);
  box-shadow: none;
}
.option--clinic .option__frame img {
  border-radius: 6px 6px 0 0;
}
.option--clinic .option__meta {
  font: 600 14px/1.4 "Rethink Sans", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-red-text);
}
.option--clinic .option__title {
  font: 600 clamp(28px, 2.8vw, 36px)/1.12 "Rethink Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.option--clinic .option__body {
  font: 400 15.5px/1.65 "Rethink Sans", system-ui, sans-serif;
  color: var(--c-body);
}
.option__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 6px 0;
}
.option__tags span {
  padding: 2px 11px;
  border: 1px solid var(--c-ink);
  border-radius: 999px;
  font: 500 12.5px/1.6 "Rethink Sans", system-ui, sans-serif;
}
.option--clinic .option__open {
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--c-red);
  color: #fff;
  font: 600 14.5px/1.2 "Rethink Sans", system-ui, sans-serif;
  letter-spacing: 0;
  transition: background-color 0.2s ease;
}
.option--clinic a:hover .option__open {
  background: var(--c-red-hover);
}
.option--clinic .option__open svg {
  transition: transform 0.25s ease;
}
.option--clinic a:hover .option__open svg {
  transform: translate(2px, -2px);
}

.foot {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font: 500 14px/1.4 var(--sans);
  letter-spacing: 0.06em;
}
.foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.foot {
  width: min(100% - 2 * var(--gutter), 1240px - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: 40px;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a[aria-current="page"] {
  color: var(--ink);
}
.foot a:hover {
  color: var(--ink);
}

/* ── Entrance: the monogram, then the options, once. CSS only. ─────────── */

@media (prefers-reduced-motion: no-preference) {
  .monogram,
  .name,
  .post,
  .intro,
  .option {
    animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }
  .monogram { animation-name: settle; animation-duration: 1.1s; }
  .name { animation-delay: 0.12s; }
  .post { animation-delay: 0.2s; }
  .intro { animation-delay: 0.28s; }
  .option:nth-child(1) { animation-delay: 0.36s; }
  .option:nth-child(2) { animation-delay: 0.44s; }
  .option:nth-child(3) { animation-delay: 0.52s; }
  .option:nth-child(4) { animation-delay: 0.6s; }
  .option:nth-child(n + 5) { animation-delay: 0.68s; }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* ── v1 Design D "The Front Door": the card in its own theme ─────────────────
   Colours are Design D's default palette (slate) and its coral mark, from
   site/versions/v1/index.html. Kept at the end of the file on purpose. */

.option--door a {
  --d-slate: #2b3a55;
  --d-slate-dark: #1f2b40;
  --d-ink: #1e2430;
  --d-body: #4b5563;
  --d-label: #5e6b80;
  --d-line: #dde3eb;
  --d-tint: #e8edf4;
  --d-coral: #f85058;
  border-color: var(--d-line);
  border-radius: 8px;
  background: #fff;
  color: var(--d-ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.option--door a:hover {
  border-color: #c9d3df;
  box-shadow: 0 22px 50px rgba(30, 36, 48, 0.12);
}
.option--door a:focus-visible {
  outline-color: var(--d-slate);
}
.option--door .option__frame {
  padding: 8px 8px 0;
  border-radius: 6px;
  background: var(--d-slate);
  box-shadow: none;
}
.option--door .option__frame img {
  border-radius: 3px 3px 0 0;
}
.option--door .option__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1.4 "Nunito Sans", system-ui, sans-serif;
  letter-spacing: 0.16em;
  color: var(--d-label);
}
/* The coral hexagon from Design D's logo. */
.option--door .option__meta::before {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  background: var(--d-coral);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.option--door .option__title {
  font: 600 clamp(32px, 3.1vw, 42px)/1.08 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
.option--door .option__body {
  font: 400 16px/1.65 "Nunito Sans", system-ui, sans-serif;
  color: var(--d-body);
}
.option__palettes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 6px 0;
  padding: 10px 14px;
  border: 1px solid var(--d-line);
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--d-body);
  font: 400 13.5px/1.4 "Nunito Sans", system-ui, sans-serif;
}
.option__swatches {
  display: flex;
}
.option__swatches i {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.option__swatches i + i {
  margin-inline-start: -5px;
}
.option__swatches i:nth-child(1) { background: var(--d-slate); }
.option__swatches i:nth-child(2) { background: var(--d-tint); box-shadow: inset 0 0 0 1px #c9d3df; }
.option__swatches i:nth-child(3) { background: var(--d-coral); }
.option--door .option__open {
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 22px;
  border-radius: 3px;
  background: var(--d-slate);
  color: #fff;
  font: 600 14.5px/1.2 "Nunito Sans", system-ui, sans-serif;
  letter-spacing: 0;
  transition: background-color 0.2s ease;
}
.option--door a:hover .option__open {
  background: var(--d-slate-dark);
}

/* ── Header: top bar, logo bar, menu (landing and its legal pages) ──────────── */

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 500 15px var(--sans);
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 22px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  font: 400 14px/1.4 "Hanken Grotesk", system-ui, sans-serif;
}
.topbar a {
  color: var(--ink);
  font-weight: 500;
}
.topbar__views {
  margin-inline-end: auto;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.langs a {
  display: block;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font: 500 13px/1.2 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, sans-serif;
}
.langs a:hover {
  border-color: #cbbf9f;
}
.langs a[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
/* Geography: visitors in US time zones see English with no language switcher
   (site.js sets .geo-us before first paint). A page already in another language keeps it. */
.geo-us:lang(en) [data-langs] {
  display: none !important;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 243, 236, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bar__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
}
.bar__mark {
  display: block;
  flex: none;
  width: auto;
  height: 42px;
}
.bar__name {
  font: 400 clamp(18px, 1.8vw, 21px)/1.2 var(--serif);
}
.menu-button,
.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 15px/1 var(--sans);
  cursor: pointer;
}
.menu-button:hover,
.menu__close:hover {
  border-color: #cbbf9f;
}
.menu__close {
  padding: 0;
}
@media (max-width: 520px) {
  .menu-button {
    padding: 0;
  }
  .menu-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .bar__name {
    font-size: 17px;
  }
}

/* The menu. Without JavaScript it is an ordinary block of links under the logo bar.
   With JavaScript it is a panel fixed to the top of the screen over a backdrop. */
.menu {
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.menu__bar {
  display: none;
}
.js .menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) clamp(24px, 3vw, 40px);
  border: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 30px 80px rgba(29, 36, 43, 0.25);
}
.js .menu:not(.is-open) {
  display: none;
}
.js .menu__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(29, 36, 43, 0.42);
}
html.menu-open {
  overflow: hidden;
}
.menu__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px clamp(28px, 5vw, 90px);
  max-width: 1240px;
  margin: 0 auto;
  padding-top: clamp(18px, 2.4vw, 30px);
}
.label {
  margin: 0 0 8px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold);
}
.menu__nav {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu__nav a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif);
}
.menu__nav a:hover {
  color: var(--gold);
}
.menu__nav a[aria-current="page"] {
  color: var(--gold);
}
.menu__meta {
  font: 600 11.5px/1.4 var(--sans);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.menu__side {
  display: grid;
  gap: 22px;
  align-content: start;
}
.menu__group {
  display: grid;
  gap: 4px;
}
.menu__group .langs a {
  padding: 10px 16px;
  font-size: 15px;
}
.menu__views:has(.views[hidden]) {
  display: none;
}
.menu__legal {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 18px/1.5 var(--serif);
}
.menu__legal a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--rule);
}
.menu__legal a[aria-current="page"] {
  color: var(--gold);
}

/* Device views (Full / Laptop / Tablet / Mobile). site.js unhides them on desktops. */
.views {
  display: flex;
  align-items: center;
  gap: 5px;
}
.views button {
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.views .views__full {
  padding: 5px 11px;
  font: 600 11.5px/1.2 "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.views button:hover {
  border-color: #cbbf9f;
}
.views button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.is-framed body {
  overflow: hidden;
}
.is-framed body > :not(.device-desk) {
  display: none !important;
}
.device-desk {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  overflow: auto;
  background: #e4ddcf;
}
.device-frame {
  flex: none;
  max-width: none;
  height: 100%;
  border: 0;
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(29, 36, 43, 0.22);
}
@media (max-width: 900px) {
  .topbar__views {
    display: none;
  }
}
@media (max-width: 560px) {
  .topbar {
    justify-content: space-between;
    gap: 8px 14px;
  }
  .topbar__places {
    display: none;
  }
}

/* ── Privacy Policy and Terms, in the landing page's own style ─────────────── */

.legal {
  padding-top: clamp(28px, 4vw, 56px);
}
.legal__back {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font: 500 15px/1.4 var(--sans);
}
.legal__back a {
  color: var(--muted);
}
.legal__back a:hover {
  color: var(--ink);
}
.legal__head {
  max-width: 46rem;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.legal__eyebrow {
  margin: 0;
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold);
}
.legal__title {
  margin: 10px 0 0;
  font: 300 clamp(34px, 7vw, 64px)/1.08 var(--serif);
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal__updated {
  margin: 12px 0 0;
  font: 500 14px/1.4 var(--sans);
  color: var(--muted);
}
.legal__intro {
  margin: 20px 0 0;
  font: 400 clamp(18px, 1.6vw, 21px)/1.65 var(--serif);
  color: var(--body);
}
.legal__layout {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(30px, 4vw, 52px);
}
@media (min-width: 980px) {
  .legal__layout {
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    align-items: start;
  }
  .legal__toc {
    position: sticky;
    top: 90px;
  }
}
.legal__toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal__toc li {
  counter-increment: toc;
}
.legal__toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font: 400 15px/1.4 var(--sans);
  color: var(--body);
  overflow-wrap: break-word;
}
.legal__toc a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 1.6em;
  color: var(--gold);
}
.legal__toc a:hover {
  color: var(--ink);
}
.legal__body {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  max-width: 44rem;
}
.legal__section,
.legal__contact {
  display: grid;
  gap: 12px;
  scroll-margin-top: 90px;
}
.legal__section h2,
.legal__contact h2 {
  margin: 0;
  font: 400 clamp(23px, 2.3vw, 29px)/1.25 var(--serif);
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal__section p,
.legal__contact p,
.legal__section ul {
  margin: 0;
  font: 400 17.5px/1.7 var(--serif);
  color: var(--body);
}
.legal__section ul {
  display: grid;
  gap: 6px;
  padding-inline-start: 1.3em;
}
.legal__section li::marker {
  color: var(--gold);
}
.legal__contact {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
}
.legal__contact address {
  font: normal 400 16px/1.6 var(--sans);
  color: var(--body);
}
.legal__call {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1.2 var(--sans);
}
.legal__call:hover {
  background: #0f1418;
}

/* Themed cards in other scripts: their Latin-only faces fall back to the page's. */
:lang(ru) .option--door .option__meta,
:lang(ru) .option--door .option__body,
:lang(ru) .option__palettes,
:lang(ru) .option--door .option__open {
  font-family: "Nunito Sans", "PT Sans", system-ui, sans-serif;
}
:lang(ar) .option--door .option__meta,
:lang(ar) .option--door .option__body,
:lang(ar) .option__palettes,
:lang(ar) .option--door .option__open {
  font-family: "Nunito Sans", "Noto Sans Arabic", system-ui, sans-serif;
  letter-spacing: 0;
}

/* In-page targets land below the sticky logo bar. Margins on the targets, not
   scroll-padding on the page: with scroll-padding, focusing the sticky menu button
   from the keyboard scrolled the page up by the padding. */
[id],
input,
select,
textarea {
  scroll-margin-top: 90px;
}
:lang(ru) .option--clinic a,
:lang(ru) .option--clinic .option__meta,
:lang(ru) .option--clinic .option__body,
:lang(ru) .option--clinic .option__open,
:lang(ru) .option__tags span {
  font-family: "Rethink Sans", "PT Sans", system-ui, sans-serif;
}
:lang(ar) .option--clinic .option__meta,
:lang(ar) .option--clinic .option__body,
:lang(ar) .option--clinic .option__open,
:lang(ar) .option__tags span {
  font-family: "Rethink Sans", "Noto Sans Arabic", system-ui, sans-serif;
}
[dir="rtl"] .option--clinic .option__open svg {
  transform: scaleX(-1);
}
[dir="rtl"] .option--clinic a:hover .option__open svg {
  transform: scaleX(-1) translate(2px, -2px);
}

/* v4 "Health Care": the card in v4's own theme. Colours and type match
   versions/v4/assets/css/site.css (DM Sans, SIL OFL; licence in assets/fonts/). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
.option--care a {
  --h-ink: #0c171a;
  --h-body: #5f6663;
  --h-line: #e6e6e3;
  --h-violet: #4b168c;
  --h-violet-hover: #360c68;
  --h-violet-soft: #efe7f9;
  --h-sky: #1a6fd6;
  --h-pink: #f1aafa;
  border-color: var(--h-line);
  border-radius: 16px;
  background: #fff;
  color: var(--h-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.option--care a:hover {
  border-color: var(--h-pink);
  box-shadow: 0 24px 54px rgba(28, 8, 56, 0.14);
}
.option--care a:focus-visible {
  outline-color: var(--h-violet);
}
.option--care .option__frame {
  position: relative;
  padding: 10px 10px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--h-violet) 0%, var(--h-violet) 55%, var(--h-sky) 55%, var(--h-sky) 78%, var(--h-pink) 78%);
  box-shadow: none;
}
.option--care .option__frame img {
  border-radius: 6px 6px 0 0;
}
.option--care .option__meta {
  justify-self: start;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--h-violet-soft);
  color: var(--h-violet);
  font: 600 13.5px/1.5 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.option--care .option__title {
  font: 700 clamp(28px, 2.8vw, 36px)/1.12 "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.025em;
}
.option--care .option__body {
  font: 400 15.5px/1.65 "DM Sans", system-ui, sans-serif;
  color: var(--h-body);
}
.option--care .option__tags span {
  border: 0;
  background: var(--h-violet-soft);
  color: var(--h-violet);
  font: 600 12.5px/1.6 "DM Sans", system-ui, sans-serif;
}
.option--care .option__tags span:nth-child(2) {
  background: #e3effc;
  color: #0d4fb3;
}
.option--care .option__tags span:nth-child(3) {
  background: #fbe8fd;
  color: var(--h-violet);
}
.option--care .option__open {
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--h-violet);
  color: #fff;
  font: 600 14.5px/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
  transition: background-color 0.2s ease;
}
.option--care a:hover .option__open {
  background: var(--h-violet-hover);
}
.option--care .option__open svg {
  transition: transform 0.25s ease;
}
.option--care a:hover .option__open svg {
  transform: translate(2px, -2px);
}
[dir="rtl"] .option--care .option__open svg {
  transform: scaleX(-1);
}
[dir="rtl"] .option--care a:hover .option__open svg {
  transform: scaleX(-1) translate(2px, -2px);
}
:lang(ru) .option--care a,
:lang(ru) .option--care .option__meta,
:lang(ru) .option--care .option__body,
:lang(ru) .option--care .option__open,
:lang(ru) .option--care .option__tags span {
  font-family: "DM Sans", "PT Sans", system-ui, sans-serif;
}
:lang(ar) .option--care .option__meta,
:lang(ar) .option--care .option__body,
:lang(ar) .option--care .option__open,
:lang(ar) .option--care .option__tags span {
  font-family: "DM Sans", "Noto Sans Arabic", system-ui, sans-serif;
}

/* Phones: with the v4 entry the menu grew past the window, leaving no backdrop to
   tap. Tighter rows keep it shorter than a phone screen. */
@media (max-width: 600px) {
  .menu__body {
    gap: 14px;
    padding-top: 12px;
  }
  .menu__nav a {
    padding: 6px 0;
    font-size: 20px;
  }
  .menu__side {
    gap: 12px;
  }
}
