/* ===== Fonts ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-400-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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-500-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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-700-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: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/manrope-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/manrope-800-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: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-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-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-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-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-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: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/unbounded-800-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-weight: 800;
  font-display: swap;
  src: url('/fonts/unbounded-800-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;
}

/* ===== Base ===== */
:root {
  --navy: #0E2240;
  --navy-deep: #0A1A33;
  --navy-card: #13284A;
  --accent: #D63F26;
  --accent-light: #FF6A4D;
  --accent-bg: #FFF4F1;
  --accent-bg2: #FFE3DC;
  --bg: #F3F5F8;
  --line: #DDE3EC;
  --line-dark: #22406A;
  --text: #0E2240;
  --muted: #5B6B82;
  --on-dark: #C9D4E5;
  --on-dark-muted: #9FB2CC;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
}

a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ===== Buttons ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.pill-accent { background: var(--accent); color: #fff; }
.pill-accent:hover { background: #B8331D; color: #fff; }
.pill-ghost { border: 1.5px solid #C5CFDC; color: var(--text); background: #fff; }
.pill-ghost:hover { border-color: var(--text); color: var(--text); }
.pill-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.pill-light:hover { background: #fff; color: var(--text); }

/* ===== Cards ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; }

/* ===== Document link ===== */
.doc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.doc:hover { background: var(--navy); color: #fff; }
.doc:hover .ext { border-color: #fff; color: #fff; }
.ext {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 6px;
  margin-top: 1px;
}

/* ===== Typography ===== */
.kick {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--text);
}
.prose { font-size: 16px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); font-weight: 700; }
.prose h4 { margin: 22px 0 10px; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35; }

/* Красная наклонная плашка-маркер в заголовке страницы */
.mk {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0 18px 8px;
  border-radius: 16px;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}

/* ===== Accordion (раскрывающиеся блоки) ===== */
.acc-panel { display: none; }
.acc.open > .acc-panel { display: block; }
.acc > [data-acc-btn] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
}
.acc > [data-acc-btn]:hover { color: var(--accent); }
.acc > [data-acc-btn] .pm {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #C5CFDC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.acc.open > [data-acc-btn] .pm {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.acc > .acc-panel { padding: 0 0 26px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
@media (min-width:768px){
  .acc-desktop-open > .acc-panel { display: block; }
  .acc-desktop-open > [data-acc-btn] { pointer-events: none; }
  .acc-desktop-open > [data-acc-btn] .pm { display: none; }
}

/* ===== Tabs (вкладки) ===== */
.tab-panel { display: none; }
.tab-panel.open { display: block; }
[data-tabs] [data-tab] {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid #C5CFDC;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
[data-tabs] [data-tab]:hover { border-color: var(--text); }
[data-tabs] [data-tab].on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Footer helpers ===== */
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: #fff; }

/* ===== Mobile ===== */
/* ===== Интермедиа (768–1239px) ===== */
@media (max-width: 1239px) {
  .h2 { font-size: 34px; }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  .wrap { padding: 0 20px; }
  .h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.8px; }
  .kick { font-size: 12px; letter-spacing: 1.8px; margin-bottom: 12px; }
  .pill { justify-content: center; padding: 0 24px; font-weight: 800; }
  .pill-ghost { border-color: var(--text); background: transparent; }
  .card { border-radius: 20px; }
  .tag { min-height: 26px; padding: 0 10px; font-size: 11px; }
  .prose ul, .prose ol { padding-left: 20px; }
  .mk { padding: 0 12px 6px; border-radius: 12px; }
  .doc {
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 14px;
  }
  .doc .ext {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-bg);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }
  .doc:hover { background: #fff; color: var(--text); }
  .doc:hover .ext { background: var(--accent-bg); color: var(--accent); }
  .acc > [data-acc-btn] { font-size: 15px; padding: 18px 0; }
  .acc > [data-acc-btn] .pm { flex-basis: 32px; width: 32px; height: 32px; }
}
