/* ============================================================
STYLE.CSS - ZUNIX SECURITY
Structure mirrors zunix.eu/style.css
01. Foundation
02. Core UI
04. Theme Override (Security: black + green accent)
05.1 Header + Navigation
05.2 Layout + Hero
05.3 Cards / Services / Contact
05.4 Process + Footer
============================================================ */

/* ============================================================
01. FOUNDATION (GLOBAL TOKENS + RESET)
============================================================ */
:root {
  --bg: #ffffff;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: #ffffff;
  --hover-overlay: rgba(0, 0, 0, 0.06);

  --text-main: #000000;
  --text-muted: rgba(0, 0, 0, 0.66);

  --border: rgba(0, 0, 0, 0.14);
  --border-light: rgba(0, 0, 0, 0.08);

  --accent: #00cc66;
  --accent-dim: rgba(0, 204, 102, 0.1);
  --accent-glow: rgba(0, 204, 102, 0.22);
  --focus-ring: 0 0 0 3px rgba(0, 204, 102, 0.28);
  --particle-color: rgba(0, 0, 0, 0.14);
    
  --success: #10b981;
  --error: #ef4444;
    
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --theme-switch-duration: 760ms;
  --theme-switch-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-switch-ease-soft: cubic-bezier(0.28, 0.11, 0.22, 1);
  --canvas-switch-duration: 820ms;

  --surface-dark-bg: #ffffff;
  --surface-dark-text: #000000;
  --surface-dark-muted: rgba(0, 0, 0, 0.7);
}

body.js-enhanced .js-hover-target,
body.js-enhanced .services-card,
body.js-enhanced .services-project-card,
body.js-enhanced .services-tariff-card,
body.js-enhanced .z-showcase-card,
body.js-enhanced .sec-step,
body.js-enhanced .services-live-panel {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
              background-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-enhanced .js-hover-target::after,
body.js-enhanced .services-card::after,
body.js-enhanced .services-project-card::after,
body.js-enhanced .services-tariff-card::after,
body.js-enhanced .z-showcase-card::after,
body.js-enhanced .sec-step::after,
body.js-enhanced .services-live-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, transparent, var(--hover-overlay));
}

body.js-enhanced .js-hover-target.is-hovering,
body.js-enhanced .services-card:hover,
body.js-enhanced .services-project-card:hover,
body.js-enhanced .services-tariff-card:hover,
body.js-enhanced .z-showcase-card:hover,
body.js-enhanced .sec-step:hover,
body.js-enhanced .services-live-panel:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  animation: z-hover-breathe 2.8s ease-in-out infinite;
}

body.js-enhanced .js-hover-target.is-hovering::after,
body.js-enhanced .services-card:hover::after,
body.js-enhanced .services-project-card:hover::after,
body.js-enhanced .services-tariff-card:hover::after,
body.js-enhanced .z-showcase-card:hover::after,
body.js-enhanced .sec-step:hover::after,
body.js-enhanced .services-live-panel:hover::after {
  opacity: 1;
}

body.js-enhanced .js-hover-target-soft {
  transform: translateZ(0);
  will-change: transform, box-shadow, opacity;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-enhanced .js-hover-target-soft.is-hovering {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  animation: z-hover-breathe-soft 2.2s ease-in-out infinite;
}

@keyframes z-hover-breathe {
  0%,
  100% {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  }

  50% {
    transform: translateY(-10px) scale(1.016);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  }
}

@keyframes z-hover-breathe-soft {
  0%,
  100% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  }

  50% {
    transform: translateY(-3px) scale(1.013);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.js-enhanced .js-hover-target,
  body.js-enhanced .js-hover-target-soft,
  body.js-enhanced .services-card,
  body.js-enhanced .services-project-card,
  body.js-enhanced .services-tariff-card,
  body.js-enhanced .z-showcase-card,
  body.js-enhanced .sec-step,
  body.js-enhanced .services-live-panel,
  body.js-enhanced .services-contact-form,
  body.js-enhanced .services-contact-aside,
  body.js-enhanced .js-hover-target::after,
  body.js-enhanced .services-card::after,
  body.js-enhanced .services-project-card::after,
  body.js-enhanced .services-tariff-card::after,
  body.js-enhanced .z-showcase-card::after,
  body.js-enhanced .sec-step::after,
  body.js-enhanced .services-live-panel::after,
  body.js-enhanced .services-contact-form::after,
  body.js-enhanced .services-contact-aside::after {
    transition: none !important;
    animation: none !important;
  }
}

html[data-zunix-cursor="1"] body,
html[data-zunix-cursor="1"] body a,
html[data-zunix-cursor="1"] body button,
html[data-zunix-cursor="1"] body .services-card,
html[data-zunix-cursor="1"] body .services-project-card,
html[data-zunix-cursor="1"] body .services-tariff-card,
html[data-zunix-cursor="1"] body .z-showcase-card,
html[data-zunix-cursor="1"] body .sec-step,
html[data-zunix-cursor="1"] body .services-live-panel,
html[data-zunix-cursor="1"] body .services-contact-form,
html[data-zunix-cursor="1"] body .services-contact-aside {
  cursor: var(--zunix-cursor-default, auto);
}

html[data-zunix-cursor="1"] body a:hover,
html[data-zunix-cursor="1"] body button:hover,
html[data-zunix-cursor="1"] body .services-card:hover,
html[data-zunix-cursor="1"] body .services-project-card:hover,
html[data-zunix-cursor="1"] body .services-tariff-card:hover,
html[data-zunix-cursor="1"] body .z-showcase-card:hover,
html[data-zunix-cursor="1"] body .sec-step:hover,
html[data-zunix-cursor="1"] body .services-live-panel:hover {
  cursor: var(--zunix-cursor-hover, pointer);
}

@media (hover: none), (pointer: coarse) {
  html[data-zunix-cursor="1"] body,
  html[data-zunix-cursor="1"] body a,
  html[data-zunix-cursor="1"] body button,
  html[data-zunix-cursor="1"] body .services-card,
  html[data-zunix-cursor="1"] body .services-project-card,
  html[data-zunix-cursor="1"] body .services-tariff-card,
  html[data-zunix-cursor="1"] body .z-showcase-card,
  html[data-zunix-cursor="1"] body .sec-step,
  html[data-zunix-cursor="1"] body .services-live-panel,
  html[data-zunix-cursor="1"] body .services-contact-form,
  html[data-zunix-cursor="1"] body .services-contact-aside {
    cursor: auto !important;
  }
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-panel: #000000;
    --bg-card: #000000;
    --bg-nav: #000000;
    
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    
    --border: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --accent: #00cc66;
    --accent-dim: rgba(0, 204, 102, 0.1);
    --accent-glow: rgba(0, 204, 102, 0.24);
    --focus-ring: 0 0 0 3px rgba(0, 204, 102, 0.32);
    --particle-color: rgba(255, 255, 255, 0.2);
    --hover-overlay: rgba(255, 255, 255, 0.08);

    --surface-dark-bg: #000000;
    --surface-dark-text: #ffffff;
    --surface-dark-muted: rgba(255, 255, 255, 0.74);
}

html[data-theme-style="pure-dark"] {
  --bg: #000000;
  --bg-panel: #000000;
  --bg-card: #000000;
  --bg-nav: #000000;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.1);
  --hover-overlay: rgba(255, 255, 255, 0.08);
  --surface-dark-bg: #000000;
  --surface-dark-text: #ffffff;
  --surface-dark-muted: rgba(255, 255, 255, 0.74);
  --particle-color: rgba(255, 255, 255, 0.2);
}

html[data-theme-style="pure-white"] {
  --bg: #ffffff;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: #ffffff;
  --text-main: #000000;
  --text-muted: rgba(0, 0, 0, 0.66);
  --border: rgba(0, 0, 0, 0.14);
  --border-light: rgba(0, 0, 0, 0.08);
  --surface-dark-bg: #ffffff;
  --surface-dark-text: #000000;
  --surface-dark-muted: rgba(0, 0, 0, 0.7);
  --particle-color: rgba(0, 0, 0, 0.14);
}

html[data-theme-style="ambient-dark"] {
  --bg: #121212;
  --bg-panel: #121212;
  --bg-card: #181818;
  --bg-nav: #121212;
  --text-main: #e0e0e0;
  --text-muted: rgba(224, 224, 224, 0.72);
  --border: rgba(224, 224, 224, 0.2);
  --border-light: rgba(224, 224, 224, 0.1);
  --hover-overlay: rgba(224, 224, 224, 0.12);
  --surface-dark-bg: #181818;
  --surface-dark-text: #e0e0e0;
  --surface-dark-muted: rgba(224, 224, 224, 0.74);
  --particle-color: rgba(224, 224, 224, 0.26);
}

html[data-theme-style="ambient-white"] {
  --bg: #f0f0f0;
  --bg-panel: #f0f0f0;
  --bg-card: #f7f7f7;
  --bg-nav: #f0f0f0;
  --text-main: #333333;
  --text-muted: rgba(51, 51, 51, 0.72);
  --border: rgba(51, 51, 51, 0.2);
  --border-light: rgba(51, 51, 51, 0.1);
  --hover-overlay: rgba(51, 51, 51, 0.08);
  --surface-dark-bg: #f5f5f5;
  --surface-dark-text: #333333;
  --surface-dark-muted: rgba(51, 51, 51, 0.74);
  --particle-color: rgba(51, 51, 51, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body, html {
  transition: background-color var(--theme-switch-duration) var(--theme-switch-ease),
              color var(--theme-switch-duration) var(--theme-switch-ease);
}

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition-property: background, background-color, color, border-color, box-shadow, fill, stroke, filter, opacity, transform !important;
  transition-delay: 0ms !important;
  transition-duration: var(--theme-switch-duration) !important;
  transition-timing-function: var(--theme-switch-ease) !important;
}

.zunix-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--canvas-switch-duration) var(--theme-switch-ease-soft),
              filter var(--theme-switch-duration) var(--theme-switch-ease);
  will-change: opacity, filter;
}

body.has-canvas-ambient.services-page {
  isolation: isolate;
}

body.zunix-canvas-ready .zunix-ambient-canvas {
  opacity: 0;
}

html[data-theme-style="ambient-dark"] body.zunix-canvas-ready .zunix-ambient-canvas,
html[data-theme-style="ambient-white"] body.zunix-canvas-ready .zunix-ambient-canvas {
  opacity: 1;
}

body.has-canvas-ambient .services-main,
body.has-canvas-ambient .services-footer,
body.has-canvas-ambient .services-header {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
02. CORE UI
============================================================ */
input,
textarea {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
  font-family: inherit;
  font-size: 0.92rem;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

@keyframes pulse-mini {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ============================================================
04. THEME: SERVICES PAGE (SECURITY)
============================================================ */
body.services-page {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --- 05.1) Header + Navigation --- */
.services-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
  backdrop-filter: none;
}

.services-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 76px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.services-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.services-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none;
}

.sec-brand-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.services-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.services-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.services-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.services-nav-open .services-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.services-nav-open .services-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.services-nav-open .services-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.services-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.services-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-nav);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.services-nav-dropdown:hover .services-nav-dropdown-menu,
.services-nav-dropdown:focus-within .services-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-nav-dropdown.is-closing .services-nav-dropdown-menu,
.services-nav-dropdown.is-locked .services-nav-dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-6px) !important;
  pointer-events: none;
}

.services-nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.services-nav-dropdown-menu a:hover {
  background: var(--hover-overlay);
  opacity: 1;
}

.services-nav a,
.services-offer-btn,
.services-nav-dropdown-toggle-btn {
  text-decoration: none;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
}

.services-nav a:hover,
.services-offer-btn:hover,
.services-nav-dropdown-toggle-btn:hover {
  opacity: 0.75;
}

.services-nav-dropdown-toggle-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.services-link-external-icon {
  margin-left: 6px;
  font-size: 0.78em;
  opacity: 0.9;
  font-style: normal;
  line-height: 1;
}

.services-link-external-icon.bi-box-arrow-up-right::before {
  content: "↗";
}

.services-lang-dropdown .services-nav-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 150px;
}

.services-offer-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.services-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
  opacity: 1;
}

.services-nav-back:hover {
  opacity: 0.75;
}

.services-nav-link-live,
.services-nav-link-live:visited {
  color: var(--accent) !important;
  opacity: 1;
}

.services-nav-link-live:hover,
.services-nav-link-live:focus-visible {
  color: var(--accent) !important;
  opacity: 1;
}

/* === THEME STYLE DROPDOWN === */
.services-theme-dropdown {
  position: relative;
}

.services-theme-dropdown .services-nav-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 180px;
}

.services-theme-dropdown-btn {
  border: 0;
  border-radius: 0;
  min-height: 40px;
  width: auto;
  padding: 0;
  gap: 6px;
  background: transparent;
  justify-content: flex-start;
  align-items: center;
  transition: background-color var(--theme-switch-duration) var(--theme-switch-ease),
              border-color var(--theme-switch-duration) var(--theme-switch-ease),
              color var(--theme-switch-duration) var(--theme-switch-ease);
}

.services-theme-dropdown-btn:hover {
  background: transparent;
}

.services-theme-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.services-theme-icon .theme-style-icon {
  display: none;
}

.services-theme-dropdown-btn[data-theme-style="pure-dark"] .theme-style-icon-pure-dark,
.services-theme-dropdown-btn[data-theme-style="pure-white"] .theme-style-icon-pure-white,
.services-theme-dropdown-btn[data-theme-style="ambient-dark"] .theme-style-icon-ambient-dark,
.services-theme-dropdown-btn[data-theme-style="ambient-white"] .theme-style-icon-ambient-white {
  display: block;
}

.services-theme-dropdown-btn:not([data-theme-style]) .theme-style-icon-ambient-dark {
  display: block;
}

.services-theme-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--text-main);
  box-shadow: 0 0 0 2px var(--bg-nav);
  flex-shrink: 0;
  transition: var(--transition);
}

.services-theme-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.services-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.services-theme-dropdown-btn[data-theme-style="pure-dark"] .services-theme-swatch {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.22);
}

.services-theme-dropdown-btn[data-theme-style="pure-white"] .services-theme-swatch {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.28);
}

.services-theme-dropdown-btn[data-theme-style="ambient-dark"] .services-theme-swatch {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 52%, #121212 100%);
  border-color: rgba(224, 224, 224, 0.34);
}

.services-theme-dropdown-btn[data-theme-style="ambient-white"] .services-theme-swatch {
  background: linear-gradient(135deg, #f0f0f0 0%, #f7f7f7 52%, #f0f0f0 100%);
  border-color: rgba(51, 51, 51, 0.24);
}

.services-theme-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.services-theme-option > span:last-child {
  flex: 1;
}

.services-theme-option-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.services-theme-option::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  transition: var(--transition);
}

.services-theme-option:hover {
  background: var(--hover-overlay);
}

.services-theme-option[aria-checked="true"] {
  background: var(--hover-overlay);
  color: var(--accent);
}

.services-theme-option[aria-checked="true"]::after {
  background: var(--accent);
  border-color: var(--accent);
}

/* --- 05.2) Layout + Hero --- */
.services-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-main > section {
  min-height: 100svh;
  scroll-margin-top: 76px;
}

.services-main > section + section {
  border-top: 2px solid var(--border);
}

/* Hero */
.services-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 0;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  max-width: 660px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.services-kicker svg {
  width: 8px;
  height: 8px;
  fill: var(--accent);
  animation: pulse-mini 2s infinite;
}

.services-hero-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  width: 100%;
}

.services-hero-content h1 .accent {
  color: var(--accent);
}

.services-subtitle {
  margin: 22px 0 36px;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.services-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.services-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #000000;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.services-primary-cta:hover {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  text-decoration: none;
}

.services-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  transition: border-color 0.25s;
}

.services-secondary-cta:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --- 05.3) Sections / Cards / Contact --- */
.services-section {
  margin-top: 0;
  border-top: 0;
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.services-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
}

.services-section > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 48px;
}

.services-live-section {
  min-height: auto;
  padding: 48px 0 72px;
  text-align: left;
  align-items: stretch;
}

.services-live-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.services-live-copy {
  padding: 10px 0;
}

.services-live-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  line-height: 1.05;
  text-transform: none;
}

.services-live-copy > p {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.services-live-points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.services-live-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-main);
}

.services-live-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.services-live-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 204, 102, 0.07), transparent 160px),
    var(--surface-dark-bg);
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color: var(--surface-dark-text);
}

.services-live-form {
  display: grid;
  gap: 10px;
}

.services-live-form label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--surface-dark-muted);
}

.services-live-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.services-live-form-row input {
  min-height: 54px;
  font-size: 1rem;
}

.services-live-submit {
  min-width: 210px;
  white-space: nowrap;
}

.services-live-hint {
  margin: 0;
  color: var(--surface-dark-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.services-live-status {
  display: none;
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.services-live-status.is-loading {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.services-live-status.is-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.24);
  color: var(--error);
}

.services-live-results {
  margin-top: 22px;
  display: grid;
  gap: 20px;
}

.services-live-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.services-live-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.services-live-summary-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.services-live-summary-card strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.services-live-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.services-live-detail-card,
.services-live-risks,
.services-live-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
}

.services-live-detail-card h3,
.services-live-risks h3,
.services-live-cta h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.services-live-detail-list {
  display: grid;
  gap: 10px;
}

.services-live-detail-row {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-live-detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.services-live-detail-row dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-live-detail-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.services-live-inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.services-live-inline-list li,
.services-live-empty,
.services-live-inline-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  font-size: 0.84rem;
}

.services-live-inline-note {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
}

.services-live-port-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.services-live-port-summary {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.65;
}

.services-live-port-table-wrap {
  overflow-x: auto;
}

.services-live-port-table {
  width: 100%;
  border-collapse: collapse;
}

.services-live-port-table th,
.services-live-port-table td {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.services-live-port-table thead th {
  border-top: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-live-port-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 10px;
  display: grid;
  gap: 4px;
  text-align: center;
}

.services-live-port-card strong {
  font-size: 1rem;
}

.services-live-port-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-live-port-card.is-open {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
}

.services-live-port-card.is-closed {
  border-color: rgba(0, 204, 102, 0.18);
  background: rgba(0, 204, 102, 0.06);
}

.services-live-risk-list {
  display: grid;
  gap: 12px;
}

.services-live-risk-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.services-live-risk-item h4 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.services-live-risk-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.services-live-risk-item p + p {
  margin-top: 8px;
}

.services-live-risk-action {
  color: #ffffff;
}

.services-live-risk-item.severity-high {
  border-color: rgba(248, 113, 113, 0.32);
}

.services-live-risk-item.severity-medium {
  border-color: rgba(255, 255, 255, 0.18);
}

.services-live-risk-item.severity-low {
  border-color: rgba(0, 204, 102, 0.22);
}

.services-live-severity {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.services-live-severity.severity-high {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.services-live-severity.severity-medium {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.services-live-severity.severity-low {
  background: rgba(0, 204, 102, 0.1);
  color: var(--accent);
}

.services-live-risk-empty {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.services-live-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.services-live-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.services-live-report-actions {
  gap: 18px;
}

.services-live-report-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.services-live-cta-btn {
  flex-shrink: 0;
}

.result-main {
  padding-top: 28px;
  padding-bottom: 56px;
}

.result-hero {
  min-height: auto;
  padding: 22px 0 34px;
}

.result-hero-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.result-hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.result-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.result-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.result-rescan-layout {
  display: grid;
  grid-template-columns: calc((100% - (2 * var(--result-grid-gap, 14px))) / 3) minmax(0, 1fr);
  gap: var(--result-grid-gap, 14px);
  align-items: stretch;
  width: calc((3 * 100% - var(--result-grid-gap, 14px)) / 4);
  margin-left: auto;
}

.result-back-home-btn {
  min-height: 0;
  height: 100%;
  padding: 0 22px;
  font-weight: 800;
  font-size: 0.84rem;
  justify-content: center;
}

.result-rescan-form {
  display: grid;
  gap: var(--result-grid-gap, 14px);
  width: 100%;
}

.result-rescan-input {
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0 14px;
}

.result-rescan-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.result-rescan-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--result-grid-gap, 14px);
}

.result-rescan-submit,
.result-upgrade-cta {
  width: 100%;
  min-height: 48px;
}

.result-upgrade-cta {
  background: linear-gradient(135deg, #f6c344 0%, #ff9e2c 52%, #ff6f3f 100%);
  color: #111111;
  box-shadow: 0 10px 24px rgba(255, 131, 52, 0.35);
}

.result-upgrade-cta:hover {
  background: linear-gradient(135deg, #ffd364 0%, #ffab3b 52%, #ff7a45 100%);
  box-shadow: 0 14px 28px rgba(255, 131, 52, 0.42);
}

.result-print-form {
  width: 100%;
}

.pdf-template {
  display: grid;
  gap: 22px;
}

.pdf-template-header,
.pdf-template-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 24px;
}

.pdf-template-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.pdf-template-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.pdf-template-header h1 {
  margin: 0;
  font-size: 2rem;
}

.pdf-template-subtitle,
.pdf-template-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.pdf-template-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.pdf-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.result-summary-grid {
  --result-grid-gap: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--result-grid-gap);
}

.result-summary-card,
.result-panel,
.result-missing-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
}

.result-summary-card span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.4rem;
}

.result-summary-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.result-grid-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  scroll-margin-top: 132px;
}

.result-detail-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.result-detail-cta {
  min-width: 260px;
}

.result-panel h2,
.result-risk-section h2,
.result-dns-grid h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-panel h2,
.result-risk-section h2 {
  font-size: 1rem;
}

.result-dns-grid h3 {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

.result-panel-wide {
  grid-column: 1 / -1;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-table tbody tr:first-child th,
.result-table tbody tr:first-child td,
.result-table thead th {
  border-top: 0;
}

.result-table th {
  width: 32%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.result-table td {
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.result-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-tag,
.result-empty,
.result-port-status,
.result-severity {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.result-tag,
.result-empty {
  background: rgba(255, 255, 255, 0.06);
}

.result-dns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-port-table th,
.result-port-table td {
  width: auto;
}

.result-ports-self-scan-note {
  margin: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.result-port-status.is-open,
.result-severity.severity-high {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.result-port-status.is-closed,
.result-severity.severity-low {
  background: rgba(0, 204, 102, 0.1);
  color: var(--accent);
}

.result-severity.severity-medium {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.result-risk-section {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.result-risk-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.result-risk-table thead th {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0 12px 12px;
}

.result-risk-table th:nth-child(1),
.result-risk-table td:nth-child(1) {
  width: 14%;
}

.result-risk-table th:nth-child(2),
.result-risk-table td:nth-child(2) {
  width: 30%;
}

.result-risk-table th:nth-child(3),
.result-risk-table td:nth-child(3) {
  width: 56%;
}

.result-risk-table td,
.result-risk-table tbody th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.result-missing-card {
  max-width: 760px;
}

.result-missing-card p {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.76);
}

/* Service cards (3-col grid) */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.services-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 24px 20px;

.services-card > *,
.services-project-card > *,
.services-tariff-card > *,
.z-showcase-card > *,
.sec-step > *,
.services-live-panel > *,
.services-contact-form > *,
.services-contact-aside > * {
  position: relative;
  z-index: 1;
}

body.js-enhanced .services-card img,
body.js-enhanced .services-card-svg,
body.js-enhanced .services-project-card img,
body.js-enhanced .services-tariff-card h3,
body.js-enhanced .services-tariff-card .services-tariff-price,
body.js-enhanced .z-showcase-card .z-showcase-bg,
body.js-enhanced .sec-step-num,
body.js-enhanced .services-live-panel,
body.js-enhanced .services-contact-form,
body.js-enhanced .services-contact-aside {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

  background: var(--surface-dark-bg);
  color: var(--surface-dark-text);
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.services-card:hover {
  border-color: rgba(0, 204, 102, 0.2);
  box-shadow: 0 0 28px rgba(0, 204, 102, 0.06);
}

.services-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
}

.services-card-icon svg {
  width: 22px;
  height: 22px;
}

.services-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.services-card p {
  margin: 0 0 14px;
  color: var(--surface-dark-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.services-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.services-card ul li {
  position: relative;
  padding-left: 18px;
  color: var(--surface-dark-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.services-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* -- Full-width service rows (alternate layout) -- */
.sec-service-row {
  width: 100%;
  padding: 80px 0;
}

.sec-service-row:nth-child(even) {
  background: #020202;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-service-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sec-service-row:nth-child(even) .sec-service-inner {
  direction: rtl;
}

.sec-service-row:nth-child(even) .sec-service-inner > * {
  direction: ltr;
}

.sec-service-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.sec-service-text > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.sec-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sec-service-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--text-main);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.sec-service-list li:last-child {
  border-bottom: none;
}

.sec-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-service-icon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(0, 204, 102, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-service-icon svg {
  width: 72px;
  height: 72px;
  color: var(--accent);
}

/* -- Process timeline (3 steps) -- */
.sec-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin-top: 16px;
}

.sec-step {
  text-align: center;
  position: relative;
  padding: 36px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.sec-step:hover {
  border-color: rgba(0, 204, 102, 0.18);
}

.sec-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 auto 18px;
}

.sec-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sec-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -- Contact form -- */
.services-contact-board {
  width: min(1400px, calc(100vw - 48px));
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.services-contact-form {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: var(--surface-dark-bg);
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--surface-dark-text);
}

.services-contact-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.services-contact-field-full {
  grid-column: 1 / -1;
}

.services-contact-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--surface-dark-muted);
}

.services-contact-field input,
.services-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--surface-dark-text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
}

.services-contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.services-contact-field input:focus,
.services-contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.services-contact-consent {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--surface-dark-muted);
  text-align: center;
}

.services-contact-upload-hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--surface-dark-muted);
}

.services-contact-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 48px;
  padding: 0 34px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #000000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.services-contact-submit:hover {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.services-contact-aside {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: var(--surface-dark-bg);
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: var(--surface-dark-text);
}

.services-contact-aside h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
}

.services-contact-aside h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.services-contact-aside h4 {
  margin: 24px 0 10px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
}

.services-contact-meta-single {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.services-contact-meta-single p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  text-align: center;
  font-size: 0.9rem;
}

.services-contact-meta-single a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.services-contact-meta-single a:hover {
  opacity: 0.78;
}

.services-contact-aside > p {
  margin: 0 0 24px;
  color: var(--surface-dark-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.sec-service-row:nth-child(even) .sec-service-text h2,
.sec-service-row:nth-child(even) .sec-service-list li {
  color: var(--surface-dark-text);
}

.sec-service-row:nth-child(even) .sec-service-text > p {
  color: var(--surface-dark-muted);
}

.sec-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.sec-info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-info-card h3 svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sec-info-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* -- Alert / Toast -- */
.services-contact-status {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  opacity: 0;
  z-index: 2200;
  width: min(calc(100% - 24px), 680px);
  box-sizing: border-box;
  pointer-events: none;
  margin: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  animation: services-toast-in 0.35s ease forwards;
  text-align: center;
}

.services-contact-status.is-hiding {
  animation: services-toast-out 0.35s ease forwards;
}

.services-contact-status-success {
  background: rgba(0, 204, 102, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 204, 102, 0.2);
}

.services-contact-status-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ============================================================
   SCAN LOADING OVERLAY
============================================================ */
@keyframes scan-spin {
  to { transform: rotate(360deg); }
}

@keyframes scan-dot-bounce {
  0%, 80%, 100% { transform: translateY(0) scale(0.8); opacity: 0.35; }
  40%           { transform: translateY(-10px) scale(1); opacity: 1; }
}

@keyframes scan-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 24px;
}

.scan-overlay.is-visible {
  display: flex;
  animation: scan-overlay-in 0.22s ease forwards;
}

.scan-overlay-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
  animation: scan-spin 0.82s linear infinite;
}

.scan-overlay-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 360px;
  line-height: 1.65;
  margin: 0;
}

.scan-overlay-dots {
  display: flex;
  gap: 10px;
}

.scan-overlay-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: scan-dot-bounce 1.4s ease-in-out infinite;
}

.scan-overlay-dots span:nth-child(2) { animation-delay: 0.18s; }
.scan-overlay-dots span:nth-child(3) { animation-delay: 0.36s; }

@media print {
  @page {
    size: A4;
    margin: 14mm 16mm 16mm 16mm;
  }

  .services-header,
  .services-footer,
  .result-hero-actions,
  .result-detail-cta-wrap,
  .result-risk-header .services-primary-cta,
  .scan-overlay,
  .services-contact-status {
    display: none !important;
  }

  body.result-page {
    background: #ffffff;
    color: #111111;
  }

  body.result-page .services-main,
  body.result-page .result-main {
    max-width: none;
    padding: 0;
  }

  /* Page break control */
  .result-panel,
  .result-summary-card,
  .pdf-template-header,
  .pdf-template-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .result-grid-section {
    page-break-before: auto;
  }

  .result-risk-section {
    page-break-before: always;
    break-before: page;
  }

  .result-panel-wide {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  table {
    page-break-inside: auto;
  }
  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }

  .pdf-template {
    gap: 12px;
  }

  .pdf-template-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .result-summary-card,
  .result-panel,
  .result-risk-section,
  .result-missing-card,
  .pdf-template-header,
  .pdf-template-section {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: none;
  }

  .result-table th,
  .result-table td,
  .result-summary-card span,
  .result-summary-card p,
  .result-subtitle,
  .result-ports-self-scan-note,
  .pdf-template-subtitle,
  .pdf-template-note,
  .pdf-template-meta,
  .result-tag,
  .result-empty,
  .services-kicker,
  .pdf-template-kicker,
  .result-panel h2,
  .result-risk-section h2,
  .pdf-template-section h2,
  .result-dns-grid h3 {
    color: #111111;
  }

  .result-table th,
  .result-table td {
    border-color: rgba(17, 17, 17, 0.12);
  }

  .result-tag,
  .result-empty {
    background: #f0f0f0;
  }

  .result-severity.severity-high,
  .result-port-status.is-open {
    background: #fde8e8;
    color: #c62828;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .result-severity.severity-medium {
    background: #fff3e0;
    color: #e65100;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .result-severity.severity-low,
  .result-port-status.is-closed {
    background: #e8f5e9;
    color: #2e7d32;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #111111;
    text-decoration: none;
  }
}

@keyframes services-toast-in {
  from { transform: translate(-50%, 120%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes services-toast-out {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, 120%); opacity: 0; }
}

/* --- 05.4) Footer --- */
.services-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 24px 20px 10px;
  text-align: left;
  background: var(--bg-nav);
  color: var(--text-main);
}

.services-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.services-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.services-footer-brand-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.services-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.04em;
  justify-self: start;
}

.services-footer-brand:hover {
  text-decoration: none;
}

.services-footer-brand svg {
  color: var(--accent);
  flex-shrink: 0;
}

.services-footer-brand span {
  font-size: 1rem;
}

.services-footer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.services-footer-link {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.services-footer-link:hover {
  opacity: 0.78;
}

.services-footer-offer-btn {
  white-space: nowrap;
  justify-self: end;
}

/* footer CTA should contrast exactly with the footer background */
.services-footer-offer-btn.services-offer-btn {
  border: 1px solid var(--border);
  background: var(--text-main);
  color: var(--bg-nav);
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
}

.services-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  border-top: 1px solid var(--border);
  padding: 14px 0 4px;
}

.services-footer-meta-item {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* --- Scroll Reveal --- */
.z-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-page-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.z-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-enhanced .z-reveal.is-visible .services-card,
body.js-enhanced .z-reveal.is-visible .services-project-card,
body.js-enhanced .z-reveal.is-visible .services-tariff-card,
body.js-enhanced .z-reveal.is-visible .z-showcase-card,
body.js-enhanced .z-reveal.is-visible .sec-step,
body.js-enhanced .z-reveal.is-visible .services-live-panel,
body.js-enhanced .z-reveal.is-visible .services-contact-form,
body.js-enhanced .z-reveal.is-visible .services-contact-aside {
  animation: js-card-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes js-card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
RESPONSIVE
============================================================ */
@media (min-width: 769px) and (max-width: 1200px) {
  .services-main {
    padding: 0 24px;
  }

  .services-main > section {
    min-height: auto;
    padding-block: 30px;
  }

  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-contact-board {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-live-shell,
  .services-live-detail-grid {
    grid-template-columns: 1fr;
  }

  .services-live-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-summary-grid,
  .result-dns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sec-service-inner {
    gap: 36px;
  }
}

@media (max-width: 980px) {
  .services-header-inner {
    min-height: 60px;
    position: relative;
  }

  .services-main > section {
    scroll-margin-top: 60px;
  }

  .services-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: #000000;
    z-index: 1200;
    max-height: calc(100svh - 84px);
    overflow-y: auto;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }

  body.services-nav-open .services-nav {
    display: flex;
  }

  .services-nav-toggle {
    display: inline-flex;
  }

  .services-nav a,
  .services-offer-btn,
  .services-nav-dropdown-toggle-btn {
    min-height: 40px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    border-radius: 10px;
  }

  .services-nav-dropdown-toggle-btn {
    text-align: left;
    border: 0;
    background: transparent;
  }

  .services-nav .services-offer-btn {
    justify-content: center;
  }

  .services-nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .services-nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    gap: 4px;
    padding: 0 0 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease, padding 0.2s ease;
  }
    .services-nav-dropdown-toggle-btn,
    .services-nav-link,
    .services-nav > a:not(.services-offer-btn) {
      width: 100%;
      min-height: 48px;
      padding: 12px 0; /* Vertikální prostor */
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
    }.services-nav-dropdown-toggle-btn svg {
      margin-left: auto;
    }
    /* Podmenu - mírné odsazení obsahu, aby byla vidět hierarchie */
    .services-nav-dropdown-menu {
      padding-left: 14px;
      border-left: 1px solid var(--border);
      margin-bottom: 8px;
    }

    /* OPRAVA TLAČÍTKA: Plná šířka, vycentrované, "macaté" */
    .services-nav .services-offer-btn.mobile-cta {
      margin-top: 12px;
      width: 100%;
      min-height: 52px;
      justify-content: center;
      background: var(--button-bg);
      color: var(--button-text);
      border: none;
      border-radius: 12px;
      font-weight: 800;
      font-size: 0.85rem;
      opacity: 1;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Jazykový přepínač v mobilu */
    .services-lang-dropdown .services-nav-dropdown-toggle-btn {
      border-bottom: none; /* Poslední prvek před tlačítkem bez čáry */
    }

  .services-nav-dropdown.is-open .services-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 260px;
    padding-top: 6px;
    pointer-events: auto;
  }

  .services-nav-dropdown-toggle-btn[aria-expanded="true"] + .services-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 260px;
    padding-top: 6px;
    pointer-events: auto;
  }

  .services-nav-dropdown-menu a,
  .services-nav-dropdown-menu button {
    font-size: 0.72rem;
    opacity: 0.9;
  }

  .services-live-summary-grid,
  .services-live-port-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-live-form-row,
  .services-live-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .services-live-panel,
  .services-contact-form,
  .services-contact-aside {
    padding: clamp(14px, 2.6vw, 20px);
  }

  .services-live-submit,
  .services-live-cta-btn {
    width: 100%;
    min-width: 0;
  }

  .result-hero-content,
  .result-risk-header {
    flex-direction: column;
    align-items: stretch;
  }

  .result-rescan-form {
    width: 100%;
  }

  .result-rescan-layout {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .result-back-home-btn {
    width: 100%;
    justify-content: center;
  }

  .result-rescan-input {
    min-width: 0;
    width: 100%;
  }

  .result-rescan-buttons {
    grid-template-columns: 1fr;
  }

  .result-summary-grid,
  .result-grid-section,
  .result-dns-grid {
    grid-template-columns: 1fr;
  }

  .services-footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .services-footer-brand-block {
    justify-content: center;
    flex-wrap: wrap;
  }

  .services-footer-nav {
    gap: 14px 20px;
  }

  .services-footer-offer-btn {
    justify-self: center;
  }

  .services-main > section {
    min-height: auto;
  }

  .services-section {
    padding: 22px 0;
  }

  .sec-service-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .sec-service-row:nth-child(even) .sec-service-inner {
    direction: ltr;
  }

  .sec-service-icon {
    width: 120px;
    height: 120px;
  }

  .sec-service-icon svg {
    width: 48px;
    height: 48px;
  }

  .sec-service-list li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: min(88svh, 700px);
    padding: 80px 0 40px;
  }

  .services-live-section {
    padding: 30px 0 54px;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .services-live-summary-grid,
  .services-live-detail-grid,
  .services-live-port-grid,
  .services-live-shell {
    grid-template-columns: 1fr;
  }

  .result-table,
  .result-table thead,
  .result-table tbody,
  .result-table tr,
  .result-table th,
  .result-table td {
    display: block;
    width: 100%;
  }

  .result-table thead {
    display: none;
  }

  .result-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
  }

  .result-table tbody tr:first-child {
    border-top: 0;
  }

  .result-table th,
  .result-table td {
    padding: 4px 0;
    border-top: 0;
  }

  .services-contact-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-contact-form {
    grid-template-columns: 1fr;
  }

  .sec-process {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-footer-link {
    text-align: center;
  }

  .services-footer-offer-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 520px) {
  .services-main {
    padding: 0 14px;
  }

  .services-header-inner {
    min-height: 56px;
    padding-inline: 14px;
  }

  .services-brand {
    font-size: 0.95rem;
    gap: 10px;
  }

  .sec-brand-icon {
    width: 32px;
    height: 32px;
  }

  .services-nav-toggle {
    width: 38px;
    height: 38px;
    padding: 7px;
  }

  .services-nav {
    right: 14px;
    left: 14px;
  }

  .services-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .services-offer-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .services-primary-cta,
  .services-secondary-cta,
  .services-contact-submit,
  .services-live-submit,
  .services-live-cta-btn {
    width: 100%;
    max-width: none;
  }

  .services-card,
  .services-contact-form,
  .services-contact-aside {
    padding: 16px;
  }

  .sec-service-inner {
    padding: 0 14px;
  }

  .sec-service-row {
    padding: 50px 0;
  }

  h1, h2, h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.5;
  }

  textarea {
    font-size: 16px !important;
  }

  input, textarea, button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 8px;
  }

  /* Mobile overflow / sizing fixes: prevent horizontal scrolling */
  .services-main {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Centered contact board can overflow due to left/transform — reset on small screens */
  .services-contact-board {
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    box-sizing: border-box;
  }

  /* Make panels and cards strictly respect viewport width */
  .services-card,
  .services-contact-form,
  .services-contact-aside,
  .services-live-panel,
  .result-summary-card,
  .result-panel,
  .pdf-template-header,
  .pdf-template-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Ensure CTAs and wide buttons can shrink to fit */
  .services-offer-btn,
  .services-primary-cta,
  .services-offer-btn.mobile-cta,
  .result-upgrade-cta,
  .services-contact-submit,
  .services-live-submit,
  .services-live-cta-btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix complex width calculations elsewhere */
  .result-rescan-layout {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .result-rescan-input {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
  }

  /* Images and svgs should never force overflow */
  img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
  }
}
