/* DueLoad — общий слой для всех макетов: шрифты, сброс, знак, анимационные состояния.
   Цвета бренда:
     --lime   #C5F26B  — только на тёмном фоне (15.3:1 к графиту, 1.3:1 к белому — на белом не использовать для знака)
     --moss   #5B8C0A  — косая «L» на светлом фоне (4.0:1 к белому, проходит 3:1 для графики)
     --fern   #4D7C0F  — ссылки и акцентный текст на светлом (5.0:1 к белому, AA для текста)
   Оранжевый #FF9900 и тёмно-синий Amazon не используются (бриф, раздел 3). */

@font-face { font-family: "Medeo Sans"; src: url("fonts/MedeoSansVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Medeo Mono"; src: url("fonts/MedeoMonoVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --lime: #C5F26B;
  --lime-2: #D9F99D;
  --moss: #5B8C0A;
  --fern: #4D7C0F;
  --g950: #0A0A09;
  --g900: #0F0F0E;
  --g850: #151513;
  --g800: #1B1B19;
  --g700: #262624;
  --paper: #F6F5EF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Medeo Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Medeo Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
a, button, summary, [role="button"], input[type="checkbox"] { touch-action: manipulation; }
button, summary, a[href] { cursor: pointer; }
body { margin: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--g950); font-weight: 650; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 16px; }

/* ---------- знак: «Due» + косая L + «oad» ---------- */
.logo { display: inline-flex; align-items: baseline; font-family: var(--sans); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; text-decoration: none; color: currentColor; }
.logo svg { display: inline-block; height: .72em; width: .55em; margin: 0 -.05em 0 .02em; overflow: visible; }
.logo .lf { fill: currentColor; }
.logo .ls { fill: var(--slash, var(--lime)); transform-box: fill-box; transform-origin: 50% 100%; }

/* знак отдельно от надписи — переживёт смену имени */
.mark { display: grid; place-items: center; border-radius: 28%; background: var(--g900); }
.mark svg { width: 46%; height: 60%; overflow: visible; }
.mark .lf { fill: #F5F5F0; }
.mark .ls { fill: var(--lime); }

/* ---------- состояние «до появления» (только когда JS и Motion загрузились) ---------- */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; }
.js [data-split] { opacity: 0; }
.js [data-split].is-split { opacity: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes shimmer { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > *, .js [data-split] { opacity: 1 !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- i18n: меню языков и ожидание перевода ---------- */
.i18n-wait body { opacity: 0; }
.lang-pop { position: fixed; z-index: 300; min-width: 220px; padding: 6px; border-radius: 16px;
  background: var(--pop, var(--raised, var(--s1, var(--card, #fff))));
  color: var(--text, var(--ink, #0F0F0E));
  box-shadow: 0 0 0 1px var(--line2, rgba(15, 15, 14, .13)), 0 20px 50px -16px rgba(0, 0, 0, .45); }
.lang-pop[hidden] { display: none; }
.lang-pop button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: inherit; font: 600 15px/1.2 var(--sans); text-align: left; cursor: pointer; }
.lang-pop button:hover, .lang-pop button:focus-visible { background: var(--hover, rgba(15, 15, 14, .06)); outline: none; }
.lang-pop button[aria-checked="true"] { background: var(--lime); color: var(--g950); }
.lang-pop .lp-code { font-family: var(--mono); font-size: 12px; opacity: .7; }
:lang(uz){font-kerning:none}
