/*
 * Сайт overlay.uz: главная, политика и условия. Цвета — роли палитры панели v2 (решение v2
 * 2026-10-21 «Палитра макета»): тёмная по умолчанию, светлая — по настройке системы. Шрифт Inter —
 * свои файлы из /assets/fonts/, наборы делятся по unicode-range, как у @fontsource.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111114;
  --border: #232328;
  --muted: #a1a1aa;
  --chip: #18181c;
  --primary: #2563eb;
  --link: #93c5fd;
  --warning: #3f2d07;
  --warning-foreground: #fcd34d;
  --warning-border: #a16207;
  --radius-card: 14px;
  --radius: 8px;
  --width: 1120px;
  --reading: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #f4f4f5;
    --foreground: #09090b;
    --card: #ffffff;
    --border: #e4e4e7;
    --muted: #52525b;
    --chip: #f4f4f5;
    --link: #1d4ed8;
    --warning: #fef3c7;
    --warning-foreground: #92400e;
    --warning-border: #fcd34d;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}

.skip:focus {
  left: 16px;
  z-index: 1;
  background: var(--card);
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* Шапка: знак и имя слева, языки справа */

.top {
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: inset 0 0 0 5px var(--background);
  border: 2px solid var(--primary);
}

.langs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.langs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 7px;
}

.langs a:hover {
  color: var(--foreground);
}

.langs a[aria-current='page'] {
  color: var(--foreground);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--border);
}

main.wrap {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* Главная */

.hero {
  max-width: 50rem;
  padding: 0 0 40px;
}

.badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--warning-border);
  background: var(--warning);
  color: var(--warning-foreground);
  font-size: 14px;
  font-weight: 550;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  margin: 0 0 16px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--foreground);
}

.note {
  margin: 0;
  color: var(--muted);
}

.block {
  padding-top: 40px;
}

h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
}

.data p {
  max-width: 46rem;
  margin: 0 0 8px;
}

/* Юридические документы */

.legal {
  max-width: var(--reading);
}

.legal h1 {
  font-size: clamp(30px, 5vw, 40px);
}

.contents {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.contents-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.contents ol {
  margin: 0;
  padding-left: 22px;
  columns: 1;
  font-size: 15px;
}

@media (min-width: 640px) {
  .contents ol {
    columns: 2;
    column-gap: 32px;
  }
}

.contents li {
  break-inside: avoid;
  padding: 2px 0;
}

.legal-text h2 {
  margin-top: 40px;
  scroll-margin-top: 16px;
}

.legal-text h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  scroll-margin-top: 16px;
}

.legal-text p,
.legal-text li {
  overflow-wrap: anywhere;
}

.legal-text ul,
.legal-text ol {
  padding-left: 22px;
}

.legal-text li {
  margin: 4px 0;
}

.legal-text > p:first-child {
  color: var(--muted);
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Подвал */

.bottom {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--foreground);
}

.copyright {
  margin: 0;
}
