/* ============================================================
   HYPER · страница «Услуги» (services.html)
   Использует общие токены из styles.css + паттерны styles-work.css.
   ============================================================ */

.sv-page { padding-top: 0; }

/* ── HERO ─────────────────────────────────────────────────── */
.sv-hero {
  position: relative;
  padding: 168px 0 64px;
  overflow: hidden;
}
.sv-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  margin-left: -450px;
  background: radial-gradient(circle, rgba(var(--red-glow), 0.16), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.sv-hero .shell { position: relative; z-index: 1; }

.sv-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.sv-hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(var(--red-glow), 0.6);
  animation: sv-pulse 2.2s infinite;
}
@keyframes sv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--red-glow), 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(var(--red-glow), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--red-glow), 0); }
}

.sv-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.sv-hero h1 .accent { color: var(--red); }
.sv-hero h1 .muted { color: var(--ink-2); font-weight: 300; }

.sv-hero-sub {
  margin-top: 28px;
  max-width: 660px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}
.sv-hero-sub strong { color: var(--ink); font-weight: 600; }

/* ── GATEWAY (6 направлений) ──────────────────────────────── */
.sv-gate {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sv-gate-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  min-height: 188px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.004));
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: none;
  display: flex; flex-direction: column;
  transition: border-color .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.sv-gate-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.sv-gate-card .glow {
  position: absolute; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--red-glow), 0.20), transparent 60%);
  opacity: 0; transition: opacity .4s; filter: blur(20px);
  z-index: 0;
}
.sv-gate-card:hover .glow { opacity: 1; }
.sv-gate-card > * { position: relative; z-index: 1; }
.sv-gate-card.is-active {
  border-color: rgba(var(--red-glow), 0.4);
  background: linear-gradient(180deg, rgba(var(--red-glow), 0.06), rgba(var(--red-glow), 0.004));
}
.sv-gate-card.is-flag::before {
  content: '';
  position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px;
  background: linear-gradient(180deg, var(--red), rgba(var(--red-glow), 0));
  z-index: 2;
}
.sv-gate-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.sv-gate-idx {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.12em;
}
.sv-gate-card.is-active .sv-gate-idx { color: var(--red); }
.sv-gate-arrow {
  font-size: 18px; color: var(--ink-3);
  transition: color .35s ease, transform .35s ease;
}
.sv-gate-card:hover .sv-gate-arrow,
.sv-gate-card.is-active .sv-gate-arrow { color: var(--red); transform: translate(4px, -4px); }
.sv-gate-name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.sv-gate-kicker {
  margin-top: 6px;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.4;
}
.sv-gate-price {
  margin-top: auto; padding-top: 18px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sv-gate-price .from { color: var(--ink-3); font-size: 11px; margin-right: 2px; }
.sv-gate-card.is-active .sv-gate-price,
.sv-gate-card.is-flag .sv-gate-price { color: var(--red); }

@media (max-width: 1000px) { .sv-gate { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .sv-gate { grid-template-columns: 1fr; }
  .sv-gate-card { min-height: 0; }
}

/* ── HERO SCROLL HINT ─────────────────────────────────────── */
.sv-hero-scroll {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: none; cursor: none;
  color: var(--ink-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color .3s ease;
}
.sv-hero-scroll:hover { color: var(--ink); }
.sv-hero-scroll-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--red);
  animation: sv-bob 1.8s ease-in-out infinite;
}
@keyframes sv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── STICKY CATEGORY BAR ──────────────────────────────────── */
.sv-catbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10,10,11,0.86);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sv-catbar-inner {
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.sv-catbar-inner::-webkit-scrollbar { display: none; }
.sv-catbar-tab {
  position: relative;
  flex: 1 0 auto;
  padding: 17px 22px;
  background: transparent; border: none;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap; cursor: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .3s ease, background .3s ease;
}
.sv-catbar-tab .t-idx { color: var(--ink-3); transition: color .3s; }
.sv-catbar-tab:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.sv-catbar-tab.is-active { color: var(--ink); }
.sv-catbar-tab.is-active .t-idx { color: var(--red); }
.sv-catbar-tab::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.sv-catbar-tab.is-active::after { transform: scaleX(1); }

/* ── CATEGORY VIEW ────────────────────────────────────────── */
.sv-cat {
  position: relative;
  scroll-margin-top: 60px;
  padding: 90px 0 120px;
  overflow: hidden;
}
.sv-cat-ghost {
  position: absolute;
  top: 40px; right: -20px;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(180px, 34vw, 460px);
  line-height: 0.8;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.sv-cat .shell { position: relative; z-index: 1; }

.sv-cat-masthead {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.sv-cat-mast-idx {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.sv-cat-mast-idx::after {
  content: ''; flex: 1; height: 1px; background: var(--line); max-width: 180px;
}
.sv-cat-mast-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.96; letter-spacing: -0.03em;
}
.sv-cat-mast-kicker {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.sv-cat-mast-side { padding-bottom: 6px; }
.sv-cat-mast-desc {
  color: var(--ink-2); font-size: 16px; line-height: 1.7;
  max-width: 540px;
}
.sv-cat-mast-stat {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 22px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.sv-cat-mast-stat b {
  color: var(--ink); font-weight: 600; font-size: 15px;
  margin-right: 4px;
}
@media (max-width: 900px) {
  .sv-cat-masthead { grid-template-columns: 1fr; gap: 26px; align-items: start; }
}

/* tariff card: лёгкий 3D tilt — отключаем «прыжок» по hover, наклон ведёт JS */
.sv-cat .tariff { transition: border-color .35s ease, box-shadow .4s ease, transform .15s ease; min-height: 0; }
.sv-cat .tariff:hover { transform: none; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7); }

/* ── Обогащённая карточка тарифа: результат · состав · ответственность ── */
.tariff-seg { margin-top: 22px; }

.tariff-seg-label {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.tariff-seg-label::before {
  content: ''; width: 14px; height: 1px;
  background: var(--red); opacity: 0.65; flex-shrink: 0;
}

/* «что вы получаете» — акцентная панель, смысловой центр карточки */
.tariff-result {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--red);
  background: linear-gradient(100deg, rgba(var(--red-glow), 0.07), rgba(var(--red-glow), 0));
}
.tariff-result .tariff-seg-label { color: var(--red); margin-bottom: 8px; }
.tariff-result .tariff-seg-label::before { opacity: 1; }
.tariff-result p { color: var(--ink); font-size: 14px; line-height: 1.62; }

.tariff-scope { color: var(--ink-2); font-size: 13.5px; line-height: 1.62; }

.tariff-note {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px; line-height: 1.55;
}

/* направление с одним тарифом → центрированная «фичевая» карточка */
.svc-cat-grid.n-1 .tariff { max-width: 740px; margin-inline: auto; width: 100%; }

/* ступенчатое появление внутренностей карточки при reveal */
@media (prefers-reduced-motion: no-preference) {
  .tariff-pitch, .tariff-result, .tariff-seg, .tariff-note {
    opacity: 0; transform: translateY(12px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  }
  .tariff.in .tariff-pitch  { opacity: 1; transform: none; transition-delay: .06s; }
  .tariff.in .tariff-result { opacity: 1; transform: none; transition-delay: .14s; }
  .tariff.in .tariff-seg    { opacity: 1; transform: none; transition-delay: .22s; }
  .tariff.in .tariff-note   { opacity: 1; transform: none; transition-delay: .30s; }
}

/* ── CTA BAND ─────────────────────────────────────────────── */
.sv-cat-cta {
  margin-top: 56px;
  padding: 48px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(var(--red-glow), 0.05), rgba(255,255,255,0.004));
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.sv-cat-cta::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--red), transparent 80%);
}
.sv-cat-cta h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: -0.02em; line-height: 1.08;
}
.sv-cat-cta h3 .accent { color: var(--red); }
.sv-cat-cta p { color: var(--ink-2); margin-top: 14px; font-size: 15px; line-height: 1.6; max-width: 480px; }
.sv-cat-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 900px) {
  .sv-cat-cta { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .sv-cat-cta-actions { justify-content: flex-start; }
}
