
:root {
  --blue: #4076ba;
  --blue-dark: #2c5590;
  --blue-light: #eaf1fa;
  --text: #2b2f36;
  --muted: #6b7280;
  --border: #dbe3ee;
  --bg: #f6f8fb;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 2px 12px rgba(30, 60, 110, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { display: block; height: 44px; width: auto; max-width: 100%; }
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: 6px;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-light); text-decoration: none; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(30, 60, 110, .12);
  padding: 6px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }

/* Hero / title */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Main content */
main { max-width: 1000px; margin: 0 auto; padding: 40px 24px 20px; }
article {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  padding: 40px 44px;
  box-shadow: 0 6px 22px rgba(30, 60, 110, .06);
  overflow-wrap: break-word;
}
article h2, article h3, article h4, article h5, article h6 {
  color: var(--blue-dark);
  line-height: 1.3;
  margin: 1.6em 0 .6em;
}
article h2 { font-size: 28px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); }
article h3 { font-size: 23px; }
article h4 { font-size: 19px; }
article > :first-child { margin-top: 0; }
article p { margin-bottom: 1.2em; }
article ul, article ol { margin: 0 0 1.2em 1.4em; }
article li { margin-bottom: .4em; }
article img { max-width: 100%; height: auto; border-radius: 8px; }
article blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  color: var(--blue-dark);
}
article table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
article th, article td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
article th { background: var(--blue-light); color: var(--blue-dark); }

/* Transition paragraph */
.transition {
  margin-top: 28px;
  padding: 26px 32px;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  overflow-wrap: break-word;
}
.transition p { margin-bottom: 1em; }
.transition p:last-child { margin-bottom: 0; }

/* Links block */
.links-block {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 6px 22px rgba(30, 60, 110, .06);
}
.links-block h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.links-block h3:first-child { margin-top: 0; }
.links-block ul {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin: 0 0 8px;
  padding: 0;
}
.links-block li {
  break-inside: avoid;
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  overflow-wrap: anywhere;
}
.links-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  margin-top: 50px;
  background: var(--blue-dark);
  color: #dbe6f5;
  border-top: 4px solid var(--blue);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
}
.footer-inner img { height: 40px; width: auto; max-width: 100%; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-nav a { color: #dbe6f5; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 4px solid var(--blue);
    box-shadow: 0 12px 20px rgba(30, 60, 110, .1);
    padding: 10px 24px 18px;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav .sub-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--blue);
    border-radius: 0;
    margin-left: 12px;
    padding: 0 0 0 8px;
  }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-hero { padding: 44px 18px; }
  main { padding: 24px 14px 10px; }
  article { padding: 24px 20px; }
  .transition { padding: 20px; }
  .links-block { padding: 22px 20px; }
  .links-block ul { columns: 1; }
  .logo img { height: 36px; }
}
