:root {
  --bg: #0b0b0e;
  --bg-2: #121318;
  --panel: #17181f;
  --panel-2: #1f2029;
  --line: rgba(255, 255, 255, .08);
  --orange: #ff7a00;
  --orange-2: #ff9a1f;
  --orange-3: #e86400;
  --text: #f4f4f6;
  --muted: #a3a4b0;
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Roboto Condensed', 'Roboto', system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flag { display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.caret { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }
[aria-expanded="true"] > .caret { transform: rotate(180deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--display); font-size: 18px; font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn--orange { background: linear-gradient(180deg, var(--orange-2), var(--orange-3)); color: #fff; box-shadow: 0 8px 22px rgba(255, 122, 0, .3); }
.btn--orange:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 122, 0, .42); }
.btn-angle {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 34px; background: var(--orange); color: var(--orange-2);
  font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  transition: color .2s;
}
.btn-angle::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: #17110b; clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%); transition: background .2s; }
.btn-angle:hover { color: #fff; }
.btn-angle:hover::before { background: var(--orange-3); }

.header { position: sticky; top: 0; z-index: 60; background: #14151b; border-bottom: 1px solid rgba(255, 122, 0, .55); }
.header__inner { display: flex; align-items: center; gap: 22px; height: 84px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 158px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .dd__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 17px; color: #e6e6ea; white-space: nowrap; transition: color .2s, background .2s; }
.nav > a:hover, .dd__btn:hover, .nav > a.is-active { color: var(--orange-2); }
.dd { position: relative; }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 290px; margin: 0; padding: 8px; list-style: none;
  border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.dd__menu[hidden] { display: none; }
.dd__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: #e6e6ea; }
.dd__menu a:hover, .dd__menu a.is-active { background: rgba(255, 122, 0, .12); color: var(--orange-2); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn { min-height: 52px; padding: 0 26px; }
.icon-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--panel-2); color: #fff; transition: background .2s; }
.icon-btn:hover { background: #2a2b36; }
.icon-btn svg { width: 22px; height: 22px; }
.lang .dd__btn { height: 52px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); font-weight: 700; }
.lang .dd__menu { left: auto; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 420px; max-height: 70vh; overflow-y: auto; }
.lang .dd__menu[hidden] { display: none; }
.burger { display: none; }

.hero { margin-top: 30px; overflow: hidden; border-radius: var(--radius-lg); background: #1a1410; border: 1px solid rgba(255, 122, 0, .35); box-shadow: 0 18px 60px rgba(255, 122, 0, .1); }
.hero__banner { position: relative; aspect-ratio: 2254 / 472; min-height: 230px; }
.hero__banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 6, .82) 0%, rgba(10, 8, 6, .45) 45%, transparent 70%); }
.hero__text { position: absolute; z-index: 1; top: 50%; left: 6%; max-width: 54%; transform: translateY(-50%); }
.hero__label { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.hero__label b { color: var(--orange-2); }
.hero__fs { margin: 6px 0 20px; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--orange-2); }
.hero__strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 30px; background: #16171e; }
.hero__title { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.2; }
.hero__sub { margin: 4px 0 0; font-size: 18px; color: var(--muted); }
.hero__strip .btn { min-height: 62px; padding: 0 44px; font-size: 22px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-top: 40px; }
.main { flex: 1 0 auto; padding-bottom: 72px; }

.side { position: sticky; top: 108px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(180deg, #221a14, #120f0c); border: 1px solid rgba(255, 122, 0, .3); text-align: center; }
.side__text { padding: 28px 18px 8px; }
.side__title { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.side__amount { margin: 8px 0 2px; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; color: var(--orange-2); }
.side__fs { margin: 0 0 18px; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--orange-2); }
.side img { width: 100%; margin-top: -10px; }

.toc { margin: 0 0 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.toc[hidden] { display: none; }
.toc__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 22px; font-size: 22px; font-weight: 500; text-align: left; }
.toc__list { margin: 0; padding: 0 22px 18px 44px; font-size: 16.5px; }
.toc__list[hidden] { display: none; }
.toc__list li { margin-bottom: 6px; color: var(--muted); }
.toc__list a { color: var(--muted); transition: color .2s; }
.toc__list a:hover { color: var(--orange-2); }

.content { font-size: 18px; line-height: 1.7; color: #dcdce2; overflow-wrap: break-word; }
.content > :first-child { margin-top: 0; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #fff; font-family: var(--display); font-weight: 700; line-height: 1.15; }
.content h1 { font-size: 52px; margin: 0 0 26px; letter-spacing: -.01em; }
.content h2 { font-size: 34px; margin: 46px 0 16px; }
.content h3 { font-size: 26px; margin: 34px 0 12px; color: var(--orange-2); }
.content h4 { font-size: 21px; margin: 26px 0 10px; }
.content h5, .content h6 { font-size: 18px; margin: 20px 0 8px; }
.content p { margin: 0 0 18px; }
.content .lead { padding: 22px 30px; border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); font-size: 19px; color: #ececf0; }
.content a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #ffb45c; }
.content strong, .content b { color: #fff; font-weight: 700; }
.content mark { padding: 0 4px; border-radius: 4px; background: var(--orange); color: #fff; }
.content small { font-size: 14px; color: var(--muted); }
.content ul, .content ol { margin: 0 0 20px; padding-left: 26px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--orange); }
.content ol li::marker { color: var(--orange-2); font-weight: 700; }
.content img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: var(--radius); }
.content figure { margin: 28px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--muted); }
.content table {
  display: block; width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto;
  border-collapse: collapse; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  font-size: 16px; -webkit-overflow-scrolling: touch;
}
.content thead, .content tbody, .content tfoot { display: table; width: 100%; min-width: 560px; }
.content tr { display: table-row; }
.content caption { padding: 0 0 10px; font-size: 14px; color: var(--muted); text-align: left; }
.content th { padding: 14px 16px; text-align: left; font-weight: 700; background: linear-gradient(180deg, var(--orange-2), var(--orange-3)); color: #fff; }
.content td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.content blockquote { margin: 28px 0; padding: 20px 26px; border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); font-style: italic; color: #fff; }
.content blockquote p:last-child { margin-bottom: 0; }
.content hr { height: 1px; margin: 40px 0; border: 0; background: var(--line); }
.content code { padding: 2px 7px; border-radius: 6px; background: var(--panel-2); font-size: .9em; color: var(--orange-2); }
.content pre { margin: 28px 0; padding: 18px; overflow-x: auto; border-radius: var(--radius); background: var(--panel); }
.content pre code { padding: 0; background: none; color: inherit; }
.content iframe, .content video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 28px 0; border: 0; border-radius: var(--radius); }
.content dl { margin: 0 0 20px; }
.content dt { font-weight: 700; color: #fff; }
.content dd { margin: 0 0 10px 18px; }
.content details { margin: 0 0 10px; padding: 18px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.content summary { cursor: pointer; font-weight: 700; color: #fff; }
.content details[open] summary { margin-bottom: 10px; color: var(--orange-2); }
.content details > :last-child { margin-bottom: 0; }

.updated { margin: 36px 0 0; font-size: 16px; color: var(--muted); }
.cta { display: flex; justify-content: center; margin: 34px 0 0; }
.cta .btn { min-height: 72px; padding: 0 54px; font-size: 26px; }

.footer { margin-top: auto; padding: 48px 0 36px; background: #14151b; border-top: 1px solid rgba(255, 122, 0, .55); text-align: center; color: var(--muted); font-size: 15px; }
.footer .logo { justify-content: center; }
.footer .logo img { width: 150px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 17px; color: #e6e6ea; }
.footer__nav--small { margin-top: 12px; font-size: 15px; color: var(--muted); }
.footer__nav a:hover { color: var(--orange-2); }
.footer__orgs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.footer__orgs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: #e6e6ea; transition: border-color .2s, color .2s; }
.footer__orgs a::after { content: "↗"; font-size: 12px; }
.footer__orgs a:hover { border-color: var(--orange); color: var(--orange-2); }
.footer__warn { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 900px; margin: 24px auto 0; font-size: 16px; font-weight: 700; color: #fff; text-align: left; }
.age { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--orange); border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--orange-2); }
.footer__copy { max-width: 900px; margin: 16px auto 0; }

.popup {
  position: fixed; left: 24px; bottom: 24px; z-index: 75; width: 300px; padding: 26px 24px 24px;
  border-radius: 18px; background: #101116; border: 1px solid rgba(255, 122, 0, .55); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  text-align: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .35s, visibility .35s, transform .35s;
}
.popup.is-visible { opacity: 1; visibility: visible; transform: none; }
.popup__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); font-size: 15px; }
.popup__title { margin: 0 16px 10px; font-family: var(--display); font-size: 21px; font-weight: 700; }
.popup__amount { margin: 0 0 20px; font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--orange-2); }
.popup .btn { width: 100%; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 74; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 22px; font-weight: 700; box-shadow: 0 10px 24px rgba(255, 122, 0, .35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.search { position: fixed; inset: 0; z-index: 95; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(5, 5, 8, .78); backdrop-filter: blur(6px); }
.search[hidden] { display: none; }
.search__box { width: 100%; max-width: 640px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.search__field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search__field svg { width: 22px; height: 22px; color: var(--muted); }
.search__field input { flex: 1; min-width: 0; height: 64px; border: 0; background: none; font-size: 19px; outline: 0; }
.search__results { max-height: 55vh; margin: 0; padding: 8px; overflow-y: auto; list-style: none; }
.search__results a { display: block; padding: 12px 14px; border-radius: 10px; color: #e6e6ea; }
.search__results a:hover, .search__results a:focus { background: rgba(255, 122, 0, .12); color: var(--orange-2); outline: 0; }
.search__empty { padding: 16px; color: var(--muted); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(360px, 90vw); padding: 18px; overflow-y: auto; background: #14151b; border-left: 1px solid rgba(255, 122, 0, .4); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__top img { width: 130px; }
.drawer__close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--panel-2); font-size: 18px; }
.drawer__nav { margin: 0 0 16px; padding: 0; list-style: none; }
.drawer__nav a { display: block; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 16px; color: #e6e6ea; }
.drawer__nav a:hover, .drawer__nav a.is-active { color: var(--orange-2); }
.drawer__nav .sub a { padding-left: 24px; font-size: 15px; color: var(--muted); }
.drawer__label { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; }
.drawer__langs a { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 10px; font-size: 14px; color: #e6e6ea; }
.drawer__langs a.is-active { background: rgba(255, 122, 0, .14); color: var(--orange-2); }
.overlay { position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, .65); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open { overflow: hidden; }
.menu-open .drawer { transform: none; visibility: visible; }
.menu-open .overlay { opacity: 1; visibility: visible; }

.error-page { flex: 1 0 auto; display: grid; place-items: center; padding: 80px 24px; text-align: center; }
.error-page .error-page__code { margin: 0; font-family: var(--display); font-size: 150px; font-weight: 700; line-height: 1; color: var(--orange); text-shadow: 0 10px 40px rgba(255, 122, 0, .35); }
.error-page h1 { margin: 16px 0 10px; font-family: var(--display); font-size: 36px; }
.error-page p { max-width: 520px; margin: 0 auto 28px; color: var(--muted); }

@media (max-width: 1240px) {
  .nav > a, .dd__btn { padding: 10px 8px; font-size: 16px; }
  .header__actions .btn { padding: 0 18px; font-size: 16px; }
}
@media (max-width: 1140px) {
  .nav, .header__actions .btn, .header__actions .lang { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: grid; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
}
@media (max-width: 860px) {
  .hero__text { left: 5%; max-width: 70%; }
  .hero__label, .hero__fs { font-size: 24px; }
  .hero__strip { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__strip .btn { width: 100%; }
  .content h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header__inner { height: 66px; gap: 10px; }
  .logo img { width: 120px; }
  .icon-btn { width: 44px; height: 44px; }
  .hero { margin-top: 18px; }
  .hero__banner { aspect-ratio: auto; min-height: 250px; }
  .hero__banner > img { object-position: 78% center; }
  .hero__banner::after { background: linear-gradient(90deg, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .6) 60%, rgba(10, 8, 6, .25)); }
  .hero__text { max-width: 88%; }
  .hero__label, .hero__fs { font-size: 21px; }
  .hero__fs { margin-bottom: 16px; }
  .btn-angle { min-height: 42px; padding: 0 24px; font-size: 14px; }
  .hero__strip { padding: 18px; }
  .hero__title { font-size: 22px; }
  .hero__sub { font-size: 15.5px; }
  .hero__strip .btn { min-height: 56px; font-size: 19px; }
  .layout { padding-top: 28px; }
  .content { font-size: 16.5px; }
  .content h1 { font-size: 31px; }
  .content h2 { font-size: 26px; margin-top: 36px; }
  .content h3 { font-size: 21px; }
  .content h4 { font-size: 18px; }
  .content .lead { padding: 16px 18px; font-size: 16.5px; }
  .toc__head { font-size: 19px; padding: 14px 16px; }
  .toc__list { padding: 0 16px 14px 34px; }
  .cta .btn { width: 100%; min-height: 62px; padding: 0 20px; font-size: 21px; }
  .footer__nav { gap: 6px 18px; font-size: 15px; }
  .footer__warn { font-size: 14.5px; }
  .popup { left: 12px; right: 12px; bottom: 12px; width: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; text-align: left; }
  .popup__title { grid-column: 1; margin: 0; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
  .popup__amount { grid-column: 1; margin: 0; font-size: 20px; white-space: nowrap; }
  .popup .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; min-height: 44px; padding: 0 16px; font-size: 16px; margin-right: 26px; }
  .popup__close { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 13px; }
  .to-top { right: 14px; bottom: 96px; width: 44px; height: 44px; }
  .error-page .error-page__code { font-size: 100px; }
}
@media (max-width: 380px) {
  .hero__label, .hero__fs { font-size: 18px; }
  .popup__amount { font-size: 19px; }
  .popup .btn { font-size: 14px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.content .btn, .content .btn:hover { color: #fff; text-decoration: none; }
.drawer > .btn { width: 100%; margin-bottom: 10px; }
