/* ============================================================
   Ad Lead — Подстраницы (услуги, кейсы, процесс, отзывы,
   о нас, контакты, 404)
   ============================================================ */

/* ── Page Hero (с канвасом-«искрами») ─────────────────────── */
.page-hero {
  position: relative;
  padding: 170px 48px 70px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(0,102,255,0.12) 0%, transparent 70%);
}
.sparkles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 760px; margin-inline: auto; }
.page-hero__title {
  font-size: clamp(40px, 6vw, 76px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.04em; color: var(--text-2);
  margin-bottom: 22px;
}
.page-hero__title .accent {
  background: linear-gradient(95deg, #4D9FFF 5%, #2EE6C8 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero__sub {
  font-size: 17px; line-height: 1.75; color: var(--text-2);
  max-width: 560px; margin-inline: auto;
}

/* ── Tubelight subnav ─────────────────────────────────────── */
.subnav {
  position: sticky; top: 92px; z-index: 90;
  display: flex; justify-content: center;
  padding: 0 20px; margin-bottom: 70px;
}
.subnav__inner {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(14,14,14,0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__link {
  position: relative; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 9px 18px; border-radius: 999px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.subnav__link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.subnav__link.active { color: #fff; background: rgba(77,159,255,0.13); }
/* «лампа» сверху — как tubelight */
.subnav__link.active::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #4D9FFF, #2EE6C8);
  box-shadow: 0 2px 14px 2px rgba(77,159,255,0.65), 0 0 28px 6px rgba(77,159,255,0.25);
}

/* ── Общие блоки контента ─────────────────────────────────── */
.page-section { max-width: var(--max-w); margin-inline: auto; padding: 0 48px 90px; }
.page-section--narrow { max-width: 880px; }
.page-section__head { margin-bottom: 40px; }
.page-section__title {
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15;
}

/* ── Bento grid (услуги) ──────────────────────────────────── */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.bento__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.bento__card:hover {
  border-color: rgba(77,159,255,0.35); transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 32px rgba(0,102,255,0.07);
}
.bento__card--lg { grid-column: span 2; }
.bento__card--lg::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.bento__num {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: #4D9FFF;
}
.bento__title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.bento__desc { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.bento__list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bento__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--text-2); line-height: 1.5;
}
.bento__list li::before {
  content: ''; flex-shrink: 0; margin-top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(90deg, #4D9FFF, #2EE6C8);
}
.bento__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.bento__tag {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border);
}

/* ── Liquid glass карточки ────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px rgba(0,0,0,0.4);
}

/* ── Кейсы (детально) ─────────────────────────────────────── */
.case-detail {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 36px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px; margin-bottom: 18px;
  transition: border-color var(--ease);
}
.case-detail:hover { border-color: var(--border-2); }
.case-detail__cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #4D9FFF; margin-bottom: 14px;
}
.case-detail__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 18px; }
.case-detail__metrics { display: flex; gap: 28px; flex-wrap: wrap; }
.case-detail__metric { display: flex; flex-direction: column; gap: 4px; }
.case-detail__val {
  font-size: 30px; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(95deg, #FFFFFF 25%, #4D9FFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.case-detail__key { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.case-detail__body { display: flex; flex-direction: column; gap: 18px; }
.case-detail__block h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.case-detail__block p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }

/* ── Процесс (таймлайн) ───────────────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 16px; bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(77,159,255,0.5), rgba(46,230,200,0.25), var(--border));
}
.timeline__item {
  position: relative; display: grid;
  grid-template-columns: 56px 1fr; gap: 26px;
  padding: 26px 0;
}
.timeline__dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid rgba(77,159,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #4D9FFF;
  position: relative; z-index: 1;
  box-shadow: 0 0 22px rgba(0,102,255,0.18);
}
.timeline__content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  transition: border-color var(--ease), transform var(--ease);
}
.timeline__item:hover .timeline__content { border-color: var(--border-2); transform: translateX(4px); }
.timeline__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.timeline__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.timeline__dur { font-size: 12px; font-weight: 600; color: #2EE6C8; white-space: nowrap; }
.timeline__desc { font-size: 14px; line-height: 1.7; color: var(--text-2); margin-bottom: 12px; }
.timeline__result {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
  padding: 12px 16px; border-radius: 10px;
  background: rgba(77,159,255,0.06); border: 1px solid rgba(77,159,255,0.14);
}
.timeline__result strong { color: #fff; font-weight: 600; }

/* ── Отзывы с аватарами ───────────────────────────────────── */
.testimonials { columns: 3; column-gap: 16px; }
.testimonial {
  break-inside: avoid; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--ease);
}
.testimonial:hover { border-color: var(--border-2); }
.testimonial__stars { color: #FFC53D; font-size: 13px; letter-spacing: 3px; }
.testimonial__text { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.testimonial__person { display: flex; align-items: center; gap: 13px; }
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1f5fd0, #19b8a6);
}
.testimonial:nth-child(2n) .testimonial__avatar { background: linear-gradient(135deg, #3b3f8f, #1f5fd0); }
.testimonial:nth-child(3n) .testimonial__avatar { background: linear-gradient(135deg, #19b8a6, #2e7d6b); }
.testimonial__name { font-size: 14px; font-weight: 600; color: #fff; }
.testimonial__company { font-size: 12px; color: var(--text-muted); }

/* ── О нас ────────────────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value-card {
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.value-card__num {
  font-size: 13px; font-weight: 700;
  background: linear-gradient(95deg, #4D9FFF, #2EE6C8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.value-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.value-card p { font-size: 14px; line-height: 1.7; color: var(--text-2); }

.team-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-role {
  text-align: center; padding: 32px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), transform var(--ease);
}
.team-role:hover { border-color: var(--border-2); transform: translateY(-4px); }
.team-role__avatar {
  width: 58px; height: 58px; border-radius: 16px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(77,159,255,0.1); border: 1px solid rgba(77,159,255,0.2);
}
.team-role h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.team-role p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px;
  font-size: 15px; font-weight: 600;
  transition: color var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--text-muted);
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); color: #4D9FFF; }
.faq__item p { padding: 0 24px 20px; font-size: 14px; line-height: 1.7; color: var(--text-2); }

/* ── CTA-полоса внизу страниц ─────────────────────────────── */
.page-cta {
  max-width: var(--max-w); margin: 0 auto 90px; padding: 0 48px;
}
.page-cta__inner {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 64px 48px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
}
.page-cta__inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 20% 100%, rgba(0,102,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 45% 70% at 85% 0%, rgba(46,230,200,0.07) 0%, transparent 70%);
}
.page-cta__title {
  position: relative;
  font-size: clamp(26px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.page-cta__sub { position: relative; font-size: 15px; color: var(--text-2); margin-bottom: 30px; }
.page-cta .btn { position: relative; }

/* ── 404 (8-bit) ──────────────────────────────────────────── */
.nf {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  text-align: center; padding: 24px; position: relative; overflow: hidden;
}
.nf::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
}
.nf__code {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(54px, 14vw, 120px); line-height: 1;
  color: #fff;
  text-shadow: 4px 4px 0 #0066FF, 8px 8px 0 rgba(46,230,200,0.45);
  animation: nfGlitch 2.4s steps(1) infinite;
}
@keyframes nfGlitch {
  0%, 92%  { transform: none; }
  93%      { transform: translate(-3px, 1px) skewX(-2deg); }
  95%      { transform: translate(3px, -2px); }
  97%      { transform: translate(-1px, 2px) skewX(2deg); }
  99%      { transform: none; }
}
.nf__title { font-family: 'Press Start 2P', monospace; font-size: clamp(13px, 2.4vw, 18px); color: var(--text-2); line-height: 1.8; }
.nf__sub { font-size: 14px; color: var(--text-muted); max-width: 420px; line-height: 1.7; }
.nf__btn {
  font-family: 'Press Start 2P', monospace; font-size: 12px;
  color: #000; background: #fff;
  padding: 18px 30px; border: none; cursor: pointer;
  box-shadow: 0 6px 0 #0066FF;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nf__btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #0066FF; }
.nf__btn:active { transform: translateY(6px); box-shadow: 0 0 0 #0066FF; }
.nf__hint { font-size: 11px; color: var(--text-muted); letter-spacing: .14em; text-transform: uppercase; animation: nfBlink 1.4s steps(1) infinite; }
@keyframes nfBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }

/* ── Простой футер подстраниц ─────────────────────────────── */
.subfooter {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: var(--max-w); margin-inline: auto;
  font-size: 13px; color: var(--text-muted);
}
.subfooter a { transition: color var(--ease); }
.subfooter a:hover { color: var(--text-2); }
.subfooter__nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--lg { grid-column: span 2; }
  .testimonials { columns: 2; }
  .case-detail { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 140px 20px 50px; }
  .page-section { padding: 0 20px 64px; }
  .page-cta { padding: 0 20px; margin-bottom: 64px; }
  .subnav { top: 84px; }
  .values { grid-template-columns: 1fr; }
  .team-roles { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--lg { grid-column: span 1; }
  .testimonials { columns: 1; }
  .timeline::before { left: 21px; }
  .timeline__dot { width: 44px; height: 44px; font-size: 13px; }
  .timeline__item { grid-template-columns: 44px 1fr; gap: 16px; }
  .subfooter { flex-direction: column; text-align: center; }
}

/* ── Страница отдельной услуги ────────────────────────────── */
.svc-page { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.svc-page__intro {
  font-size: 19px; line-height: 1.7; color: var(--text-2);
  max-width: 760px; margin: 0 auto 56px; text-align: center;
}
.svc-page__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.svc-page__col {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.svc-page__h { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.svc-page__list li {
  position: relative; padding: 9px 0 9px 28px;
  font-size: 15px; color: var(--text-2);
  border-bottom: 1px dashed var(--border);
}
.svc-page__list li::before {
  content: '✓'; position: absolute; left: 2px; color: #00C8FF; font-weight: 700;
}
.svc-page__steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.svc-page__steps li { display: flex; gap: 16px; align-items: flex-start; }
.svc-page__step-num {
  flex-shrink: 0; width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(51,133,255,0.5); border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #3385FF;
}
.svc-page__steps strong { display: block; font-size: 15px; margin-bottom: 4px; }
.svc-page__steps p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.svc-page__result {
  padding: 38px 34px;
  border: 1px solid rgba(0,102,255,0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0,102,255,0.08), rgba(0,200,255,0.02));
}
.svc-page__result > p { font-size: 16px; color: var(--text-2); line-height: 1.7; max-width: 720px; }
.svc-page__meta { display: flex; gap: 48px; margin: 26px 0 30px; flex-wrap: wrap; }
.svc-page__meta-label {
  display: block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.svc-page__meta-val { font-size: 22px; font-weight: 800; }
.svc-page__meta-val--price {
  background: linear-gradient(90deg, #4D9FFF, #00C8FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.svc-page__cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .svc-page__grid { grid-template-columns: 1fr; }
  .svc-page__intro { font-size: 16px; margin-bottom: 36px; }
  .svc-page__meta { gap: 28px; }
}
