/* ═══════════════════════════════════════════════
   SERVICE PAGE — shared styles
   service.css — подключается к каждой странице услуги
═══════════════════════════════════════════════ */

/* ── Back button ── */
.sp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; margin-bottom: 36px;
  transition: color .2s, gap .2s;
  letter-spacing: .3px;
}
.sp-back:hover { color: var(--white); gap: 10px; }

/* ── HERO ── */
.sp-hero {
  min-height: 100vh; padding-top: 70px;
  display: grid; grid-template-columns: 1fr 420px;
  align-items: center; gap: 60px;
  padding-left: 60px; padding-right: 60px;
  padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.sp-hero-glow {
  position: absolute; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,0,.14) 0%, rgba(255,92,0,.04) 40%, transparent 70%);
  right: -100px; top: 50%; transform: translateY(-50%);
  filter: blur(50px);
  animation: glowPulse 6s ease-in-out infinite;
}
.sp-hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.sp-hero-inner { position: relative; z-index: 2; padding-top: 40px; }

.sp-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 28px;
}
.sp-hero-ico {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--orange-dim); border: 1px solid rgba(255,92,0,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.sp-hero-h {
  font-family: var(--fh);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 900; line-height: .88; letter-spacing: -3.5px;
  margin-bottom: 28px;
}
.sp-hero-h em { font-style: italic; font-weight: 400; color: var(--muted); }

.sp-hero-desc {
  font-size: 17px; color: var(--muted); line-height: 1.78;
  max-width: 520px; margin-bottom: 32px;
}
.sp-hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.sp-hero-pills span {
  font-size: 12px; color: var(--muted); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 100px; letter-spacing: .3px;
  transition: border-color .2s, color .2s;
}
.sp-hero-pills span:hover { border-color: rgba(255,92,0,.4); color: rgba(255,165,100,.9); }
.sp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Phone mockup ── */
.sp-hero-mockup {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 2;
}
.sp-phone {
  width: 220px; height: 440px;
  background: var(--black2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,92,0,.08), inset 0 0 40px rgba(255,92,0,.03);
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}
.sp-phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 26px;
  background: var(--black);
  border-radius: 0 0 18px 18px;
  z-index: 10;
}
.sp-phone-screen {
  position: absolute; inset: 8px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a18, #0f0f0e);
}
.sp-screen-ui {
  padding: 44px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.sp-ui-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), rgba(255,92,0,.3));
  width: 60%;
}
.sp-ui-card {
  height: 48px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.sp-ui-card--sm { height: 32px; width: 70%; }
.sp-ui-card--tall { height: 72px; }
.sp-ui-row { display: flex; gap: 8px; }
.sp-ui-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}
.sp-ui-dot--orange { background: var(--orange-dim); border-color: rgba(255,92,0,.3); }

/* ── STATS ── */
.sp-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black2);
}
.sp-stat {
  padding: 40px 48px;
  border-right: 1px solid var(--border);
  position: relative; transition: background .3s;
}
.sp-stat:last-child { border-right: none; }
.sp-stat:hover { background: rgba(255,255,255,.02); }
.sp-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; transition: background .3s;
}
.sp-stat:hover::before { background: var(--orange); }
.sp-stat-n {
  font-family: var(--fh); font-size: 52px; font-weight: 900;
  letter-spacing: -2px; line-height: 1; color: var(--white);
}
.sp-stat-n sup { font-size: 22px; color: var(--orange); }
.sp-stat-l { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ── SECTIONS ── */
.sp-section, .sp-stack, .sp-process, .sp-cases, .sp-faq, .sp-other {
  padding: 100px 60px;
}
.sp-section { background: var(--black); }
.sp-stack { background: var(--black2); }
.sp-process { background: var(--black); }
.sp-cases { background: var(--black2); }
.sp-faq { background: var(--black); }
.sp-other { background: var(--black2); }

.sp-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange); display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.sp-section-label::before { content: ''; width: 20px; height: 1.5px; background: var(--orange); }
.sp-section-h {
  font-family: var(--fh);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900; line-height: .9; letter-spacing: -2px;
  margin-bottom: 56px;
}
.sp-section-h em { font-style: italic; font-weight: 400; color: var(--muted); }

/* ── TYPES GRID ── */
.sp-types-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  background: var(--border); border: 1px solid var(--border);
}
.sp-type-card {
  background: var(--black2); padding: 40px 36px;
  position: relative; transition: background .3s;
}
.sp-type-card:hover { background: var(--black3); }
.sp-type-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; transition: background .3s;
}
.sp-type-card:hover::before { background: var(--orange); }
.sp-type-num {
  font-family: var(--fh); font-size: 11px; letter-spacing: 2px;
  color: var(--muted2); margin-bottom: 16px;
}
.sp-type-name {
  font-family: var(--fh); font-size: 20px; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 12px;
}
.sp-type-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── TECH STACK ── */
.sp-stack-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px;
}
.sp-stack-group {}
.sp-stack-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.sp-stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-stack-items span {
  font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 6px;
  transition: border-color .2s, color .2s, background .2s;
}
.sp-stack-items span:hover {
  border-color: rgba(255,92,0,.3); color: var(--white);
  background: rgba(255,92,0,.05);
}

/* ── PROCESS STEPS ── */
.sp-steps { display: flex; flex-direction: column; }
.sp-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 40px; padding: 48px 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s; border-radius: 4px;
  padding-left: 16px; padding-right: 16px;
  margin-left: -16px; margin-right: -16px;
}
.sp-step:first-child { border-top: 1px solid var(--border); }
.sp-step:hover { background: rgba(255,255,255,.015); }
.sp-step-num {
  font-family: var(--fh); font-size: 56px; font-weight: 900;
  letter-spacing: -3px; line-height: 1;
  color: rgba(255,255,255,.04); transition: color .3s;
  padding-top: 4px;
}
.sp-step:hover .sp-step-num { color: rgba(255,92,0,.2); }
.sp-step-name {
  font-family: var(--fh); font-size: 26px; font-weight: 900;
  letter-spacing: -1px; margin-bottom: 6px;
}
.sp-step-time {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange); background: var(--orange-dim);
  padding: 3px 10px; border-radius: 100px; display: inline-block;
  margin-bottom: 16px;
}
.sp-step-desc { font-size: 15px; color: var(--muted); line-height: 1.78; margin-bottom: 20px; }
.sp-step-deliver { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-step-deliver span {
  font-size: 13px; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.sp-step-deliver span::before { content: '→'; color: var(--orange); font-weight: 700; }

/* ── CASES ── */
.sp-cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sp-case {
  background: var(--black3); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.sp-case:hover { border-color: rgba(255,92,0,.3); transform: translateY(-4px); }
.sp-case-img {
  height: 200px; position: relative;
  display: flex; align-items: flex-end; padding: 16px;
}
.sp-case-img--1 { background: linear-gradient(145deg,#111,#1a0d00); }
.sp-case-img--2 { background: linear-gradient(145deg,#0e0e0c,#160b00); }
.sp-case-img--3 { background: linear-gradient(145deg,#100f0d,#180c00); }
.sp-case-platform {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); background: rgba(8,8,7,.8);
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid rgba(255,92,0,.2);
}
.sp-case-info { padding: 24px; }
.sp-case-name {
  font-family: var(--fh); font-size: 20px; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 8px;
}
.sp-case-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.sp-case-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-case-tags span {
  font-size: 11px; color: rgba(250,249,246,.5);
  background: rgba(255,255,255,.06); padding: 3px 9px; border-radius: 100px;
}

/* ── FAQ ── */
.sp-faq-list { max-width: 800px; }
.sp-faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.sp-faq-item:first-child { border-top: 1px solid var(--border); }
.sp-faq-q {
  width: 100%; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--fb); font-size: 16px; font-weight: 500; color: var(--white);
  background: none; border: none; cursor: none;
  text-align: left; transition: color .2s;
}
.sp-faq-q:hover { color: var(--orange); }
.sp-faq-q svg { flex-shrink: 0; transition: transform .3s; opacity: .5; }
.sp-faq-item.open .sp-faq-q svg { transform: rotate(180deg); opacity: 1; }
.sp-faq-a {
  font-size: 15px; color: var(--muted); line-height: 1.78;
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 0 0;
}
.sp-faq-item.open .sp-faq-a {
  max-height: 300px;
  padding: 0 0 24px;
}

/* ── OTHER SERVICES ── */
.sp-other-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sp-other-card {
  background: var(--black3); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px 28px;
  text-decoration: none; color: var(--white);
  position: relative; transition: border-color .3s, background .3s, transform .3s;
  display: block;
}
.sp-other-card:hover { border-color: rgba(255,92,0,.35); background: var(--black); transform: translateY(-3px); }
.sp-other-ico { font-size: 28px; margin-bottom: 18px; }
.sp-other-name {
  font-family: var(--fh); font-size: 20px; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 8px;
}
.sp-other-desc { font-size: 14px; color: var(--muted); }
.sp-other-arr {
  position: absolute; top: 28px; right: 28px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted2);
  transition: all .3s;
}
.sp-other-card:hover .sp-other-arr {
  background: var(--orange); border-color: var(--orange);
  color: #080807; transform: rotate(45deg);
}

/* ── CTA ── */
.sp-cta {
  padding: 140px 60px; text-align: center;
  background: var(--black); position: relative; overflow: hidden;
}
.sp-cta-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,0,.09) 0%, transparent 65%);
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  filter: blur(40px); pointer-events: none;
}
.sp-cta-h {
  font-family: var(--fh);
  font-size: clamp(44px,6vw,80px);
  font-weight: 900; letter-spacing: -3px; line-height: .9;
  margin-bottom: 28px; position: relative;
}
.sp-cta-h em { font-style: italic; font-weight: 400; color: var(--muted); }
.sp-cta-sub { font-size: 17px; color: var(--muted); margin-bottom: 44px; position: relative; }
.sp-cta-btns { display: flex; gap: 12px; justify-content: center; position: relative; flex-wrap: wrap; }
.sp-cta-note { font-size: 13px; color: var(--muted2); margin-top: 20px; position: relative; }

/* ══════════════════════════════
   MOBILE SERVICE PAGE
══════════════════════════════ */
@media (max-width: 1024px) {
  .sp-hero {
    grid-template-columns: 1fr;
    padding: 100px 28px 60px;
    min-height: auto;
  }
  .sp-hero-mockup { display: none; }
  .sp-hero-h { font-size: clamp(44px,10vw,72px); letter-spacing: -2.5px; }
  .sp-hero-desc { font-size: 15px; }
  .sp-hero-ctas { flex-direction: column; }
  .sp-hero-ctas .btn-orange,
  .sp-hero-ctas .btn-outline { width: 100%; justify-content: center; }

  .sp-stats { grid-template-columns: 1fr 1fr; }
  .sp-stat { padding: 28px 24px; }
  .sp-stat-n { font-size: 40px; }

  .sp-section, .sp-stack, .sp-process, .sp-cases, .sp-faq, .sp-other { padding: 64px 28px; }
  .sp-types-grid { grid-template-columns: 1fr 1fr; }
  .sp-stack-grid { grid-template-columns: 1fr 1fr; }
  .sp-cases-grid { grid-template-columns: 1fr; }
  .sp-other-grid { grid-template-columns: 1fr; gap: 12px; }
  .sp-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .sp-step-num { font-size: 44px; }
  .sp-cta { padding: 80px 28px; }
  .sp-cta-btns { flex-direction: column; align-items: center; }
  .sp-cta-btns .btn-orange,
  .sp-cta-btns .btn-outline { width: 100%; max-width: 340px; justify-content: center; }
}

@media (max-width: 640px) {
  .sp-hero { padding: 90px 20px 48px; }
  .sp-hero-h { font-size: clamp(36px,12vw,56px); letter-spacing: -2px; }
  .sp-section-h { font-size: clamp(28px,8vw,44px); }
  .sp-stats { grid-template-columns: 1fr 1fr; }
  .sp-stat { padding: 24px 16px; }
  .sp-stat-n { font-size: 34px; }
  .sp-types-grid { grid-template-columns: 1fr; }
  .sp-stack-grid { grid-template-columns: 1fr; gap: 24px; }
  .sp-step { grid-template-columns: 1fr; gap: 4px; padding: 28px 0; }
  .sp-step-num { display: none; }
  .sp-section, .sp-stack, .sp-process, .sp-cases, .sp-faq, .sp-other { padding: 48px 20px; }
  .sp-type-card { padding: 28px 20px; }
  .sp-cta { padding: 64px 20px; }
  .sp-cta-h { font-size: clamp(32px,10vw,52px); }
  .sp-other-grid { grid-template-columns: 1fr; }
  .sp-faq-q { font-size: 14px; }
}
