/* =========================================================
   HB SEO Service - SEO page (extra styles)
   Needs services.css loaded first (shared tokens, buttons, cards)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.seo-page #packages, .seo-page #quote { scroll-margin-top: 90px; }

/* ---------------- Hero ---------------- */
.seo-hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.seo-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 50%, rgba(47,123,255,.28), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(47,123,255,.14), transparent 70%),
    linear-gradient(180deg, #060b16, #0a1226 60%, #060b16);
}
.seo-hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }

.seo-hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #e6eeff;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
}
.seo-hero__badge svg { width: 18px; height: 18px; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.6; stroke-linecap: round; }

.seo-hero__title {
  margin-top: 26px; font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: #fff;
}
.seo-hero__blue {
  background: linear-gradient(180deg, #5db4ff, #1f63f0); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.seo-hero__title em {
  display: inline-block; font-style: italic; padding-right: .1em;
  background: linear-gradient(90deg, #f0a52c, #ffd987); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.seo-hero__text { margin-top: 24px; max-width: 520px; font-size: 17px; line-height: 1.65; color: #b9c4dc; }
.seo-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.seo-hero__actions .sv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.seo-hero__actions .sv-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* visual */
.seo-hero__visual { position: relative; }
.seo-hero__dots {
  position: absolute; inset: -30px -20px auto -20px; height: 55%; opacity: .5; z-index: 0;
  background-image: radial-gradient(rgba(93,180,255,.55) 1.2px, transparent 1.6px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 30%, #000, transparent);
          mask-image: radial-gradient(70% 80% at 60% 30%, #000, transparent);
}
.seo-stage { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.seo-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: seoDraw 1.6s .5s var(--sv-ease) forwards; }
.seo-area { opacity: 0; animation: seoFade 1s 1.3s ease forwards; }
.seo-bars rect { transform-box: fill-box; transform-origin: bottom; animation: seoRise 1s var(--sv-ease) backwards; }
.seo-bars rect:nth-child(2) { animation-delay: .15s; }
.seo-bars rect:nth-child(3) { animation-delay: .3s; }
.seo-arrow { opacity: 0; animation: seoFade .8s 1.2s ease forwards; }
@keyframes seoDraw { to { stroke-dashoffset: 0; } }
@keyframes seoFade { to { opacity: 1; } }
@keyframes seoRise { from { transform: scaleY(0); } }

.seo-chip {
  position: absolute; z-index: 2; top: 15%; left: 41%; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 14px; border: 1px solid rgba(93,180,255,.35);
  background: rgba(10,18,38,.85); backdrop-filter: blur(8px); box-shadow: 0 14px 30px rgba(0,0,0,.4);
  animation: seoFloat 5s ease-in-out infinite;
}
.seo-chip svg { width: 28px; height: 28px; padding: 5px; border-radius: 8px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(160deg, #2f7bff, #1a4fd6); }
.seo-chip strong { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1; }
.seo-chip span { font-size: 12px; color: #9fb0d0; }

.seo-points {
  position: absolute; z-index: 2; top: 22%; left: -2%; display: grid; gap: 8px; padding: 12px;
  border-radius: 16px; border: 1px solid rgba(93,180,255,.25); background: rgba(10,18,38,.82);
  backdrop-filter: blur(8px); box-shadow: 0 14px 30px rgba(0,0,0,.4);
  animation: seoFloat 6s .6s ease-in-out infinite;
}
.seo-points li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; font-weight: 600; color: #e6eeff; white-space: nowrap; }
.seo-points svg { width: 18px; height: 18px; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes seoFloat { 50% { transform: translateY(-8px); } }

@media (max-width: 1100px) {
  .seo-hero { padding: 40px 0 56px; }
  .seo-hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .seo-hero__text { max-width: 600px; }
  .seo-hero__visual { max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 680px) {
  .seo-hero__actions .sv-btn { width: 100%; }
  .seo-points { position: static; margin-top: 12px; grid-template-columns: 1fr; animation: none; }
  .seo-chip { top: 6%; left: 30%; padding: 8px 12px 8px 8px; }
  .seo-chip strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-chip, .seo-points { animation: none; }
  .seo-line, .seo-area, .seo-arrow, .seo-bars rect { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---------------- Intro ---------------- */
.seo-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.seo-intro__copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.seo-intro__copy p { margin-top: 16px; font-size: 17px; max-width: 560px; }
.seo-intro__points { border-top: 1px solid var(--sv-line); }
.seo-intro__points li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--sv-line); }
.seo-intro__points svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: rgba(47,123,255,.14); }
.seo-intro__points h3 { font-size: 18px; font-weight: 700; }
.seo-intro__points p { margin-top: 4px; font-size: 15px; }

/* ---------------- Service cards ---------------- */
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.seo-grid .sv-card { padding-top: 34px; }
.seo-grid .sv-card h3 { margin-top: 0; font-size: 21px; line-height: 1.25; min-height: 2.5em; }
.seo-price {
  margin: 14px 0 4px; font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.seo-price small { display: inline-block; margin-right: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--sv-muted); }
.seo-grid .sv-list { margin: 20px 0 28px; }

.seo-featured {
  grid-column: 1 / -1; flex-direction: row; gap: 48px; align-items: center; padding: 40px 42px;
  border-color: rgba(47,123,255,.55);
  background: linear-gradient(160deg, #1b2a4a, #121b2e);
}
.seo-featured::before { opacity: 1; height: 3px; }
.seo-featured__main { flex: 1 1 46%; }
.seo-featured__main h3 { min-height: 0; font-size: 28px; }
.seo-featured__main p { margin: 12px 0 26px; max-width: 420px; }
.seo-grid .seo-featured .sv-list { flex: 1 1 54%; margin: 0; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.seo-featured .sv-btn { align-self: flex-start; }

.seo-note { margin-top: 28px; text-align: center; font-size: 14.5px; }

/* ---------------- Quote form ---------------- */
.seo-quote {
  position: relative; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px;
  padding: 56px; border-radius: 28px; border: 1px solid rgba(47,123,255,.4);
  background: linear-gradient(160deg, #16213a, #0f1727);
}
.seo-quote .sv-cta__glow { top: -460px; left: 20%; }
.seo-quote > *:not(.sv-cta__glow) { position: relative; }
.seo-quote__intro h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.seo-quote__intro p { margin-top: 14px; font-size: 16.5px; }
.seo-quote__facts { margin: 26px 0 28px; display: grid; gap: 12px; }
.seo-quote__facts li { position: relative; padding-left: 24px; color: #cfd8ea; font-size: 15px; }
.seo-quote__facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--sv-blue-2); box-shadow: 0 0 0 4px rgba(47,123,255,.2); }
.seo-quote__mail { color: var(--sv-blue-2); font-weight: 600; border-bottom: 1px solid rgba(74,168,255,.4); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.seo-quote__mail:hover { color: #fff; border-color: #fff; }

.seo-form { display: grid; gap: 18px; }
.seo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.seo-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: #cfd8ea; }
.seo-form input, .seo-form select, .seo-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--sv-line);
  background: rgba(8,13,22,.7); color: #fff; font: inherit; font-size: 15px; font-weight: 400;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.seo-form textarea { resize: vertical; min-height: 130px; }
.seo-form select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f9bb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.seo-form select option { background: #0f1727; color: #fff; }
.seo-form input::placeholder, .seo-form textarea::placeholder { color: #5f6c85; }
.seo-form input:focus, .seo-form select:focus, .seo-form textarea:focus {
  outline: none; border-color: var(--sv-blue); box-shadow: 0 0 0 4px rgba(47,123,255,.18); background: rgba(8,13,22,.95);
}
.seo-form .sv-btn { justify-self: start; min-width: 200px; }
.seo-form__messages p { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; color: #fff; background: rgba(47,123,255,.15); border: 1px solid rgba(47,123,255,.45); }
.seo-form__messages p.error { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.5); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .seo-intro { grid-template-columns: 1fr; gap: 36px; }
  .seo-grid { grid-template-columns: 1fr 1fr; }
  .seo-quote { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
}
@media (max-width: 820px) {
  .seo-featured { flex-direction: column; align-items: stretch; gap: 28px; padding: 32px 26px; }
}
@media (max-width: 680px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-grid .sv-card h3 { min-height: 0; }
  .seo-grid .seo-featured .sv-list { grid-template-columns: 1fr; }
  .seo-form__row { grid-template-columns: 1fr; }
  .seo-form .sv-btn { width: 100%; }
  .seo-quote { padding: 34px 20px; }
}
