/* stepmgt.ru — сайт-визитка ООО «Степ Менеджмент».
   Токены те же, что у candb.pro (step_site/src/assets/css/main.css), чтобы
   компания и флагман выглядели одной семьёй. Цвета — только через переменные. */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --secondary: #10B981;
  --secondary-light: #ECFDF5;
  --amber: #B45309;
  --amber-light: #FEF3C7;
  --dark: #1E293B;
  --deep: #0F172A;
  --gray: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 8px 40px rgba(37, 99, 235, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute; top: -100%; left: 16px; padding: 8px 16px;
  background: var(--primary); color: var(--white); border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999;
}
.skip-link:focus { top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--gray { background: var(--light); }
.section__label {
  display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section__title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.01em; }
.section__text { font-size: 1.125rem; color: var(--gray); max-width: 680px; }
.section__head { margin-bottom: 56px; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  font-family: inherit; border: 2px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--sm { padding: 10px 18px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ── Шапка ──────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow var(--transition), border-color var(--transition);
}
.header--scrolled { box-shadow: 0 2px 16px rgba(15,23,42,0.06); border-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); font-weight: 800; font-size: 1.125rem; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__sub { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--gray); letter-spacing: 0.04em; line-height: 1; }
.logo__name { line-height: 1.15; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { color: var(--dark); font-weight: 500; font-size: 0.9375rem; }
.nav__link:hover { color: var(--primary); text-decoration: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--dark); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(59,130,246,0.35), transparent 60%),
              linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
  color: var(--white); padding: 168px 0 112px; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); margin-bottom: 24px;
}
.hero__title { font-size: 3.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero__accent { color: #93C5FD; }
.hero__text { font-size: 1.1875rem; opacity: 0.88; max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero__tile {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(6px);
}
.hero__tile:nth-child(2) { transform: translateY(28px); }
.hero__tile:nth-child(4) { transform: translateY(28px); }
.hero__tile-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(255,255,255,0.14); }
.hero__tile-name { font-weight: 700; font-size: 1rem; }
.hero__tile-text { font-size: 0.8125rem; opacity: 0.75; line-height: 1.4; margin-top: 4px; }

/* ── Факты ──────────────────────────────────────────── */
.facts { border-bottom: 1px solid var(--border); padding: 40px 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact__value { font-size: 1.75rem; font-weight: 800; color: var(--deep); }
.fact__label { font-size: 0.9375rem; color: var(--gray); }

/* ── Продукты ───────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; transition: box-shadow var(--transition), transform var(--transition);
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product--flagship { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; border-color: #BFDBFE; background: linear-gradient(180deg, var(--primary-light), var(--white)); }
.product__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--white); }
.product__icon--blue { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.product__icon--violet { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.product__icon--green { background: linear-gradient(135deg, #10B981, #047857); }
.product__icon--amber { background: linear-gradient(135deg, #F59E0B, #B45309); }
.product__name { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.product__domain { font-size: 0.875rem; color: var(--gray); }
.product__tag { font-size: 0.8125rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.product__text { color: var(--gray); margin-bottom: 20px; }
.product__list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.product__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.product__list svg { flex: none; margin-top: 3px; color: var(--secondary); }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { color: #047857; background: var(--secondary-light); }
.status--dev { color: var(--amber); background: var(--amber-light); }
.product__link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.product__muted { font-size: 0.875rem; color: var(--gray); }
.flagship__side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.flagship__step { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.flagship__num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.875rem; display: grid; place-items: center; }
.flagship__step b { display: block; font-size: 0.9375rem; }
.flagship__step div > span { display: block; font-size: 0.875rem; color: var(--gray); }

/* ── Принципы / услуги ──────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.card__text { color: var(--gray); font-size: 0.9375rem; }

/* ── О компании ─────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: var(--gray); font-size: 1.0625rem; margin-bottom: 16px; }
.about__text p strong { color: var(--dark); }
.req { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.req__title { font-weight: 700; margin-bottom: 16px; font-size: 1.125rem; }
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 0.9375rem; }
.req dt { color: var(--gray); }
.req dd { font-weight: 500; overflow-wrap: anywhere; }

/* ── Контакты ───────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: 1fr 380px; gap: 64px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label { font-size: 0.875rem; font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input, .form select, .form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-family: inherit; color: var(--dark); background: var(--white); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 0.8125rem; color: var(--gray); }
.form__msg { font-size: 0.9375rem; padding: 12px 14px; border-radius: var(--radius-sm); }
.form__msg--ok { background: var(--secondary-light); color: #047857; }
.form__msg--err { background: #FEF2F2; color: #B91C1C; }
.info { background: var(--light); border-radius: var(--radius); padding: 32px; align-self: start; }
.info__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; }
.info__item { display: flex; gap: 14px; margin-bottom: 20px; }
.info__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--white); color: var(--primary); display: grid; place-items: center; flex: none; border: 1px solid var(--border); }
.info__label { font-size: 0.8125rem; color: var(--gray); }
.info__value { font-weight: 600; }

/* ── Подвал ─────────────────────────────────────────── */
.footer { background: var(--deep); color: #CBD5E1; padding: 64px 0 32px; font-size: 0.9375rem; }
.footer a { color: #CBD5E1; }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .logo { color: var(--white); }
.footer .logo__sub { color: #94A3B8; }
.footer__about { margin-top: 16px; color: #94A3B8; max-width: 320px; }
.footer__head { color: var(--white); font-weight: 700; margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid #1E293B; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #94A3B8; font-size: 0.8125rem; }

/* ── Юридические страницы ───────────────────────────── */
.page-hero { background: linear-gradient(135deg, #1E3A8A, #2563EB); color: var(--white); padding: 140px 0 72px; }
.page-hero__title { font-size: 2.5rem; font-weight: 800; margin: 12px 0 12px; line-height: 1.15; }
.page-hero__text { font-size: 1.125rem; opacity: 0.85; }
.page-hero .section__label { color: #BFDBFE; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.375rem; margin: 36px 0 12px; }
.legal p, .legal li { color: #334155; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal__meta { color: var(--gray); font-size: 0.875rem; }
.legal__req { background: var(--light); border-left: 3px solid var(--primary); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner, .about, .contacts, .product--flagship { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 1.75rem; }
  .section__head { margin-bottom: 36px; }
  .hero { padding: 120px 0 72px; }
  .hero__title { font-size: 2.25rem; }
  .hero__text { font-size: 1.0625rem; }
  .hero__tile:nth-child(2), .hero__tile:nth-child(4) { transform: none; }
  .hero__tile { padding: 16px; }
  .facts { padding: 28px 0; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .products, .cards { grid-template-columns: 1fr; }
  .product { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .info { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 112px 0 56px; }
  .page-hero__title { font-size: 1.875rem; }
  .req dl { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 10px; }

  .burger { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    display: none; box-shadow: 0 12px 24px rgba(15,23,42,0.08);
  }
  .nav--open { display: flex; }
  .nav__link { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; }
}
