:root {
  --orange: #E8500A;
  --orange-light: #FF6B2B;
  --orange-pale: #FFF3EE;
  --blue: #1A6DB5;
  --blue-light: #2E86D4;
  --blue-pale: #EEF5FC;
  --white: #FFFFFF;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B6878;
  --border: #E2E6ED;
  --shadow-orange: rgba(232,80,10,0.15);
  --shadow-blue: rgba(26,109,181,0.12);
  --success: #2E7D32;
  --red: #C0392B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
.header {
  background: var(--white);
  border-bottom: 4px solid var(--orange);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.logo-divider {
  width: 2px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-school {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.logo-course {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-zdz {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-pale);
  border: 1.5px solid rgba(232,80,10,0.25);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0D1F35 0%, #1A3A5C 55%, #1A6DB5 100%);
  padding: 80px 32px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,80,10,0.2) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-glow {
  position: absolute;
  top: -80px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,134,212,0.15) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.school-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.school-bar-dot {
  width: 6px; height: 6px;
  background: var(--orange-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.school-bar span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 .accent {
  color: var(--orange-light);
  display: block;
}

.hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-line {
  width: 64px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 28px 0;
  animation: fadeUp 0.6s 0.25s ease both;
}

/* ── BENEFITS ── */
.benefits {
  background: var(--white);
  padding: 64px 32px;
  border-bottom: 1px solid var(--border);
}

.benefits-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.section-title span { color: var(--orange); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow-orange);
  border-color: rgba(232,80,10,0.2);
}

.benefit-card:hover::after { transform: scaleX(1); }

.benefit-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--orange-pale), #FFE8DC);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  border: 1px solid rgba(232,80,10,0.1);
}

.benefit-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.benefit-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── FORM SECTION ── */
.form-section {
  padding: 72px 32px;
  background: var(--bg);
}

.form-inner {
  max-width: 700px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.07);
  overflow: hidden;
}

.form-card-top {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}

.form-card-top::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.form-card-top::after {
  content: '';
  position: absolute;
  right: 40px; bottom: -60px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.form-card-top h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.form-card-top p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.form-body { padding: 40px; }

.row { display: flex; gap: 16px; }
.row > .field { flex: 1; min-width: 0; }
.field { margin-bottom: 22px; }

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.req { color: var(--orange); }

input, textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}

input::placeholder, textarea::placeholder { color: #B0AABA; }

input:focus, textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,109,181,0.1);
}

input.valid { border-color: var(--success); background: #F1F8F1; }
input.error, textarea.error {
  border-color: var(--red);
  background: #FFF5F5;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.07);
}

.field-error {
  font-size: 0.74rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
  font-weight: 500;
}

.field-error.show { display: block; }

textarea { resize: none; min-height: 110px; line-height: 1.6; }

.char-counter {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
  transition: color 0.2s;
}

.char-counter.ok { color: var(--success); font-weight: 600; }
.char-counter.warn { color: var(--orange); }

/* reCAPTCHA */
.g-recaptcha {
  margin: 4px 0 2px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px; top: -9999px;
  opacity: 0; height: 0; overflow: hidden;
}

.submit-btn {
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232,80,10,0.35);
  filter: brightness(1.05);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.privacy-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
}

/* ── SUCCESS ── */
.success-state {
  display: none;
  padding: 64px 40px;
  text-align: center;
}

.success-circle {
  width: 96px; height: 96px;
  background: #E8F5E9;
  border: 2px solid #81C784;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 28px;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-state h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.success-state p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ── FOOTER ── */
footer {
  background: #0D1F35;
  color: rgba(255,255,255,0.5);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.footer-details {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

.footer-details a {
  color: var(--orange-light);
  text-decoration: none;
}

.footer-bottom {
  max-width: 900px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner { padding: 16px 20px; }
  .logo img { height: 80px; }
  .logo-divider { display: none; }
  .logo-text-block { display: none; }
  .hero { padding: 56px 20px 56px; }
  .benefits { padding: 48px 20px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-section { padding: 48px 16px; }
  .form-body { padding: 28px 24px; }
  .form-card-top { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
}

@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .header-badge span { display: none; }
  .footer-bottom { flex-direction: column; }
}
