/* ===== 1. Box sizing ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== 2. Remove default margin ===== */
* {
  margin: 0;
}

/* ===== 3. Set core body defaults ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  scroll-behavior: smooth;
}

/* ===== 4. Remove list styles ===== */
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 12px auto;
}

/* ===== 5. Remove default heading styles ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* ===== 6. Reset links ===== */
a {
  text-decoration: none;
  color: inherit;
}

/* ===== 7. Make media responsive ===== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  object-fit: contain;
  height: 100%;
}

/* ===== 8. Remove default button styles ===== */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ===== 9. Remove button appearance ===== */
button {
  cursor: pointer;
}

/* ===== 10. Tables ===== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

strong {
  font-weight: 800;
}

em {
  font-style: italic;
}

body {
  background-color: var(--primary-background-color);
  color: var(--text-color);
}

header {
  background-color: var(--secondary-background-color);
  padding: 6px 16px;
  position: fixed;
  top: 0;
  width: 100%;
}
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}
.burger {
  cursor: pointer;
  display: block;
  position: relative;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
}
.burger::before,
.burger::after {
  content: "";
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: var(--text-color);
}
.burger::before {
  top: 0;
  box-shadow: 0 11px 0 var(--text-color);
  transition:
    box-shadow 0.3s 0.15s,
    top 0.3s 0.15s,
    transform 0.3s;
}
.burger::after {
  bottom: 0;
  transition:
    bottom 0.3s 0.15s,
    transform 0.3s;
}
.burger-checkbox:checked + .burger::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  transition:
    box-shadow 0.15s,
    top 0.3s,
    transform 0.3s 0.15s;
}
.burger-checkbox:checked + .burger::after {
  bottom: 11px;
  transform: rotate(-45deg);
  transition:
    bottom 0.3s,
    transform 0.3s 0.15s;
}
.container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo_link-logo {
  max-height: 50px;
}
.navigation-links {
  position: absolute;
  height: calc(100vh - 68px);
  width: 100%;
  top: 68px;
  left: 0;
  background-color: var(--primary-background-color);
  padding: 24px 16px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease-in;
  margin: 0;
}
.navigation-links {
  padding: 6px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.burger-checkbox:checked ~ .navigation-links {
  z-index: 13;
  pointer-events: all;
  opacity: 1;
}
main {
  margin-top: 68px;
  padding: 0 16px;
}
main a {
  text-decoration: underline;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0 18px;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0 14px;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 10px;
}
h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 5px 0 10px;
}
h5 {
  font-size: 18px;
  font-weight: 500;
  margin: 5px 0 5px;
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* плавний скрол на iOS */
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px; /* опціонально: щоб таблиця не стискалась занадто */
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  border: 1px solid var(--secondary-background-color);
  text-align: left;
}
footer {
  background-color: var(--secondary-background-color);
  padding: 0 16px;
}
.footer-links {
  padding: 20px 0;
}
.footer-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
