/*
 * outsourcing-enhance.css — дофаминовая LP для /outsourcing/
 *
 * Стратегия: скрываем все средние .t-rec секции Tilda (от hero до FAQ),
 * между шапкой и футером JS вставляет наш кастомный контент с префиксом `.os-`.
 * Шапка/попапы/футер остаются нетронутыми.
 *
 * Палитра: финансовая (зелёный рост) + AI (фиолетовый) + accent (синий бренда).
 * Все цвета — поверх токенов из css/helpexcel-tokens.css.
 */

/* ─────────────────────────────────────────────────────────────
   0. Локальные токены (override + дополнения)
   ───────────────────────────────────────────────────────────── */
:root {
  --os-violet:        #8b5cf6;
  --os-violet-soft:   #ede9fe;
  --os-green:         #10b981;
  --os-green-soft:    #d1fae5;
  --os-pink:          #ec4899;
  --os-orange:        #f59e0b;
  --os-blue:          #5171f7;
  --os-blue-deep:     #3d56c4;
  --os-ink:           #0f172a;
  --os-ink-2:         #334155;
  --os-ink-3:         #64748b;
  --os-surface:       #ffffff;
  --os-surface-soft:  #f8fafc;
  --os-surface-cool:  #f1f5f9;
  --os-border:        #e2e8f0;
  --os-shadow-card:   0 10px 40px -10px rgba(15, 23, 42, 0.18);
  --os-shadow-pop:    0 30px 80px -20px rgba(15, 23, 42, 0.35);
  --os-shadow-glow:   0 0 0 6px rgba(139, 92, 246, 0.12);
  --os-radius-card:   24px;
  --os-radius-pill:   999px;
  --os-grad-hero:     linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --os-grad-money:    linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --os-grad-ai:       linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --os-grad-warm:     linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --os-grad-cool:     linear-gradient(135deg, #06b6d4 0%, #5171f7 100%);
  --os-font:          'FuturaPT', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   1. Скрываем средние Tilda-секции (от hero до FAQ),
      оставляем header/popups/footer
   ───────────────────────────────────────────────────────────── */
body.os-enhanced #rec556304789,
body.os-enhanced #rec480172168,
body.os-enhanced #rec701673704,
body.os-enhanced #rec710045524,
body.os-enhanced #rec706289323,
body.os-enhanced #rec703360822,
body.os-enhanced #rec710039026,
body.os-enhanced #rec703367511,
body.os-enhanced #rec854479134,
body.os-enhanced #rec1114448431,
body.os-enhanced #rec1114406416,
body.os-enhanced #rec985048186,
body.os-enhanced #rec467319182 {
  display: none !important;
}

/* мягкий scroll и анти-jitter */
html { scroll-behavior: smooth; }
body.os-enhanced { background: var(--os-surface); }
body.os-enhanced #allrecords { overflow: visible; }

/* ─────────────────────────────────────────────────────────────
   2. Общая обвязка
   ───────────────────────────────────────────────────────────── */
.os {
  font-family: var(--os-font);
  color: var(--os-ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.os *, .os *::before, .os *::after { box-sizing: border-box; }

.os-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .os-container { padding: 0 16px; }
}

.os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--os-violet);
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--os-radius-pill);
  margin-bottom: 18px;
}
.os-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--os-violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  animation: os-pulse-dot 2s ease-in-out infinite;
}
@keyframes os-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

.os-h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--os-ink);
}
.os-h2 .os-grad {
  background: var(--os-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.os-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--os-ink-2);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 36px;
}
.os-center { text-align: center; }
.os-center .os-sub { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────────────────────
   3. Кнопки
   ───────────────────────────────────────────────────────────── */
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--os-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.os-btn--primary {
  color: #fff;
  background: var(--os-grad-hero);
  box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.55);
}
.os-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.os-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(139, 92, 246, 0.65); }
.os-btn--primary:hover::after { transform: translateX(120%); }
.os-btn--ghost {
  color: var(--os-ink);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}
.os-btn--ghost:hover { background: rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.os-btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.os-btn:hover .os-btn__arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────
   4. HERO
   ───────────────────────────────────────────────────────────── */
.os-hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(800px 500px at 10% 20%, rgba(81, 113, 247, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--os-surface);
}
.os-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) {
  .os-hero { padding: 60px 0 50px; }
  .os-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.os-hero__title {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--os-ink);
}
.os-hero__title .os-grad {
  background: var(--os-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* фон-параллакс */
  background-size: 200% auto;
  animation: os-grad-shift 6s ease-in-out infinite;
}
@keyframes os-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.os-hero__title .os-tw {
  display: inline-block;
  position: relative;
  color: var(--os-violet);
  white-space: nowrap;
}
.os-hero__title .os-tw::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 8%;
  bottom: 10%;
  width: 3px;
  background: var(--os-violet);
  animation: os-caret 1s steps(2) infinite;
}
@keyframes os-caret { 50% { opacity: 0; } }

.os-hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--os-ink-2);
  margin: 0 0 32px;
  max-width: 560px;
}
.os-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.os-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--os-border);
}
.os-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.os-trust-item__num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1;
  background: var(--os-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.os-trust-item__label {
  font-size: 13px;
  color: var(--os-ink-3);
  letter-spacing: 0.02em;
}

/* Hero visual — финансовый «дашборд» */
.os-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
}
.os-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  animation: os-float 9s ease-in-out infinite;
}
.os-orb--1 { width: 280px; height: 280px; background: #8b5cf6; top: -10%; right: -5%; }
.os-orb--2 { width: 240px; height: 240px; background: #ec4899; bottom: -8%; left: -8%; animation-delay: -3s; }
.os-orb--3 { width: 180px; height: 180px; background: #5171f7; top: 30%; left: 30%; animation-delay: -6s; opacity: 0.5; }
@keyframes os-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -25px) scale(1.05); }
  66%      { transform: translate(-15px, 20px) scale(0.97); }
}

.os-dashcard {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--os-shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: os-card-float 7s ease-in-out infinite;
}
@keyframes os-card-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.6deg); }
}
.os-dashcard--main {
  inset: 8% 6% auto auto;
  width: 78%;
  z-index: 3;
  padding: 26px 28px;
  animation-delay: -1s;
}
.os-dashcard--side {
  bottom: 10%;
  left: 0;
  width: 56%;
  z-index: 4;
  animation-delay: -3.5s;
}
.os-dashcard--mini {
  top: 38%;
  right: -4%;
  width: 38%;
  z-index: 2;
  padding: 14px 16px;
  animation-delay: -5s;
}
.os-dashcard__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-ink-3);
}
.os-dashcard__value {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--os-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.os-dashcard__delta {
  font-size: 13px;
  font-weight: 600;
  color: var(--os-green);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  background: var(--os-green-soft);
  border-radius: 999px;
}
.os-dashcard__delta--neg { color: #dc2626; background: #fee2e2; }
.os-dashcard__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin-top: 8px;
}
.os-dashcard__bar {
  flex: 1;
  background: var(--os-grad-money);
  border-radius: 4px 4px 0 0;
  min-height: 12%;
  animation: os-bar-rise 1.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.os-dashcard__bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.os-dashcard__bar:nth-child(2) { height: 55%; animation-delay: 0.2s; }
.os-dashcard__bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.os-dashcard__bar:nth-child(4) { height: 70%; animation-delay: 0.4s; }
.os-dashcard__bar:nth-child(5) { height: 60%; animation-delay: 0.5s; }
.os-dashcard__bar:nth-child(6) { height: 85%; animation-delay: 0.6s; }
.os-dashcard__bar:nth-child(7) { height: 100%; animation-delay: 0.7s; }
@keyframes os-bar-rise {
  from { height: 0%; opacity: 0; }
}
.os-dashcard__spark {
  width: 100%;
  height: 40px;
  margin-top: 4px;
}
.os-dashcard__spark path {
  stroke: var(--os-violet);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: os-draw 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes os-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  .os-hero__visual { max-width: 360px; }
  .os-hero__trust { gap: 18px; }
  .os-trust-item__num { font-size: 24px; }
}

/* ─────────────────────────────────────────────────────────────
   5. Pain → Solution
   ───────────────────────────────────────────────────────────── */
.os-pain {
  padding: 80px 0;
  background: var(--os-surface);
}
.os-pain__head { text-align: center; margin-bottom: 50px; }
.os-pain__grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .os-pain__grid { grid-template-columns: 1fr; }
  .os-pain__arrow { transform: rotate(90deg); margin: 0 auto; }
}
.os-pain__col {
  border-radius: var(--os-radius-card);
  padding: 36px;
  position: relative;
}
.os-pain__col--bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.os-pain__col--good {
  background: linear-gradient(180deg, #eef2ff 0%, #faf5ff 100%);
  border: 1px solid #e0e7ff;
  box-shadow: var(--os-shadow-card);
}
.os-pain__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--os-ink);
}
.os-pain__title-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}
.os-pain__col--bad .os-pain__title-icon { background: #fee2e2; color: #dc2626; }
.os-pain__col--good .os-pain__title-icon { background: var(--os-violet-soft); color: var(--os-violet); }
.os-pain__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.os-pain__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--os-ink-2);
}
.os-pain__list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 1px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}
.os-pain__col--bad .os-pain__list li::before {
  background-color: #fee2e2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 2 L10 10 M10 2 L2 10' stroke='%23dc2626' stroke-width='1.8' stroke-linecap='round'/></svg>");
}
.os-pain__col--good .os-pain__list li::before {
  background-color: var(--os-violet);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 L5 9 L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}
.os-pain__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.os-pain__arrow svg { width: 80px; height: 80px; }
.os-pain__arrow svg path {
  stroke: var(--os-violet);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.os-pain.is-visible .os-pain__arrow svg path {
  animation: os-draw 1.4s ease-out 0.3s forwards;
}

/* ─────────────────────────────────────────────────────────────
   6. Services bento (4 motif-карточки)
   ───────────────────────────────────────────────────────────── */
.os-services {
  padding: 100px 0;
  background: var(--os-surface-soft);
  position: relative;
}
.os-services__head { text-align: center; margin-bottom: 60px; max-width: 760px; margin-left: auto; margin-right: auto; }
.os-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .os-services__grid { grid-template-columns: 1fr; }
  .os-services { padding: 60px 0; }
}
.os-svc {
  --m-primary: #5171f7;
  --m-soft: #eef2ff;
  position: relative;
  background: var(--os-surface);
  border-radius: var(--os-radius-card);
  padding: 36px;
  border: 1px solid var(--os-border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  isolation: isolate;
  cursor: default;
}
.os-svc::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--m-primary) 0%, transparent 60%);
  opacity: 0.08;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.os-svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.2);
  border-color: var(--m-primary);
}
.os-svc:hover::before {
  opacity: 0.16;
  transform: translate(-20px, 20px);
}

.os-svc--finance { --m-primary: #10b981; --m-soft: #d1fae5; }
.os-svc--ai      { --m-primary: #8b5cf6; --m-soft: #ede9fe; }
.os-svc--tables  { --m-primary: #f59e0b; --m-soft: #fef3c7; }
.os-svc--pilot   { --m-primary: #06b6d4; --m-soft: #cffafe; }

.os-svc__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--m-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--m-primary);
}
.os-svc__icon svg { width: 28px; height: 28px; }
.os-svc__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--os-ink);
  letter-spacing: -0.01em;
}
.os-svc__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--os-ink-2);
  margin: 0 0 22px;
}
.os-svc__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-svc__features li {
  font-size: 14px;
  color: var(--os-ink-2);
  display: flex;
  gap: 8px;
  align-items: center;
}
.os-svc__features li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--m-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 L5 9 L10 3' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  color: var(--m-primary);
  flex-shrink: 0;
}
.os-svc__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--m-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.os-svc__link::after {
  content: "→";
  transition: transform 0.25s ease;
}
.os-svc:hover .os-svc__link::after { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────
   7. Roadmap timeline
   ───────────────────────────────────────────────────────────── */
.os-road {
  padding: 100px 0;
  background: var(--os-surface);
  position: relative;
}
.os-road__head { text-align: center; margin-bottom: 60px; }
.os-road__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.os-road__track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #5171f7, #8b5cf6, #ec4899);
  border-radius: 2px;
  z-index: 0;
}
.os-road__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.os-road.is-visible .os-road__step { opacity: 1; transform: translateY(0); }
.os-road__step:nth-child(1) { transition-delay: 0.1s; }
.os-road__step:nth-child(2) { transition-delay: 0.2s; }
.os-road__step:nth-child(3) { transition-delay: 0.3s; }
.os-road__step:nth-child(4) { transition-delay: 0.4s; }
.os-road__step:nth-child(5) { transition-delay: 0.5s; }
.os-road__step:nth-child(6) { transition-delay: 0.6s; }
.os-road__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--os-surface);
  border: 3px solid var(--os-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--os-ink);
  box-shadow: var(--os-shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.os-road__num::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--os-violet);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.os-road__step:hover .os-road__num {
  transform: translateX(-50%) scale(1.08);
  border-color: var(--os-violet);
  color: var(--os-violet);
}
.os-road__step:hover .os-road__num::after { opacity: 1; transform: scale(1); }
.os-road__step:nth-child(1) .os-road__num { color: var(--os-green); border-color: var(--os-green); }
.os-road__step:nth-child(2) .os-road__num { color: var(--os-blue); border-color: var(--os-blue); }
.os-road__step:nth-child(3) .os-road__num { color: #6366f1; border-color: #6366f1; }
.os-road__step:nth-child(4) .os-road__num { color: var(--os-violet); border-color: var(--os-violet); }
.os-road__step:nth-child(5) .os-road__num { color: #d946ef; border-color: #d946ef; }
.os-road__step:nth-child(6) .os-road__num { color: var(--os-pink); border-color: var(--os-pink); }

.os-road__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--os-ink);
}
.os-road__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--os-ink-3);
  margin: 0;
}
@media (max-width: 880px) {
  .os-road { padding: 60px 0; }
  .os-road__track {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .os-road__track::before {
    top: 5%;
    bottom: 5%;
    left: 35px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .os-road__step {
    padding: 0 0 0 100px;
    text-align: left;
    min-height: 72px;
  }
  .os-road__num {
    left: 0;
    transform: none;
  }
  .os-road__step:hover .os-road__num { transform: scale(1.08); }
}

/* ─────────────────────────────────────────────────────────────
   8. Pricing
   ───────────────────────────────────────────────────────────── */
.os-price {
  padding: 100px 0;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(700px 500px at 20% 100%, rgba(81, 113, 247, 0.08), transparent 60%),
    var(--os-surface-soft);
}
.os-price__head { text-align: center; margin-bottom: 60px; }
.os-price__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .os-price__grid { grid-template-columns: 1fr; }
  .os-price { padding: 60px 0; }
}
.os-plan {
  background: var(--os-surface);
  border-radius: var(--os-radius-card);
  padding: 40px;
  border: 1px solid var(--os-border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.os-plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--os-shadow-pop);
}
.os-plan--featured {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 30px 80px -20px rgba(76, 29, 149, 0.5);
}
.os-plan--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(236, 72, 153, 0.25), transparent 60%),
    radial-gradient(400px 300px at 0% 100%, rgba(139, 92, 246, 0.3), transparent 60%);
  border-radius: var(--os-radius-card);
  pointer-events: none;
}
.os-plan--featured > * { position: relative; z-index: 1; }

.os-plan__badge {
  position: absolute;
  top: -14px;
  right: 30px;
  padding: 6px 14px;
  border-radius: var(--os-radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--os-grad-warm);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.5);
  animation: os-badge-bob 2.5s ease-in-out infinite;
}
@keyframes os-badge-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.os-plan__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--os-violet);
  margin: 0 0 12px;
}
.os-plan--featured .os-plan__name { color: #ddd6fe; }
.os-plan__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  color: inherit;
  letter-spacing: -0.01em;
}
.os-plan__desc {
  font-size: 14px;
  color: var(--os-ink-3);
  margin: 0 0 28px;
}
.os-plan--featured .os-plan__desc { color: rgba(255,255,255,0.7); }
.os-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}
.os-plan__price-from {
  font-size: 13px;
  color: var(--os-ink-3);
  margin-right: 4px;
}
.os-plan--featured .os-plan__price-from { color: rgba(255,255,255,0.6); }
.os-plan__price-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  letter-spacing: -0.02em;
}
.os-plan__price-unit {
  font-size: 14px;
  color: var(--os-ink-3);
}
.os-plan--featured .os-plan__price-unit { color: rgba(255,255,255,0.7); }
.os-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.os-plan__list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: inherit;
}
.os-plan__list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 1px;
  background-color: var(--os-green-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 L5 9 L10 3' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.os-plan--featured .os-plan__list li::before {
  background-color: rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6 L5 9 L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}
.os-plan .os-btn {
  width: 100%;
}
.os-plan--featured .os-btn--primary {
  background: #fff;
  color: var(--os-violet);
  box-shadow: 0 12px 30px -8px rgba(255, 255, 255, 0.25);
}
.os-plan--featured .os-btn--primary:hover {
  box-shadow: 0 18px 40px -8px rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────
   9. Team
   ───────────────────────────────────────────────────────────── */
.os-team {
  padding: 100px 0;
  background: var(--os-surface);
}
.os-team__head { text-align: center; margin-bottom: 60px; }
.os-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .os-team__grid { grid-template-columns: 1fr; }
  .os-team { padding: 60px 0; }
}
.os-tm {
  background: linear-gradient(180deg, var(--os-surface) 0%, var(--os-surface-cool) 100%);
  border-radius: var(--os-radius-card);
  padding: 32px;
  border: 1px solid var(--os-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.os-tm:hover {
  transform: translateY(-4px);
  box-shadow: var(--os-shadow-card);
}
.os-tm__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--os-grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  position: relative;
  box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.5);
}
.os-tm__avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 92, 246, 0.3);
  animation: os-spin 14s linear infinite;
}
@keyframes os-spin { to { transform: rotate(360deg); } }
.os-tm--green .os-tm__avatar { background: var(--os-grad-money); box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.5); }
.os-tm--green .os-tm__avatar::after { border-color: rgba(16, 185, 129, 0.3); }
.os-tm--cool .os-tm__avatar { background: var(--os-grad-cool); box-shadow: 0 12px 30px -8px rgba(81, 113, 247, 0.5); }
.os-tm--cool .os-tm__avatar::after { border-color: rgba(81, 113, 247, 0.3); }
.os-tm__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--os-ink);
}
.os-tm__role {
  font-size: 13px;
  color: var(--os-violet);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.os-tm__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--os-ink-2);
  margin: 0 0 16px;
}
.os-tm__stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--os-border);
  padding-top: 16px;
}
.os-tm__stat-num {
  font-size: 22px;
  font-weight: 800;
  background: var(--os-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.os-tm__stat-label {
  font-size: 11px;
  color: var(--os-ink-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────
   10. FAQ accordion
   ───────────────────────────────────────────────────────────── */
.os-faq {
  padding: 100px 0;
  background: var(--os-surface-soft);
}
.os-faq__head { text-align: center; margin-bottom: 50px; }
.os-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.os-faq__item {
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.os-faq__item.is-open {
  border-color: var(--os-violet);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.25);
}
.os-faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  color: var(--os-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.os-faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--os-violet-soft);
  color: var(--os-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.os-faq__item.is-open .os-faq__icon {
  transform: rotate(45deg);
  background: var(--os-violet);
  color: #fff;
}
.os-faq__a {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--os-ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.os-faq__item.is-open .os-faq__a {
  max-height: 400px;
  padding: 0 28px 24px;
}
@media (max-width: 640px) {
  .os-faq__q { padding: 18px 20px; font-size: 16px; }
  .os-faq__item.is-open .os-faq__a { padding: 0 20px 20px; }
  .os-faq { padding: 60px 0; }
}

/* ─────────────────────────────────────────────────────────────
   11. Final CTA
   ───────────────────────────────────────────────────────────── */
.os-final {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #4c1d95 100%);
  position: relative;
  overflow: hidden;
}
.os-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 80% 30%, rgba(236, 72, 153, 0.25), transparent 60%),
    radial-gradient(600px 400px at 20% 70%, rgba(139, 92, 246, 0.35), transparent 60%);
  pointer-events: none;
}
.os-final__inner {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
}
.os-final__title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.os-final__title .os-grad-final {
  background: linear-gradient(120deg, #fbbf24 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: os-grad-shift 5s ease-in-out infinite;
}
.os-final__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin: 0 0 40px;
}
.os-final__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.os-final .os-btn--primary {
  background: #fff;
  color: var(--os-violet);
  font-size: 18px;
  padding: 20px 36px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: os-pulse-btn 2.2s ease-in-out infinite;
}
@keyframes os-pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50%      { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}
.os-final .os-btn--ghost {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.os-final .os-btn--ghost:hover { background: rgba(255,255,255,0.18); }

.os-final__contacts {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.os-final__contacts a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.os-final__contacts a:hover { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   12. Reveal анимации
   ───────────────────────────────────────────────────────────── */
.os-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.os-reveal.is-visible { opacity: 1; transform: translateY(0); }
.os-reveal--delay-1 { transition-delay: 0.1s; }
.os-reveal--delay-2 { transition-delay: 0.2s; }
.os-reveal--delay-3 { transition-delay: 0.3s; }
.os-reveal--delay-4 { transition-delay: 0.4s; }

/* ─────────────────────────────────────────────────────────────
   13. Reduced motion
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .os-reveal { opacity: 1; transform: none; }
}
