html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f9fb;
  color: #1f2937;
}

img, iframe {
  display: block;
  max-width: 100%;
}

/* NAVBAR */

nav {
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: inherit;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  margin-right: 20px;
}

nav a:hover {
  text-decoration: underline;
}

nav a:last-child {
  margin-left: auto;
  color: #c06b00;
  font-weight: 600;
}

/* MAIN LAYOUT */

main {
  max-width: 960px;
  margin: 40px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Белая карточка */

.page-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 40px;
  margin: 32px 0 48px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

@media (max-width: 768px) {
  .page-card {
    padding: 20px 18px 28px;
    margin: 24px 0 40px;
  }
}

/* TYPOGRAPHY */

h1 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  margin: 22px 0 12px;
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin: 10px 0;
}

a {
  color: #c06b00;
}

a:hover {
  text-decoration: underline;
}

/* FOOTER */

footer {
  width: 100%;
  background: #f5f5f7;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 24px 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #555;
}

footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: #555;
}

footer a:hover {
  text-decoration: underline;
}
  
/* Показываем только первый nav на странице, остальные скрываем */
body nav:nth-of-type(n+2) {
  display: none !important;
}
  
/* Make all navigation links bold on every page */
nav a {
  font-weight: 600;
}
  
/* Force bold navbar text everywhere */
nav a {
  font-weight: 600 !important;
}
