/* Базовые стили: шрифты, переменные, типографика, кнопки, шапка и подвал. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/unbounded-latin.woff2) format("woff2");
  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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/onest-latin.woff2) format("woff2");
  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;
}
/* latin-ext нужен ради знака рубля (U+20BD). */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --bg: #0a0c11;
  --bg-alt: #0e1117;
  --surface: #141821;
  --surface-2: #1b202b;
  --field: #0d1016;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9ecf3;
  --text-2: #c9cfdb;
  --muted: #9aa3b5;
  --dim: #6c7486;
  --lime: #c6ff3d;
  --cyan: #3ee6d2;
  --violet: #8b7cff;
  --danger: #ff7a7a;
  --on-accent: #0b0d12;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --header-h: 72px;
  --font-head: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: rgba(198, 255, 61, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(198, 255, 61, 0.3);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Типографика */

h1,
h2 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 1.05rem + 2vw, 2.5rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
}

h4 {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
}

.section-lead a {
  color: var(--text);
}

.block-title {
  margin: clamp(48px, 6vw, 72px) 0 20px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Иконки и кнопки */

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .ico {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}

.btn:hover .ico:last-child {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--lime);
  color: var(--on-accent);
}

.btn-primary:hover {
  color: var(--on-accent);
  background: #d4ff66;
  box-shadow: 0 10px 32px -10px rgba(198, 255, 61, 0.6);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(198, 255, 61, 0.5);
  background: rgba(198, 255, 61, 0.06);
}

.btn-lg {
  padding: 15px 24px;
  font-size: 1.04rem;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(198, 255, 61, 0.14);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow .ico {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}

.link-arrow:hover .ico,
a:hover .link-arrow .ico {
  transform: translateX(4px);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.check-list .ico {
  margin-top: 2px;
  color: var(--lime);
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 12, 17, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--lime);
}

.nav {
  display: none;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: none;
}

.menu {
  position: relative;
  margin-left: auto;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu[open] .menu-icon {
  background: transparent;
}

.menu[open] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu[open] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  gap: 4px;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.menu-panel a:not(.btn) {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
}

.menu-panel a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-panel .btn {
  margin-top: 8px;
}

.menu-panel .menu-mail {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    margin-left: 0;
  }
}

@media (min-width: 1120px) {
  .nav {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .menu {
    display: none;
  }
}

/* Подвал */

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #08090d;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand p {
  max-width: 440px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
}

.footer-contact p:not(.footer-title) {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-mail {
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.86rem;
}

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

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

/* Появление блоков при прокрутке: скрываются только те, что ниже экрана
   при загрузке (класс ставит site.js), поэтому без JS всё видно сразу. */
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}
