@import url("assets/fonts.css");

:root {
  color-scheme: light;
  --night: #131711;
  --ink: #1d231a;
  --pine: #20271d;
  --leaf: #d3ef82;
  --leaf-hover: #e2ffa0;
  --paper: #f3f4ed;
  --white: #fafbf4;
  --muted: #555e50;
  --line: #d4d8cb;
  --heading: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6b8d26; outline-offset: 4px; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 8px 14px; background: var(--leaf); }

.wrap { width: min(100% - 96px, 1280px); margin-inline: auto; }
.site-header { color: var(--white); background: var(--night); border-bottom: 1px solid #fafbf423; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.brand strong { display: block; font: 700 1.65rem/1 var(--heading); letter-spacing: .15em; }
.brand small { display: block; margin-top: 6px; color: #b6c0b1; font-size: .75rem; white-space: nowrap; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #d3ef826e;
  color: var(--leaf);
}
.brand-mark::before {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, transparent 0 25%, currentColor 26%);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  content: "";
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px clamp(14px, 2.4vw, 36px); }
.site-nav a, .footer-nav a { color: #e0e5da; font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .footer-nav a:hover { color: var(--leaf); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: inherit;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s;
}
.button--accent { background: var(--leaf); color: var(--night); }
.button--accent:hover, .chat-launcher:hover { background: var(--leaf-hover); }
.button--outline { color: var(--white); background: #11170f2a; border-color: #e3e7d999; }
.button--outline:hover { background: #2b3823; border-color: var(--leaf); }
.header-contact { min-height: 42px; padding-inline: 21px; border-color: #d3ef8280; color: var(--leaf); font-size: .875rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #222b20 url("assets/hero.webp") 50% 43% / cover no-repeat;
  color: var(--white);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #121810f5 0%, #131810da 28%, #11171068 58%, #1318100d 90%),
              linear-gradient(0deg, #141910c8 0%, transparent 36%);
  content: "";
}
.hero-content { min-height: clamp(540px, 46vw, 665px); padding-block: 64px; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #476027;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow span { flex: 0 0 23px; height: 2px; background: currentColor; }
.hero-label { color: var(--leaf); }
.hero h1, .paper-section h2, .format h2 {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 { margin-top: 17px; font-size: clamp(3.125rem, 6.2vw, 6.4rem); line-height: 1; text-wrap: initial; }
.hero h1 em { color: var(--leaf); font-style: normal; }
.hero-copy { max-width: 470px; margin-top: 24px; color: #e2e8dd; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.65; }
.hero-pay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 8px;
  width: min(100%, 500px);
  margin-top: 20px;
}
.hero-pay > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 10px clamp(8px, 1.3vw, 16px); border: 1px solid #d3ef8273; border-radius: 5px; background: #161d14e8; }
.hero-pay dt { color: #e2e8dd; font-size: .875rem; }
.hero-pay dd { color: var(--leaf); font: 600 clamp(1.25rem, 3.2vw, 2.2rem)/1.13 var(--heading); }
.hero-pay-note { max-width: 500px; margin-top: 7px; color: #e2e8dd; font-size: .875rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .button { min-height: 54px; padding-inline: 22px; }
.hero-role-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--white); font-weight: 750; text-underline-offset: .24em; }
.hero-role-link:hover { color: var(--leaf); }

.facts { color: var(--white); background: #1d251b; border-top: 1px solid #d3ef8240; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { display: flex; align-items: center; gap: 15px; padding: 23px 24px; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid #edf2e127; }
.fact strong { display: block; font-weight: 800; }
.fact p { margin-top: 2px; color: #b6c0b1; font-size: .875rem; line-height: 1.4; }
.fact-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  color: var(--leaf);
  border: 1px solid #d3ef825c;
  border-radius: 3px;
  background: #bceb5b0d;
}
.fact-icon::before, .fact-icon::after { content: ""; }
.fact-icon--compass::before { width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; }
.fact-icon--compass::after { position: absolute; width: 8px; height: 13px; background: currentColor; clip-path: polygon(100% 0, 68% 66%, 0 100%, 32% 34%); }
.fact-icon--outdoor::before { height: 19px; width: 25px; background: currentColor; clip-path: polygon(0 90%, 37% 27%, 53% 52%, 70% 13%, 100% 90%, 92% 90%, 70% 30%, 54% 70%, 37% 43%, 8% 90%); }
.fact-icon--start::before { width: 19px; height: 17px; border: 1px solid currentColor; border-radius: 2px; }
.fact-icon--start::after { position: absolute; width: 9px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

.paper-section { padding-block: clamp(58px, 7vw, 105px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.paper-section h2, .format h2 { margin-top: 10px; font-size: clamp(2.5rem, 5vw, 4.65rem); line-height: 1.06; }
.section-head > p { width: min(100%, 345px); padding-bottom: 2px; color: var(--muted); line-height: 1.55; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.course { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.course-photo { aspect-ratio: 1.52; height: auto; object-fit: cover; background: #344135; }
.course-content { flex: 1; display: flex; flex-direction: column; align-items: start; gap: 11px; padding: 19px; }
.course h3 { font: 600 clamp(1.38rem, 2.15vw, 1.85rem)/1.14 var(--heading); }
.course-content p { flex: 1; color: var(--muted); line-height: 1.55; }
.button--card { min-height: 42px; margin-top: 5px; background: #e8eedb; color: #2d4220; border-color: #dce5d2; }
.button--card:hover { background: #d8eabd; border-color: #b7ce98; }
.related-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.related-roles strong { color: var(--ink); }
.related-roles .button { margin: 0; }

.format {
  padding-block: clamp(62px, 7vw, 100px);
  color: var(--white);
  background: linear-gradient(120deg, #202a1d, #121711 90%);
}
.format-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 65px; align-items: center; }
.format h2 { text-wrap: initial; }
.format-intro { max-width: 400px; margin-block: 17px 25px; color: #ced7c8; }
.format-list > div { position: relative; padding: 18px 0 18px 27px; border-top: 1px solid #edf2e13d; }
.format-list > div:last-child { border-bottom: 1px solid #edf2e13d; }
.format-list > div::before { position: absolute; left: 3px; top: 27px; width: 7px; height: 7px; background: var(--leaf); transform: rotate(45deg); content: ""; }
.format-list dt { color: var(--white); font-size: 1.15rem; font-weight: 800; }
.format-list dd { margin-top: 3px; color: #ced7c8; }

.contracts { border-bottom: 1px solid var(--line); }
.contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contract-card { display: grid; align-content: start; gap: 14px; padding: clamp(18px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.contract-card h3 { font: 600 clamp(1.38rem, 2.4vw, 2rem)/1.2 var(--heading); }
.contract-card p { color: var(--muted); }
.contract-sources { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.contract-sources a { color: #476027; font-size: .875rem; font-weight: 750; text-underline-offset: .17em; }

.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 45px; }
.faq .button { margin-top: 24px; }
.faq-list { border-top: 1px solid #bfc6b7; }
.faq-list details { border-bottom: 1px solid #bfc6b7; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: #466129; font-size: 1.55rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 30px 18px 0; color: var(--muted); }
.site-footer { padding-block: 30px; color: #c1ccbb; background: var(--night); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner .brand { color: var(--white); }
.footer-inner > p { font-size: .875rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-right: 110px; }

.lead-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 70px #080d07a3;
}
.lead-dialog::backdrop { background: #10170dc4; }
.lead-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-head h2 { font: 650 clamp(1.7rem, 5vw, 2.4rem)/1.1 var(--heading); }
.lead-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 5px; background: #e8eedb; color: var(--ink); font-size: 1.65rem; line-height: 1; }
.lead-close:hover { background: #d8eabd; }
.lead-form { display: grid; gap: 13px; margin-top: 13px; }
.lead-intro, .lead-note, .lead-result p { color: var(--muted); line-height: 1.45; }
.lead-field { display: grid; gap: 4px; font-size: .9375rem; font-weight: 800; }
.lead-optional { color: var(--muted); font-weight: 500; }
.lead-field input { width: 100%; min-height: 46px; padding: 8px 11px; border: 1px solid #9fa998; border-radius: 5px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 600; }
.lead-note { font-size: .875rem; }
.lead-status { color: #4a592c; font-size: .9rem; }
.lead-status:empty { display: none; }
.lead-form .button:disabled { cursor: wait; opacity: .7; }
.lead-result { display: grid; gap: 12px; margin-top: 14px; }
.lead-result h3 { font: 600 1.55rem/1.2 var(--heading); }

.chat-icon { position: relative; display: inline-block; flex: 0 0 17px; width: 17px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px; }
.chat-icon::after { position: absolute; bottom: -3px; left: 3px; width: 4px; height: 4px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: skewY(-32deg); content: ""; }
.chat-launcher {
  position: fixed;
  z-index: 5;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 16px;
  border: 1px solid #a7c360;
  border-radius: 7px;
  background: var(--leaf);
  color: var(--night);
  box-shadow: 0 5px 22px #151b1436;
  font-weight: 800;
}
.chat-launcher.widget-launcher { right: auto; left: max(12px, env(safe-area-inset-left)); }
.widget-status { position: fixed; z-index: 7; left: max(12px, env(safe-area-inset-left)); bottom: max(82px, calc(env(safe-area-inset-bottom) + 60px)); width: min(320px, calc(100vw - 24px)); }
.widget-status:not(:empty) { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font-size: .875rem; box-shadow: 0 3px 14px #151b142b; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-photo { aspect-ratio: 1.75; }
  .brand small { display: none; }
  .hero-content { min-height: 530px; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-top: 10px; }
  .header-contact { grid-column: 2; grid-row: 1; padding-inline: 10px; white-space: nowrap; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; flex-wrap: nowrap; gap: 16px; overflow-x: auto; margin: 4px -4px 0; padding-inline: 4px; scrollbar-width: thin; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-nav a:focus-visible { outline-offset: -2px; }
  .hero { background-position: 64% center; }
  .hero::before { background: linear-gradient(90deg, #121810e8, #1218103b), linear-gradient(0deg, #121810e8, transparent 70%); }
  .hero-content { min-height: 0; padding-block: 42px 25px; }
  .hero h1 { font-size: clamp(2.45rem, 8.5vw, 4.15rem); }
  .hero-copy { margin-top: 17px; }
  .hero-pay { margin-top: 16px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 500px); margin-top: 18px; }
  .hero-actions .button { min-height: 48px; padding-inline: 8px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 11px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid #edf2e127; }
  .fact-icon { flex-basis: 36px; height: 36px; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; margin-bottom: 22px; }
  .section-head > p { width: auto; }
  .format-grid, .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .contract-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .footer-nav { margin-right: 0; }
  .site-footer { padding-bottom: 88px; }
  .chat-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .lead-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }
}

@media (max-width: 470px) {
  .hero-pay dd { font-size: clamp(1.05rem, 5.3vw, 1.3rem); }
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-photo { aspect-ratio: 1.7; }
  .eyebrow { letter-spacing: .055em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
