@font-face {
  font-family: "Golos Text";
  src: url("./golos-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("./golos-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --ink: #182337;
  --blue: #345bea;
  --blue-dark: #2444bd;
  --soft: #edf2ff;
  --muted: #41516a;
  --line: #dce4f3;
  --shell-width: 1200px;
  --shell-header-height: 88px;
  --shell-gutter: clamp(16px, 4vw, 32px);
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 18px/1.55 "Golos Text", "Segoe UI", Arial, sans-serif;
}

a { color: var(--blue-dark); text-underline-offset: .18em; }
button, input, select { font: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 4px;
}

#content, #registration-offers, #application {
  scroll-margin-block-start: calc(var(--shell-header-height) + 12px);
}

body:has(.shell-dialog[open]) { overflow: hidden; }

.shell-skip {
  position: fixed;
  z-index: 100;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  transform: translateY(calc(-100% - 16px));
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: 0 2px 12px #18233730;
}

.shell-skip:focus { transform: none; }

.shell-header {
  position: sticky;
  z-index: 30;
  inset-block-start: 0;
  background: #fff;
  border-block-end: 1px solid var(--line);
}

.shell-header-inner {
  width: min(var(--shell-width), calc(100% - 2 * var(--shell-gutter)));
  min-block-size: calc(var(--shell-header-height) - 1px);
  margin-inline: auto;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 860;
  line-height: 1.02;
}

.shell-brand img { display: block; inline-size: 44px; block-size: 44px; }
.shell-brand span span { display: block; }

.shell-icon {
  flex: 0 0 20px;
  inline-size: 20px;
  block-size: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-header-offers, .shell-button, .shell-quick-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  border: 1px solid #c7d4fb;
  border-radius: 11px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}

.shell-header-offers:hover, .shell-quick-help:hover { background: #e1eaff; }
.shell-button { padding-inline: 18px; border-color: transparent; color: #fff; background: var(--blue); }
.shell-button:hover { color: #fff; background: var(--blue-dark); }
.shell-header-cta { margin-inline-start: auto; }

.shell-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  margin-inline-start: auto;
}

.shell-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.shell-nav a:hover { color: var(--blue-dark); text-decoration: underline; }
.shell-menu-toggle, .shell-mobile-action { display: none; }

.public-offers {
  width: min(var(--shell-width), calc(100% - 2 * var(--shell-gutter)));
  margin: 36px auto;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f5f7ff;
}

.public-offers h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.shell-offers-lead, .shell-offers-terms { margin: 8px 0 16px; color: var(--muted); }
.shell-offers-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.shell-offers-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shell-offers-card h3 { margin: 0; font-size: 16px; }
.shell-offers-card p { margin: 5px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.shell-offers-card .shell-offers-amount { color: var(--blue-dark); font-size: 21px; font-weight: 750; }

.shell-footer {
  width: min(var(--shell-width), calc(100% - 2 * var(--shell-gutter)));
  margin-inline: auto;
  padding-block: 16px 32px;
  border-block-start: 1px solid var(--line);
}

.shell-dialog {
  inline-size: min(620px, calc(100% - 24px));
  block-size: min(675px, calc(100% - 24px));
  block-size: min(675px, calc(100dvh - 24px));
  max-block-size: none;
  max-inline-size: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

.shell-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.shell-dialog::backdrop { background: #18233780; }

.shell-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-block-end: 1px solid var(--line);
}

.shell-dialog-header h2 { margin: 0; font-size: clamp(18px, 4vw, 23px); line-height: 1.2; }

.shell-dialog-close {
  inline-size: 44px;
  block-size: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.shell-dialog-close:hover { background: var(--soft); }
.shell-dialog iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 850px) {
  :root { --shell-header-height: 75px; }
  .shell-header-inner { gap: 8px; }
  .shell-brand { gap: 5px; font-size: 13px; }
  .shell-brand img { inline-size: 36px; block-size: 36px; }
  .shell-header-offers { margin-inline-start: auto; padding-inline: 9px; }
  .shell-header-cta { display: none; }
  .shell-header-inner:has(.shell-menu-toggle[hidden]) { flex-wrap: wrap; }
  .shell-header-inner:has(.shell-menu-toggle[hidden]) .shell-nav { flex: 1 0 100%; flex-wrap: wrap; margin: 0; }
  .shell-menu-toggle:not([hidden]) {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    inline-size: 44px;
    block-size: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .shell-menu-toggle span { inline-size: 20px; block-size: 2px; background: currentColor; }
  .shell-menu-toggle:not([hidden]) + .shell-nav { display: none; }
  .shell-menu-toggle[aria-expanded="true"] + .shell-nav {
    position: absolute;
    inset: 100% var(--shell-gutter) auto auto;
    display: grid;
    min-inline-size: min(230px, calc(100% - 2 * var(--shell-gutter)));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px #18233724;
  }
  .shell-offers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 561px) and (max-width: 850px) {
  .shell-header-cta { display: inline-flex; margin-inline-start: 0; }
}

@media (max-width: 560px) {
  :root { scrollbar-gutter: auto; scroll-padding-block-end: calc(72px + env(safe-area-inset-bottom)); }
  .shell-footer { padding-block-end: calc(96px + env(safe-area-inset-bottom)); }
  .shell-mobile-action {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    border-block-start: 1px solid var(--line);
    padding: 8px var(--shell-gutter) calc(8px + env(safe-area-inset-bottom));
    background: #fff;
  }
  .shell-mobile-action .shell-button { flex: 1 1 auto; max-inline-size: 310px; }
  .shell-offers-card { padding: 10px; }
}

@media (max-width: 350px) {
  .shell-header-offers { gap: 4px; padding-inline: 7px; font-size: 13px; }
  .shell-header-offers .shell-icon { inline-size: 16px; block-size: 16px; flex-basis: 16px; }
}

.city-release #analytics-information { position: static !important; max-width: min(var(--shell-width), calc(100% - 2 * var(--shell-gutter))) !important; margin: 12px auto 0; }
.city-release #analytics-information p { margin: 0 0 5px; }
.city-release .legacy-fragment { display: block; scroll-margin-top: calc(var(--shell-header-height) + 14px); }
