:root {
  --primary: #1a6cf1;
  --primary-light: #4f97ff;
  --accent: #00f3c9;
  --bg: #0d1224;
  --bg2: #161c34;
  --surface: rgba(22, 28, 52, 0.7);
  --glass: rgba(26, 108, 241, 0.15);
  --white: #fff;
  --shadow: 0 4px 32px 0 rgba(20, 40, 100, 0.13), 0 1.5px 8px 0 rgba(0, 0, 0, 0.08);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --gap-section: 76px;
  --gap-card: 46px;
  --gap-sm: 18px;
  --gap-xl: 120px;
  --header-height: 84px;
  --menu-gap: 18px;
  --logo-menu-gap: 40px;
  --star-size: 36px;
  --star-gap: 10px;
  --focus-outline: 2px solid var(--accent);
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.site-bg {
  min-height: 100vh;
  background: linear-gradient(120deg, #0d1224 0%, #18318c 100%);
  position: relative;
  overflow-x: hidden;
}

.header {
  height: auto;
  padding: 10px 0;
  background: rgba(16, 25, 54, 0.84);
  box-shadow: 0 2px 16px 0 rgba(10, 24, 70, 0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
}

.logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: var(--logo-menu-gap);
}

.logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(26, 108, 241, 0.15));
  display: block;
}

.logo-wrap a {
  display: flex;
  align-items: center;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--menu-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  background: none;
}

.nav-menu>li {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-menu>li>a,
.nav-menu>li>button {
  display: block;
  padding: 10px 22px 9px 22px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background 0.18s, color 0.18s;
  background: linear-gradient(90deg, rgba(26, 108, 241, 0.11) 0%, rgba(0, 243, 201, 0.09) 100%);
  box-shadow: none;
  border: none;
  cursor: pointer;
}

.nav-menu>li>a:hover,
.nav-menu>li>a:focus,
.nav-menu>li>button:hover,
.nav-menu>li>button:focus,
.nav-menu>li>a.active-page {
  background: linear-gradient(92deg, var(--primary-light), var(--accent));
  color: #08307e;
  box-shadow: 0 2px 8px 0 rgba(49, 117, 255, 0.19);
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.nav-menu>li.has-dropdown>a:after,
.nav-menu>li.has-dropdown>button:after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: border-color 0.2s;
}

.nav-menu>li.has-dropdown:hover>a:after,
.nav-menu>li.has-dropdown:focus-within>a:after,
.nav-menu>li.has-dropdown:hover>button:after,
.nav-menu>li.has-dropdown:focus-within>button:after {
  border-color: var(--primary);
}

.nav-menu>li.has-dropdown {
  position: relative;
}

.nav-menu>li .dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 180px;
  background: rgba(24, 49, 140, 0.97);
  box-shadow: 0 8px 32px 0 rgba(24, 49, 140, 0.13), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.2s, transform 0.22s;
  z-index: 101;
  padding: 8px 0;
}

.nav-menu>li.has-dropdown:hover>.dropdown,
.nav-menu>li.has-dropdown:focus-within>.dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown>li>a,
.dropdown>li>button {
  padding: 11px 28px 11px 22px;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  display: block;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown>li>a:hover,
.dropdown>li>a:focus,
.dropdown>li>button:hover,
.dropdown>li>button:focus {
  background: linear-gradient(92deg, var(--primary-light), var(--accent));
  color: #08307e;
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 0;
  z-index: 102;
  position: relative;
  outline: none;
}

.burger:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.burger span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--white);
  margin: 3.5px 0;
  border-radius: 2.5px;
  transition: 0.22s all;
}

.burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .header-inner {
    padding: 0 12px;
  }

  .logo {
    height: 32px;
  }
}

@media (max-width: 850px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0 6px;
  }

  .logo {
    height: 30px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    justify-content: flex-end;
  }

  .nav-menu-wrap {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 760px) {
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 16, 38, 0.74);
    z-index: 101;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu-wrap.mobile {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 92vw;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(120deg, #1a2441 0%, #2749aa 100%);
    box-shadow: -6px 0 40px 0 rgba(26, 108, 241, 0.14);
    z-index: 102;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.6, .1, .07, 1.02);
    overflow-y: auto;
    padding: 0 10px;
    border-top-left-radius: 36px;
    border-bottom-left-radius: 18px;
  }

  .nav-menu-wrap.mobile.open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 40px 0 24px 0;
    width: 100%;
    background: none;
  }

  .nav-menu>li {
    margin-bottom: 0.5em;
    width: 100%;
  }

  .nav-menu>li>a,
  .nav-menu>li>button {
    padding: 16px 0 16px 0;
    font-size: 1.09em;
    width: 100%;
    border-radius: 12px;
    background: none;
    text-align: left;
    color: var(--white);
    box-shadow: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.07);
  }

  .nav-menu>li>a:hover,
  .nav-menu>li>a:focus,
  .nav-menu>li>button:hover,
  .nav-menu>li>button:focus {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    color: #08307e;
  }

  .nav-menu>li.has-dropdown>a:after,
  .nav-menu>li.has-dropdown>button:after {
    border-width: 0 2.5px 2.5px 0;
    padding: 4px;
    margin-left: 10px;
    float: right;
  }

  .nav-menu>li .dropdown {
    position: static;
    min-width: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    padding: 0;
  }

  .nav-menu>li .dropdown.open {
    display: block;
  }

  .dropdown>li>a,
  .dropdown>li>button {
    padding: 14px 0 14px 29px;
    font-size: 1em;
    background: none;
    border-radius: 0;
    color: var(--white);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.10);
  }
}

.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('90.webp') center/cover no-repeat;
  z-index: 1;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  margin-bottom: var(--gap-section);
  box-shadow: 0 16px 32px 0 rgba(20, 40, 100, 0.14);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(110deg, rgba(13, 18, 36, 0.74) 35%, rgba(26, 108, 241, 0.19) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 68px 0;
}

.hero-title {
  color: var(--white);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0 0 28px 0;
  text-shadow: 0 4px 24px rgba(24, 49, 140, 0.22);
  max-width: 700px;
  line-height: 1.1;
}

.cta-btn {
  background: linear-gradient(92deg, var(--primary) 0%, var(--accent) 100%);
  color: #08307e;
  font-weight: 700;
  font-size: 1.45em;
  padding: 19px 63px;
  border: none;
  border-radius: 34px 18px 34px 18px;
  box-shadow: 0 6px 24px 0 rgba(26, 108, 241, 0.17), 0 2px 8px rgba(0, 243, 201, 0.10);
  cursor: pointer;
  margin: 0 auto;
  outline: none;
  transition: box-shadow 0.16s, transform 0.16s, background 0.18s;
  position: relative;
  overflow: hidden;
  display: inline-block;
  letter-spacing: 0.01em;
  min-width: 180px;
  box-sizing: border-box;
  animation: btn-fadein 0.8s cubic-bezier(.2, 1.1, .19, 1.01);
  text-align: center;
}

.cta-btn:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.cta-btn:hover,
.cta-btn:focus {
  box-shadow: 0 12px 36px 0 rgba(0, 243, 201, 0.18), 0 2px 8px rgba(26, 108, 241, 0.18);
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(92deg, var(--accent) 0%, var(--primary) 100%);
}

@keyframes btn-fadein {
  from {
    opacity: 0;
    transform: scale(0.87) translateY(44px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.main-content {
  position: relative;
  z-index: 2;
  margin-bottom: var(--gap-section);
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-card);
}


.content-container .card-section {
  background: var(--glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 42px 38px 38px 38px;
  margin-bottom: 0;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInCard 0.74s cubic-bezier(.17, .67, .28, 1) both;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.content-container h2 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 16px 0;
  line-height: 1.18;
}

.content-container h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--accent);
}

.content-container p {
  line-height: 1.67;
  font-size: 1.05em;
  margin: 0 0 10px 0;
  color: #e6ebfa;
}

.content-container img,
.content-container picture,
.content-container video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px 0 rgba(20, 40, 100, 0.06);
}

.content-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 4px 0;
  background: rgba(13, 18, 36, 0.92);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 18px 0 rgba(26, 108, 241, 0.09);
  font-size: 1.02em;
}

.content-container table p {
  margin: 0;
}

.content-container th,
.content-container td {
  border: 1.3px solid #2441a1;
  padding: 14px 16px;
  text-align: left;
  color: #cbe9ff;
}

.content-container th {
  background: linear-gradient(90deg, #2247ad 0%, #1a6cf1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.09em;
}

.content-container tr:nth-child(even) td {
  background: rgba(26, 108, 241, 0.06);
}

.content-container tr:nth-child(odd) td {
  background: none;
}

.content-container .cta-btn {
  margin-bottom: 32px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 320px;
  min-width: 180px;
  width: fit-content;
}

@media (max-width: 650px) {
  .hero-title {
    font-size: 1.87rem;
    padding: 0 6vw;
  }

  .hero-content {
    padding: 46px 0 38px 0;
  }

  .content-container {
    padding: 0 6px;
  }

  .content-container .card-section {
    padding: 22px 10px 20px 10px;
    border-radius: 12px;
  }

  .content-container table {
    display: block;
    overflow: auto;
    width: 100%;
  }
}

@media (max-width: 450px) {
  .hero {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .hero-title {
    font-size: 1.09rem;
    max-width: 92vw;
  }
}

.rating-block-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--gap-xl);
  margin-top: var(--gap-section);
}

.rating-block {
  background: linear-gradient(110deg, rgba(26, 108, 241, 0.18) 0%, rgba(0, 243, 201, 0.14) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px 0 rgba(24, 49, 140, 0.12);
  border-radius: 22px;
  padding: 24px 38px 19px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 240px;
  max-width: 96vw;
  animation: fadeInCard 0.74s cubic-bezier(.17, .67, .28, 1) both;
}

.star-rating {
  display: flex;
  gap: var(--star-gap);
  margin: 0 0 8px 0;
}

.star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  width: var(--star-size);
  height: var(--star-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s;
  opacity: 0.68;
}

.star:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.star svg {
  width: var(--star-size);
  height: var(--star-size);
  fill: #fff;
  filter: drop-shadow(0 1px 6px rgba(26, 108, 241, 0.09));
  transition: fill 0.18s;
}

.star.active svg,
.star.selected svg {
  fill: var(--accent);
  opacity: 1;
}

.star.active,
.star.selected {
  opacity: 1;
  transform: scale(1.11);
}

.star-rating .star:hover,
.star-rating .star:focus {
  transform: scale(1.16);
  opacity: 1;
}

.rating-msg {
  font-size: 1.04em;
  color: var(--accent);
  min-height: 22px;
  margin-top: 2px;
}

.rating-block.voted .star {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 600px) {
  .rating-block {
    padding: 17px 8px 13px 8px;
  }

  .star-rating {
    gap: 5px;
  }

  .star,
  .star svg {
    width: 27px;
    height: 27px;
  }
}

.footer {
  background: linear-gradient(90deg, rgba(24, 49, 140, 0.44) 0%, rgba(13, 18, 36, 0.62) 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 24px 0 rgba(13, 18, 36, 0.22);
  padding: 28px 0 17px 0;
  text-align: center;
  font-size: 1.08em;
  color: #b4cfff;
  position: relative;
  width: 100%;
  bottom: 0;
}

.footer-inner {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}