* { box-sizing: border-box; margin: 0; padding: 0; }

/* Шрифт Circe, как на оригинальном сайте */
@font-face {
  font-family: "Circe";
  src: url("fonts/circe_regular.woff2") format("woff2");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("fonts/circe_bold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Font Awesome 6 Pro (оригинальные шрифты сайта) */
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("fonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("fonts/fa-light-300.woff2") format("woff2");
}

.far, .fa-regular {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

.fas, .fa-solid {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

.fal, .fa-light {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 300;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

.fa-link:before { content: "\f0c1"; }
.fa-right-to-bracket:before, .fa-arrow-right-to-bracket:before, .fa-sign-in:before { content: "\f090"; }
.fa-dumbbell:before { content: "\f44b"; }
.fa-lock-open:before, .fa-unlock-alt:before { content: "\f3c1"; }
.fa-compact-disc:before { content: "\f51f"; }
.fa-compass:before { content: "\f14e"; }
.fa-browser:before, .fa-window-restore:before { content: "\f2d2"; }
.fa-award:before, .fa-certificate:before { content: "\f559"; }
.fa-album-collection:before { content: "\f8a0"; }
.fa-phone-laptop:before { content: "\f87a"; }
.fa-file-certificate:before { content: "\f5f3"; }
.fa-circle-minus:before { content: "\f056"; }
.fa-arrow-right:before { content: "\f061"; }
.fa-circle-plus:before { content: "\f055"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }

:root {
  --blue: #007cff;
  --blue-dark: #0066d6;
  --text: #22252b;
  --muted: #8a8f99;
  --bg: #f6f7fb;
  --section-how-bg: #eff9ff;
  --card: #ffffff;
  --border: #ebebeb;
  --green: #47cc61;
  --red-bg: #f9d6d2;
  --container: 1180px;
}

body {
  font-family: "Circe", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
.page { flex: 1 0 auto; }
.page > .container {
  max-width: 1280px;
  padding-left: 36px;
  padding-right: 36px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}
.header .container {
  max-width: 1280px;
}
.header .header__inner {
  height: 64px;
  padding-left: 36px;
  padding-right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__left { display: flex; align-items: center; gap: 36px; }

.logo { display: flex; align-items: center; }
.logo img { width: 99px; height: 52px; object-fit: contain; object-position: left center; display: block; }
.logo__text {
  font-size: 7.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #2a6fb5;
  font-weight: 600;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  height: 36px;
  padding: 9px 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.12px;
  cursor: pointer;
  transition: background .15s ease;
}
.menu-btn:hover { background: var(--blue-dark); }
.menu-btn .fa-glyph {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  width: 16px;
  text-align: center;
  display: block;
  flex-shrink: 0;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.user__info { text-align: right; line-height: 1.25; }
.user__name { font-size: 13px; font-weight: 500; }
.user__class { font-size: 11px; color: var(--muted); }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #d39a6d;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }

/* Main menu (inside header) */
.header .nav {
  display: none;
  position: relative;
  padding: 24px 36px 32px 171px;
  gap: 64px;
}
.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: #ebebeb;
}
.header .nav a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.12px;
  color: #666;
}
.header .nav a:hover { color: var(--blue); }
.nav a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #333333;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
body.menu-open .nav { display: flex; }

/* Profile drop-down */
.profile-pop {
  display: none;
  position: absolute;
  top: -8px;
  right: -10px;
  width: 290px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  padding: 20px 20px 16px;
  cursor: default;
  z-index: 60;
}
body.profile-open .profile-pop { display: block; }
.profile-pop__head { display: flex; gap: 14px; margin-bottom: 20px; }
.profile-pop__name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.profile-pop__school {
  font-size: 10px;
  text-transform: uppercase;
  color: #555b66;
  line-height: 1.35;
}
.profile-pop__class { font-size: 10px; color: var(--muted); margin-top: 6px; }
.profile-pop ul { list-style: none; }
.profile-pop li a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.profile-pop li a:hover { color: var(--blue); }
.profile-pop svg { width: 15px; height: 15px; }

/* Blur page content when a menu is open */
.page, .main-page { transition: filter .15s; }
body.menu-open .page,
body.menu-open .main-page,
body.profile-open .page,
body.profile-open .main-page { filter: blur(7px); pointer-events: none; }

/* ---------- Grid ---------- */
.page { padding: 38px 0 80px; }
.row { display: flex; gap: 30px; align-items: flex-start; }
.col-3 { width: calc((100% - 30px) * 0.25); flex-shrink: 0; }
.col-9 { flex: 1; min-width: 0; }

/* ---------- Dashboard ---------- */
.page--dash { padding-top: 24px; }
.page--dash .row { gap: 20px; }
.page--dash .col-3 { width: 265px; }

.dash__title-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 18px;
}
.dash__title { font-size: 26px; font-weight: 700; }
.archive-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--blue); font-weight: 500;
}

.card {
  position: relative;
  background: var(--card);
  border-radius: 4px;
  padding: 24px 88px 24px 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  min-height: 176px;
}
.card__icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-right: 32px;
  flex-shrink: 0;
}
.card__icon svg { width: 28px; height: 28px; }
.card__body { flex: 1; min-width: 0; }
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: #3d4a2f;
}
.tag--school { background: #d9efc7; }
.tag--muni-yellow { background: #fde4a6; width: 245px; }
.tag--muni-blue { background: #cfe6fb; width: 245px; }
.tag--wide { width: 245px; }
.card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 250px;
}

.card__right { width: 265px; text-align: center; flex-shrink: 0; }
.card__date { font-size: 13px; margin-bottom: 10px; }
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.btn-outline:hover { background: #f0f7ff; }
.card__score {
  display: flex; gap: 22px;
  font-size: 13px;
  margin-top: 6px;
  color: #444;
}
.card__score b { font-weight: 500; color: var(--green); }
.card__score .max { color: var(--muted); }
.card__score .status { color: var(--green); }

.card__actions {
  position: absolute; top: 12px; right: 16px;
  display: flex; gap: 10px; color: #b5bac3;
}
.card__actions svg { width: 15px; height: 15px; cursor: pointer; }
.card__actions svg:hover { color: var(--blue); }

.soon {
  display: flex; align-items: center; gap: 20px;
  color: var(--blue); font-size: 13px; font-weight: 600;
  text-align: left; line-height: 1.45;
}
.soon svg { width: 34px; height: 34px; flex-shrink: 0; }

.progress { text-align: left; font-size: 14px; }
.progress b { font-weight: 600; }
.progress__bar { height: 4px; background: #e6e8eb; border-radius: 2px; overflow: hidden; margin: 14px 0; }
.progress__fill { height: 100%; background: var(--green); border-radius: 2px; }
.progress__hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.progress__hint svg { width: 14px; height: 14px; }

/* Filter sidebar */
.filter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 6px;
}
.filter label {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: #555;
  padding: 9px 0;
  cursor: pointer;
}
.filter input {
  appearance: none;
  width: 15px; height: 15px;
  border: 1px solid #bfc4cc;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.filter input:checked { background: var(--blue); border-color: var(--blue); }
.filter input:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Help button ---------- */
.help {
  position: fixed; right: 30px; bottom: 26px;
  width: 44px; height: 44px; z-index: 70;
}
.help svg { width: 44px; height: 44px; }

/* ---------- Olympiad page ---------- */
.timer-card {
  background: #fff;
  border-radius: 4px;
  padding: 26px 24px 34px;
  text-align: center;
}
.timer-card__total { font-size: 18px; font-weight: 600; }
.timer-card__label { font-size: 13px; color: #444; margin-top: 6px; }
.timer-card hr { border: none; border-top: 1px solid var(--border); margin: 26px -24px 30px; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 8px; }
.countdown__item { display: flex; flex-direction: column; align-items: center; min-width: 22px; }
.countdown__num { font-size: 24px; font-weight: 600; line-height: 1; }
.countdown__lbl { font-size: 8px; color: #444; text-transform: uppercase; margin-top: 6px; }
.countdown__sep { font-size: 22px; font-weight: 600; line-height: 1.2; }

.badge-ended {
  display: inline-block;
  margin-top: 6px;
  background: var(--red-bg);
  color: #3a2a2a;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
}

.olymp-head {
  background: #fff;
  border-radius: 4px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  height: 136px;
}
.olymp-head__icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.olymp-head__icon svg { width: 26px; height: 26px; }
.olymp-head__books-img {
  width: 58px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.olymp-head__title { font-size: 22px; font-weight: 600; }
.olymp-head__sub { font-size: 15px; margin-top: 10px; }

.olymp-body {
  background: #fff;
  border-radius: 4px;
  padding: 62px 38px 40px;
}
.olymp-body h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.olymp-body p { font-size: 17px; font-weight: 600; line-height: 1.6; max-width: 745px; }
.olymp-body__limit {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--muted);
  margin: 36px 0 22px;
}
.olymp-body__limit svg { width: 18px; height: 18px; }
.olymp-body__limit b { color: var(--blue); font-weight: 600; font-size: 14px; }
.olymp-body__btns { display: flex; gap: 15px; }
.btn-disabled {
  width: 236px;
  height: 49px;
  border: none;
  background: #e6e7ea;
  color: #a9adb4;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: not-allowed;
}
.olymp-body__btns .btn-outline { width: 236px; height: 49px; }

/* Centered olympiad layout without timer sidebar (muni-active / muni-upcoming) */
.row--center { justify-content: center; }
.row--center .col-9 { flex: 0 0 auto; width: 100%; max-width: 885px; margin: 0 auto; }
.row--center .olymp-head { height: 140px; padding: 0 40px; gap: 32px; color: #333; }
.row--center .olymp-head__title { font-size: 24px; line-height: 28px; color: #333; }
.row--center .olymp-head__sub { font-size: 16px; line-height: 20px; margin-top: 12px; color: #333; }
.row--center .olymp-body { padding: 64px 40px 40px; color: #333; }
.row--center .olymp-body h2 { font-size: 24px; line-height: 28px; font-weight: 600; margin-bottom: 20px; color: #333; }
.row--center .olymp-body p { font-size: 20px; font-weight: 600; line-height: 1.45; max-width: 785px; color: #333; }
.row--center .olymp-body__limit { font-size: 15px; color: #b8b8b8; margin: 34px 0 24px; }
.row--center .olymp-body__limit b { color: #1a96f6; font-size: 15px; font-weight: 600; }
.row--center .olymp-body__btns { gap: 16px; }
.row--center .btn-disabled,
.row--center .olymp-body__btns .btn-outline { width: 250px; height: 52px; border-radius: 5px; font-size: 15px; }
.row--center .olymp-body__btns .btn-outline { border-color: #1a96f6; color: #1a96f6; }
.row--center .olymp-body__btns .btn-outline:hover { background: #f0f7ff; }
.olymp-body p + p { margin-top: 20px; }
.olymp-body__link { color: #3d8fe0; }
.olymp-body p.olymp-body__warn { color: #f4511e; font-weight: 600; margin-top: 20px; }
.olymp-body__score { font-size: 13px; color: #444; margin: 30px 0 20px; }
.olymp-body__score b { color: var(--green); font-weight: 500; }
.olymp-body__score span { color: var(--muted); }
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 50px;
  background: #1a96f6; color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: 4px;
}
.btn-primary:hover { background: #0f86e3; }
.card__score b.zero { color: #e5534b; }

/* ---------- Main Landing Page ---------- */
.main-page { background: #fff; flex: 1 0 auto; }
.main-page .container {
  max-width: 1264px;
  padding: 0 42px;
}

.hero-wrap { padding-bottom: 64px; }
.landing .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 32px;
}
.hero__content { padding-top: 47px; }
.hero__title {
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.56px;
  color: #333;
}
.hero__sub {
  margin-top: 21px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.16px;
  color: #333;
}
.hero__btn, .how-btn, .support-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.hero__btn, .how-btn { background: #007cff; }
.hero__btn:hover, .how-btn:hover { background: #0066d6; }
.hero__btn { margin-top: 24px; }
.hero__img img {
  display: block;
  width: 100%;
  height: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 12px;
  margin-top: 60px;
}
.feature__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20.6px;
  font-size: 36px;
  line-height: 1;
  color: #007cff;
}
.feature__icon .fal, .feature__icon .fas {
  display: block;
  height: 1em;
  overflow: visible;
}
.feature__title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.4px;
  color: #333;
}
.feature__sub {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.12px;
  color: #333;
}

.section-how {
  background: #eff9ff;
  padding: 95px 0 24px;
}
.section-title {
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.56px;
  color: #333;
}
.section-sub {
  margin-top: 25px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.28px;
  color: #000;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px -38px 0;
}
.how-card {
  padding: 48px 32px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.how-card__icon {
  display: flex;
  align-items: flex-start;
  height: 56px;
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1;
}
.how-card__icon .far {
  display: block;
  height: 1em;
  overflow: visible;
}
.how-card__icon--blue { color: #007cff; }
.how-card__icon--red { color: #ff2a20; }
.how-card__icon--orange { color: #ff8e00; }
.how-card__icon--green { color: #47cc61; }
.how-card__text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #999;
}
.how-card__text b {
  font-weight: 600;
  color: #000;
}
.how-btn { margin-top: 32px; }
.how-btn .far { font-size: 16px; }

.section-faq {
  background: #fff;
  padding: 95px 0 96px;
}
.faq-list { margin-top: 21px; }
.faq-item { border-bottom: 1px solid #ebebeb; }
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 12px 0 0;
  cursor: pointer;
  user-select: none;
}
.faq-question {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.32px;
  color: #000;
}
.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  color: #007cff;
}
.faq-item.active .faq-toggle .fa-circle-plus:before { content: "\f056"; }
.faq-body {
  display: none;
  padding: 0 12px 24px 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.12px;
  color: #333;
  white-space: pre-line;
}
.faq-item.active .faq-body { display: block; }

.support-banner {
  margin: 64px -38px 0;
  padding: 71px 38px 72px;
  border-radius: 12px;
  background: linear-gradient(315deg, #007cff 0%, #1989ff 100%);
  color: #fff;
}
.support-banner__title {
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.56px;
}
.support-banner__text {
  margin-top: 21px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.28px;
}
.support-banner__btn {
  margin-top: 24px;
  background: #3396ff;
}
.support-banner__btn:hover { background: #268aff; }

.footer {
  padding: 22px 0;
  background: #242424;
  font-family: "Circe", sans-serif;
  font-size: 16px;
  line-height: 17.6px;
  color: #fff;
}
.main-page .footer .container {
  max-width: 1280px;
  padding: 0 50px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__link { color: #fff; }
.footer__link:hover { text-decoration: underline; }
.footer__divider {
  height: 2px;
  margin: 24px 0;
  border: none;
  background: #4a4a4a;
}
.footer__copy {
  margin-top: 0;
  font-size: 16px;
  line-height: 17.6px;
  color: #b8b8b8;
}


/* ---------- Header user + profile popup (по замерам оригинала) ---------- */
.user { gap: 12px; }
.user__name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: #000;
}
.user__class {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #666;
}
.user__info { line-height: normal; }
.avatar {
  width: 40px; height: 40px;
  background: #d1996f;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: -0.12px;
}
.avatar--lg {
  width: 60px; height: 60px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.36px;
}
.profile-pop {
  top: 0;
  right: 0;
  width: 290px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
  padding: 20px 4px 28px;
}
.profile-pop__head { gap: 16px; margin: 0 16px 24px; }
.profile-pop__name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: #000;
  margin: 0;
}
.profile-pop__school,
.profile-pop__class {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 16px;
  text-transform: none;
  color: #666;
}
.profile-pop__school { margin-top: 4px; }
.profile-pop__class { margin-top: 4px; }
.profile-pop li a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.12px;
  color: #000;
}
.profile-pop li a:hover { background: rgba(0, 0, 0, .04); color: #000; }
.profile-pop__ico { width: 36px; flex-shrink: 0; display: flex; }
.fa-glyph {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  width: 16px;
  text-align: center;
  display: block;
}
.fa-glyph--solid { font-weight: 900; }

/* ---------- Help widget ---------- */
.help {
  right: 20px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.help__img {
  position: absolute;
  inset: -1px 0 0 -1px;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: 40px;
  background: url("icons/usedesk_logo_round.png") center / contain no-repeat;
  pointer-events: none;
}

/* ---------- Site footer (личный кабинет, олимпиада) ---------- */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: #242424;
  padding: 22px 0;
  font-family: "Circe", sans-serif;
  font-size: 16px;
  line-height: 17.6px;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  margin: -4px -12px;
}
.site-footer__links a { color: #fff; padding: 4px 12px; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__line { height: 2px; background: #4a4a4a; margin: 24px 0; }
.site-footer__copy { color: #b8b8b8; }

/* ---------- Dashboard: точные размеры оригинала ---------- */
body.dash { background: #f6f7fb; color: #333; font-size: 16px; line-height: 17.6px; }

body.dash .page--dash { padding: 52px 0 120px; }
body.dash .page--dash .row { gap: 20px; }
body.dash .page--dash .col-3 { width: 280px; }

body.dash .dash__title-row { margin: 0 0 20px; align-items: center; }
body.dash .dash__title { font-size: 32px; line-height: 36.8px; font-weight: 600; color: #333; }
body.dash .archive-link {
  gap: 8px;
  font-size: 16px; line-height: 19.2px; font-weight: 700;
  color: #1a96f6;
}
body.dash .archive-link svg { width: 16px; height: 16px; }

body.dash .card {
  padding: 32px 64px 32px 32px;
  border-radius: 4px;
  margin-bottom: 20px;
  min-height: 0;
}
body.dash .card__icon {
  width: 70px; height: 68px;
  margin-right: 32px;
  border-radius: 100%;
  background-color: #1a96f6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
body.dash .card__icon svg { width: 24px; height: 24px; }
body.dash .card__body { flex: 0 0 340px; width: 340px; padding-right: 80px; }
body.dash .tag {
  font-size: 14px;
  line-height: 18.2px;
  padding: 2px 8px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #333;
}
body.dash .tag--school { background: #daefc9; }
body.dash .tag--muni-yellow { background: #ffe89e; }
body.dash .tag--wide,
body.dash .tag--muni-yellow,
body.dash .tag--muni-blue { display: block; width: 260px; }
body.dash .card__title {
  font-size: 24px;
  line-height: 27.6px;
  font-weight: 600;
  color: #333;
  max-width: 260px;
}
body.dash .card__right { width: 310px; margin-left: auto; text-align: left; }
body.dash .card__date {
  width: 280px;
  text-align: center;
  font-size: 16px;
  line-height: 18.4px;
  margin: 0 0 12px;
}
body.dash .card .btn-outline {
  width: 280px;
  height: 52px;
  padding: 0 32px;
  border: 1px solid #1a96f6;
  border-radius: 5px;
  color: #1a96f6;
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
}
body.dash .card__score {
  gap: 16px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 20.8px;
  color: #333;
}
body.dash .card__score b { font-weight: 400; color: #7fc92e; margin-left: 4px; }
body.dash .card__score b.zero { color: #e5534b; }
body.dash .card__score .max { color: #b8b8b8; }
body.dash .card__score .status { color: #7fc92e; margin-left: 4px; }
body.dash .card__actions { top: 16px; right: 16px; gap: 8px; color: #d4d4d4; }
body.dash .card__actions svg { width: 16px; height: 16px; }
body.dash .soon { align-items: flex-start; gap: 16px; font-size: 16px; line-height: 20.8px; font-weight: 600; color: #1a96f6; }
body.dash .soon svg { width: 36px; height: 36px; flex-shrink: 0; }
body.dash .soon span { margin-top: 1px; }
body.dash .progress { width: 310px; font-size: 16px; line-height: 20.8px; color: #333; }
body.dash .progress__bar { width: 100%; height: 4px; background: #e6e8eb; border-radius: 2px; overflow: hidden; margin: 16px 0; }
body.dash .progress__fill { height: 100%; background: var(--green); border-radius: 2px; }
body.dash .progress__hint { font-size: 14px; line-height: 18px; color: #b8b8b8; }
body.dash .progress__hint svg { width: 16px; height: 16px; flex-shrink: 0; }

body.dash .filter {
  margin-top: 0;
  padding: 20px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: transparent;
}
body.dash .filter label {
  gap: 10px;
  padding: 0;
  font-size: 16px;
  line-height: 23px;
  color: #333;
}
body.dash .filter label + label { margin-top: 15px; }
body.dash .filter input { width: 16px; height: 16px; border: 1px solid #b8b8b8; border-radius: 4px; background: #fff; }
body.dash .filter input:checked { background: #48a1e6; border-color: #48a1e6; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .row { flex-direction: column; }
  .col-3, .page--dash .col-3 { width: 100%; }
  .page--dash .row { flex-direction: column-reverse; }
  .card { flex-wrap: wrap; padding-right: 30px; }
  .card__right { width: 100%; margin-top: 16px; }
  .header .nav { padding-left: 36px; }
  .landing .hero { grid-template-columns: 1fr; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); margin-left: 0; margin-right: 0; }
  .support-banner { margin-left: 0; margin-right: 0; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .support-banner__title { font-size: 26px; }
  .footer__links-row { flex-direction: column; gap: 12px; }
}
