:root {
  --bg-dark: #eef2f7;
  --bg-card: #ffffff;
  --bg-card-soft: #f6f8fb;
  --accent: #1f75ff;
  --accent-soft: #68a8ff;
  --text-main: #0b1220;
  --text-muted: #4a5568;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --font-display: "Space Grotesk", "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 24px 64px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.1);
  --transition-fast: 0.18s ease-out;
  --spot-x: 50%;
  --spot-y: 42%;
  --spot-strength: 0.4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f9fbff 0%, #edf2f8 48%, #e7eef7 100%);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
.section-title,
.hero-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button {
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.page-loaded .page {
  opacity: 1;
  transform: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.bg-motion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(47, 110, 234, calc(0.05 * var(--spot-strength))), transparent 18%),
    radial-gradient(circle at 75% 14%, rgba(147, 197, 253, 0.08), transparent 34%),
    linear-gradient(145deg, #f8f9fb, #f3f5f9 45%, #f7f8fb);
  opacity: 0.3;
  filter: blur(0px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.bg-motion::after {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 45%, rgba(255, 255, 255, 0.008)),
    radial-gradient(circle at 40% 18%, rgba(255, 255, 255, 0.02), transparent 38%);
  filter: blur(18px);
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1.05); }
  to { transform: translate3d(4%, 3%, 0) scale(1.1); }
}

@keyframes accentShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-motion.is-hot {
  filter: saturate(1.2) blur(6px);
  opacity: 1;
}

.bg-motion.is-hot::after {
  opacity: 0.75;
  filter: blur(26px) saturate(1.6);
}

.wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 36px;
  max-height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(3.6);
  transform-origin: left center;
  filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.22));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.95), transparent 55%),
    linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--bg-dark);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.logo-text-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Logo animation removed to keep mark static */

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-soft));
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switch {
  font-size: 11px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 4px 10px;
  background: #ffffff;
  white-space: nowrap;
}

.lang-switch span {
  cursor: pointer;
  opacity: 0.7;
}

.lang-switch span.active {
  opacity: 1;
  color: var(--text-main);
}

.lang-switch-divider {
  width: 1px;
  height: 12px;
  background: rgba(148, 163, 184, 0.5);
}

.nav-cta {
  display: none;
}



.chapter-rail {
  position: fixed;
  top: 136px;
  left: 34px;
  width: 170px;
  padding: 0;
  z-index: 35;
  pointer-events: none;
}

.chapter-rail-inner {
  pointer-events: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

.chapter-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
  margin-bottom: 6px;
  padding-left: 12px;
}

.chapter-pill {
  position: relative;
  border: none;
  background: transparent;
  color: #64748b;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-pill::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  transform: translateY(-50%);
  opacity: 0;
  transition: height var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.chapter-pill:hover {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.12);
}

.chapter-pill.is-active {
  color: #0f172a;
  font-weight: 500;
  background: rgba(191, 219, 254, 0.4);
}

.chapter-pill.is-active::before {
  height: 20px;
  opacity: 1;
}


/* HERO */

.hero {
  padding: 78px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: flex-start;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-label span:not(.hero-label-dot) {
  color: var(--text-main);
  opacity: 0.88;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb, var(--accent));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.96);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: #0f172a;
}

.hero-title span.accent {
  background: linear-gradient(120deg, #60a5fa, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 180% 180%;
  animation: accentShift 10s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 16px);
  color: #374151;
  max-width: 620px;
  margin-bottom: 26px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-meta-item {
  min-width: 180px;
}

.hero-meta-item strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 32px;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  color: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.45);
  filter: brightness(1.04);
}

.btn-outline {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.7);
  background: #e5edff;
  color: #0b1220;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-panel {
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.hero-panel-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.hero-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.hero-panel-sub {
  font-size: 13px;
  color: #374151;
  max-width: 100%;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-badge {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 110, 234, 0.25);
  color: #0f172a;
  background: rgba(47, 110, 234, 0.08);
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}


.metric-card {
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
}

.metric-label {
  font-size: 10px;
  color: #4b5563;
}

.hero-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}



.screen-main {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #4b5563;
}

.screen-dots {
  display: flex;
  gap: 4px;
}

.screen-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.screen-body {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f9fc;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.9fr);
  gap: 10px;
  align-items: flex-start;
}


.screen-body > div:first-child {
  min-width: 230px;
}


.screen-body h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.screen-body p {
  font-size: 12px;
  color: #374151;
}

.screen-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8eefb;
  color: #0f172a;
  margin-top: 6px;
}

.screen-thumb {
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: #eef1f7;
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.screen-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-side-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-pill {
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  color: #111827;
  line-height: 1.45;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  word-break: normal;
  overflow-wrap: break-word;
}

.screen-pill strong {
  display: block;
  font-size: 12px;
  color: #f4f6fb;
  margin-bottom: 3px;
}

.hero-floating-badge {
  position: absolute;
  right: -6px;
  bottom: -10px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badgeGlow 12s ease-in-out infinite;
}

.hero-floating-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #0f172a, #2f6eea);
  box-shadow: 0 0 8px rgba(47, 110, 234, 0.35);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow: 0 16px 40px rgba(31, 117, 255, 0.2);
    border-color: rgba(31, 117, 255, 0.3);
  }
  100% {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.08);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(47, 110, 234, 0.35);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(31, 117, 255, 0.5);
  }
}

/* SECTIONS */

.section {
  padding: 44px 0 32px;
}

.chapter-filtered .section[data-chapter] {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.chapter-filtered .section[data-chapter].is-active {
  display: block;
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
}

/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.services-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.services-toggle {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.08));
  color: #0f172a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.services-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.7);
}

.service-grid.is-collapsed {
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.service-grid.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 248, 255, 0.95));
  pointer-events: none;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background 0.3s ease,
    color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  border-color: rgba(96, 165, 250, 0.6);
}

.service-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.96), transparent 55%), linear-gradient(135deg, #60a5fa, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #020617;
  margin-bottom: 10px;
}

.service-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.service-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}

.service-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.service-list li::before {
  content: "• ";
  color: var(--accent);
}

.service-tagline {
  font-size: 11px;
  color: #e5e7eb;
  opacity: 0.8;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.about-main {
  font-size: 14px;
  color: var(--text-muted);
  display: grid;
  gap: 12px;
  line-height: 1.75;
}

.about-fold {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.about-fold-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 12px 8px;
  font-size: 13px;
  height: auto;
  transition: height 0.32s ease, padding 0.24s ease;
}

.about-fold-body ul {
  list-style: none;
  display: grid;
  gap: 4px;
  color: var(--text-muted);
}

.about-fold-body li::before {
  content: "• ";
  color: var(--accent);
}

.about-fold-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  font-size: 13px;
}

.about-fold-toggle {
  width: 100%;
  text-align: center;
  padding: 12px;
  background: rgba(240, 244, 255, 0.95);
  color: #0b1220;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.about-fold-toggle:hover {
  background: rgba(59, 130, 246, 0.12);
}

.about-fold.is-collapsed .about-fold-body {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.about-fold.is-open {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(255, 255, 255, 0.98);
}

.about-highlights {
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.about-pill {
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.about-pill strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

/* FORMATS */

.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.format-card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.format-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.format-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-main);
}

.format-price {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 6px;
}

.format-meta {
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.65;
}

.format-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}

.format-list li::before {
  content: "• ";
  color: var(--accent);
}

.format-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* PORTFOLIO */

.portfolio-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.project-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  border-color: rgba(96, 165, 250, 0.6);
}

.project-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 0, rgba(191, 219, 254, 0.5), transparent 60%),
    linear-gradient(135deg, #e0e7ff, #cbd5ff);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.project-title {
  font-size: 14px;
  font-weight: 500;
}

.project-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-muted);
  white-space: nowrap;
}

.project-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-stack {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.85;
}

.project-links {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.project-detail {
  display: none;
}

.project-detail-row {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #334155;
  line-height: 1.65;
}

.project-detail-label {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #0f172a;
  font-size: 11px;
  margin-bottom: 6px;
}

.project-detail ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.project-detail ul li::before {
  content: "• ";
  color: var(--accent);
}

.project-toggle {
  width: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  margin-top: 6px;
}

.project-card.is-active {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.case-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.case-modal-overlay[hidden] {
  display: none;
}

.case-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.case-modal {
  position: relative;
  width: min(680px, 100% - 28px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.case-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.case-modal-close:hover {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(59, 130, 246, 0.16);
  color: #f9fafb;
}

.case-modal-overlay.is-open .case-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.case-modal-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.case-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.case-modal-sub {
  font-size: 13px;
  color: #334155;
  margin-bottom: 12px;
}

.case-modal-body {
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: #1f2937;
}

/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(160deg, #0f172a, #111827);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 12px;
  color: #e2e8f0;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.process-step strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
  margin-bottom: 4px;
}

.process-step-number {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.7);
}

.process-step:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* FIT (кому подходит) */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fit-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  color: var(--text-muted);
}

.fit-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.fit-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.fit-list li::before {
  content: "• ";
  color: var(--accent);
}

/* TESTIMONIALS */

.testimonials-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.testimonial-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.portfolio-grid .is-clone,
.testimonials-grid .is-clone {
  pointer-events: none;
}

.portfolio-grid::-webkit-scrollbar,
.testimonials-grid::-webkit-scrollbar {
  height: 8px;
}

.portfolio-grid::-webkit-scrollbar-thumb,
.testimonials-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.portfolio-grid,
.testimonials-grid {
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.testimonial-text {
  margin-bottom: 10px;
  line-height: 1.7;
}

.testimonial-author {
  font-size: 12px;
  color: #0b1220;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.faq-item summary:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

.faq-item summary span {
  display: inline-block;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}

.faq-item p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
}

/* TEAM */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
}

.team-avatar {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 0, rgba(191, 219, 254, 0.4), transparent 60%),
    linear-gradient(135deg, #111827, #1e293b);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-main);
}

.team-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.team-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* BLOG */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  border-radius: var(--radius-lg);
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.blog-title {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.blog-meta {
  font-size: 10px;
  color: var(--text-muted);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-card {
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(circle at 100% 140%, rgba(56, 189, 248, 0.3), transparent 65%),
    var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.field label {
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 11px 14px;
  font-size: 14px;
  background: #f3f4f6;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.field textarea {
  border-radius: 16px;
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.8);
  background: #ffffff;
  transform: translateY(-1px);
}

.contact-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-meta strong {
  color: #e5e7eb;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.contact-pill {
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-pill strong {
  color: var(--text-main);
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.contact-tag {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.98);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.social-links a span.icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
}

.social-links a:hover {
  border-color: rgba(96, 165, 250, 0.95);
  background: #ffffff;
  color: var(--text-main);
}

/* FOOTER */

.footer {
  padding: 18px 0 28px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: none;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-right span {
  cursor: default;
}

/* ============ COLOR THEMES ============ */

/* ТЕМА 1 — VIOLET NEON (фиолетово-розовая) */
body.theme-violet {
  background:
    radial-gradient(circle at top, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(236, 72, 153, 0.32), transparent 55%),
    #050114;
}

body.theme-violet .hero-title span.accent {
  background: linear-gradient(120deg, #a855f7, #ec4899, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-violet .btn-primary,
body.theme-violet .logo-mark {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

body.theme-violet .hero-label-dot,
body.theme-violet .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #f97316);
}

body.theme-violet .hero-panel,
body.theme-violet .service-card,
body.theme-violet .project-card,
body.theme-violet .testimonial-card,
body.theme-violet .contact-card {
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 55%),
    #07041c;
  border-color: rgba(196, 181, 253, 0.55);
}

body.theme-violet .hero-panel-metrics .metric-card,
body.theme-violet .screen-pill,
body.theme-violet .process-step,
body.theme-violet .contact-pill {
  background: #050111;
  border-color: rgba(196, 181, 253, 0.6);
}

body.theme-violet .hero-badge,
body.theme-violet .project-tag,
body.theme-violet .contact-tag,
body.theme-violet .social-links a {
  border-color: rgba(196, 181, 253, 0.7);
}

body.theme-violet .screen-thumb,
body.theme-violet .project-thumb,
body.theme-violet .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(244, 114, 182, 0.45), transparent 60%),
    linear-gradient(135deg, #4c1d95, #1f2937);
}

/* ТЕМА 2 — EMERALD TECH (зелёно-бирюзовая) */
body.theme-emerald {
  background:
    radial-gradient(circle at top, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(45, 212, 191, 0.35), transparent 55%),
    #020714;
}

body.theme-emerald .hero-title span.accent {
  background: linear-gradient(120deg, #22c55e, #14b8a6, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

body.-emeraldtheme .btn-primary,
body.theme-emerald .logo-mark {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

body.theme-emerald .hero-label-dot,
body.theme-emerald .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #22c55e);
}

body.theme-emerald .hero-panel,
body.theme-emerald .service-card,
body.theme-emerald .project-card,
body.theme-emerald .testimonial-card,
body.theme-emerald .contact-card {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 55%),
    #020b17;
  border-color: rgba(94, 234, 212, 0.6);
}

body.theme-emerald .hero-panel-metrics .metric-card,
body.theme-emerald .screen-pill,
body.theme-emerald .process-step,
body.theme-emerald .contact-pill {
  background: #020910;
  border-color: rgba(74, 222, 128, 0.65);
}

body.theme-emerald .hero-badge,
body.theme-emerald .project-tag,
body.theme-emerald .contact-tag,
body.theme-emerald .social-links a {
  border-color: rgba(45, 212, 191, 0.75);
}

body.theme-emerald .screen-thumb,
body.theme-emerald .project-thumb,
body.theme-emerald .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(45, 212, 191, 0.45), transparent 60%),
    linear-gradient(135deg, #022c22, #0f172a);
}

/* ТЕМА 3 — AMBER STUDIO (тёмный графит + золотистые акценты) */
body.theme-amber {
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.2), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(251, 191, 36, 0.25), transparent 55%),
    #020308;
}

body.theme-amber .hero-title span.accent {
  background: linear-gradient(120deg, #fbbf24, #f97316, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-amber .btn-primary,
body.theme-amber .logo-mark {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

body.theme-amber .hero-label-dot,
body.theme-amber .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #facc15);
}

body.theme-amber .hero-panel,
body.theme-amber .service-card,
body.theme-amber .project-card,
body.theme-amber .testimonial-card,
body.theme-amber .contact-card {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 55%),
    #050308;
  border-color: rgba(251, 191, 36, 0.55);
}

body.theme-amber .hero-panel-metrics .metric-card,
body.theme-amber .screen-pill,
body.theme-amber .process-step,
body.theme-amber .contact-pill {
  background: #020106;
  border-color: rgba(245, 158, 11, 0.7);
}

body.theme-amber .hero-badge,
body.theme-amber .project-tag,
body.theme-amber .contact-tag,
body.theme-amber .social-links a {
  border-color: rgba(251, 191, 36, 0.7);
}

body.theme-amber .screen-thumb,
body.theme-amber .project-thumb,
body.theme-amber .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(251, 191, 36, 0.45), transparent 60%),
    linear-gradient(135deg, #111827, #0f172a);
}

/* ТЕМА 4 — SKY STUDIO (светлый холодный синий) */
body.theme-sky {
  background:
    radial-gradient(circle at 18% 12%, rgba(68, 96, 130, 0.16), transparent 38%),
    radial-gradient(circle at 80% 16%, rgba(99, 123, 160, 0.14), transparent 42%),
    #f2f4f8;
}

body.theme-sky .hero-title span.accent {
  background: linear-gradient(120deg, #93c5fd, #38bdf8, #1d4ed8);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-sky .btn-primary,
body.theme-sky .logo-mark {
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
}

body.theme-sky .hero-label-dot,
body.theme-sky .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #38bdf8);
}

body.theme-sky .hero-panel,
body.theme-sky .service-card,
body.theme-sky .project-card,
body.theme-sky .testimonial-card,
body.theme-sky .contact-card {
  background:
    #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

body.theme-sky .hero-panel-metrics .metric-card,
body.theme-sky .screen-pill,
body.theme-sky .process-step,
body.theme-sky .contact-pill {
  background: linear-gradient(180deg, #eef1f7 0%, #e1e6f0 100%);
  border-color: rgba(15, 23, 42, 0.16);
  color: #0b1220;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

body.theme-sky .process-step strong {
  color: #0b1220;
}

body.theme-sky .process-step-number {
  color: rgba(15, 23, 42, 0.6);
}

body.theme-sky .hero-badge,
body.theme-sky .project-tag,
body.theme-sky .contact-tag,
body.theme-sky .social-links a {
  border-color: rgba(47, 110, 234, 0.25);
}

body.theme-sky .screen-thumb,
body.theme-sky .project-thumb,
body.theme-sky .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(47, 110, 234, 0.18), transparent 60%),
    #e5e9f2;
}

/* ТЕМА 5 — ROSE STUDIO (розово-персиковая) */
body.theme-rose {
  background:
    radial-gradient(circle at top, rgba(244, 114, 182, 0.22), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(251, 113, 133, 0.24), transparent 55%),
    #13020b;
}

body.theme-rose .hero-title span.accent {
  background: linear-gradient(120deg, #fb7185, #f97316, #f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-rose .btn-primary,
body.theme-rose .logo-mark {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

body.theme-rose .hero-label-dot,
body.theme-rose .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #fb7185);
}

body.theme-rose .hero-panel,
body.theme-rose .service-card,
body.theme-rose .project-card,
body.theme-rose .testimonial-card,
body.theme-rose .contact-card {
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.24), transparent 55%),
    #14010a;
  border-color: rgba(254, 205, 211, 0.7);
}

body.theme-rose .hero-panel-metrics .metric-card,
body.theme-rose .screen-pill,
body.theme-rose .process-step,
body.theme-rose .contact-pill {
  background: #050208;
  border-color: rgba(248, 113, 113, 0.8);
}

body.theme-rose .hero-badge,
body.theme-rose .project-tag,
body.theme-rose .contact-tag,
body.theme-rose .social-links a {
  border-color: rgba(254, 202, 202, 0.7);
}

body.theme-rose .screen-thumb,
body.theme-rose .project-thumb,
body.theme-rose .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(251, 113, 133, 0.55), transparent 60%),
    linear-gradient(135deg, #4c0519, #111827);
}

/* ТЕМА 6 — SLATE PRODUCT (почти монохром) */
body.theme-slate {
  background:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(15, 23, 42, 0.9), transparent 55%),
    #020617;
}

body.theme-slate .hero-title span.accent {
  background: linear-gradient(120deg, #e5e7eb, #9ca3af, #cbd5f5);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-slate .btn-primary,
body.theme-slate .logo-mark {
  background: linear-gradient(135deg, #64748b, #0f172a);
}

body.theme-slate .hero-label-dot,
body.theme-slate .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #64748b);
}

body.theme-slate .hero-panel,
body.theme-slate .service-card,
body.theme-slate .project-card,
body.theme-slate .testimonial-card,
body.theme-slate .contact-card {
  background:
    radial-gradient(circle at top left, rgba(30, 64, 175, 0.12), transparent 55%),
    #020617;
  border-color: rgba(148, 163, 184, 0.7);
}

body.theme-slate .hero-panel-metrics .metric-card,
body.theme-slate .screen-pill,
body.theme-slate .process-step,
body.theme-slate .contact-pill {
  background: #020617;
  border-color: rgba(100, 116, 139, 0.9);
}

body.theme-slate .hero-badge,
body.theme-slate .project-tag,
body.theme-slate .contact-tag,
body.theme-slate .social-links a {
  border-color: rgba(148, 163, 184, 0.9);
}

body.theme-slate .screen-thumb,
body.theme-slate .project-thumb,
body.theme-slate .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(148, 163, 184, 0.5), transparent 60%),
    linear-gradient(135deg, #020617, #1e293b);
}

/* ТЕМА 7 — NEON GRID (жёсткий неон: бирюза + фиолетовый) */
body.theme-neon {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(129, 140, 248, 0.35), transparent 55%),
    #020012;
}

body.theme-neon .hero-title span.accent {
  background: linear-gradient(120deg, #22d3ee, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

body.theme-neon .btn-primary,
body.theme-neon .logo-mark {
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}

body.theme-neon .hero-label-dot,
body.theme-neon .hero-floating-dot {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #22d3ee);
}

body.theme-neon .hero-panel,
body.theme-neon .service-card,
body.theme-neon .project-card,
body.theme-neon .testimonial-card,
body.theme-neon .contact-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.3), transparent 60%),
    #020017;
  border-color: rgba(129, 140, 248, 0.85);
}

body.theme-neon .hero-panel-metrics .metric-card,
body.theme-neon .screen-pill,
body.theme-neon .process-step,
body.theme-neon .contact-pill {
  background: #020012;
  border-color: rgba(56, 189, 248, 0.9);
}

body.theme-neon .hero-badge,
body.theme-neon .project-tag,
body.theme-neon .contact-tag,
body.theme-neon .social-links a {
  border-color: rgba(129, 140, 248, 0.9);
}

body.theme-neon .screen-thumb,
body.theme-neon .project-thumb,
body.theme-neon .team-avatar {
  background:
    radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.5), transparent 60%),
    linear-gradient(135deg, #0f172a, #1e1b4b);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .logo-image {
    transform: scale(2.8);
  }
  .chapter-rail {
    display: none;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .section-chapters {
    top: 58px;
  }
  .service-grid,
  .formats-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-fold-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .logo-image {
    transform: scale(2.2);
  }
  .hero-grid {
    gap: 36px;
  }
  .wrapper {
    padding: 0 16px;
  }
  .navbar-inner {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }
  .chapter-rail {
    display: none;
  }
  .nav-center {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    font-size: 12px;
  }
  .nav-links::-webkit-scrollbar {
    height: 6px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
  }
  .lang-switch {
    margin-left: auto;
  }
  .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-meta {
    gap: 12px;
  }
  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

  .hero-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}


  .hero-floating-badge {
    position: static;
    margin-top: 12px;
  }
  .hero-actions {
    gap: 12px;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .services-toggle-wrap {
    justify-content: center;
    width: 100%;
  }
  .services-toggle {
    width: 100%;
    text-align: center;
  }
  .service-grid.is-collapsed {
    max-height: 280px;
  }
  .portfolio-grid {
    grid-auto-columns: minmax(240px, 88%);
  }
  .testimonials-grid {
    grid-auto-columns: minmax(230px, 80%);
  }
  .service-grid,
  .formats-grid,
  .process-grid,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-description {
    max-width: none;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .logo-image {
    transform: scale(1.8);
  }
  .hero-grid {
    gap: 28px;
  }
  .wrapper {
    padding: 0 14px;
  }
  .hero {
    padding-top: 28px;
  }
  .section-description {
    line-height: 1.6;
  }
  .hero-meta {
    flex-direction: column;
  }
  .hero-meta-item {
    min-width: 100%;
  }
  .hero-panel {
    padding: 16px;
  }
  .hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

  .screen-body {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f9fc;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.9fr);
  gap: 10px;
  align-items: flex-start;
}


  .section {
    padding: 28px 0 20px;
  }
  .section-title {
    font-size: 20px;
  }
  .section-description {
    font-size: 12px;
  }
  .service-card,
  .project-card,
  .format-card,
  .testimonial-card,
  .team-card,
  .blog-card {
    padding: 14px;
  }
  .contact-card {
    padding: 16px;
  }
  .contact-card h3 {
    font-size: 16px;
  }
  .contact-card p {
    font-size: 12px;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
  }
  .footer {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .fit-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 10px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-label {
    letter-spacing: 0.12em;
  }
  .hero-floating-badge {
    width: 100%;
  }
  .lang-switch {
    width: 100%;
    justify-content: center;
  }
}
/* ====== ANIMATIONS & MODAL (ADDED) ====== */

/* Page + navbar intro */
body {
  transition: background 0.4s ease-out, color 0.25s ease-out;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}


body.page-loaded .navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}


.navbar-scrolled {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

/* Scroll reveal */
.hero,
.section,
.service-card,
.project-card,
.format-card,
.testimonial-card,
.team-card,
.blog-card {
  will-change: transform, opacity;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(2px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

/* Cards micro-interactions */
.service-card,
.project-card,
.format-card,
.testimonial-card,
.team-card,
.blog-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.26s ease-out,
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    filter var(--transition-fast),
    background 0.32s ease,
    color 0.32s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover,
.project-card:hover,
.format-card:hover,
.testimonial-card:hover,
.team-card:hover,
.blog-card:hover {
  --lift: -3px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  filter: saturate(1.02);
}

.service-card::after,
.project-card::after,
.format-card::after,
.testimonial-card::after,
.team-card::after,
.blog-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(120deg, rgba(96, 165, 250, 0.08), rgba(168, 85, 247, 0.06), rgba(34, 211, 238, 0.08));
  opacity: 0;
  transform: translate3d(-20%, -10%, 0) rotate(12deg);
  transition: opacity 0.4s ease, transform 0.45s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.service-card:hover::after,
.project-card:hover::after,
.format-card:hover::after,
.testimonial-card:hover::after,
.team-card:hover::after,
.blog-card:hover::after {
  opacity: 0.4;
  transform: translate3d(10%, 6%, 0) rotate(0deg);
}

/* Contact modal */
body.modal-open {
  overflow: hidden;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.28), transparent 60%),
    rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 60;
  transition: opacity 0.25s ease-out;
}

.contact-modal-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.contact-modal {
  width: min(520px, 100% - 32px);
  border-radius: 24px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.24), transparent 55%),
    var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: var(--shadow-soft);
  transform: translateY(16px) scale(0.96);
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
  opacity: 0;
}

.contact-modal-overlay.is-open .contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-modal-title {
  font-size: 18px;
}

.contact-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-modal-close {
  border: none;
  background: rgba(248, 250, 252, 0.98);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.18s ease-out;
}

.contact-modal-close:hover {
  background: rgba(248, 250, 252, 0.08);
  color: var(--text-main);
  transform: scale(1.02);
}

/* Contact form status */
.contact-status-success {
  color: #4ade80;
}

.contact-status-error {
  color: #f97373;
}

/* Small tweak for hero-floating badge when JS parallax работает */
.hero-floating-badge {
  transition: transform 0.25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .service-card,
  .project-card,
  .format-card,
  .testimonial-card,
  .team-card,
  .blog-card,
  .hero-panel {
    transform: none !important;
  }

  .hero-floating-badge {
    transition: none;
  }
}


.chapter-pill:hover {
  color: #020617;
  border-color: rgba(59, 130, 246, 0.55);
  background: #e5edff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.chapter-pill.is-active {
  color: #020617;
  border-color: rgba(59, 130, 246, 0.9);
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.65), rgba(129, 140, 248, 0.4));
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.28);
}

.chapter-pill.is-active::before {
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}


/* Disabled chapter rail for clean one-page layout */
.chapter-rail,
.chapter-rail-inner,
.chapter-pill {
  display: none !important;
}


.about-fold-body {
  color: var(--text-main);
}

.about-fold-body ul {
  color: var(--text-main);
}


.fit-card,
.faq-item,
.blog-card {
  color: var(--text-main);
}

.fit-card h3,
.blog-card h3 {
  color: var(--text-main);
}

.testimonial-card {
  color: var(--text-main);
}

.testimonial-author {
  color: #6b7280;
}

.service-tagline {
  color: #6b7280;
}

.project-toggle {
  color: #64748b;
}

.about-fold-toggle {
  color: #0f172a;
}


.hero-panel {
  position: relative;
}

.screen-side-stack {
  position: absolute;
  right: 22px;
  bottom: 68px;
  width: 260px;
  max-width: 260px;
  overflow: hidden;
}

.screen-side-stack .screen-pill {
  width: 100%;
}


/* ==== Hero: Цифровая студия нового формата – обновлённый правый блок ==== */

.studio-card {
  position: relative;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 16px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.studio-card-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.studio-card-link {
  font-size: 11px;
  color: #6b7280;
}

.studio-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.studio-card-text h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #0f172a;
}

.studio-card-text p {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 10px;
}

.studio-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.studio-tag {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}

.studio-card-note {
  font-size: 11px;
  color: #6b7280;
}

.studio-card-preview {
  position: relative;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.45), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.4), transparent 60%),
              #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.studio-preview-mock {
  width: 82%;
  height: 70%;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Адаптив: правый блок встаёт под левый на узких экранах */
@media (max-width: 1024px) {
  .studio-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-card-preview {
    min-height: 140px;
  }
}


/* Hero metrics & key case fine-tuning */
.hero-panel-metrics .metric-card {
  min-width: 120px;
}

.studio-card-main {
  align-items: center;
}

.studio-card-preview {
  min-height: 140px;
  max-height: 160px;
  overflow: hidden;
}


/* Hero: компактный промо-блок вместо кейса */

.service-highlight {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.service-highlight-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.service-highlight-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.service-highlight-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.service-highlight-list li + li {
  margin-top: 3px;
}

.service-highlight-cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(129, 140, 248, 0.08));
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.service-highlight-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(129, 140, 248, 0.18));
}

/* адаптив: чтобы справа блок не уползал за край на узких ширинах */
@media (max-width: 1024px) {
  .service-highlight {
    max-width: 100%;
  }
}


/* Тюнинг правого блока в герое: компактная подпись, прижатая к низу */

.hero-panel-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.service-highlight {
  padding: 10px 14px 12px 14px;
  gap: 6px;
  max-width: 330px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.service-highlight-title {
  font-size: 13px;
  font-weight: 600;
}

.service-highlight-text {
  font-size: 12px;
  margin-bottom: 2px;
}

.service-highlight-list {
  font-size: 11px;
  line-height: 1.45;
}

.service-highlight-cta {
  margin-top: 4px;
  padding: 5px 12px;
  font-size: 11px;
}


/* Light theme for brief inputs */
.field input,
.field textarea,
.field select {
  background: #f3f4f6;
  color: #0f172a;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: #ffffff;
}


/* Better readability for case modal content */
.case-modal {
  color: #0f172a;
}

.case-modal h3,
.case-modal h4 {
  color: #020617;
}
