:root {
  --bg: #07111d;
  --bg-soft: #0d1c2d;
  --card: rgba(11, 31, 50, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef4fb;
  --muted: #b8c7d8;
  --blue: #0a67c7;
  --blue-strong: #094d95;
  --green: #1fb44a;
  --yellow: #f4d20f;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 180, 74, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(10, 103, 199, 0.20), transparent 26%),
    linear-gradient(180deg, #05101b 0%, #091522 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(4, 12, 22, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand img { width: 190px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
}

.site-nav a:hover { color: var(--yellow); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 11, 21, 0.92) 0%, rgba(5, 11, 21, 0.80) 34%, rgba(5, 11, 21, 0.40) 100%),
    url('../images/hero-instrutor.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0 96px;
}

.hero-text { max-width: 720px; }

.eyebrow,
.section-tag,
.mini-tag,
.material-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow,
.section-tag {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--yellow);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.mini-tag {
  padding: 7px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: rgba(31, 180, 74, 0.12);
  border: 1px solid rgba(31, 180, 74, 0.22);
  color: #8ff0af;
  margin-bottom: 14px;
}

.material-badge {
  padding: 7px 12px;
  font-size: 0.76rem;
  background: rgba(10, 103, 199, 0.16);
  border: 1px solid rgba(10, 103, 199, 0.26);
  color: #9ccfff;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.hero p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.hero-stat {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.section { padding: 90px 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.align-start { align-items: start; }

.section h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section h3,
.card h3,
.card h4 {
  margin-top: 0;
  color: var(--white);
}

.section p,
.card p,
.card li {
  color: var(--muted);
  line-height: 1.75;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card,
.formation-image { overflow: hidden; }

.image-card img,
.formation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card img { min-height: 100%; }

.program-grid,
.materials-grid,
.workshop-grid {
  display: grid;
  gap: 22px;
}

.program-grid { grid-template-columns: repeat(3, 1fr); }

.program-card,
.material-card,
.workshop-card,
.note-box,
.form-card,
.feature-panel {
  padding: 28px;
}

.card-number {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: var(--white);
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(10, 103, 199, 0.28);
}

.formation-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.formation-image {
  min-height: 560px;
  max-height: 760px;
}

.formation-content {
  display: grid;
  gap: 22px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li + li { margin-top: 10px; }

.check-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--yellow);
  font-weight: 800;
}

.library-group + .library-group { margin-top: 40px; }

.group-head {
  margin-bottom: 18px;
}

.group-head h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.materials-grid {
  grid-template-columns: repeat(3, 1fr);
}

.material-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.material-card h4 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.material-card p {
  flex: 1;
  margin-top: 0;
  margin-bottom: 18px;
}

.support-grid {
  grid-template-columns: repeat(2, 1fr);
}

.support-card {
  min-height: 100%;
}

.workshop-grid {
  grid-template-columns: repeat(2, 1fr);
}

.highlight-card {
  background: linear-gradient(145deg, rgba(10, 103, 199, 0.30), rgba(31, 180, 74, 0.16));
}

.note-box ol {
  padding-left: 20px;
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label { font-weight: 600; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.form-row select {
  color: var(--text);
}

.form-row select option {
  color: #07111d;
  background: #ffffff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(244, 210, 15, 0.9);
  box-shadow: 0 0 0 4px rgba(244, 210, 15, 0.12);
}

.form-help {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 700;
  padding: 14px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: var(--white);
  box-shadow: 0 14px 32px rgba(10, 103, 199, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn-small { padding: 12px 16px; }
.btn-full { width: 100%; }

.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 24px;
  align-items: start;
}

.footer-logo { width: 170px; }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li { margin-top: 10px; }

.site-footer p,
.site-footer a {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero-stats,
  .program-grid,
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid,
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .grid-2,
  .formation-layout,
  .footer-wrap,
  .hero-stats,
  .program-grid,
  .materials-grid,
  .support-grid,
  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .formation-image {
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    width: min(300px, calc(100% - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 17, 29, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child { border-bottom: 0; }

  .hero {
    min-height: 78vh;
    background-position: 64% center;
  }

  .hero-content { padding: 96px 0 82px; }

  .section { padding: 74px 0; }
}

@media (max-width: 560px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }

  .btn { width: 100%; }

  .brand img { width: 150px; }

  .program-card,
  .material-card,
  .workshop-card,
  .note-box,
  .form-card,
  .feature-panel {
    padding: 22px;
  }
}
