/* === ШРИФТЫ === */
/* JetBrains Mono */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap;
  src: url("../fonts/9cef8f63-a588-4c43-ac60-f55d3c64ae39.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: 'JetBrains Mono'; font-weight: 400 700; font-display: swap;
  src: url("../fonts/9c02123a-d43b-4686-a9e7-faf66c7dcd5c.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap;
  src: url("../fonts/0036a7a3-f4eb-4937-b018-ca61f070b398.woff2") format('woff2');
  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: 'JetBrains Mono'; font-weight: 400 700; font-display: swap;
  src: url("../fonts/34e5104e-b878-4f38-97c2-05a3deaca808.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; }

/* Manrope */
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/f66a8c2c-47d1-41d7-ada9-21ba9e66949e.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: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/3fbb9193-63fe-47c4-88cf-57cc0397c436.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/44a2d37d-d05b-4665-8e98-882de63bee45.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/c9905fa6-a24e-4d66-b433-f2995edc29e6.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/c15aeea2-c25c-4b7a-a24e-c55defac229c.woff2") format('woff2');
  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: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url("../fonts/a146d94c-7373-4ff2-9b51-27f2186f0677.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; }

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip; /* TG WebView: clip надёжнее hidden */
  max-width: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  /* Отступ сверху для TG/Safari bar через safe-area */
  padding-top: env(safe-area-inset-top, 0px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }
ul, ol { list-style: none; }

/* === ТИПОГРАФИКА === */
h1 { font-size: clamp(40px, 4.5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.3vw, 48px); font-weight: 800; line-height: 1.1;  letter-spacing: -0.02em;  }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.2;  letter-spacing: -0.015em; }
p  { line-height: 1.6; }

/* === УТИЛИТЫ === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.btn-dark:hover { opacity: .85; }

/* Анимация пульс */
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(250,180,75,.55), 0 0 0 8px rgba(250,180,75,.13); }
  50%       { box-shadow: 0 12px 28px rgba(250,180,75,.7),  0 0 0 16px rgba(250,180,75,.0); }
}

/* Скрытый элемент */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
