/* ============================================================
   Главная по макету tehnuckte.codecrafters.kz.
   Общие компоненты — в theme.css, здесь только блоки главной.
   ============================================================ */

/* ----- Первый экран ----- */
body.theme-v2 .h-hero { position: relative; overflow: hidden; padding: 80px 0 96px; background: var(--t-cream); }
body.theme-v2 .h-hero-grid {
  display: grid; gap: 64px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
body.theme-v2 .h-hero-copy { display: flex; flex-direction: column; gap: 26px; }
body.theme-v2 .h-hero-badge { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--t-accent); }
body.theme-v2 .h-hero-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--t-accent); }
body.theme-v2 .h-hero h1 {
  margin: 0; color: var(--t-ink); font-weight: 800;
  font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
body.theme-v2 .h-hero h1 .accent { color: inherit; }
body.theme-v2 .h-hero-lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--t-muted); text-wrap: pretty; }
body.theme-v2 .h-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
body.theme-v2 .h-hero-visual { position: relative; width: 100%; max-width: 600px; padding: 32px; justify-self: center; }
body.theme-v2 .h-hero-arc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 18px solid var(--t-accent); border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(-20deg);
}
body.theme-v2 .h-hero-circle { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--t-gray); }
body.theme-v2 .h-hero-circle img {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: 80%; height: auto; max-height: 80%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(47,47,52,.22));
}
body.theme-v2 .h-hero-chip {
  position: absolute; right: 4%; bottom: 10%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px; border-radius: 20px; background: #fff;
  box-shadow: 0 12px 40px rgba(47,47,52,.14);
}
body.theme-v2 .h-hero-chip span { font-size: 13px; color: var(--t-muted); }
body.theme-v2 .h-hero-chip strong { font-size: 17px; font-weight: 700; }

/* ----- Цифры и факты ----- */
body.theme-v2 .h-facts { padding: 0; border-bottom: 1px solid var(--t-line); }
body.theme-v2 .h-facts-grid {
  display: grid; gap: 28px 40px; align-items: center; padding-top: 40px; padding-bottom: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
body.theme-v2 .h-stat { display: flex; align-items: baseline; gap: 12px; }
body.theme-v2 .h-stat-num { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--t-accent); }
body.theme-v2 .h-stat-label { font-size: 15px; color: var(--t-muted); }
body.theme-v2 .h-facts-row {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 40px;
  padding-top: 24px; border-top: 1px solid var(--t-line);
  font-size: 15px; line-height: 1.4; color: var(--t-muted);
}
body.theme-v2 .h-facts-row b { font-weight: 600; color: var(--t-ink); }

/* ----- Каталог по ступеням ----- */
body.theme-v2 .h-levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
body.theme-v2 .h-level {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 40px;
  min-height: 420px; padding: 28px; border-radius: 28px;
}
/* Цвет текста задан и для :hover — общее a:hover темы перекрашивать карточку не должно */
body.theme-v2 .h-level--early, body.theme-v2 .h-level--early:hover { background: #F6B500; color: var(--t-ink); }
body.theme-v2 .h-level--primary, body.theme-v2 .h-level--primary:hover { background: #00B4D8; color: #fff; }
body.theme-v2 .h-level--secondary, body.theme-v2 .h-level--secondary:hover { background: #0E8F7E; color: #fff; }
body.theme-v2 .h-level--fll, body.theme-v2 .h-level--fll:hover { background: #5B3FA8; color: #fff; }
body.theme-v2 .h-level img {
  position: absolute; right: 14px; top: 14px; width: 48%; height: 44%;
  object-fit: contain; object-position: top right; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
body.theme-v2 .h-level-top { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 52%; }
body.theme-v2 .h-level-tag { font-size: 14px; font-weight: 600; opacity: .85; }
body.theme-v2 .h-level-years { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
body.theme-v2 .h-level-body { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
body.theme-v2 .h-level-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
body.theme-v2 .h-level-text { margin: 0; font-size: 15px; line-height: 1.5; opacity: .88; }
body.theme-v2 .h-level-more { display: inline-flex; align-items: center; gap: 8px; padding-top: 6px; font-size: 15px; font-weight: 600; }
body.theme-v2 .h-level-more svg { display: inline-block; }

/* ----- Почему Tehnukte ----- */
body.theme-v2 .h-why-head { max-width: 720px; margin-bottom: 56px; }
body.theme-v2 .h-why-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
body.theme-v2 .h-why { display: flex; flex-direction: column; gap: 18px; }
body.theme-v2 .h-why-img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 24px; background: var(--t-tile); }
body.theme-v2 .h-why-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.theme-v2 .h-why-body { display: flex; flex-direction: column; gap: 8px; }
body.theme-v2 .h-why h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
body.theme-v2 .h-why p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--t-muted); text-wrap: pretty; }

/* ----- Как мы работаем ----- */
body.theme-v2 .h-process-aside { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
body.theme-v2 .h-process-aside .section-head p { max-width: 420px; }
body.theme-v2 .h-process-art {
  position: relative; overflow: hidden; margin-top: 28px; max-width: 440px;
  aspect-ratio: 3 / 2; border-radius: 24px; background: var(--t-cream);
}
body.theme-v2 .h-process-art::before {
  content: ""; position: absolute; right: -120px; bottom: -150px;
  width: 420px; height: 420px; border-radius: 50%; background: var(--t-accent);
}
body.theme-v2 .h-process-art img {
  position: absolute; left: 50%; top: 50%; transform: translate(-46%, -48%);
  width: auto; height: 78%; max-width: none; pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(47,47,52,.2));
}
body.theme-v2 .h-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
body.theme-v2 .h-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--t-line); }
body.theme-v2 .h-step-num {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--t-accent); border-radius: 999px;
  color: var(--t-accent); font-size: 14px; font-weight: 700;
}
body.theme-v2 .h-step > div { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
body.theme-v2 .h-step h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
body.theme-v2 .h-step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--t-muted); }

/* ----- Частые вопросы ----- */
body.theme-v2 .h-faq-aside { align-self: start; display: flex; flex-direction: column; gap: 14px; }
body.theme-v2 .h-faq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; font-size: 16px; color: var(--t-muted); }
body.theme-v2 .h-faq-more a { padding-bottom: 1px; border-bottom: 2px solid var(--t-accent); font-weight: 600; color: var(--t-accent); }

/* ----- Призыв к заявке ----- */
body.theme-v2 .h-cta-wrap { padding: 96px 32px; }
body.theme-v2 .h-cta {
  position: relative; overflow: hidden; max-width: 1280px; margin: 0 auto;
  border-radius: 40px; background: var(--t-accent); color: #fff;
}
body.theme-v2 .h-cta::before {
  content: ""; position: absolute; right: -140px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 56px solid rgba(255,255,255,.14);
}
body.theme-v2 .h-cta-char {
  position: absolute; right: clamp(16px, 4%, 56px); bottom: -8%;
  width: min(36%, 460px); height: auto; max-width: none; pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.22));
}
body.theme-v2 .h-cta-body {
  position: relative; max-width: 720px; padding: clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
body.theme-v2 .h-cta-text { display: flex; flex-direction: column; gap: 16px; }
body.theme-v2 .h-cta h2 {
  margin: 0; color: #fff; font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
body.theme-v2 .h-cta p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; }
body.theme-v2 .h-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 30px; border-radius: 999px;
  background: #fff; color: var(--t-ink); font-size: 17px; font-weight: 700;
  transition: background .2s, color .2s;
}
body.theme-v2 .h-cta-btn:hover { background: var(--t-ink); color: #fff; }

/* ----- Контакты ----- */
body.theme-v2 .h-contacts { border-top: 1px solid var(--t-line); }
body.theme-v2 .h-contacts-grid { --split-min: 400px; }
body.theme-v2 .h-contacts-info { display: flex; flex-direction: column; gap: 40px; }
body.theme-v2 .h-contacts-info .section-head p { max-width: 420px; }
body.theme-v2 .h-contacts-list { display: flex; flex-direction: column; margin: 0; }
body.theme-v2 .h-contacts-list > div {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--t-line);
}
body.theme-v2 .h-contacts-list > div:last-child { border-bottom: 1px solid var(--t-line); }
body.theme-v2 .h-contacts-list dt { padding-top: 2px; font-size: 14px; color: var(--t-subtle); }
body.theme-v2 .h-contacts-list dd { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; }

@media (max-width: 860px) {
  body.theme-v2 .h-cta-char { display: none; }
}

/* Фокус на оранжевом баннере — белый */
body.theme-v2 .h-cta :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
