/* ==========================================================================
   MAXTECH INTERNATIONAL — shared design system, v2 ("porcelain")
   Light, soft and glossy: warm porcelain grounds, white floating cards, generous
   round corners, logo crimson used as a glow, thin elegant headlines with one
   serif-italic accent phrase. Used by every page; page styles live in css/<page>.css.

   Breakpoints
     shell:  <=1099px  phone/tablet shell (floating dock + bottom sheets), >=1100px desktop nav
     layout: <=760px   phone-native layouts
   ========================================================================== */

:root {
  --crimson: #E51C3E;        /* logo red */
  --crimson-deep: #B8102E;
  --crimson-ink: #C3112F;    /* small red text on light */
  --rose: #FF6B81;
  --peach: #BECDDE;
  --bg: #FBFAF8;             /* porcelain */
  --bg-2: #F4F1ED;           /* warm mist */
  --blush: #EDF1F6;
  --card: #FFFFFF;
  --ink: #1D1B20;
  --ink-2: #55525A;
  --ink-3: #8B8891;
  --plum: #17212C;           /* deep slate: the balancing colour with crimson */
  --slate: #33475B;
  --slate-2: #5F7386;           /* the one deep ground (footer) */
  --line: rgba(29, 27, 32, .09);
  --line-2: rgba(29, 27, 32, .055);
  --line-d: rgba(255, 255, 255, .12);
  --grad: linear-gradient(135deg, #EE3350 0%, #E51C3E 45%, #A50E27 100%);
  --sh-1: 0 1px 2px rgba(29, 27, 32, .04), 0 10px 28px -10px rgba(29, 27, 32, .12);
  --sh-2: 0 2px 4px rgba(29, 27, 32, .04), 0 30px 70px -24px rgba(29, 27, 32, .22);
  --sh-red: 0 14px 30px -12px rgba(229, 28, 62, .6);

  --f-display: "Wix Madefor Display", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --hd-h: 84px;
  --gut: clamp(20px, 4.6vw, 72px);
  --max: 1280px;
  --r-lg: 32px;
  --r: 24px;
  --r-sm: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
/* a light dotted pattern drifts behind every page; soft bands of it brighten and travel across */
body::before { content: ""; position: fixed; z-index: 0; inset: -80px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(51, 71, 91, .5) 1.3px, transparent 1.9px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, rgba(0,0,0,.9) 16%, transparent 34%, transparent 52%, rgba(0,0,0,.7) 68%, transparent 86%);
  mask-image: linear-gradient(115deg, transparent 0%, rgba(0,0,0,.9) 16%, transparent 34%, transparent 52%, rgba(0,0,0,.7) 68%, transparent 86%);
  -webkit-mask-size: 220% 220%; mask-size: 220% 220%;
  opacity: .5; animation: bgSweep 26s linear infinite, bgDrift 60s linear infinite; }
@keyframes bgSweep { from { -webkit-mask-position: 120% 0; mask-position: 120% 0; } to { -webkit-mask-position: -120% 0; mask-position: -120% 0; } }
@keyframes bgDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, 60px, 0); } }
main, .tb { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; -webkit-mask-position: 30% 0; mask-position: 30% 0; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--crimson); color: #fff; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 999px; box-shadow: var(--sh-1); font-weight: 500; font-size: 14px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ru-pending body { visibility: hidden; }

/* ----- type ----- */
.h1, .h2, .h3, .h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; color: var(--ink); }
.h1 { font-size: clamp(40px, 5.3vw, 84px); }
.h2 { font-size: clamp(34px, 4.2vw, 64px); }
.h3 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.h4 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -.02em; }
html[lang="ru"] .h1 { font-size: clamp(34px, 4.4vw, 70px); }
html[lang="ru"] .h2 { font-size: clamp(30px, 3.6vw, 54px); }
/* the accent phrase: serif italic in crimson */
.acc, .h1 em, .h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; font-size: 1.14em; line-height: .9; color: var(--crimson); }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--ink); }
.prose p + p { margin-top: 1.05em; }
p { color: var(--ink-2); }
p strong { color: var(--ink); }

/* small section label: plain text */
.eyebrow { display: block; font: 600 13px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--crimson-ink); }
.red-ink { color: var(--crimson-ink) !important; }

/* ----- layout ----- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sec { position: relative; padding: clamp(72px, 9vw, 140px) 0; }
.sec-mist { background: rgba(240, 236, 231, .72); }
.sec-white { background: rgba(255, 255, 255, .8); }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4.6vw, 68px); }
.sec-head .h2 { margin-top: 14px; }
.sec-head p { margin-top: 22px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* soft colour glows behind content */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-red { background: radial-gradient(closest-side, rgba(51, 71, 91, .30), rgba(51, 71, 91, 0)); }
.glow-peach { background: radial-gradient(closest-side, rgba(190, 205, 222, .55), rgba(190, 205, 222, 0)); }

/* icon tile */
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; margin-bottom: 22px; color: var(--crimson); background: linear-gradient(145deg, #FFF 0%, #E3EAF2 100%); box-shadow: 0 0 0 1px rgba(229, 28, 62, .12), 0 10px 20px -10px rgba(229, 28, 62, .45); transition: transform .5s var(--ease), background .4s, color .4s; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2), var(--sh-1); }
.glass { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line-2), var(--sh-1); }

/* ----- buttons (pills) ----- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 54px; padding: 0 8px 0 26px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 500 15.5px/1 var(--f-body); letter-spacing: -.005em; color: #fff; background: var(--grad); background-size: 140% 140%;
  box-shadow: var(--sh-red), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease);
}
.btn .arr { box-sizing: content-box; width: 16px; height: 10px; padding: 14px 11px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; transition: transform .35s var(--ease), background-color .3s; }
.btn:hover { transform: translateY(-2px); background-position: 100% 100%; box-shadow: 0 20px 36px -12px rgba(229, 28, 62, .65), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn:hover .arr { transform: translateX(3px); background: rgba(255, 255, 255, .3); }
.btn:active { transform: scale(.98); }
.btn-soft { color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.btn-soft .arr { background: var(--bg-2); color: var(--crimson); }
.btn-soft:hover { box-shadow: 0 0 0 1px rgba(229, 28, 62, .35), var(--sh-2); }
.btn-soft:hover .arr { background: var(--grad); color: #fff; }
.btn-ink { background: var(--ink); box-shadow: var(--sh-1); }
.btn-ink:hover { background: var(--grad); box-shadow: var(--sh-red); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.arr { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; color: var(--crimson-ink); padding: 10px 0; }
.link .arr { width: 16px; height: 10px; transition: transform .3s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ----- language switch ----- */
.lang { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.lang button[data-lang] { min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; font: 500 12.5px/1 var(--f-body); letter-spacing: .04em; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.lang .lang-hint { position: absolute; z-index: 5; right: 0; top: calc(100% + 14px); padding: 11px 16px; border-radius: 14px; background: var(--ink); color: #fff; opacity: 0; font: 500 13px/1.3 var(--f-body); white-space: nowrap; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.lang .lang-hint::before { content: ""; position: absolute; right: 22px; top: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.lang .lang-hint.on { opacity: 1; transform: none; pointer-events: auto; }

/* ----- header: a floating glass pill ----- */
.hd { position: fixed; z-index: 50; top: 14px; left: 50%; width: min(calc(100% - 2 * clamp(12px, 2.4vw, 32px)), 1240px); height: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; padding: 0 10px 0 22px; border-radius: 999px; color: var(--ink);
  background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 0 0 1px var(--line-2), 0 10px 30px -14px rgba(29, 27, 32, .18);
  transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.hd.is-stuck { background: rgba(255, 255, 255, .86); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 0 0 1px var(--line), 0 16px 40px -16px rgba(29, 27, 32, .28); }
.hd.is-away { transform: translate(-50%, -130%); }
.hd-logo { display: block; flex: none; }
.hd-logo img { height: 30px; width: auto; }
.hd-logo .logo-dark { display: none; }
.hd-nav { display: none; }
.hd-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-back { font-weight: 500; font-size: 14.5px; text-decoration: none; padding: 12px 14px; border-radius: 999px; color: var(--ink-2); }
.hd-back:hover { color: var(--crimson-ink); background: var(--blush); }
.apply { position: relative; display: none; }
@media (min-width: 1100px) {
  .hd { height: 68px; top: 18px; }
  .hd-logo img { height: 34px; }
  .hd-nav { display: flex; gap: 4px; margin: 0 auto; }
  .hd-nav a { font-weight: 500; font-size: 15px; text-decoration: none; padding: 10px 16px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background-color .2s; }
  .hd-nav a:hover, .hd-nav a[aria-current] { color: var(--ink); background: rgba(29, 27, 32, .055); }
  .hd-nav a { white-space: nowrap; }
  .hd-nav ~ .hd-tools { margin-left: 0; }
  .apply { display: block; }
  .apply > .btn { min-height: 48px; padding-left: 22px; }
  .apply > .btn .arr { padding: 11px 9px; }
  .apply-menu { position: absolute; right: 0; top: calc(100% + 16px); width: 300px; padding: 10px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--sh-2); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 100% 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
  .apply.open .apply-menu { opacity: 1; transform: none; pointer-events: auto; }
  .apply-menu p { font: 500 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px 10px; }
  .apply-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background-color .2s, color .2s; }
  .apply-menu a:hover { background: var(--blush); color: var(--crimson-ink); }
  .apply-menu a .arr { width: 16px; height: 10px; color: var(--crimson); }
}

/* small laptops: seven menu items need slightly tighter spacing to stay on one line */
@media (min-width: 1100px) and (max-width: 1299px) {
  .hd { gap: 12px; }
  .hd-nav { gap: 0; }
  .hd-nav a { padding: 10px 11px; font-size: 14.5px; }
}

/* ----- reveal ----- */
html.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-rv].in { opacity: 1; transform: none; }
html.js [data-rv="zoom"] { transform: scale(.94) translateY(30px); }
html.js [data-rv="left"] { transform: translateX(-48px); }
html.js [data-rv="right"] { transform: translateX(48px); }
html.js [data-rv="tilt"] { transform: perspective(900px) translateY(50px) rotateX(-14deg); transform-origin: 50% 100%; }
html.js [data-rv="zoom"].in, html.js [data-rv="left"].in, html.js [data-rv="right"].in, html.js [data-rv="tilt"].in { transform: none; }
/* on phones sideways reveals would widen the page: rise instead */
@media (max-width: 999px) { html.js [data-rv="left"], html.js [data-rv="right"] { transform: translateY(26px); } html.js [data-rv="left"].in, html.js [data-rv="right"].in { transform: none; } }
/* headline words rise in one after another */
html.js [data-rv="split"] { opacity: 1; transform: none; }
html.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); transform-origin: 0 100%; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms); }
html.js [data-split].in .w { opacity: 1; transform: none; }
/* a statement whose words brighten as you scroll through it */
html.js [data-words].words-ready .w { opacity: .16; transition: opacity .5s var(--ease); }
html.js [data-words].words-ready .w.on { opacity: 1; }
/* scroll-linked parallax (the --s variable is set by js/site.js) */
.sc-img img { transform: scale(1.2) translate3d(0, calc(var(--s, 0) * -7%), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-rv], html.js [data-split] .w { opacity: 1; transform: none; transition: none; }
  .sc-img img { transform: none; }
}

/* ----- 3D scenes: a still image first, the live canvas fades in over it ----- */
.scene { position: relative; overflow: hidden; }
.scene-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s var(--ease); }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.1s var(--ease); touch-action: pan-y; }
.scene.is-live canvas { opacity: 1; }
.scene.is-live .scene-still { opacity: 0; }

/* ----- footer ----- */
.tb { position: relative; overflow: hidden; background: var(--plum); color: #fff; border-radius: clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) 0 0; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
.tb::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 115, 134, .45), rgba(95, 115, 134, 0)); pointer-events: none; }
.tb-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(52px, 6vw, 88px) var(--gut) clamp(36px, 4vw, 56px); }
.tb-brand img { height: 44px; width: auto; margin-bottom: 24px; }
.tb p { color: rgba(255, 255, 255, .66); }
.tb-brand p { font-size: 15.5px; max-width: 38ch; }
.tb h4 { font: 500 12.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.tb li a { display: inline-block; padding: 7px 0; text-decoration: none; color: #fff; font-size: 15.5px; transition: color .2s; }
.tb li a:hover { color: var(--rose); }
.tb-ver p { font-size: 15px; color: #fff; }
.tb-ver p + p { margin-top: 10px; }
.tb-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tb-status i { width: 8px; height: 8px; border-radius: 50%; background: #3DD67A; box-shadow: 0 0 0 4px rgba(61, 214, 122, .18); flex: none; }
.tb-base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut) 28px; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.tb-base p { color: rgba(255, 255, 255, .5); }
.tb-base a { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 8px 0; }
.tb-base a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1099px) {
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .tb-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tb-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .tb-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .tb li a { padding: 10px 0; }
  .tb-base { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Phone / tablet shell (<=1099px): floating dock + bottom sheets (built by js/site.js)
   ========================================================================== */
.mbar, .sheet, .scrim { display: none; }
.mprog { position: fixed; z-index: 55; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
@media (max-width: 1099px) {
  :root { --bar-h: 84px; --hd-h: 78px; }
  .hd { padding: 0 8px 0 18px; }
  html:not(.js) .hd { height: auto; flex-wrap: wrap; border-radius: 28px; padding: 12px 18px; }
  html:not(.js) .hd-nav { display: flex; flex-wrap: wrap; gap: 2px 16px; width: 100%; order: 3; }
  html:not(.js) .hd-nav a { font-weight: 500; font-size: 14.5px; text-decoration: none; padding: 10px 0; }


  .mbar { position: fixed; z-index: 70; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 24px)); transform: translateX(-50%); display: flex; align-items: stretch; gap: 6px; height: 64px; padding: 6px; border-radius: 999px; color: var(--ink);
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line), 0 18px 44px -14px rgba(29, 27, 32, .4); transition: transform .45s var(--ease), opacity .3s; }
  .mbar.is-away { transform: translate(-50%, calc(100% + 34px)); }
  .mbar-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 500; font-size: 15.5px; transition: background-color .15s, transform .15s; }
  .mbar-btn:active { transform: scale(.97); }
  .mbar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .mbar-menu { flex: 0 0 40%; }
  .mbar-menu:active { background: rgba(29, 27, 32, .06); }
  .mbar-apply { flex: 1; color: #fff; background: var(--grad); box-shadow: var(--sh-red); justify-content: space-between; padding: 0 8px 0 24px; }
  .mbar-apply .arr { box-sizing: content-box; width: 16px; height: 10px; padding: 13px 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }

  .scrim { display: block; position: fixed; z-index: 80; inset: 0; background: rgba(29, 27, 32, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .sheet { display: block; position: fixed; z-index: 90; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); border-radius: 30px 30px 0 0; box-shadow: 0 -20px 60px -20px rgba(29, 27, 32, .35); transform: translate(-50%, 104%); transition: transform .5s var(--ease); padding: 6px 20px calc(24px + env(safe-area-inset-bottom, 0px)); visibility: hidden; }
  .sheet.on { transform: translate(-50%, 0); visibility: visible; }
  .sheet.drag { transition: none; }
  .sheet-grab { display: block; width: 100%; height: 30px; touch-action: none; }
  .sheet-grab::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 999px; margin: 10px auto 0; background: rgba(29, 27, 32, .16); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 14px; }
  .sheet-head .eyebrow { color: var(--ink-3); }
  .sheet-x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); }
  .sheet-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
  .sheet-nav, .sheet-portals { display: grid; gap: 8px; }
  .sheet-nav a, .sheet-portals a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 12px 0 22px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--sh-1); text-decoration: none; font: 600 20px/1.1 var(--f-display); letter-spacing: -.02em; }
  .sheet-portals b { display: contents; font-weight: 400; }
  .sheet-nav a .arr, .sheet-portals a .arr { box-sizing: content-box; width: 16px; height: 10px; padding: 14px 11px; border-radius: 50%; background: var(--blush); color: var(--crimson); flex: none; }
  .sheet-nav a:active, .sheet-portals a:active { background: var(--blush); }
  .sheet-foot { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px 0; font-size: 13.5px; color: var(--ink-3); }
  .sheet-foot .mono { font: inherit; letter-spacing: 0; text-transform: none; }
  @media (prefers-reduced-motion: reduce) { .sheet, .mbar, .scrim { transition: none; } }
}
@media (max-width: 760px) {
  :root { --hd-h: 74px; }
  body { font-size: 16px; }
  .hd { top: 10px; height: 58px; }
  .hd-logo img { height: 28px; }
  .lang button[data-lang] { height: 38px; }
  .btn { min-height: 58px; }
}
