@font-face {
  font-family: "Cascadia Code";
  src: url("fonts/CascadiaCode.ttf?v=2407.24") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --itmo-bg: #080d0a;
  --itmo-panel: #0e1712;
  --itmo-panel-raised: #111e16;
  --itmo-line: #234332;
  --itmo-green: #8df5a8;
  --itmo-green-bright: #b6ffc5;
  --itmo-cyan: #6ad8d0;
  --itmo-text: #d5e3d9;
  --itmo-muted: #91a69a;
  --itmo-danger: #ff827b;
}

html {
  background: var(--itmo-bg);
}

body {
  color: var(--itmo-text);
  background-color: var(--itmo-bg);
  background-image:
    linear-gradient(rgba(90, 164, 111, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 164, 111, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -30%, rgba(32, 102, 60, 0.22), transparent 62%);
  background-size: 36px 36px, 36px 36px, auto;
  background-attachment: fixed;
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.01em;
}

a,
.btn-link {
  color: var(--itmo-green);
}

a:hover,
.btn-link:hover {
  color: var(--itmo-green-bright);
}

.navbar.navbar-dark.bg-dark {
  background: rgba(5, 10, 7, 0.96) !important;
  border-bottom: 1px solid var(--itmo-line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  color: var(--itmo-green) !important;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.navbar-brand::before {
  content: "$ ";
  color: var(--itmo-cyan);
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  color: #c5d4ca !important;
  transition: color 140ms ease, text-shadow 140ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:hover {
  color: var(--itmo-green-bright) !important;
  text-shadow: 0 0 12px rgba(141, 245, 168, 0.34);
}

.navbar-toggler {
  border-color: var(--itmo-line) !important;
}

main {
  min-height: calc(100vh - 5rem);
}

main > .jumbotron,
.jumbotron {
  position: relative;
  color: var(--itmo-text);
  background: linear-gradient(135deg, rgba(14, 23, 18, 0.98), rgba(8, 14, 10, 0.94));
  border: 1px solid var(--itmo-line);
  border-radius: 4px;
  box-shadow: inset 3px 0 0 rgba(141, 245, 168, 0.72), 0 16px 42px rgba(0, 0, 0, 0.16);
}

.jumbotron h1,
.jumbotron h2 {
  color: var(--itmo-green-bright);
  font-weight: 700;
  letter-spacing: 0.035em;
}

.jumbotron h1::before {
  content: "[ ";
  color: var(--itmo-cyan);
  font-weight: 400;
}

.jumbotron h1::after {
  content: " ]";
  color: var(--itmo-cyan);
  font-weight: 400;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item {
  color: var(--itmo-text);
  background-color: var(--itmo-panel);
  border-color: var(--itmo-line);
}

.card,
.modal-content {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.17);
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
  background: rgba(141, 245, 168, 0.045);
  border-color: var(--itmo-line);
}

.dropdown-item {
  color: var(--itmo-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--itmo-green-bright);
  background: var(--itmo-panel-raised);
}

.text-muted,
.text-secondary,
.form-text {
  color: var(--itmo-muted) !important;
}

.text-primary,
.text-info {
  color: var(--itmo-cyan) !important;
}

.text-success {
  color: var(--itmo-green) !important;
}

.form-control,
.custom-select,
select.form-control,
textarea.form-control {
  color: var(--itmo-text);
  background: #09110c;
  border: 1px solid var(--itmo-line);
  border-radius: 3px;
}

.form-control:focus,
.custom-select:focus,
textarea.form-control:focus {
  color: var(--itmo-green-bright);
  background: #09110c;
  border-color: var(--itmo-green);
  box-shadow: 0 0 0 0.16rem rgba(141, 245, 168, 0.16);
}

.form-control::placeholder {
  color: #718579;
}

.btn {
  border-radius: 3px;
  font-family: inherit;
  letter-spacing: 0.025em;
}

.btn-primary,
.btn-success {
  color: #07100a;
  background-color: var(--itmo-green);
  border-color: var(--itmo-green);
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  color: #041007;
  background-color: var(--itmo-green-bright);
  border-color: var(--itmo-green-bright);
}

.btn-secondary,
.btn-dark,
.btn-outline-secondary {
  color: var(--itmo-text);
  background: var(--itmo-panel-raised);
  border-color: var(--itmo-line);
}

.btn-secondary:hover,
.btn-dark:hover,
.btn-outline-secondary:hover {
  color: var(--itmo-green-bright);
  background: #17271c;
  border-color: var(--itmo-green);
}

.btn-danger {
  background: #9d3e3a;
  border-color: #b64a45;
}

.nav-pills .nav-link {
  color: var(--itmo-muted);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #07100a;
  background: var(--itmo-green);
  font-weight: 700;
}

.table {
  color: var(--itmo-text);
}

.table thead th,
.table th,
.table td {
  border-color: var(--itmo-line);
}

.table thead th {
  color: var(--itmo-green);
  background: rgba(141, 245, 168, 0.045);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(141, 245, 168, 0.025);
}

.table-hover tbody tr:hover {
  color: var(--itmo-green-bright);
  background-color: rgba(141, 245, 168, 0.075);
}

.category-header {
  color: var(--itmo-green);
  border-bottom: 1px solid var(--itmo-line);
}

.category-header h3::before {
  content: "$ ls ./";
  margin-right: 0.55rem;
  color: var(--itmo-cyan);
  font-size: 0.72em;
}

.challenge-button.btn-dark {
  min-height: 124px;
  color: var(--itmo-text);
  background: linear-gradient(145deg, #101b14, #0a100c);
  border: 1px solid var(--itmo-line);
  border-radius: 4px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.challenge-button.btn-dark:hover {
  border-color: var(--itmo-green);
  box-shadow: 0 0 18px rgba(141, 245, 168, 0.12);
  transform: translateY(-2px);
}

.challenge-button .challenge-inner p {
  color: var(--itmo-green-bright);
  font-weight: 700;
}

.challenge-button .challenge-inner span {
  color: var(--itmo-cyan);
}

.challenge-button.challenge-solved,
.challenge-solved {
  border-color: var(--itmo-green) !important;
  background: rgba(34, 91, 52, 0.3) !important;
}

.alert {
  color: var(--itmo-text);
  background: var(--itmo-panel);
  border-color: var(--itmo-line);
}

.alert-success {
  border-left: 3px solid var(--itmo-green);
}

.alert-danger,
.alert-warning {
  border-left: 3px solid var(--itmo-danger);
}

hr {
  border-color: var(--itmo-line);
}

code,
pre,
.challenge-desc pre {
  color: var(--itmo-green-bright);
  background: #050906;
  border: 1px solid var(--itmo-line);
  border-radius: 3px;
}

code {
  padding: 0.12rem 0.3rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

.footer {
  margin-top: 3rem;
  padding: 1.35rem 0;
  background: rgba(5, 10, 7, 0.72);
  border-top: 1px solid var(--itmo-line);
}

.footer a,
.footer .text-muted {
  color: var(--itmo-muted) !important;
}

.footer a:hover {
  color: var(--itmo-green) !important;
}

.progress {
  background: #050906;
  border: 1px solid var(--itmo-line);
}

.progress-bar {
  color: #07100a;
  background: var(--itmo-green);
}

.badge-primary,
.bg-primary {
  color: #07100a !important;
  background-color: var(--itmo-green) !important;
}

.spinner {
  color: var(--itmo-green);
}

@media (max-width: 767.98px) {
  .navbar-nav {
    padding-top: 0.4rem;
  }

  main > .jumbotron,
  .jumbotron {
    margin: 0.75rem 0;
    padding: 1.5rem 1rem;
  }

  .jumbotron h1 {
    font-size: 1.55rem;
  }

  .nav-pills {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .itmo-reveal,
  .itmo-reveal.itmo-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

.itmo-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease var(--itmo-motion-delay, 0ms),
    transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--itmo-motion-delay, 0ms);
}

.itmo-reveal.itmo-visible {
  opacity: 1;
  transform: translateY(0);
}

.challenge-button.btn-dark,
.card,
.table tbody tr {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.challenge-button.btn-dark:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(66, 190, 103, 0.11);
}

.category-header h3 {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.category-header:hover h3 {
  color: var(--itmo-green-bright);
  text-shadow: 0 0 14px rgba(141, 245, 168, 0.2);
}

.btn-primary,
.btn-success {
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.btn-primary:hover,
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(141, 245, 168, 0.2);
}

body {
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(53, 150, 80, 0.11), transparent 35%),
    radial-gradient(ellipse at 82% 70%, rgba(38, 119, 122, 0.08), transparent 32%);
  animation: itmo-atmosphere 18s ease-in-out infinite alternate;
}

/* Slow ambient motion and a cursor-following light, with no blinking cursor. */
body::before {
  animation-duration: 20s;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    440px circle at var(--itmo-pointer-x, 50vw) var(--itmo-pointer-y, 42vh),
    rgba(113, 223, 151, 0.055),
    transparent 72%
  );
}

main.itmo-home .row > .col-md-6.offset-md-3 {
  animation: itmo-panel-breath 8s ease-in-out infinite alternate;
}

main.itmo-home .itmo-wordmark {
  animation: itmo-wordmark-drift 6s ease-in-out infinite;
}

main.itmo-home h4.text-center a::after {
  content: "↗";
  margin-left: 0.55rem;
  transition: transform 180ms ease;
}

main.itmo-home h4.text-center a:hover::after {
  transform: translate(2px, -2px);
}

@keyframes itmo-panel-breath {
  from {
    border-color: rgba(153, 218, 178, 0.15);
    box-shadow: 0 24px 76px rgba(0, 0, 0, 0.29), inset 0 1px rgba(255, 255, 255, 0.035);
  }
  to {
    border-color: rgba(153, 218, 178, 0.27);
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.055);
  }
}

@keyframes itmo-wordmark-drift {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes itmo-atmosphere {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }

  .navbar-brand::before,
  main.itmo-home .row > .col-md-6.offset-md-3,
  main.itmo-home .itmo-wordmark {
    animation: none !important;
  }
}

/* Terminal styling aligned with the ITMO-team reference. */
:root {
  --itmo-bg: #07110e;
  --itmo-panel: #0e1a16;
  --itmo-panel-raised: #14231d;
  --itmo-line: rgba(153, 218, 178, 0.16);
  --itmo-green: #9af2b1;
  --itmo-green-bright: #c6ffd2;
  --itmo-cyan: #83ded5;
  --itmo-text: #e1ebe5;
  --itmo-muted: #98aaa0;
}

html,
body {
  background-color: var(--itmo-bg);
}

body {
  color: var(--itmo-text);
  background-image:
    linear-gradient(rgba(133, 186, 151, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 186, 151, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -30%, rgba(34, 91, 65, 0.32), transparent 64%);
  background-size: 36px 36px, 36px 36px, auto;
  font-family: "Cascadia Code", Consolas, monospace;
  font-feature-settings: "calt" 1;
  letter-spacing: 0;
}

body::before {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(92, 196, 122, 0.09), transparent 36%),
    radial-gradient(ellipse at 82% 70%, rgba(67, 157, 157, 0.07), transparent 34%);
  animation-duration: 20s;
}

.navbar.navbar-dark.bg-dark {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(6, 15, 12, 0.9) !important;
  border-bottom-color: rgba(153, 218, 178, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.035em;
}

.navbar-brand::before {
  content: "$ ";
  display: inline;
  width: auto;
  height: auto;
  margin-right: 0.28em;
  color: var(--itmo-cyan);
  background: none;
  box-shadow: none;
  animation: none;
}

.navbar-brand::after {
  content: none !important;
  animation: none !important;
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  position: relative;
  transition: color 180ms ease, background-color 180ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:hover {
  text-shadow: none;
}

.navbar .nav-link:hover {
  border-radius: 2px;
  background: rgba(154, 242, 177, 0.07);
}

.navbar .navbar-nav.me-auto > .nav-item > .nav-link::before {
  content: "$ ";
  color: var(--itmo-cyan);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.8em;
}

main > .jumbotron,
.jumbotron {
  border: 1px solid var(--itmo-line);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(76, 154, 101, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(16, 31, 24, 0.98), rgba(8, 17, 13, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.jumbotron h1,
.jumbotron h2 {
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.025em;
}

.jumbotron h1::before,
.jumbotron h1::after {
  color: var(--itmo-cyan);
}

.jumbotron > .container::before {
  content: "$ status --section";
  width: fit-content;
  max-width: none;
  padding: 0.34rem 0.6rem;
  border: 1px solid rgba(131, 222, 213, 0.2);
  border-right: 1px solid rgba(131, 222, 213, 0.2);
  border-radius: 2px;
  background: rgba(131, 222, 213, 0.055);
  animation: none;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item {
  background-color: rgba(13, 27, 21, 0.96);
  border-color: var(--itmo-line);
}

.card,
.modal-content {
  border-radius: 3px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
  background: rgba(154, 242, 177, 0.045);
}

.form-control,
.custom-select,
select.form-control,
textarea.form-control {
  border-radius: 2px;
  background: rgba(5, 13, 10, 0.86);
}

.form-control:focus,
.custom-select:focus,
textarea.form-control:focus {
  background: rgba(5, 13, 10, 0.96);
}

.btn {
  border-radius: 2px;
  font-family: inherit;
  letter-spacing: 0.005em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn-primary,
.btn-success {
  box-shadow: 0 6px 18px rgba(116, 220, 147, 0.1);
}

.btn-secondary,
.btn-dark,
.btn-outline-secondary {
  border-radius: 2px;
}

.nav-pills .nav-link {
  border-radius: 2px;
  transition: color 180ms ease, background-color 180ms ease;
}

.category-header {
  padding-bottom: 0.65rem;
  border-bottom-color: var(--itmo-line);
}

.category-header h3 {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.category-header h3::before {
  content: "$ ls ./";
  display: inline-block;
  margin-right: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--itmo-cyan);
  font: 400 0.72em/1.5 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0;
  vertical-align: 0.12em;
}

.challenge-button.btn-dark {
  min-height: 132px;
  border-radius: 12px;
  border-color: rgba(153, 218, 178, 0.14);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(72, 143, 95, 0.11), transparent 50%),
    linear-gradient(145deg, #12221a, #0b1510);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.challenge-button.btn-dark:hover,
.card:hover {
  border-color: rgba(154, 242, 177, 0.48);
  box-shadow: 0 16px 38px rgba(66, 190, 103, 0.13);
}

.challenge-button .challenge-inner p {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.challenge-button .challenge-inner span {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(131, 222, 213, 0.2);
  border-radius: 999px;
  background: rgba(131, 222, 213, 0.05);
}

.table {
  border-color: var(--itmo-line);
  border-radius: 2px;
}

.table thead th {
  color: var(--itmo-muted);
  background: rgba(154, 242, 177, 0.04);
  font: 600 0.7rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
}

.table-hover tbody tr:hover {
  color: var(--itmo-text);
}

.footer {
  background: rgba(5, 12, 9, 0.72);
  border-top-color: rgba(153, 218, 178, 0.1);
}

main.itmo-home {
  padding: 1.5rem 0 3rem;
}

main.itmo-home::before {
  content: "SYSTEM ONLINE";
  display: table;
  width: auto;
  max-width: none;
  margin: 0 auto 1.1rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(131, 222, 213, 0.2);
  border-radius: 2px;
  background: rgba(8, 20, 15, 0.76);
  color: var(--itmo-cyan);
  font: 600 0.68rem/1.4 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.12em;
  animation: none;
}

main.itmo-home .row > .col-md-6.offset-md-3 {
  position: relative;
  flex: 0 1 900px;
  width: calc(100% - 1.5rem);
  max-width: 900px;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  overflow: hidden;
  border: 1px solid rgba(153, 218, 178, 0.17);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(15, 36, 23, 0.5), rgba(8, 17, 13, 0.87) 38%),
    rgba(8, 17, 13, 0.82);
  box-shadow: inset 3px 0 0 rgba(154, 242, 177, 0.64), 0 20px 60px rgba(0, 0, 0, 0.23);
}

main.itmo-home .itmo-wordmark {
  margin: 0 auto 1.35rem;
  color: #eef8f1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.65rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 34px rgba(154, 242, 177, 0.12);
}

main.itmo-home .itmo-wordmark::before {
  content: "mainframe.sh  SECURE_SESSION";
  display: block;
  margin-bottom: 0.9rem;
  color: var(--itmo-muted);
  font-size: 0.2em;
  font-weight: 400;
  letter-spacing: 0.1em;
}

main.itmo-home .itmo-wordmark span {
  color: var(--itmo-green);
}

main.itmo-home h3.text-center {
  margin: 0.75rem 0 0;
  color: var(--itmo-text);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
}

main.itmo-home h3.text-center > p {
  margin-bottom: 0.45rem;
}

main.itmo-home h3.text-center > p:first-child::before {
  content: "$ status --section";
  display: block;
  margin-bottom: 0.8rem;
  color: var(--itmo-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

main.itmo-home h3.text-center > p:nth-child(2) {
  margin-top: 1.6rem;
  color: var(--itmo-muted);
  font-size: 0.95rem;
}

main.itmo-home h3.text-center > a {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 0.16rem;
  border: 1px solid rgba(153, 218, 178, 0.16);
  border-radius: 2px;
  background: rgba(154, 242, 177, 0.055);
  color: var(--itmo-green);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

main.itmo-home h3.text-center > a:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 242, 177, 0.45);
  background: rgba(154, 242, 177, 0.12);
  box-shadow: 0 10px 24px rgba(65, 185, 102, 0.12);
  filter: none;
}

main.itmo-home h4.text-center {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(153, 218, 178, 0.12);
  color: var(--itmo-muted);
  font-size: 0.95rem;
}

main.itmo-home br {
  display: none;
}

main.itmo-home h4.text-center a {
  display: inline-flex;
  align-items: center;
  margin-right: 0.3rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(154, 242, 177, 0.4);
  border-radius: 2px;
  background: var(--itmo-green);
  color: #07110e;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

main.itmo-home h4.text-center a:hover {
  transform: translateY(-2px);
  background: var(--itmo-green-bright);
  box-shadow: 0 10px 24px rgba(65, 185, 102, 0.17);
  text-shadow: none;
}

.itmo-reveal {
  transform: translateY(10px);
  transition:
    opacity 480ms ease var(--itmo-motion-delay, 0ms),
    transform 480ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--itmo-motion-delay, 0ms);
}

::selection {
  color: #07110e;
  background: var(--itmo-green);
}

:focus-visible {
  outline: 2px solid var(--itmo-cyan);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  main.itmo-home {
    padding: 1rem 0 2rem;
  }

  main.itmo-home .row > .col-md-6.offset-md-3 {
    width: calc(100% - 1rem);
    padding: 1.4rem 1rem;
    border-radius: 2px;
  }

  main.itmo-home h4.text-center a {
    margin: 0 0 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .navbar-brand::after,
  .jumbotron > .container::before,
  main.itmo-home::before {
    animation: none !important;
  }

  .navbar-brand::after {
    content: none !important;
  }

  main.itmo-home::before {
    max-width: none;
  }
}
