:root {
  --ink: #16251e;
  --muted: #5d675f;
  --green: #174c35;
  --green-dark: #0e3022;
  --green-soft: #e5ebe4;
  --line: #cbd1c9;
  --paper: #f5f3ec;
  --white: #fffefb;
  --gold: #bd8d25;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(23, 76, 53, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 26px;
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 236, 0.97);
}

.header-inner,
.site-main,
.site-footer-inner {
  width: min(100% - 40px, 1060px);
  margin: 0 auto;
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 74px;
  height: 90px;
  object-fit: contain;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
}

.brand-name {
  max-width: 260px;
  color: var(--green-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.12rem);
  line-height: 1.35;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  border-bottom-color: var(--gold);
  color: var(--green);
}

.home-main {
  padding: 72px 0 90px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 110px);
  align-items: center;
  min-height: 420px;
}

.home-logo-panel {
  padding: 24px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.home-logo-panel img {
  display: block;
  width: min(100%, 205px);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.home-copy {
  max-width: 670px;
}

.overline {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--green-dark);
  font-family: Georgia, 'Times New Roman', serif;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.home-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.home-rule {
  width: 100%;
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.rules-main {
  padding: 60px 0 90px;
}

.rules-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.rules-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.rules-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: clamp(35px, 7vw, 88px);
  align-items: start;
}

.rules-index {
  position: sticky;
  top: 24px;
  border-top: 3px solid var(--green);
}

.rules-index a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.rules-index a:hover {
  color: var(--gold);
}

.rules-index span {
  display: inline-block;
  width: 31px;
  color: var(--gold);
  font-size: 0.74rem;
}

.rules-content {
  min-width: 0;
}

.rule-section {
  margin: 0 0 64px;
  padding-top: 7px;
  scroll-margin-top: 24px;
}

.rule-section + .rule-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.rule-section h2 {
  margin: 0 0 25px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.rule-section h3 {
  margin: 32px 0 14px;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
}

.rules-content ol {
  margin: 0;
  padding-left: 1.65rem;
}

.rules-content > .rule-section > ol {
  padding-left: 2rem;
}

.rules-content li {
  margin: 0 0 15px;
  padding-left: 0.55rem;
  color: #3f4d44;
  font-size: 1rem;
  line-height: 1.7;
}

.rules-content li::marker {
  color: var(--green);
  font-weight: 700;
}

.rules-content strong {
  color: var(--green-dark);
}

.sub-list {
  margin-top: 10px;
  padding-left: 1.45rem;
  list-style-type: lower-alpha;
}

.sub-list li {
  margin-bottom: 9px;
}

.responsibility-list {
  margin-top: 0 !important;
}

.rule-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.96rem;
  line-height: 1.65;
}

.site-footer {
  border-top: 5px solid var(--green);
  background: var(--green-dark);
  color: #eef2e9;
}

.site-footer-inner {
  padding: 42px 0 22px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: #f5f3ec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-block p {
  margin: 0;
  color: #d4ddd2;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-block a {
  color: #fff5c9;
  text-underline-offset: 3px;
}

.copyright {
  margin: 38px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(238, 242, 233, 0.28);
  color: #b7c3b7;
  font-size: 0.8rem;
  text-align: center;
}

.not-found {
  width: min(100% - 40px, 1060px);
  margin: 100px auto;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 700px) {
  .header-inner,
  .site-main,
  .site-footer-inner {
    width: min(100% - 30px, 1060px);
  }

  .header-inner {
    min-height: 92px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 54px;
    height: 70px;
  }

  .brand-name {
    max-width: 210px;
    font-size: 0.82rem;
  }

  .main-nav {
    gap: 15px;
    font-size: 0.72rem;
  }

  .home-main,
  .rules-main {
    padding: 42px 0 60px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: 0;
  }

  .home-logo-panel {
    width: min(100%, 220px);
    justify-self: center;
    order: 2;
  }

  .home-copy {
    order: 1;
  }

  .home-copy p {
    margin-top: 22px;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .home-rule {
    margin-top: 38px;
  }

  .rules-intro {
    margin-bottom: 35px;
  }

  .rules-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .rules-index {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rules-index a {
    padding-right: 10px;
  }

  .rules-content li {
    font-size: 0.97rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright {
    margin-top: 30px;
    font-size: clamp(0.58rem, 2.5vw, 0.72rem);
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .rules-index,
  .site-footer {
    display: none;
  }

  .site-main,
  .rules-main {
    width: 100%;
    padding: 0;
  }

  .rules-layout {
    display: block;
  }

  .rule-section,
  .rule-section + .rule-section {
    padding-top: 0;
    border-top: 0;
  }
}