:root {
  --green: #0f7a3a;
  --green-dark: #0a5a2a;
  --green-soft: #e8f6ee;
  --yellow: #f0c400;
  --yellow-dark: #d4a800;
  --black: #101412;
  --ink: #1a221c;
  --muted: #5a6b60;
  --line: #d5e0d8;
  --bg: #f4faf6;
  --white: #ffffff;
  --danger: #c0392b;
  --shadow: 0 18px 50px rgba(16, 20, 18, 0.12);
  --radius: 18px;
  --font: "Onest", "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", sans-serif;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 196, 0, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 122, 58, 0.14), transparent 50%),
    linear-gradient(180deg, #f7fcf8 0%, var(--bg) 40%, #eef6f1 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar,
.topbar-inner,
.brand-mark {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: #fff;
  border-bottom: 1px solid rgba(15, 122, 58, 0.12);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  position: relative;
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.85rem;
}

.mobile-menu-contacts {
  display: none;
}

.header-phone {
  color: var(--green-dark) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.header-phone::after {
  display: none !important;
}

.header-phone:hover {
  color: var(--green) !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(15, 122, 58, 0.35);
}

.logo-text strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem 0.95rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  font-weight: 560;
  font-size: 0.9rem;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black) !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(240, 196, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(240, 196, 0, 0.45);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(560px, 86vh, 780px);
  display: grid;
  align-items: end;
  background: #0a5a2a;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 28, 16, 0.92) 0%, rgba(8, 28, 16, 0.72) 42%, rgba(8, 28, 16, 0.28) 72%, rgba(8, 28, 16, 0.45) 100%),
    linear-gradient(0deg, rgba(8, 20, 12, 0.55), transparent 42%);
}

.hero::before {
  content: none;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(240, 196, 0, 0.16);
  border: 1px solid rgba(240, 196, 0, 0.45);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s 0.08s ease both;
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  animation: fadeUp 0.8s 0.16s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: fadeUp 0.8s 0.24s ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.2rem;
  max-width: 720px;
  animation: fadeUp 0.8s 0.32s ease both;
}

.hero-stats div {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(240, 196, 0, 0.28);
}

.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--yellow);
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(240, 196, 0, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 190px;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(16, 20, 18, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 122, 58, 0.45);
  box-shadow: var(--shadow);
}

.course-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  background: linear-gradient(145deg, var(--yellow), #ffe56a);
}

.course-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.course-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.course-price {
  margin-top: auto;
  font-weight: 800;
  color: var(--green-dark);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 122, 58, 0.06), rgba(240, 196, 0, 0.08));
  border-block: 1px solid rgba(15, 122, 58, 0.1);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--green-dark), var(--green) 55%, #0d3d22);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
}

.btn-ghost.dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.photo-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
}

.photo-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0;
}

.photo-split-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.photo-split-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
  min-height: 360px;
}

.photo-mosaic figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.photo-mosaic figure:first-child {
  grid-row: 1 / span 2;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 170px;
  transition: transform 0.6s ease;
}

.photo-mosaic figure:hover img {
  transform: scale(1.04);
}

.photo-caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 20, 18, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--green-soft));
  border: 1px solid rgba(15, 122, 58, 0.12);
}

.why-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 0.95rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
  box-shadow: 0 12px 36px rgba(16, 20, 18, 0.05);
}

.page-hero {
  padding: 2.8rem 0 1.2rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.info-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.info-nav a {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 650;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-nav a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose .muted,
.muted {
  color: var(--muted);
}

.doc-slot {
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(15, 122, 58, 0.35);
  background: rgba(15, 122, 58, 0.04);
  font-size: 0.92rem;
}

.doc-slot strong {
  color: var(--green-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 122, 58, 0.15);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hint {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.check input {
  width: auto;
  margin-top: 0.25rem;
}

.form-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fff8d9;
  border: 1px solid rgba(240, 196, 0, 0.45);
  font-size: 0.9rem;
}

.form-success,
.form-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.form-success {
  background: var(--green-soft);
  border: 1px solid rgba(15, 122, 58, 0.25);
}

.form-error {
  background: #fdecea;
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 2rem;
  background: var(--black);
  color: rgba(255, 255, 255, 0.86);
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-brand {
  font-family: var(--display);
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 520px;
  margin-left: auto;
  padding: 1rem;
  border-radius: 16px;
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  display: none;
}

.cookie.show {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.cookie p {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
}

.cookie .row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .course-grid,
  .why-grid,
  .footer-grid,
  .contact-grid,
  .info-nav,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .photo-split,
  .photo-mosaic {
    grid-template-columns: 1fr;
  }

  .photo-mosaic figure:first-child {
    grid-row: auto;
    min-height: 220px;
  }

  .nav-row {
    flex-wrap: nowrap;
    padding: 0.55rem 0;
    gap: 0.6rem;
  }

  .logo {
    min-width: 0;
    flex: 1;
  }

  .logo-img {
    height: 58px;
    max-width: 100%;
  }

  .mobile-actions {
    display: inline-flex;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }

  .header-phone {
    display: none !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 20, 18, 0.12);
    padding: 0.85rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid #eef3ef;
    font-size: 1rem;
    white-space: normal;
  }

  .nav-links > a::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.55rem;
    text-align: center;
  }

  .mobile-menu-contacts {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: var(--green-soft);
    border: 1px solid rgba(15, 122, 58, 0.14);
  }

  .mobile-menu-contacts a {
    color: var(--green-dark);
    font-weight: 800;
    font-size: 1rem;
  }

  .mobile-menu-contacts span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 2.2rem 0 1.8rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
