:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1757b8;
  --color-accent: #fbbc05;
  --color-bg: #f5f7fa;
  --color-surface: #fff;
  --color-shadow: rgba(24, 46, 85, 0.08);
  --color-shadow-strong: rgba(24, 46, 85, 0.20);
  --color-border: #e3e8f0;
  --color-text: #222;
  --color-muted: #6b7c93;
  --color-footer-bg: #10172a;
  --color-footer-text: #fff;
  --radius: 18px;
  --radius-btn: 8px;
  --shadow-card: 0 2px 18px var(--color-shadow);
  --shadow-header: 0 2px 16px var(--color-shadow-strong);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
}

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

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.2;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-header);
  z-index: 100;
  width: 100%;
  transition: var(--transition);
  padding: 20px 0;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.header__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  justify-content: space-between;
  gap: 40px;
}

.header__logo img {
  height: 36px;
  display: block;
}

.header__nav {
  flex: 1;
}

.header__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
}

.header__menu li {
  position: relative;
}

.header__menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}

.header__menu a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header__menu a:hover,
.header__menu a:focus-visible,
.header__menu a.active {
  background: var(--color-primary);
  color: #fff;
}

.header__menu li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 170px;
  background: var(--color-surface);
  box-shadow: 0 8px 24px var(--color-shadow);
  border-radius: var(--radius);
  padding: 12px 0;
  margin-top: 8px;
  z-index: 10;
}

.header__menu li:hover>ul,
.header__menu li:focus-within>ul {
  display: block;
}

.header__menu li ul li a {
  padding: 8px 20px;
  color: var(--color-text);
  border-radius: 0;
}

.header__menu li ul li a:hover,
.header__menu li ul li a:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.header__burger {
  background: none;
  border: none;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 150;
  transition: var(--transition);
}

.header__burger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .header__burger {
    display: none;
  }

  .header__nav {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px 10px 10px 10px;
    background: var(--color-surface);
    position: fixed;
    top: 0;
    right: -100vw;
    width: 82vw;
    max-width: 340px;
    height: 100vh;
    z-index: 200;
    box-shadow: 0 6px 32px var(--color-shadow-strong);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: right .24s cubic-bezier(.7, 0, .4, 1);
    overflow-y: auto;
  }

  .header__menu.open {
    right: 0;
    justify-content: flex-start;
  }

  .header__nav {
    display: none;
  }

  .header__nav.open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 200;
    width: 82vw;
    max-width: 340px;
    background: transparent;
  }

  .header__menu li ul {
    position: static;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    border-radius: 0;
    display: none;
  }

  .header__menu li.open>ul {
    display: block;
    margin-top: 0;
    padding-left: 16px;
  }

  .header__menu>li>a {
    width: 100%;
    padding: 14px 0 14px 5px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__menu li ul li a {
  min-width: 0;
}

.header__menu li ul li a:focus-visible {
  outline: 2px solid var(--color-primary);
  background: var(--color-primary-dark);
  color: #fff;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 24, 41, 0.42);
  z-index: 90;
  transition: opacity var(--transition);
}

.menu-overlay.active {
  display: block;
}

.main-bg {
  background: var(--color-bg);
  padding-top: 82px;
  min-height: 100vh;
  margin-top: 80px;
}

h1 {
  color: #fff;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 20px 28px 20px;
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
  position: relative;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #1a73e8 68%, #fbbc05 100%);
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 42, 0.24);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero__cta {
  margin-top: 0;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .card {
    padding: 42px 38px 38px 38px;
  }

  .main-content {
    gap: 40px;
    margin-bottom: 72px;
  }
}

.content-section {
  margin-top: 0;
}

.content-container {
  width: 100%;
}

.content-container ul,
.content-container ol {
  padding-left: 20px;
  margin: 20px 0;
}

.content-container li {
  margin: 5px;
}

.cta-link {
    display: block;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-btn);
    padding: 9px 30px;
    margin-bottom: 18px;
    margin-top: 8px;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    text-align: center;
    margin: 20px auto;
    max-width: 200px;
}

.cta-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  background: var(--color-primary-dark);
}

.cta-link:hover,
.cta-link:active {
  background: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px var(--color-shadow-strong);
}

.content-container img,
.content-container {

  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-btn);
  margin: 20px 0;
  box-shadow: 0 1px 8px var(--color-shadow);
}

.content-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 1px 8px var(--color-shadow);
  border-radius: var(--radius-btn);
  overflow: auto;
  margin: 24px 0;
  display: block;
}

.content-container table th,
.content-container table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  font-size: 1rem;
}

.content-container table th {
  background: #f6fafe;
  font-weight: 700;
  color: var(--color-text);
}

.content-container table tr:last-child td {
  border-bottom: 1px solid var(--color-border);
}

.content-container table tr th:first-child,
.content-container table tr td:first-child {
  border-left: none;
}

.content-container table tr th:last-child,
.content-container table tr td:last-child {
  border-right: none;
}

.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 1rem;
  padding: 18px 0 13px 0;
  margin-top: 0;
}

.footer__inner {
  text-align: center;
}

::-webkit-scrollbar {
  width: 8px;
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #d2d7e3;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .container {
    max-width: 1240px;
  }

  .card {
    max-width: 820px;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .hero__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 10;
  }
}
/* Scroll animation */
[data-animate] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1);
}

[data-animate].active {
  opacity: 1;
  transform: none;
}

/* Focus-visible for buttons and nav */
.cta-link:focus-visible,
.header__menu a:focus-visible {
  box-shadow: 0 0 0 2px var(--color-accent);
  outline: none;
}