:root {
  --navy:     #17255a;
  --navy-d:   #101a40;
  --blue:     #1f6feb;
  --gold:     #f0a500;
  --ink:      #232830;
  --ink-soft: #5d646f;
  --line:     #e2e6ec;
  --bg-alt:   #f5f7fb;
  --radius:   8px;
  --wrap:     1080px;
}

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

body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; }

h1, h2, h3 { line-height: 1.28; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.1rem; margin-top: .6em; }
h2 { font-size: 1.5rem; color: var(--navy); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover, a:focus-visible { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.header__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { margin-right: auto; }
.brand img { width: 140px; height: auto; }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 7px 10px; border-radius: 6px; color: #cfd8ef; text-decoration: none; font-size: .78rem; font-weight: 500; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--navy-d); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 40px; background: none; border: 1px solid #3a4670; border-radius: 6px; cursor: pointer; }
.nav-toggle__box { display: block; position: relative; width: 20px; height: 2px; margin: 0 auto; background: #fff; }
.nav-toggle__box::before, .nav-toggle__box::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.nav-toggle__box::before { top: -6px; }
.nav-toggle__box::after  { top:  6px; }

/* content */
main { padding-bottom: 52px; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 74ch; padding-bottom: 1.2em; border-bottom: 3px solid var(--gold); }

.block { padding-top: 1.6em; }
.block h2 { position: relative; padding-left: 15px; }
.block h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--gold); }

.team { display: flex; align-items: center; gap: 14px; margin: 1.8em 0 .8em; padding-bottom: .6em; border-bottom: 1px solid var(--line); }
.team img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.team h3 { margin: 0; color: var(--navy); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; position: sticky; top: 0; }
tbody th { font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fbfcfe; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* footer */
.site-footer { background: var(--navy-d); color: #a3adc8; font-size: .92rem; padding-top: 32px; }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; padding-bottom: 22px; }
.footer__name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer__head { color: #fff; font-weight: 600; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #a3adc8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid #26315c; padding: 14px 0; }
.footer__bottom p { margin: 0; font-size: .84rem; }

/* mobile */
@media (max-width: 900px) { .footer__in { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; } h2 { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; order: 3; padding-bottom: 10px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { max-width: none; white-space: normal; padding: 10px 6px; border-bottom: 1px solid #2b3768; border-radius: 0; }
  .header__in { flex-wrap: wrap; }
  thead th { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* FAQ — нативный аккордеон на <details>, без JS */
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq[open] > summary::after { content: "\2212"; }
.faq > summary h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.faq > summary:hover h3 { color: var(--blue); }
.faq > p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); }
