/* ============================================
   SUBPAGE.CSS — Podstránky služieb
   ============================================ */

/* Každá podstránka má vlastný --sp-accent cez inline style */

/* ── SP HERO ─────────────────────────────── */

.sp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 100%);
}

.sp-hero__num {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(200px, 28vw, 380px);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.sp-hero__hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.sp-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.sp-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Primárne tlačidlo využíva accent farbu sekcie */
.sp-hero__actions .btn--primary {
  background: var(--sp-accent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--sp-accent) 40%, transparent);
}
.sp-hero__actions .btn--primary:hover {
  background: var(--sp-accent2);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--sp-accent) 60%, transparent);
}

/* ── SP VISUAL ───────────────────────────── */

.sp-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-visual {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-visual__char {
  position: relative;
  z-index: 2;
  font-size: 80px;
  color: var(--sp-accent);
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--sp-accent) 60%, transparent));
  animation: spCharFloat 4s ease-in-out infinite;
  line-height: 1;
}

@keyframes spCharFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-12px) scale(1.05); }
}

.sp-visual__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.sp-visual__ring--1 {
  width: 140px; height: 140px;
  border-color: color-mix(in srgb, var(--sp-accent) 40%, transparent);
  animation: spRingSpin 8s linear infinite;
}
.sp-visual__ring--2 {
  width: 240px; height: 240px;
  border-color: color-mix(in srgb, var(--sp-accent) 20%, transparent);
  animation: spRingSpin 14s linear infinite reverse;
}
.sp-visual__ring--3 {
  width: 340px; height: 340px;
  border-color: color-mix(in srgb, var(--sp-accent) 10%, transparent);
  animation: spRingSpin 20s linear infinite;
}

@keyframes spRingSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Bodka na ringu */
.sp-visual__ring--1::after,
.sp-visual__ring--2::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sp-accent);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--sp-accent);
}
.sp-visual__ring--2::after { width: 6px; height: 6px; top: -3px; }

.sp-visual__glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sp-accent) 25%, transparent) 0%, transparent 70%);
  pointer-events: none;
  animation: spGlowPulse 3s ease-in-out infinite;
}

@keyframes spGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.3); opacity: 0.4; }
}

/* ── FEATURES ────────────────────────────── */

.sp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  overflow: hidden;
}

.sp-feature {
  background: var(--clr-surface);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.sp-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.sp-feature:hover { background: var(--clr-surface-2); }
.sp-feature:hover::before { transform: scaleX(1); }

.sp-feature__num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--sp-accent);
  font-family: monospace;
  padding-top: 3px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sp-feature__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.sp-feature__desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ── PROCESS ─────────────────────────────── */

.sp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.sp-step {
  position: relative;
  padding: 0 24px 0 0;
}

.sp-step__num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.sp-step__line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sp-accent), transparent);
  margin-bottom: 20px;
  position: relative;
}
.sp-step__line::before {
  content: '';
  position: absolute;
  left: 0; top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sp-accent);
  box-shadow: 0 0 12px var(--sp-accent);
}
.sp-step:last-child .sp-step__line {
  background: linear-gradient(90deg, var(--sp-accent), rgba(255,255,255,0.05));
}

.sp-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 10px;
}

.sp-step__desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.65;
  padding-right: 16px;
}

/* ── CTA SEKCIA ──────────────────────────── */

.sp-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.sp-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--sp-accent) 10%, transparent) 0%,
    transparent 60%);
  border-top: 1px solid color-mix(in srgb, var(--sp-accent) 20%, transparent);
}

.sp-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.sp-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.sp-cta__sub {
  font-size: 0.95rem;
  color: var(--clr-muted);
}

.sp-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.sp-cta__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-cta__contact a {
  font-size: 0.85rem;
  color: var(--clr-muted);
  transition: color 0.2s;
}
.sp-cta__contact a:hover { color: var(--clr-white); }

/* ── RESPONZIVITA ────────────────────────── */

@media (max-width: 1024px) {
  .sp-hero__inner { grid-template-columns: 1fr; padding-top: 100px; }
  .sp-hero__visual { display: none; }
  .sp-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .sp-features { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-cta__inner { flex-direction: column; align-items: flex-start; }
  .sp-hero__num { display: none; }
  .sp-hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .sp-cta__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

@media (max-width: 480px) {
  .sp-hero { padding-bottom: 48px; }
  .sp-hero__eyebrow { font-size: 0.65rem; }
  .sp-step { padding: 20px; }
  .sp-feature { padding: 20px; }
  .sp-cta__btn { width: 100%; justify-content: center; }

  /* Tlačidlá v hero — nie full width, len prirodzená veľkosť */
  .sp-hero__actions .btn {
    width: auto !important;
    font-size: 0.9rem;
    padding: 12px 24px;
  }
  .sp-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
