@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --green: #58cc02;
  --green-dark: #378700;
  --green-deep: #2b7100;
  --green-soft: #e9ffd9;
  --ink: #3c3c3c;
  --muted: #676767;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-raised: #ffffff;
  --page: #ffffff;
  --focus: #1cb0f6;
  --shadow-green: #3d9700;
  --shadow-soft: rgba(64, 128, 24, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 6.3vw, 5.8rem); font-weight: 900; }
h2 { margin-bottom: 20px; font-size: clamp(2.35rem, 4.5vw, 4.25rem); font-weight: 900; }
h3 { margin-bottom: 12px; font-size: 1.5rem; font-weight: 900; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 13px; }
.brand span {
  color: var(--green);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 800; transition: color 160ms ease; }
.desktop-nav a:hover { color: var(--green-dark); }
.menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  box-shadow: 0 5px 0 var(--shadow-green);
  color: #183900;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  padding: 0 24px;
  text-align: center;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  white-space: nowrap;
}

.button:hover { filter: brightness(1.03); transform: translateY(-1px); }
.button:active { box-shadow: 0 2px 0 var(--shadow-green); transform: translateY(3px); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--focus) 42%, transparent);
  outline-offset: 3px;
}

.button-small { min-height: 42px; padding-inline: 18px; font-size: 0.9rem; }
.button-large { min-height: 56px; padding-inline: 28px; }
.button-full { width: 100%; }
.button-light { background: #fff; box-shadow: 0 5px 0 rgba(51, 117, 0, 0.55); color: var(--green-deep); }
.button-light:active { box-shadow: 0 2px 0 rgba(51, 117, 0, 0.55); }
.button-ghost {
  border: 2px solid rgba(23, 53, 0, 0.48);
  background: transparent;
  box-shadow: 0 5px 0 rgba(48, 112, 0, 0.52);
  color: #173500;
}

.button-ghost:active { box-shadow: 0 2px 0 rgba(48, 112, 0, 0.52); }
.mobile-nav { padding: 12px 24px 24px; border-top: 2px solid var(--line); background: var(--surface); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--muted); font-weight: 800; }
.mobile-nav .button { width: 100%; margin-top: 10px; }

.hero {
  display: flex;
  min-height: calc(100dvh - 76px);
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: #173500;
  padding: 60px 0 72px;
}

.hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: clamp(42px, 7vw, 92px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin-bottom: 16px;
  color: #173500;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--green-dark); }
.hero h1 { max-width: 620px; margin-bottom: 22px; }
.hero-lead { max-width: 520px; margin-bottom: 32px; font-size: 1.25rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; min-width: 0; padding: 10px 16px 30px 0; }
.hero-photo-wrap {
  overflow: hidden;
  aspect-ratio: 1.08;
  border: 8px solid rgba(255, 255, 255, 0.95);
  border-radius: 36% 22% 30% 24% / 26% 32% 22% 36%;
  box-shadow: 0 18px 0 rgba(51, 117, 0, 0.48);
  transform: rotate(1.5deg);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }

.floating-card {
  position: absolute;
  display: flex;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(61, 61, 61, 0.18);
  color: var(--ink);
}
.floating-card-code { right: -4px; bottom: 0; align-items: center; gap: 12px; padding: 14px 16px; }
.floating-card-code div { display: grid; }
.floating-card-code strong { font-size: 1rem; }
.floating-card-code span { color: var(--muted); font-size: 0.78rem; }
.floating-card-code b { color: var(--green-dark); font-size: 0.84rem; }
.floating-card-streak { top: -12px; left: -24px; display: grid; padding: 13px 18px; transform: rotate(-4deg); }
.floating-card-streak strong { color: var(--green-dark); font-size: 1.1rem; }
.floating-card-streak span { color: var(--muted); font-size: 0.78rem; }

.toolbelt { border-bottom: 2px solid var(--line); background: var(--surface); padding: 28px 0; }
.toolbelt .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.toolbelt p { margin: 0; color: var(--muted); font-weight: 900; }
.logo-row { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 3vw, 36px); }
.logo-row img { width: 38px; height: 38px; object-fit: contain; filter: saturate(0.9); transition: transform 160ms ease; }
.logo-row img:hover { transform: translateY(-3px) rotate(-3deg); }

.section-heading { display: flex; flex-direction: column; max-width: 780px; margin-bottom: 54px; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.section-heading.compact { max-width: 680px; }

.courses { background: var(--page); }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.course-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--surface-raised);
  box-shadow: 0 7px 0 var(--line);
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.course-card:hover { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); box-shadow: 0 9px 0 var(--line); transform: translateY(-2px); }
.course-card-featured { grid-column: span 2; display: grid; grid-template-columns: auto 1fr auto; min-height: auto; align-items: center; gap: 24px; }
.course-icon { display: grid; width: 74px; height: 74px; place-items: center; flex-shrink: 0; border-radius: 22px; background: var(--surface-soft); }
.course-meta { margin: 18px 0 6px; color: var(--green-dark); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.course-card-featured .course-meta { margin-top: 0; }
.course-card h3 { font-size: 1.85rem; }
.course-card p:not(.course-meta) { max-width: 48ch; color: var(--muted); }
.course-link { margin-top: auto; border: 0; background: none; color: var(--green-deep); cursor: pointer; font-weight: 900; padding: 10px 0 4px; }
.course-link span { display: inline-block; margin-left: 6px; transition: transform 160ms ease; }
.course-link:hover span { transform: translateX(5px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tag-list li { border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 0.82rem; font-weight: 800; padding: 7px 10px; }

.learning { background: var(--surface-soft); }
.benefit-grid { display: grid; grid-template-columns: 1.15fr 0.85fr 0.85fr; grid-template-rows: 245px 245px; gap: 22px; }
.benefit-photo { position: relative; grid-row: span 2; overflow: hidden; border-radius: 28px; background: var(--ink); }
.benefit-photo img { width: 100%; height: 100%; object-fit: cover; }
.benefit-photo::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(21, 31, 17, 0.88)); }
.photo-copy { position: absolute; right: 28px; bottom: 24px; left: 28px; z-index: 1; color: #fff; }
.photo-copy h3 { font-size: 2rem; }
.photo-copy p { max-width: 38ch; margin: 0; }
.benefit-card { display: flex; flex-direction: column; justify-content: flex-end; border: 2px solid var(--line); border-radius: 28px; background: var(--surface-raised); padding: 26px; }
.benefit-card strong { color: var(--green); font-size: 4.6rem; font-weight: 900; letter-spacing: -0.08em; line-height: 0.8; }
.benefit-card h3 { margin-top: 18px; }
.benefit-card p { margin-bottom: 0; color: var(--muted); }
.benefit-green { border-color: var(--green); background: var(--green); color: #1d4300; }
.benefit-green strong { color: #173500; }
.benefit-green p { color: #234d00; }
.benefit-word { color: var(--green-dark); font-size: 1.1rem; font-weight: 900; }
.benefit-wide { grid-column: span 2; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; }
.benefit-wide p { max-width: 40ch; }

.path-section { overflow: hidden; background: var(--page); }
.path-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 90px; }
.path-heading { position: sticky; top: 124px; }
.path-heading > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: 1.1rem; }
.path-heading .button { margin-top: 12px; }
.learning-path { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.learning-path::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 34px; width: 5px; border-radius: 5px; background: var(--green-soft); }
.learning-path li { position: relative; min-height: 132px; border: 2px solid var(--line); border-radius: 28px; background: var(--surface-raised); box-shadow: 0 6px 0 var(--line); padding: 26px 28px 26px 96px; }
.learning-path li::before { content: ""; position: absolute; top: 28px; left: 24px; z-index: 1; width: 23px; height: 23px; border: 8px solid var(--surface-raised); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green); }
.learning-path span { font-size: 1.55rem; font-weight: 900; }
.learning-path p { margin: 7px 0 0; color: var(--muted); }

.mentor { border-block: 2px solid var(--line); background: var(--surface-soft); }
.mentor-grid { display: grid; grid-template-columns: 1.03fr 0.97fr; align-items: center; gap: clamp(44px, 7vw, 86px); }
.mentor-image { overflow: hidden; aspect-ratio: 1.05; border: 7px solid var(--surface-raised); border-radius: 30% 22% 34% 24% / 28% 34% 22% 32%; box-shadow: 0 14px 0 var(--line-strong); transform: rotate(-1.5deg); }
.mentor-image img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.mentor-copy > p { max-width: 55ch; color: var(--muted); font-size: 1.1rem; }
.mentor-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0 34px; }
.mentor-facts div { display: grid; gap: 2px; }
.mentor-facts strong { color: var(--green-dark); font-size: 2rem; font-weight: 900; }
.mentor-facts span { color: var(--muted); font-size: 0.9rem; }

.faq { background: var(--page); }
.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: start; gap: 90px; }
.faq-heading { position: sticky; top: 124px; }
.faq-heading p { color: var(--muted); }
.faq-list { display: grid; }
.faq-list details { border-bottom: 2px solid var(--line); padding: 24px 0; }
.faq-list details:first-child { border-top: 2px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 1.18rem; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; width: 34px; height: 34px; place-items: center; flex-shrink: 0; border: 2px solid var(--line); border-radius: 12px; color: var(--green-dark); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 64ch; margin: 16px 56px 0 0; color: var(--muted); }

.final-cta { background: var(--green); color: #173500; }
.final-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(48px, 8vw, 110px); }
.final-copy > p:not(.eyebrow) { max-width: 500px; font-size: 1.15rem; }
.lead-form { display: grid; gap: 18px; border: 2px solid var(--line); border-radius: 28px; background: var(--surface-raised); box-shadow: 0 9px 0 rgba(51, 117, 0, 0.48); color: var(--ink); padding: 30px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 900; }
.field input, .field select {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 15px;
}
.field input::placeholder { color: #777; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--focus); }
.field small { color: var(--muted); font-size: 0.78rem; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.83rem; cursor: pointer; }
.consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }
.form-status { min-height: 24px; color: var(--green-deep); font-weight: 900; text-align: center; }
.form-status.is-success { border-radius: 14px; background: var(--green-soft); padding: 12px; }

.site-footer { border-top: 2px solid var(--line); background: var(--surface-soft); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer-inner p { margin: 0; color: var(--muted); }
.footer-inner p:last-child { margin-left: auto; }

.lead-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 0;
  border-radius: 28px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(22, 42, 10, 0.3);
  padding: 30px;
}
.lead-dialog::backdrop { background: rgba(27, 45, 17, 0.68); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin-bottom: 0; font-size: 2.35rem; }
.dialog-head .eyebrow { margin-bottom: 8px; }
.dialog-close { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 0.82rem; font-weight: 900; padding: 9px 12px; }
.dialog-intro { max-width: 48ch; color: var(--muted); }
.dialog-form { border: 0; box-shadow: none; padding: 8px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 620ms cubic-bezier(.16,1,.3,1), transform 620ms cubic-bezier(.16,1,.3,1); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f4ef;
    --muted: #b8c0b5;
    --line: #354034;
    --line-strong: #4a5748;
    --surface: #171d16;
    --surface-soft: #111610;
    --surface-raised: #1d241c;
    --page: #171d16;
    --green-soft: #263d1a;
    --shadow-soft: rgba(0, 0, 0, 0.28);
    --green-dark: #72e52b;
    --green-deep: #89e64a;
    color-scheme: dark;
  }
  .site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
  .hero, .final-cta { color: #173500; }
  .button { color: #173500; }
  .button-light { background: #f8fbf6; color: #2b7100; }
  .button-ghost { color: #173500; }
  .floating-card { border-color: #d9e2d6; background: #f8fbf6; color: #3c3c3c; }
  .floating-card-code span, .floating-card-streak span { color: #676767; }
  .floating-card-code b, .floating-card-streak strong { color: #2b7100; }
  .field input::placeholder { color: #aeb6ac; }
  .benefit-green { color: #173500; }
  .benefit-green p { color: #244e02; }
}

@media (max-width: 1020px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 0.88rem; }
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 34px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px auto auto; }
  .benefit-photo { grid-column: span 2; grid-row: auto; }
  .benefit-wide { grid-column: span 2; }
  .path-layout, .faq-layout { gap: 54px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 680px); }
  .section { padding: 82px 0; }
  .header-inner { height: 70px; gap: 14px; }
  .desktop-nav, .header-inner > .button { display: none; }
  .menu-button { display: inline-flex; min-height: 40px; align-items: center; margin-left: auto; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 900; padding: 0 14px; }
  .hero { min-height: auto; padding: 50px 0 74px; }
  .hero-grid, .mentor-grid, .final-grid, .path-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  .hero-visual { width: min(100%, 620px); margin-inline: auto; }
  .hero-photo-wrap { aspect-ratio: 1.18; }
  .toolbelt .container { flex-direction: column; align-items: flex-start; }
  .logo-row { width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 4px; }
  .course-card-featured { grid-template-columns: auto 1fr; }
  .course-card-featured .course-link { grid-column: span 2; }
  .path-heading, .faq-heading { position: static; }
  .mentor-grid { gap: 64px; }
  .mentor-image { width: min(100%, 580px); }
  .final-grid { gap: 48px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 68px 0; }
  .brand span { font-size: 1.6rem; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: calc(100dvh - 70px); padding: 28px 0 38px; }
  .hero-grid { gap: 28px; }
  .hero .eyebrow { margin-bottom: 10px; font-size: 0.72rem; }
  .hero h1 { margin-bottom: 16px; font-size: clamp(2.65rem, 13vw, 3.4rem); }
  .hero-lead { margin-bottom: 22px; font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button-ghost { display: none; }
  .hero-visual { padding-bottom: 16px; }
  .hero-photo-wrap { aspect-ratio: 1.55; border-width: 5px; box-shadow: 0 12px 0 rgba(51, 117, 0, 0.48); }
  .floating-card-code { right: 0; max-width: 250px; padding: 10px 12px; }
  .floating-card-code b { display: none; }
  .floating-card-streak { top: -18px; left: -3px; }
  .toolbelt { padding: 24px 0; }
  .logo-row { gap: 24px; justify-content: flex-start; }
  .logo-row img { width: 34px; height: 34px; flex: 0 0 auto; }
  .section-heading { margin-bottom: 38px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card, .course-card-featured { grid-column: auto; display: flex; min-height: 310px; padding: 24px; }
  .course-card-featured .course-link { grid-column: auto; }
  .benefit-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .benefit-photo, .benefit-wide { grid-column: auto; }
  .benefit-photo { min-height: 380px; }
  .benefit-card { min-height: 230px; }
  .benefit-wide { flex-direction: column; align-items: flex-start; }
  .learning-path::before { left: 28px; }
  .learning-path li { min-height: 120px; padding: 24px 20px 24px 78px; }
  .learning-path li::before { left: 18px; }
  .mentor-facts { gap: 12px; }
  .mentor-copy .button { width: 100%; }
  .faq-list summary { font-size: 1.05rem; }
  .lead-form { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner p:last-child { margin-left: 0; }
  .lead-dialog { border-radius: 22px; padding: 22px; }
  .dialog-head h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
