:root {
  --green: #6f7f42;
  --green-deep: #315f22;
  --green-soft: #edf5df;
  --plum: #5c0b6f;
  --plum-deep: #210824;
  --ink: #182018;
  --muted: #687063;
  --line: #d7dfcb;
  --paper: #fffdf8;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(40, 55, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(111, 127, 66, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 700;
  color: var(--green-deep);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: #3e4937;
  font-size: 15px;
}

.nav-links a,
.footer-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--green-deep);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(111, 127, 66, 0.22);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(88vh - 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: 52% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 24, 15, 0.78), rgba(22, 33, 16, 0.48) 44%, rgba(16, 24, 15, 0.18)),
    linear-gradient(0deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 116px);
  padding: 56px 0 96px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dbeec1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 32px;
  font-size: clamp(18px, 2.1vw, 25px);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--green-deep);
  box-shadow: 0 14px 28px rgba(49, 95, 34, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.section {
  padding: clamp(56px, 8vw, 106px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
}

.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.35fr);
  gap: 28px;
  width: min(1160px, 100%);
  margin: 0 auto;
  align-items: start;
}

.about-copy {
  padding: 28px 0;
  color: #3b4536;
  font-size: 18px;
}

.about-copy p {
  margin: 0 0 18px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.values article,
.contact-card,
.message-form,
.job-panel {
  background: var(--white);
  border: 1px solid rgba(111, 127, 66, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.values article {
  min-height: 220px;
  padding: 24px;
}

.values span {
  display: block;
  margin-bottom: 36px;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.values h3,
.course-copy h3,
.job-panel h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.25;
}

.values p,
.course-copy p,
.job-panel p,
.contact-card p,
.form-note {
  margin: 0;
  color: var(--muted);
}

.courses-section {
  background: #f1f6e9;
}

.course {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 5vw, 58px);
  width: min(1180px, 100%);
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(111, 127, 66, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course:last-child {
  margin-bottom: 0;
}

.course-copy {
  align-self: center;
}

.course-label,
.job-tag {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 800;
}

.course-copy h3 {
  color: var(--green-deep);
}

.course-copy > p {
  margin-bottom: 18px;
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #33402f;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.course-gallery {
  display: grid;
  gap: 14px;
}

.feature-image,
.thumb-row img,
.image-strip img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(24, 32, 24, 0.13);
}

.feature-image {
  aspect-ratio: 1 / 1;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.thumb-row img {
  aspect-ratio: 4 / 5;
  object-position: top center;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--paper);
  align-items: start;
}

.image-strip img {
  aspect-ratio: 3 / 4;
  object-position: top center;
}

.jobs-section {
  background: #f8f3fb;
}

.job-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}

.salary {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 130px;
  color: var(--white);
  background: var(--plum);
  border-radius: 8px;
}

.salary span {
  font-size: 15px;
}

.salary strong {
  font-size: 32px;
  line-height: 1;
}

.contact-section {
  background: #eef5e6;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 20px;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.contact-card,
.message-form {
  padding: clamp(22px, 4vw, 36px);
}

.big-phone {
  display: inline-block;
  margin-top: 22px;
  color: var(--green-deep);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.message-form {
  display: grid;
  gap: 16px;
}

.message-form label {
  display: grid;
  gap: 7px;
  color: #35402f;
  font-weight: 800;
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfff5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.message-form textarea {
  resize: vertical;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  outline: 3px solid rgba(111, 127, 66, 0.22);
  border-color: var(--green);
}

.form-note {
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #dfe8d7;
  background: #182018;
}

.site-footer p {
  margin: 6px 0 0;
  color: #aebba7;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  color: #edf5df;
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .about-grid,
  .course,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values,
  .image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    gap: 12px;
  }

  .brand span {
    max-width: 220px;
    white-space: normal;
    line-height: 1.25;
  }

  .phone-link {
    width: 100%;
  }

  .hero {
    min-height: 78vh;
  }

  .hero picture img {
    object-position: 44% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 24, 15, 0.82), rgba(22, 33, 16, 0.52)),
      linear-gradient(0deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0) 20%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 50px 0 86px;
  }

  .hero-actions .button,
  .message-form .button {
    width: 100%;
  }

  .values,
  .image-strip,
  .thumb-row {
    grid-template-columns: 1fr;
  }

  .values article {
    min-height: auto;
  }

  .course {
    padding: 16px;
  }

  .job-panel,
  .site-footer {
    display: grid;
  }

  .salary {
    width: 100%;
    min-height: 104px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
