
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy: #28317D;
  --green: #25A549;
  --lime: #8DC63F;
  --sand: #F2F0EB;
  --charcoal: #4A4746;
  --text: #363636;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 10px solid var(--green);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(40, 49, 125, 0.08);
}

.site-brand {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: none;
}

.site-brand span { color: var(--green); }

/* Hero / H1 */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1d2460 60%, #18204f 100%);
  color: var(--white);
  padding: 70px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.hero h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

/* Layout */
.wrap {
  width: 1100px;
  max-width: 92%;
  margin: 0 auto;
}

main { padding: 50px 0 60px; }

/* Article */
article {
  background: var(--white);
  border-radius: 14px;
  padding: 48px 52px;
  box-shadow: 0 10px 35px rgba(40, 49, 125, 0.10);
  border-top: 5px solid var(--green);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  color: var(--navy);
  line-height: 1.3;
  margin: 1.6em 0 0.6em;
  font-weight: 700;
}

article h2 { font-size: 30px; }
article h3 { font-size: 24px; color: var(--green); }
article h4 { font-size: 20px; }
article h5, article h6 { font-size: 17px; }

article > *:first-child { margin-top: 0; }

article p { margin: 0 0 1.2em; font-size: 16px; }

article a { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--lime); }
article a:hover { color: var(--green); }

article ul,
article ol { margin: 0 0 1.3em 1.4em; }
article ul { list-style: disc; }
article ol { list-style: decimal; }
article li { margin-bottom: 0.5em; font-size: 16px; }

article blockquote {
  margin: 1.6em 0;
  padding: 18px 26px;
  background: var(--sand);
  border-left: 5px solid var(--green);
  border-radius: 0 10px 10px 0;
  color: var(--navy);
  font-style: italic;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  display: block;
  overflow-x: auto;
}

article th,
article td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: left;
}

article th { background: var(--navy); color: var(--white); }

/* Transition paragraph */
.transition {
  margin-top: 40px;
  padding: 34px 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  border-left: 8px solid var(--green);
  overflow-wrap: break-word;
}

.transition p { margin: 0 0 1em; color: var(--white); font-size: 16px; }
.transition p:last-child { margin-bottom: 0; }
.transition a { color: var(--lime); font-weight: 700; }
.transition a:hover { color: var(--white); }

/* Links block */
.links-block {
  margin-top: 40px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 36px 40px;
  overflow: hidden;
}

.links-block h3 {
  margin: 28px 0 14px;
  padding-bottom: 8px;
  font-size: 22px;
  color: var(--navy);
  border-bottom: 2px solid var(--green);
}

.links-block h3:first-child { margin-top: 0; }

.links-block ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 40px;
}

.links-block li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.links-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.links-block a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.links-block a:hover { color: var(--green); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 34px 20px;
  border-top: 6px solid var(--lime);
}

.site-footer p { margin: 0; font-size: 14px; color: var(--white); }
.site-footer strong { color: var(--lime); font-weight: 700; }

/* Responsive */
@media (max-width: 968px) {
  .hero h1 { font-size: 32px; }
  article { padding: 36px 32px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .site-header { border-bottom-width: 4px; padding: 20px 16px; }
  .site-brand { font-size: 24px; }
  .hero { padding: 46px 16px 54px; }
  .hero h1 { font-size: 26px; line-height: 1.3; }
  main { padding: 30px 0 40px; }
  article { padding: 26px 20px; border-radius: 10px; }
  article h2 { font-size: 24px; }
  article h3 { font-size: 20px; }
  .transition { padding: 24px 20px; border-left-width: 5px; }
  .links-block { padding: 24px 20px; }
  .links-block ul { column-count: 1; }
  .links-block h3 { font-size: 19px; }
}
