:root {
  /* Corporate Color System */
  /* Primary & Brand Accents */
  --sb-primary: #0056b3;
  --sb-primary-hover: #004494;
  --sb-primary-dark: #002d62;
  --sb-accent: #ff5e36;
  --sb-accent-hover: #ff4517;
  --sb-accent-glow: rgba(255, 94, 54, 0.28);
  --sb-cyan: #00a0e9;
  --sb-cyan-subtle: rgba(0, 160, 233, 0.1);

  /* Dark theme / Tech surfaces */
  --bg-dark: #0b1928;
  --bg-dark-surface: #102438;
  --bg-dark-card: rgba(255, 255, 255, 0.04);
  --bg-dark-card-hover: rgba(255, 255, 255, 0.07);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-dark-hover: rgba(0, 160, 233, 0.4);

  /* Light theme / Clean enterprise surfaces */
  --bg-light: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-card: #ffffff;
  --border-light: #e3e8ee;
  --border-light-hover: #0056b3;

  /* Typography & Text */
  --ink: #14213d;
  --ink-secondary: #4a5d78;
  --ink-muted: #718299;
  --text-white: #ffffff;
  --text-white-muted: rgba(255, 255, 255, 0.82);
  --text-white-subtle: rgba(255, 255, 255, 0.6);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-base: 17px;
  --line-height-base: 1.65;

  /* Shapes & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 16px rgba(11, 25, 40, 0.04);
  --shadow-md: 0 12px 36px rgba(11, 25, 40, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 25, 40, 0.12);
  --shadow-accent: 0 12px 28px var(--sb-accent-glow);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-base);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--ink);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--text-white);
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sb-primary);
  box-shadow: 0 3px 10px rgba(0, 86, 179, 0.35);
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.brand-text span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-white-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links > a {
  color: var(--text-white-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--sb-accent);
  transition: width 0.25s ease;
}

.nav-links > a:hover {
  color: #fff;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Page navigation (hero text links) */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white-subtle);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.page-nav-link + .page-nav-link::before {
  content: "|";
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.page-nav-link:hover {
  color: #ffffff;
}

.page-nav-link.is-active {
  color: var(--sb-accent);
  font-weight: 700;
}

/* Buttons (Style: Orange CTA / Solid Blue Secondary) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 15px 30px;
  background: var(--sb-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 94, 54, 0.4);
  background: var(--sb-accent-hover);
}

.btn span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover span {
  transform: translateX(3px);
}

.btn-small {
  padding: 11px 22px;
  font-size: 14px;
}

.btn-secondary {
  background: var(--sb-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.3);
}

.btn-secondary:hover {
  background: var(--sb-primary-hover);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--sb-primary);
  border: 1px solid var(--border-light-hover);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(0, 86, 179, 0.06);
  border-color: var(--sb-primary-hover);
  color: var(--sb-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.text-link span {
  color: var(--sb-accent);
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--sb-accent);
}

.text-link:hover span {
  transform: translateY(3px);
}

/* Sections */
.section {
  padding: 120px 0;
}

.section-dark {
  color: var(--text-white);
  background: var(--bg-dark);
}

.section-light {
  background: var(--bg-light);
}

.section-soft {
  background: var(--bg-soft);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--sb-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--sb-cyan);
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.section-head > p {
  max-width: 520px;
  color: var(--ink-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.section-head-dark h2 {
  color: var(--text-white);
}

.section-head-dark > p {
  color: var(--text-white-muted);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  padding-top: 92px;
  background: radial-gradient(circle at 85% 20%, #153252 0%, #0c1e33 40%, #071321 85%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 85%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-a {
  width: 550px;
  height: 550px;
  right: -80px;
  top: 40px;
  background: radial-gradient(circle, rgba(0, 160, 233, 0.18) 0%, rgba(0, 86, 179, 0.08) 45%, transparent 70%);
  filter: blur(50px);
}

.hero-orb-b {
  width: 420px;
  height: 420px;
  left: 20%;
  bottom: -150px;
  background: radial-gradient(circle, rgba(255, 94, 54, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 30px 0 70px;
}

.hero-copy {
  max-width: 960px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--sb-cyan);
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 160, 233, 0.1);
  border: 1px solid rgba(0, 160, 233, 0.25);
}

.eyebrow i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sb-accent);
  box-shadow: 0 0 10px var(--sb-accent);
}

h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  font-weight: 800;
  color: var(--text-white);
}

h1 em {
  font-style: normal;
  color: var(--sb-accent);
  position: relative;
}

.lead {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.6;
  color: var(--text-white-muted);
  max-width: 800px;
  margin: 0 0 40px;
  font-weight: 400;
}

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

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 960px;
}

.hero-feat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-feat-item strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--sb-cyan);
  letter-spacing: -0.02em;
}

.hero-feat-item span {
  font-size: 14px;
  color: var(--text-white-subtle);
  line-height: 1.4;
}

.hero-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 3;
  color: var(--text-white-subtle);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 30px;
}

.hero-bottom .line {
  flex-grow: 1;
  max-width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e2ebf2;
  box-shadow: var(--shadow-md);
  min-height: 480px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}

.photo-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(11, 25, 40, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.photo-tag strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--sb-cyan);
  line-height: 1.1;
}

.photo-tag span {
  font-size: 13px;
  color: var(--text-white-muted);
}

/* Contacts under the about photo (light theme) */
.about-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-contacts {
  display: grid;
  gap: 10px;
}

.about-contacts .contact-card {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
  color: var(--ink);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.about-contacts .contact-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--sb-primary);
}

.about-contacts .contact-icon {
  background: rgba(0, 86, 179, 0.1);
  color: var(--sb-primary);
}

.about-contacts .contact-card.telegram {
  background: var(--sb-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.about-contacts .contact-card.telegram:hover {
  background: var(--sb-primary-hover);
}

.about-contacts .contact-card.telegram .contact-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 800;
  color: var(--ink);
}

.about-copy > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 0 0 16px;
}

.about-copy h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-primary);
  margin: 24px 0 16px;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.check-list li::before {
  content: "✓";
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--sb-primary);
  font-weight: 800;
  font-size: 13px;
  margin-right: 14px;
  flex-shrink: 0;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 24px;
  padding-left: 20px;
  border-left: 2px solid var(--border-light);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sb-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25);
}

.timeline-period {
  font-size: 13px;
  font-weight: 800;
  color: var(--sb-primary);
  letter-spacing: 0.02em;
}

.timeline-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

/* Services Grid (Service Cards style) */
.cards {
  display: grid;
}

.services-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sb-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #ccd7e2;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-primary);
  background: rgba(0, 86, 179, 0.08);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon {
  background: var(--sb-primary);
  color: #fff;
}

.service-card h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}

.service-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 24px;
}

.for-whom {
  margin-top: auto;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--sb-accent);
}

.for-whom b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.for-whom span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.service-card .chips {
  margin-top: 0;
  margin-bottom: 20px;
  gap: 8px;
}

.service-card .chips span {
  background: var(--bg-soft);
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
}

.service-card:hover .chips span {
  border-color: #ccd7e2;
  color: var(--ink);
}

.service-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: #b9d8ff;
}

.service-card--featured::before {
  background: var(--sb-primary);
  opacity: 1;
}

/* Services Sub-blocks: Engagement Models & Artifacts */
.services-subblock {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}

.subblock-head {
  margin-bottom: 36px;
  max-width: 760px;
}

.subblock-head h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.subblock-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

/* Engagement Models Grid */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engagement-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.engagement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #ccd7e2;
}

.engagement-card--highlight {
  border-color: var(--sb-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: var(--shadow-md);
}

.engagement-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.engagement-card--highlight .engagement-badge {
  background: var(--sb-primary);
  color: #ffffff;
}

.engagement-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.engagement-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

.engagement-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--border-light);
  padding-top: 20px;
}

.engagement-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding-left: 20px;
}

.engagement-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sb-primary);
  font-weight: 800;
  font-size: 13px;
}

/* Artifacts Grid */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.artifact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(11, 25, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.artifact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #ccd7e2;
}

.artifact-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.artifact-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  background: rgba(0, 86, 179, 0.1);
  color: var(--sb-primary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.artifact-tag.tag-perf {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.artifact-tag.tag-cicd {
  background: rgba(255, 94, 54, 0.12);
  color: var(--sb-accent);
}

.artifact-tag.tag-wiki {
  background: rgba(103, 58, 183, 0.12);
  color: #673ab7;
}

.artifact-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.artifact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

/* Services CTA Banner */
.services-cta-banner {
  margin-top: 40px;
  background: linear-gradient(135deg, #0f253e 0%, #071527 100%);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-cta-text h4 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.services-cta-text p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-white-muted);
  margin: 0;
}

/* Projects Section (Dark IT Theme) */
.projects {
  padding-bottom: 110px;
  background: linear-gradient(180deg, #0b1928 0%, #06101c 100%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  min-height: 380px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark-card);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  background: var(--bg-dark-card-hover);
  border-color: var(--border-dark-hover);
}

.project-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sb-accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 24px;
  box-shadow: 0 6px 16px var(--sb-accent-glow);
}

.mark-ai {
  background: var(--sb-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.4);
}

.mark-dev {
  background: #2b3b4f;
  color: var(--sb-cyan);
  box-shadow: none;
}

.mark-saas {
  background: #0070f3;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 112, 243, 0.4);
}

.mark-app {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.project-type {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sb-cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 23px;
  line-height: 1.25;
  margin: 10px 0 14px;
  font-weight: 800;
  color: var(--text-white);
}

.project-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-white-muted);
  margin: 0;
}

.project-card a {
  margin-top: auto;
  padding-top: 24px;
  color: var(--sb-cyan);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.project-card a:hover {
  color: #fff;
}

.project-note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-white-subtle);
}

.chips {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: var(--text-white-muted);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.project-card .chips + a,
.project-card .chips + .project-note {
  margin-top: 16px;
  padding-top: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 45px;
}

.metrics div {
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics div:last-child {
  border: 0;
}

.metrics strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--sb-cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.metrics span {
  font-size: 14px;
  color: var(--text-white-muted);
  line-height: 1.4;
  display: block;
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.process-step {
  position: relative;
  padding-top: 55px;
  border-top: 2px solid var(--border-light);
  transition: border-color 0.25s ease;
}

.process-step:hover {
  border-top-color: var(--sb-primary);
}

.process-step b {
  position: absolute;
  top: -19px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sb-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.process-step h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ink);
}

.process-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

.process-step .btn {
  margin-top: 6px;
  padding: 10px 18px;
  font-size: 13px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0 40px;
  background: radial-gradient(circle at 80% 60%, #153252 0%, #0d2138 35%, #071321 75%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text-white);
}

.contact-copy > p {
  color: var(--text-white-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 600px;
  margin: 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 16px;
  margin-top: 36px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 13px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--sb-cyan);
}

.contact-card.telegram {
  background: var(--sb-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35);
}

.contact-card.telegram:hover {
  background: var(--sb-primary-hover);
}

.contact-card b, .contact-card small {
  display: block;
}

.contact-card b {
  font-size: 14px;
  font-weight: 700;
}

.contact-card small {
  font-size: 12px;
  opacity: 0.75;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
  font-size: 14px;
}

/* QR / vCard Modal */
.qr-modal-dialog {
  width: min(420px, 100%);
  text-align: center;
}

.qr-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qr-modal-code {
  display: flex;
  justify-content: center;
  margin: 8px auto 24px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.qr-modal-code img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.form-card-head span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--sb-accent);
  margin-bottom: 8px;
}

.form-card-head b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-card-head small {
  display: block;
  color: var(--ink-secondary);
  font-size: 14px;
  margin: 6px 0 24px;
  line-height: 1.5;
}

.form-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 14px 0 0;
  text-align: center;
}

/* AI Banner */
.ai-banner {
  margin-top: 70px;
  padding: 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.ai-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 160, 233, 0.15);
  color: var(--sb-cyan);
  font-size: 22px;
}

.ai-banner b, .ai-banner span {
  display: block;
}

.ai-banner b {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.ai-banner span {
  font-size: 14px;
  color: var(--text-white-subtle);
  line-height: 1.4;
}

.ai-banner > a {
  font-size: 14px;
  color: var(--sb-cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.ai-banner > a:hover {
  color: #fff;
}

/* Footer */
.footer {
  background: #050d17;
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  color: var(--text-white-subtle);
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-white-subtle);
}

.footer-bottom a:hover {
  color: #fff;
}

.slogan {
  font-size: 15px;
  color: var(--sb-cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 23, 0.82);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
}

.modal-dialog h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.modal-lead {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 8px 0 24px;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: #e2eaf0;
  color: var(--ink);
}

.iframe-shell {
  min-height: 560px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.iframe-shell iframe {
  width: 100%;
  height: 560px;
  display: block;
}

/* AI Modal Elements */
.ai-modal-dialog {
  width: min(840px, 100%);
}

.ai-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ai-modal-section {
  margin-top: 28px;
}

.ai-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ai-feat-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  align-items: flex-start;
}

.ai-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(0, 86, 179, 0.1);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ai-feat-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.ai-feat-card span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.ai-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ai-role-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f0f7ff;
  border: 1px solid rgba(0, 86, 179, 0.12);
}

.ai-role-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-primary);
  margin-bottom: 4px;
}

.ai-role-item span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

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

.ai-step-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  align-items: flex-start;
}

.ai-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-step-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.ai-step-item span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.ai-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 28px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Legal Page Styles (Privacy Policy) */
.site-header--static {
  position: relative;
  background: var(--bg-dark);
}

.legal-hero {
  position: relative;
  padding: 60px 0 70px;
  overflow: hidden;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--text-white-subtle);
}

.breadcrumbs a {
  color: var(--text-white-muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-hero-inner h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.25;
  margin: 16px 0 20px;
  font-weight: 800;
  color: #ffffff;
  max-width: 900px;
}

.legal-hero-inner .lead {
  max-width: 820px;
  font-size: 18px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--text-white-subtle);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-meta b {
  color: var(--text-white);
}

.legal-content-section {
  padding: 70px 0 100px;
  background: var(--bg-soft);
}

.legal-container {
  max-width: 920px;
}

.legal-article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 48px 52px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.legal-intro-card {
  background: #f0f7ff;
  border-left: 4px solid var(--sb-primary);
  padding: 20px 24px;
  border-radius: var(--radius-xs);
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.legal-intro-card strong {
  color: var(--ink);
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.01em;
}

.legal-block p,
.legal-block li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.legal-block ol,
.legal-block ul {
  padding-left: 24px;
  margin: 14px 0;
}

.legal-block li {
  margin-bottom: 10px;
}

.legal-block li strong,
.legal-block li b {
  color: var(--ink);
}

.legal-block code {
  font-family: monospace;
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.legal-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.legal-mini-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.legal-mini-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-mini-card ul {
  padding-left: 18px;
  margin: 0;
}

.legal-mini-card li {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.legal-action-box {
  background: #fff8f5;
  border: 1px solid rgba(255, 94, 54, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 22px;
}

.legal-action-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-accent);
  margin-top: 0;
  margin-bottom: 8px;
}

.legal-action-box p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--ink-secondary);
}

.legal-action-box a {
  color: var(--sb-primary);
  font-weight: 700;
  text-decoration: underline;
}

.legal-contact-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 14px 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-contact-list li a {
  color: var(--sb-primary);
  font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .about-grid {
    grid-template-columns: 340px 1fr;
    gap: 36px;
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero-features {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .engagement-grid {
    grid-template-columns: 1fr;
  }
  .artifacts-grid {
    grid-template-columns: 1fr;
  }
  .services-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 620px);
  }

  .nav {
    height: 76px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #0f2238;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 16px;
  }

  .nav-links .btn {
    margin-top: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-inner {
    padding: 30px 0 30px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo {
    min-height: 400px;
  }

  .section-head {
    display: block;
    margin-bottom: 36px;
  }

  .section-head > p {
    margin-top: 14px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:last-child {
    grid-column: auto;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .metrics div:nth-child(2) {
    border-right: none;
  }

  .metrics strong {
    font-size: 34px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .ai-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .modal-dialog {
    padding: 24px;
  }

  .ai-features-grid,
  .ai-roles-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 40px 0 50px;
  }

  .legal-content-section {
    padding: 40px 0 70px;
  }

  .legal-article {
    padding: 28px 20px;
  }

  .legal-grid-cards {
    grid-template-columns: 1fr;
  }

  .iframe-shell {
    min-height: 500px;
  }

  .iframe-shell iframe {
    height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
  }
  .btn, .service-card, .project-card {
    transition: none;
  }
}

/* Yandex Tracker promo blocks */
.tracker-promo {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f253e 0%, #071527 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.tracker-promo-copy h4 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.tracker-promo-copy p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-white-muted);
  margin: 0;
}

.tracker-promo--glass {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

@media (max-width: 768px) {
  .tracker-promo {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* Express Audit Offer Component */
.audit-offer-box {
  background: linear-gradient(145deg, #0d2238 0%, #081726 100%);
  border: 1px solid rgba(0, 160, 233, 0.28);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--text-white);
  box-shadow: 0 16px 48px rgba(7, 21, 39, 0.4);
  position: relative;
  overflow: hidden;
}

.audit-offer-box::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 160, 233, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.audit-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.audit-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 94, 54, 0.16);
  border: 1px solid rgba(255, 94, 54, 0.4);
  color: #ff8159;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.audit-offer-top h3 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #ffffff;
}

.audit-offer-top p {
  color: var(--text-white-muted);
  font-size: 16px;
  margin: 0;
  max-width: 680px;
}

.audit-offer-tag-free {
  background: rgba(0, 160, 233, 0.15);
  border: 1px solid rgba(0, 160, 233, 0.35);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: right;
  flex-shrink: 0;
}

.audit-offer-tag-free strong {
  display: block;
  font-size: 18px;
  color: #38bdf8;
}

.audit-offer-tag-free span {
  font-size: 13px;
  color: var(--text-white-muted);
}

.audit-grid-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.audit-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.audit-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 160, 233, 0.3);
}

.audit-detail-card .detail-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.audit-detail-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.audit-detail-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-white-muted);
  margin: 0;
}

.audit-outcome-banner {
  background: rgba(0, 86, 179, 0.18);
  border: 1px solid rgba(0, 160, 233, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.audit-outcome-info h5 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.audit-outcome-info p {
  font-size: 14px;
  color: var(--text-white-muted);
  margin: 0;
}

.audit-outcome-info b {
  color: #38bdf8;
}

@media (max-width: 960px) {
  .audit-offer-top {
    flex-direction: column;
  }
  .audit-offer-tag-free {
    text-align: left;
    align-self: flex-start;
  }
  .audit-grid-details {
    grid-template-columns: 1fr;
  }
  .audit-outcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .audit-outcome-banner .btn {
    width: 100%;
    text-align: center;
  }
}

/* Horizontal Carousel for Services & Projects */
.carousel-container {
  position: relative;
  margin-top: 10px;
}

.carousel-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.carousel-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.carousel-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--ink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--sb-primary);
  color: #ffffff;
  border-color: var(--sb-primary);
  transform: scale(1.05);
}

.carousel-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-pill);
}

.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-track > .service-card,
.carousel-track > .project-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 300px;
  max-width: 420px;
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--sb-primary);
}

/* Dark Theme Carousel Overrides (e.g., Portfolio) */
.section-dark .carousel-counter {
  color: var(--text-white-muted);
}

.section-dark .carousel-arrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-dark);
  color: var(--text-white);
}

.section-dark .carousel-arrow:hover:not(:disabled) {
  background: var(--sb-primary);
  border-color: var(--sb-primary);
  color: #ffffff;
}

.section-dark .carousel-arrow:disabled {
  opacity: 0.25;
}

.section-dark .carousel-dot {
  background: rgba(255, 255, 255, 0.2);
}

.section-dark .carousel-dot.is-active {
  background: var(--sb-cyan);
}

.section-dark .carousel-track {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.section-dark .carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .carousel-track > .service-card,
  .carousel-track > .project-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .carousel-track > .service-card,
  .carousel-track > .project-card {
    flex: 0 0 86%;
    min-width: 260px;
  }
}

/* ============================================================================
   DESIGN SYSTEM — PHASE 2 (WAVE 1 FOUNDATION) — APPEND ONLY
   ----------------------------------------------------------------------------
   Nothing above this line is modified. Every class below is namespaced with
   the "ds-" prefix to guarantee zero collision with existing selectors.
   Contract & markup skeletons: portfolio/design-system.md (not publicly served).

   NOTE: .site-header is absolutely positioned and uses white text, therefore
   the FIRST block of every page MUST be dark. .ds-hero is dark by default.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   DS-0. Additive design tokens (only what the new blocks genuinely need)
   --------------------------------------------------------------------------- */
:root {
  --ds-gap: 20px;
  --ds-gap-lg: 32px;
  --ds-gap-sm: 14px;
  --ds-section-y: clamp(48px, 7vw, 96px);
  --ds-line: var(--border-light);
  --ds-line-dark: var(--border-dark);
  --ds-surface: #ffffff;
  --ds-surface-soft: var(--bg-soft);
  --ds-surface-dark: #071527;
  --ds-surface-dark-2: #0f2238;
  --ds-text-on-dark: var(--text-white);
  --ds-text-on-dark-muted: var(--text-white-muted);
  --ds-text-on-dark-subtle: var(--text-white-subtle);
  --ds-contain: 1200px;
}

/* ---------------------------------------------------------------------------
   DS-1. Shared section wrapper
   --------------------------------------------------------------------------- */
.ds-section {
  padding: var(--ds-section-y) 0;
}

.ds-section--soft {
  background: var(--ds-surface-soft);
}

.ds-section--dark {
  background: var(--ds-surface-dark);
  color: var(--ds-text-on-dark);
}

.ds-section--dark h2,
.ds-section--dark h3 {
  color: var(--ds-text-on-dark);
}

.ds-section--dark p {
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-2. Hero (--b2b)  ·  business-first, one H1, one proof line
   --------------------------------------------------------------------------- */
.ds-hero {
  position: relative;
  overflow: hidden;
  color: var(--ds-text-on-dark);
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(0, 160, 233, 0.22) 0%, transparent 70%),
    linear-gradient(150deg, var(--ds-surface-dark-2) 0%, var(--ds-surface-dark) 62%);
  padding: calc(92px + clamp(28px, 5vw, 64px)) 0 clamp(36px, 6vw, 76px);
}

.ds-hero--b2b::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 160, 233, 0.4), transparent);
  pointer-events: none;
}

.ds-hero__inner {
  position: relative;
  z-index: 2;
  max-width: min(var(--ds-contain), 100%);
}

.ds-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sb-cyan);
}

.ds-hero__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 22ch;
  overflow-wrap: break-word;
}

.ds-hero__title em {
  font-style: normal;
  color: var(--sb-accent);
}

.ds-hero__lead {
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ds-text-on-dark-muted);
  max-width: 62ch;
}

.ds-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ds-hero__proof {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--ds-line-dark);
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.6;
  color: var(--ds-text-on-dark-subtle);
  max-width: 72ch;
}

/* ---------------------------------------------------------------------------
   DS-3. Problem / outcome cards  ·  business process first, technology later
   --------------------------------------------------------------------------- */
.ds-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--ds-gap);
}

.ds-outcome-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-outcome-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light-hover);
  box-shadow: var(--shadow-md);
}

.ds-section--dark .ds-outcome-card {
  background: var(--bg-dark-card);
  border-color: var(--ds-line-dark);
  box-shadow: none;
}

.ds-outcome-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  font-size: 20px;
  line-height: 1;
}

.ds-outcome-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ds-outcome-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.ds-section--dark .ds-outcome-card__title {
  color: #ffffff;
}

.ds-section--dark .ds-outcome-card__text {
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-4. Architecture flow diagram  ·  mobile-first vertical, horizontal >=1024
   --------------------------------------------------------------------------- */
.ds-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-gap-sm);
  counter-reset: ds-flow;
}

.ds-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "index title"
    "index note";
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px 20px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-left: 3px solid var(--sb-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.ds-flow__index {
  grid-area: index;
  align-self: start;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sb-primary);
  padding-top: 3px;
}

.ds-flow__title {
  grid-area: title;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-flow__note {
  grid-area: note;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ds-flow__arrow {
  display: block;
  margin: 2px auto 0;
  font-size: 18px;
  line-height: 1;
  color: var(--sb-cyan);
  text-align: center;
}

.ds-flow__step:last-child .ds-flow__arrow {
  display: none;
}

@media (min-width: 1024px) {
  .ds-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ds-gap-sm);
    align-items: stretch;
  }

  .ds-flow__step {
    grid-template-columns: 1fr;
    grid-template-areas:
      "index"
      "title"
      "note";
    padding: 22px 18px;
    border-left: 1px solid var(--ds-line);
    border-top: 3px solid var(--sb-primary);
  }

  .ds-flow__arrow {
    position: absolute;
    top: 50%;
    right: -12px;
    margin: 0;
    transform: translateY(-50%) rotate(-90deg);
  }
}

/* ---------------------------------------------------------------------------
   DS-5. Flagship product block (two-column)
   --------------------------------------------------------------------------- */
.ds-flagship {
  padding: var(--ds-section-y) 0;
  background: linear-gradient(135deg, var(--ds-surface-dark-2) 0%, var(--ds-surface-dark) 100%);
  color: var(--ds-text-on-dark);
}

.ds-flagship__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-gap-lg);
  align-items: start;
}

.ds-flagship__media {
  min-width: 0;
}

.ds-flagship__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 94, 54, 0.16);
  border: 1px solid rgba(255, 94, 54, 0.4);
  color: #ff8159;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-flagship__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ds-flagship__lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ds-text-on-dark-muted);
  max-width: 62ch;
}

.ds-flagship__points {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ds-flagship__points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-text-on-dark-muted);
}

.ds-flagship__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sb-cyan);
  font-weight: 700;
}

.ds-flagship__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 900px) {
  .ds-flagship__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
  }
}

/* ---------------------------------------------------------------------------
   DS-6. Product grid + product card
   --------------------------------------------------------------------------- */
.ds-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--ds-gap);
}

.ds-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light-hover);
  box-shadow: var(--shadow-md);
}

.ds-product-card__badge {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 86, 179, 0.08);
  color: var(--sb-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ds-product-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-product-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.ds-product-card__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.ds-product-card__actions {
  margin-top: auto;
  padding-top: 12px;
}

.ds-product-card__actions .btn {
  width: 100%;
}

/* ---------------------------------------------------------------------------
   DS-7. Proof / metrics row  ·  3–4 items, never a wall of numbers
   --------------------------------------------------------------------------- */
.ds-proof-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--ds-gap);
}

.ds-proof-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  box-shadow: var(--shadow-sm);
}

.ds-section--dark .ds-proof-item {
  background: var(--bg-dark-card);
  border-color: var(--ds-line-dark);
  box-shadow: none;
}

.ds-proof-item__value {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-proof-item__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ds-section--dark .ds-proof-item__value {
  color: #ffffff;
}

.ds-section--dark .ds-proof-item__label {
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-8. Case teaser (compact card for /cases and the homepage)
   --------------------------------------------------------------------------- */
.ds-case-teaser {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-case-teaser:hover {
  transform: translateY(-3px);
  border-color: var(--border-light-hover);
  box-shadow: var(--shadow-md);
}

.ds-case-teaser__meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ds-case-teaser__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-case-teaser__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.ds-case-teaser__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-primary);
}

/* ---------------------------------------------------------------------------
   DS-9. Case (full)  ·  Problem → Context → Solution → Architecture →
   Result → Business effect → Technologies
   --------------------------------------------------------------------------- */
.ds-case {
  max-width: 920px;
  margin: 0 auto;
}

.ds-case__header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ds-line);
}

.ds-case__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-case__section {
  margin-bottom: 32px;
}

.ds-case__section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sb-primary);
}

.ds-case__section p {
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.ds-case__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.ds-case__effect {
  margin: 0;
  padding: 16px 20px;
  border-left: 3px solid var(--sb-accent);
  background: rgba(255, 94, 54, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   DS-10. Process / steps
   --------------------------------------------------------------------------- */
.ds-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--ds-gap);
  counter-reset: ds-step;
}

.ds-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  box-shadow: var(--shadow-sm);
}

.ds-section--dark .ds-step {
  background: var(--bg-dark-card);
  border-color: var(--ds-line-dark);
  box-shadow: none;
}

.ds-step__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--sb-accent);
}

.ds-step__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: break-word;
}

.ds-step__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.ds-section--dark .ds-step__title {
  color: #ffffff;
}

.ds-section--dark .ds-step__text {
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-11. ROI calculator (estimate only — never a guarantee)
   --------------------------------------------------------------------------- */
.ds-roi {
  display: grid;
  gap: var(--ds-gap-lg);
  padding: 28px 24px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ds-roi__head {
  margin: 0;
}

.ds-roi__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--ds-gap);
  margin: 0;
}

.ds-roi__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ds-roi__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-secondary);
  overflow-wrap: break-word;
}

.ds-roi__input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-roi__input:focus-visible {
  outline: none;
  border-color: var(--sb-primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

.ds-roi__input.is-invalid {
  border-color: #d14343;
}

.ds-roi__outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--ds-gap);
  padding-top: 20px;
  border-top: 1px solid var(--ds-line);
}

.ds-roi__out {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--ds-surface-soft);
  border: 1px solid var(--ds-line);
  min-width: 0;
}

.ds-roi__out-label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.ds-roi__out-value {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sb-primary);
  overflow-wrap: break-word;
}

.ds-roi__error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #d14343;
}

.ds-roi__error[hidden] {
  display: none;
}

.ds-roi__note {
  margin: 0;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .ds-roi {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    padding: 36px 32px;
  }

  .ds-roi__head,
  .ds-roi__error,
  .ds-roi__note {
    grid-column: 1 / -1;
  }

  .ds-roi__error,
  .ds-roi__note {
    padding-top: 0;
  }
}

/* ---------------------------------------------------------------------------
   DS-12. CTA band (exactly one per page)
   --------------------------------------------------------------------------- */
.ds-cta-band {
  padding: var(--ds-section-y) 0;
  background: linear-gradient(135deg, var(--ds-surface-dark-2) 0%, var(--ds-surface-dark) 100%);
  color: var(--ds-text-on-dark);
}

.ds-cta-band__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 780px;
}

.ds-cta-band__title {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  overflow-wrap: break-word;
}

.ds-cta-band__lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ds-text-on-dark-muted);
}

.ds-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------------
   DS-13. FAQ (native <details>, FAQPage-extractable)
   --------------------------------------------------------------------------- */
.ds-faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.ds-faq__item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ds-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  overflow-wrap: break-word;
}

.ds-faq__q::-webkit-details-marker {
  display: none;
}

.ds-faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--sb-primary);
}

.ds-faq__item[open] .ds-faq__q::after {
  content: "−";
}

.ds-faq__q:focus-visible {
  outline: 2px solid var(--sb-primary);
  outline-offset: -2px;
}

.ds-faq__a {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.ds-faq__a p {
  margin: 0 0 10px;
}

.ds-faq__a p:last-child {
  margin-bottom: 0;
}

.ds-section--dark .ds-faq__item {
  background: var(--bg-dark-card);
  border-color: var(--ds-line-dark);
  box-shadow: none;
}

.ds-section--dark .ds-faq__q {
  color: #ffffff;
}

.ds-section--dark .ds-faq__a {
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-14. Breadcrumbs (new block; existing .breadcrumbs is left untouched)
   --------------------------------------------------------------------------- */
.ds-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ds-text-on-dark-subtle);
}

/* Use only when breadcrumbs are the very first content directly under the
   absolutely-positioned .site-header (dark page without a hero wrapper). */
.ds-breadcrumbs--under-header {
  padding-top: 96px;
}

.ds-breadcrumbs a {
  color: var(--ds-text-on-dark-muted);
  transition: color 0.2s ease;
}

.ds-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ds-breadcrumbs [aria-current="page"] {
  color: var(--ds-text-on-dark-muted);
}

.ds-breadcrumbs--light {
  color: var(--ink-muted);
}

.ds-breadcrumbs--light a {
  color: var(--ink-secondary);
}

.ds-breadcrumbs--light a:hover {
  color: var(--sb-primary);
}

.ds-breadcrumbs--light [aria-current="page"] {
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------------------
   DS-15. Note / disclaimer
   --------------------------------------------------------------------------- */
.ds-note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--ds-surface-soft);
  border: 1px solid var(--ds-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.ds-note--estimate {
  border-left: 3px solid var(--sb-cyan);
}

.ds-section--dark .ds-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ds-line-dark);
  color: var(--ds-text-on-dark-muted);
}

/* ---------------------------------------------------------------------------
   DS-16. Screenshot / illustration slot  ·  never a fake UI
   --------------------------------------------------------------------------- */
.ds-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-shot__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 160, 233, 0.45);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 160, 233, 0.05) 0px,
      rgba(0, 160, 233, 0.05) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--ds-surface-soft);
}

.ds-shot__frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

.ds-shot__label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 86, 179, 0.1);
  color: var(--sb-primary);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-shot__placeholder {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.ds-shot__caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.ds-section--dark .ds-shot__frame,
.ds-flagship__media .ds-shot__frame {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 160, 233, 0.08) 0px,
      rgba(0, 160, 233, 0.08) 10px,
      transparent 10px,
      transparent 20px
    ),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 160, 233, 0.4);
}

.ds-section--dark .ds-shot__placeholder,
.ds-flagship__media .ds-shot__placeholder {
  color: var(--ds-text-on-dark-muted);
}

.ds-section--dark .ds-shot__caption,
.ds-flagship__media .ds-shot__caption {
  color: var(--ds-text-on-dark-subtle);
}

/* ---------------------------------------------------------------------------
   DS-17. Narrow-screen hardening (375px)
   --------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .ds-hero {
    padding-top: calc(92px + 24px);
  }

  .ds-hero__actions,
  .ds-cta-band__actions,
  .ds-flagship__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ds-hero__actions .btn,
  .ds-cta-band__actions .btn,
  .ds-flagship__actions .btn {
    width: 100%;
  }

  .ds-breadcrumbs--under-header {
    padding-top: 88px;
  }

  .ds-roi,
  .ds-outcome-card,
  .ds-product-card,
  .ds-step,
  .ds-proof-item,
  .ds-case-teaser {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 340px) {
  .ds-hero__title {
    font-size: 26px;
    max-width: none;
  }

  .ds-hero__eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }

  .ds-roi {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ds-faq__q,
  .ds-faq__a {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ds-shot__frame {
    padding: 22px 14px;
  }

  .ds-flow__step {
    padding: 14px;
  }
}

/* ---------------------------------------------------------------------------
   DS-18. Reduced motion for all new blocks (motion is secondary)
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ds-outcome-card,
  .ds-product-card,
  .ds-case-teaser,
  .ds-roi__input,
  .ds-breadcrumbs a {
    transition: none;
  }

  .ds-outcome-card:hover,
  .ds-product-card:hover,
  .ds-case-teaser:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   DS-19. Phase 7 — append-only utilities
   Purpose: replace the former inline `style=` attributes on cases.html.
   Append-only: no existing rule above is modified or removed (0 deletions).
   --------------------------------------------------------------------------- */
.ds-inline-note {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.ds-actions-spaced {
  margin-top: 24px;
}
