:root {
  --bg: #07130d;
  --bg-2: #0b1d14;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef5f0;
  --muted: #a3b8ab;
  --green: #00c853;
  --green-2: #009c3b;
  --yellow: #ffdf00;
  --blue: #2a5bd7;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Unbounded', 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-head); font-weight: 600;
  line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance;
}
p { text-wrap: pretty; }
/* Пустой текст из админки — элемент скрывается */
.checks li:empty, .about__text p:empty, .hero__stats > div:has(strong:empty) { display: none; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(0, 200, 83, 0.22), transparent 70%),
    radial-gradient(500px 400px at 90% 10%, rgba(255, 223, 0, 0.12), transparent 70%),
    radial-gradient(700px 500px at 60% 100%, rgba(42, 91, 215, 0.16), transparent 70%);
}
.bg-glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 19, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.logo b { font: 700 1.05rem var(--font-head); color: var(--yellow); letter-spacing: .02em; }
.logo__flag { border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.4); flex: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 15px; cursor: pointer;
  font: 600 1rem var(--font-body); color: #04210f; text-align: center; line-height: 1.25;
  background: linear-gradient(135deg, var(--yellow), #ffc400 40%, var(--green) 140%);
  box-shadow: 0 10px 30px -8px rgba(255, 210, 0, 0.5);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 210, 0, 0.6); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; border-radius: 12px; white-space: nowrap; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; border-color: var(--green); }
.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn--full { width: 100%; margin-top: 6px; }
.btn.loading { opacity: .7; pointer-events: none; }
.btn.loading svg { animation: spin .8s linear infinite; }
.btn svg { flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* HERO */
.hero { padding: 80px 0 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(0, 200, 83, 0.1); border: 1px solid rgba(0, 200, 83, 0.3);
  color: #b9f5cf; font-size: .85rem; font-weight: 500;
}
.badge img { border-radius: 3px; }
.hero h1 { font-size: clamp(1.9rem, 4.1vw, 3.15rem); margin: 24px 0 20px; }
.grad {
  background: linear-gradient(90deg, var(--yellow), var(--green) 60%, #5ee6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 580px; }
.checks { list-style: none; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.45; }
.checks li::before {
  content: '✓'; flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 8px; font-size: .78rem; font-weight: 700;
  background: rgba(0, 200, 83, 0.15); color: var(--green);
}
.hero__stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.hero__stats div {
  padding: 16px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
}
.hero__stats strong { display: block; font: 600 1.45rem var(--font-head); color: var(--yellow); line-height: 1.2; margin-bottom: 4px; }
.hero__stats span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }

/* CARDS */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* FORM */
.form-card {
  position: relative; padding: 34px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  scroll-margin-top: 96px;
}
.form-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--yellow), transparent 40%, transparent 60%, var(--green));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.form-card__head { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.form-card__head img { border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.4); flex: none; }
.form-card__head h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-card__head p { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.row { display: grid; grid-template-columns: 1fr; }
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 7px; color: #cfe0d6; }
.field input, .phone {
  width: 100%; height: 52px; border-radius: 13px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  color: var(--text); font: 400 16px var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input { padding: 0 16px; outline: none; min-width: 0; }
.field input::placeholder { color: #6b8174; }
.field input:focus, .phone:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.15);
}
.phone { display: flex; align-items: center; overflow: hidden; }
.phone__prefix {
  display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%;
  border-right: 1px solid var(--border); font-weight: 600; color: #cfe0d6; flex: none;
}
.phone__prefix img { border-radius: 2px; }
.phone input { border: 0 !important; box-shadow: none !important; background: transparent; height: 100%; }
.invalid input, .invalid .phone { border-color: var(--danger); }
.err { display: block; color: var(--danger); font-size: .8rem; margin-top: 5px; }
.err:empty { display: none; }

.consent { text-align: center; font-size: .78rem; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.consent:empty { display: none; }
.secure { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* Всплывающее уведомление после отправки формы */
.notice {
  position: fixed; inset: 0; z-index: 100; padding: 16px;
  display: grid; place-items: center;
  background: rgba(2, 10, 6, 0.72); backdrop-filter: blur(6px);
  animation: notice-fade .2s ease-out;
}
.notice[hidden] { display: none; }
.notice__box {
  width: 100%; max-width: 420px; text-align: center; padding: 34px 26px 26px;
  background: #0f1d16; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: notice-pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
.notice__box h3 { font-size: 1.35rem; margin-bottom: 10px; }
.notice__box p { color: var(--muted); line-height: 1.55; }
.notice__close { margin-top: 22px; min-width: 140px; }
@keyframes notice-fade { from { opacity: 0; } }
@keyframes notice-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.success__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #04210f;
  background: linear-gradient(135deg, var(--yellow), var(--green));
  box-shadow: 0 0 0 10px rgba(0, 200, 83, 0.12);
}

/* SECTIONS */
.section { padding: 80px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }

.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.about__text p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 1.05rem; line-height: 1.75; }
.about__text h2 { margin-bottom: 6px; }

.portrait { position: relative; width: 100%; max-width: 430px; margin: 0 auto; }
.portrait::before {
  content: ''; position: absolute; inset: 8% -6% -4% 6%; z-index: -1; border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,223,0,.55), rgba(0,200,83,.45) 55%, rgba(42,91,215,.4));
  filter: blur(42px); opacity: .55;
}
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow);
  background: #0b1d14;
}
.portrait__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7,19,13,.75) 100%);
}
.portrait__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.portrait:hover .portrait__img { transform: scale(1.04); }
.portrait__tag {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: rgba(7, 19, 13, .62); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.portrait__tag img { border-radius: 4px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.portrait__tag strong { display: block; font: 600 1rem var(--font-head); line-height: 1.25; }
.portrait__tag span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.portrait__chip {
  position: absolute; top: 22px; right: -14px; padding: 10px 16px; border-radius: 14px;
  font-size: .85rem; font-weight: 600; color: #04210f; white-space: nowrap;
  background: linear-gradient(135deg, var(--yellow), #ffc400 50%, var(--green) 160%);
  box-shadow: 0 14px 30px -10px rgba(255, 210, 0, .6);
  animation: float 5s ease-in-out infinite;
}
.portrait__chip b { font: 700 1.1rem var(--font-head); margin-right: 2px; }
@keyframes float { 50% { transform: translateY(-8px); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  padding: 28px; border-radius: var(--radius); border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.015);
}
.step span { display: block; font: 700 2.1rem var(--font-head); line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--yellow); }
.step h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

.cta {
  padding: 52px 32px; border-radius: 28px; text-align: center;
  background: linear-gradient(135deg, rgba(0,156,59,.35), rgba(0,39,118,.35));
  border: 1px solid var(--border);
}
.cta h2 { margin: 0 auto 26px; max-width: 640px; }
/* Призыв — отдельный отключаемый блок: стоит вплотную к предыдущей секции */
.section--cta { padding-top: 0; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.disclaimer { color: var(--muted); font-size: .82rem; line-height: 1.65; margin: 20px 0 14px; max-width: 840px; }
.disclaimer strong { color: #cfe0d6; font-weight: 600; }
.copy { color: #6b8174; font-size: .8rem; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .portrait__chip { animation: none; }
}

/* FOCUS */
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px;
}

/* RESPONSIVE */
/* Две колонки: форма растягивается на высоту левого блока, свободное место делится между полями */
@media (min-width: 961px) {
  .hero__grid { align-items: stretch; }
  .form-card { display: flex; flex-direction: column; padding: 38px 38px 32px; }
  .form-card__head { margin-bottom: 30px; }
  .form-card__head h2 { font-size: 1.5rem; }
  .form-card__head img { width: 48px; height: 34px; }
  #leadForm { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  #leadForm[hidden] { display: none; }
  .form-card .field input, .form-card .phone { height: 56px; }
  .form-card .btn--full { min-height: 58px; font-size: 1.05rem; }
}
@media (min-width: 1400px) {
  .container { width: min(1240px, 100% - 64px); }
}
@media (max-width: 1080px) {
  .hero__grid { gap: 40px; }
  .about { gap: 44px; }
  .form-card { padding: 28px; }
  .steps { gap: 16px; }
  .step { padding: 24px; }
}
@media (max-width: 960px) {
  .hero { padding: 56px 0 48px; }
  .hero__grid, .about { grid-template-columns: 1fr; gap: 44px; }
  .hero__text { text-align: center; }
  .lead { margin-inline: auto; }
  .checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .hero__stats { max-width: 620px; margin-inline: auto; }
  .form-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .about { text-align: center; }
  .about__text { max-width: 640px; margin-inline: auto; }
  .portrait { max-width: 380px; }
  .section { padding: 64px 0; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .step span { grid-row: span 2; font-size: 1.8rem; }
  .step h3 { margin: 2px 0 6px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 36px 0 36px; }
  .hero__text { text-align: left; }
  .checks { width: auto; margin-inline: 0; margin: 24px 0 28px; gap: 10px; }
  .hero h1 { margin: 20px 0 16px; }
  .lead { font-size: 1rem; }
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .form-card__head { margin-bottom: 22px; }
  .form-card__head h2 { font-size: 1.15rem; }
  .step { padding: 22px; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 32px; }
  .about__text p:not(.eyebrow) { font-size: 1rem; }
  .nav__inner { height: 62px; }
  .logo { gap: 8px; }
  .logo b { font-size: .92rem; }
  .logo__flag { width: 28px; height: 20px; }
  .nav__actions { gap: 8px; }
  .btn--sm { min-height: 38px; padding: 0 14px; font-size: .84rem; }
  .btn:not(.btn--sm) { min-height: 52px; padding: 0 22px; }
  .cta { padding: 36px 20px; border-radius: 22px; }
  .cta .btn { width: 100%; }
  .hero__stats { gap: 8px; }
  .hero__stats div { padding: 12px 8px; text-align: center; }
  .hero__stats strong { font-size: 1.1rem; }
  .hero__stats span { font-size: .72rem; line-height: 1.3; }
  .portrait { max-width: 340px; }
  .portrait__frame { border-radius: 26px; }
  .portrait__chip { right: -6px; top: 16px; font-size: .78rem; padding: 8px 12px; }
  .portrait__tag { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; text-align: left; }
}
@media (max-width: 380px) {
  .hero__stats div { padding: 12px 4px; }
  .hero__stats span { font-size: .68rem; }
}
