:root {
  --bg: #0e1410;
  --bg-soft: #141c17;
  --bg-card: #1a241e;
  --accent: #4caf50;
  --accent-dark: #2e7d32;
  --accent-gold: #ffb300;
  --text: #e8efe9;
  --text-dim: #9fb3a4;
  --border: #26352b;
  --danger: #ef5350;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 20, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo-mark { color: var(--accent); font-size: 22px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #0a0f0b; }
.btn-primary:hover { background: #5cc160; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-header { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 10, 8, 0.5) 0%, rgba(12, 10, 8, 0.18) 45%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 46px; line-height: 1.15; margin-bottom: 18px; font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75), 0 4px 24px rgba(0, 0, 0, 0.65); }
.hero h1 .h1-accent { color: var(--accent-gold); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 28px rgba(0, 0, 0, 0.7); }
.hero-sub { font-size: 18px; color: #c6d4c9; max-width: 640px; margin-bottom: 30px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: rgba(26, 36, 30, 0.85); border: 1px solid var(--border); border-radius: 14px; padding: 22px; backdrop-filter: blur(8px); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent-gold); margin-bottom: 6px; }
.stat-label { font-size: 14px; color: var(--text-dim); }

/* Sections */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 32px; margin-bottom: 12px; font-weight: 800; }
.section-sub { color: var(--text-dim); font-size: 16px; margin-bottom: 36px; max-width: 720px; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-dark); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.card-img { position: relative; height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg-card) 100%); }
.card-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.card-tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.card-svo .card-tag { background: rgba(255, 179, 0, .12); color: var(--accent-gold); border: 1px solid rgba(255, 179, 0, .3); }
.card-rear .card-tag { background: rgba(76, 175, 80, .12); color: #8fd492; border: 1px solid rgba(76, 175, 80, .3); }
.card h3 { font-size: 21px; margin-bottom: 14px; }
.card ul { list-style: none; margin-bottom: 22px; flex-grow: 1; }
.card ul li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--text-dim); font-size: 15px; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Pay grid */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.pay-num { font-size: 20px; font-weight: 800; color: var(--accent-gold); margin-bottom: 6px; }
.pay-text { font-size: 13.5px; color: var(--text-dim); }
.pay-note { margin-top: 22px; font-size: 14px; color: var(--text-dim); max-width: 800px; }

/* Requirements */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.req-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.req-block h3 { font-size: 17px; margin-bottom: 12px; color: var(--accent); }
.req-block ul { list-style: none; }
.req-block li { padding-left: 20px; position: relative; margin-bottom: 9px; font-size: 14.5px; color: var(--text-dim); }
.req-block li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; position: relative; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0a0f0b; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); }
.steps-photo { margin-top: 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.steps-photo img { display: block; width: 100%; max-height: 380px; object-fit: cover; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 14.5px; color: var(--text-dim); }

/* Docs */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.docs ul { list-style: none; }
.docs li { padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 15px; color: var(--text-dim); }
.docs li::before { content: "📄"; position: absolute; left: 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 20px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; color: var(--text-dim); font-size: 14.5px; }

/* Apply form */
.section-apply { background: radial-gradient(ellipse at 30% 0%, #1b3320 0%, var(--bg) 60%); }
.apply-contact { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 auto 24px; max-width: 720px; }
.apply-contact span { color: var(--text-dim); font-size: 14px; }
.footer-phone { color: var(--accent); text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }
.apply-form { max-width: 720px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.apply-form label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.apply-form .req { color: var(--danger); }
.apply-form input, .apply-form select {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.apply-form input:focus, .apply-form select:focus { outline: none; border-color: var(--accent); }
.apply-form .form-row:last-of-type { grid-template-columns: 1fr; }
.form-note { margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }

/* Result */
.apply-result { max-width: 720px; background: var(--bg-card); border: 1px solid var(--accent-dark); border-radius: 16px; padding: 30px; text-align: center; }
.result-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #0a0f0b; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.apply-result h3 { font-size: 21px; margin-bottom: 8px; }
.apply-result p { color: var(--text-dim); margin-bottom: 18px; }
#resultText { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; color: var(--text); font-size: 14px; font-family: inherit; margin-bottom: 16px; resize: vertical; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#copyHint { color: var(--accent); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer p { font-size: 14px; color: var(--text); font-weight: 600; }
.footer-note { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); font-weight: 400; max-width: 760px; }

/* Mobile */
@media (max-width: 860px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero-stats, .cards, .req-grid, .steps, .pay-grid, .benefits { grid-template-columns: 1fr; }
  .docs, .form-row { grid-template-columns: 1fr; }
  .nav { display: none; }
  .section { padding: 44px 0; }
  .stat-num { font-size: 22px; }
  .card-img { height: 170px; }
}
