:root {
  --brand-primary: #06b6d4;
  --brand-primary-hover: #22d3ee;
  --brand-secondary: #8b5cf6;
  --brand-glow: rgba(6, 182, 212, 0.4);
  --brand-soft: rgba(6, 182, 212, 0.12);
  --brand-soft-violet: rgba(139, 92, 246, 0.12);

  --bg: #0a0c10;
  --surface: #111318;
  --surface-elevated: #181c24;
  --text: #f0f2f5;
  --text-secondary: #b8bcc6;
  --muted: #7a8296;
  --accent: var(--brand-primary);
  --accent-hover: var(--brand-primary-hover);
  --accent-soft: var(--brand-soft);
  --border: #1e232d;
  --radius: 10px;
  --radius-lg: 16px;
  --space: 24px;
  --max: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--brand-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, var(--brand-soft-violet), transparent 45%),
    radial-gradient(ellipse 50% 30% at 0% 80%, var(--brand-soft), transparent 45%);
  pointer-events: none;
  animation: bgShift 18s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 1; transform: scale(1) translate(0, 0); }
  100% { opacity: 0.95; transform: scale(1.03) translate(-1%, -0.5%); }
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  z-index: 100;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-text {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: logoGradient 6s ease-in-out infinite alternate;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.brand-text::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.4s var(--ease-out);
}

.brand:hover .brand-text::after {
  opacity: 0.35;
}

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

.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-list a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0c10 !important;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-glow);
}

.nav-toggle {
  display: none;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:active {
  transform: scale(0.97);
}

.lang-btn.active {
  background: var(--accent-soft);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.section {
  padding: 80px 0;
}

.section--about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  padding: 88px 0;
}

.carousel {
  position: relative;
  margin-top: 16px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel--about .carousel-track {
  width: 400%;
}

.carousel--about .carousel-slide {
  flex: 0 0 25%;
  width: 25%;
  min-width: 0;
  box-sizing: border-box;
}

.carousel-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot:hover {
  background: var(--muted);
}

.carousel-dot.active {
  background: var(--brand-primary);
  transform: scale(1.15);
}

.carousel-dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.carousel-progress {
  width: 100px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand-primary);
  border-radius: 2px;
}

.carousel-progress-bar.carousel-progress-bar--run {
  animation: carousel-progress 5s linear forwards;
}

@keyframes carousel-progress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-progress-bar.carousel-progress-bar--run {
    animation: none;
  }
}

.section--about .carousel-slide.card {
  position: relative;
  padding: 44px 40px 44px 52px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--about .carousel-slide .card-icon {
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 44px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
}

.section--about .carousel-slide.card h3 {
  margin: 0 0 14px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
}

.section--about .carousel-slide.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42em;
}

.section--about .carousel-slide.card ul {
  margin: 0;
  padding: 0 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42em;
  list-style: none;
}

.section--about .carousel-slide.card ul li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 0;
}

.section--about .carousel-slide.card ul li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.9;
}

.section--about .carousel-slide.card ul li:last-child {
  margin-bottom: 0;
}

.card--mission .card-icon { background: var(--brand-primary); }
.card--vision .card-icon { background: var(--brand-secondary); }
.card--values .card-icon { background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary)); }
.card--diff .card-icon { background: var(--brand-primary); opacity: 0.85; }

.section--services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
}

.services-grid .card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 72px;
  padding-left: 72px;
}

.services-grid .card > .card-icon--qa,
.services-grid .card > .card-icon--automation,
.services-grid .card > .card-icon--reports,
.services-grid .card > .card-icon--interviews {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.card-icon--qa {
  background: rgba(6, 182, 212, 0.2);
  color: var(--brand-primary);
}
.card-icon--qa::before {
  content: "✓";
  font-size: 1.25rem;
  font-weight: 700;
}

.card-icon--automation {
  background: rgba(139, 92, 246, 0.2);
  color: var(--brand-secondary);
}
.card-icon--automation::before {
  content: "⟳";
  font-size: 1.35rem;
}

.card-icon--reports {
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-primary);
}
.card-icon--reports::before {
  content: "▤";
  font-size: 1.25rem;
  font-weight: 700;
}

.card-icon--interviews {
  background: rgba(139, 92, 246, 0.15);
  color: var(--brand-secondary);
}
.card-icon--interviews::before {
  content: "◉";
  font-size: 1.1rem;
}

.services-grid .card {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.services-grid .card:hover {
  border-color: var(--brand-primary);
  box-shadow: none;
  background: rgba(6, 182, 212, 0.04);
}

.services-grid .card--qa:hover { border-color: var(--brand-primary); background: rgba(6, 182, 212, 0.05); }
.services-grid .card--automation:hover { border-color: var(--brand-secondary); background: rgba(139, 92, 246, 0.05); }
.services-grid .card--reports:hover { border-color: var(--brand-primary); background: rgba(6, 182, 212, 0.05); }
.services-grid .card--interviews:hover { border-color: var(--brand-secondary); background: rgba(139, 92, 246, 0.05); }

.services-grid .card:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.card-link { margin-top: auto; }

.section--programs {
  padding: 88px 0;
  background: var(--bg);
}

.programs-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card--level {
  position: relative;
  padding: 32px;
  border-left: 4px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card--level-1 { border-left-color: var(--brand-primary); }
.card--level-2 { border-left-color: var(--brand-secondary); }
.card--level-3 { border-left-color: var(--brand-primary); }

.card--level .card-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card--level-1 .card-level-badge { background: var(--brand-primary); }
.card--level-2 .card-level-badge { background: var(--brand-secondary); }
.card--level-3 .card-level-badge {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.card--level h3 {
  margin: 0 0 12px;
}

.card--level p {
  margin-bottom: 16px;
}

.section--contact {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.card--form {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.card--form:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.12);
}

.card--info h3 {
  color: var(--text);
  padding-bottom: 8px;
  display: inline-block;
  border-bottom: 2px solid var(--brand-primary);
}

.section-header {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-header h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section--about .section-header {
  max-width: 720px;
}

.section--about .section-header h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section--about .section-header p {
  font-size: 1rem;
  color: var(--muted);
}

#about-title {
  display: inline;
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--brand-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  opacity: 0;
  transition: opacity 0.1s;
}

.typed-cursor.visible {
  opacity: 1;
  animation: typed-blink 0.7s step-end infinite;
}

@keyframes typed-blink {
  50% { opacity: 0; }
}

.section--services .section-header,
.section--programs .section-header,
.section--contact .section-header {
  max-width: 720px;
}

.section--services .section-header h2,
.section--programs .section-header h2,
.section--contact .section-header h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section--services .section-header p,
.section--programs .section-header p,
.section--contact .section-header p {
  font-size: 1rem;
  color: var(--muted);
}

.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--accent);
  color: #0a0c10;
  border-color: transparent;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn.primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--surface);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn.secondary:active {
  transform: scale(0.98);
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  margin: 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-metrics strong {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s var(--ease-out);
}

.hero-metrics li:hover strong {
  filter: brightness(1.15);
}

.hero-metrics span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-media {
  display: none;
}

.grid {
  display: grid;
  gap: 24px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: color 0.2s;
}

.card a:not(.btn):hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.contact-form label span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.contact-form select {
  background-color: var(--bg);
  cursor: pointer;
}

.contact-form select option {
  background-color: var(--surface);
  color: var(--text);
}

.contact-form .btn {
  margin-top: 8px;
}

.contact-form-status {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-form-status--success {
  color: var(--brand-primary);
}

.contact-form-status--error {
  color: #f87171;
}

.contact-info {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-info:hover {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.contact-info__lava {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.contact-info__blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(40px);
  opacity: 0.4;
  will-change: transform;
}

.contact-info__blob--1 {
  width: 180px;
  height: 180px;
  background: var(--brand-soft);
  top: -20%;
  right: -10%;
  animation: lavaBlob1 18s ease-in-out infinite alternate;
}

.contact-info__blob--2 {
  width: 140px;
  height: 140px;
  background: var(--brand-soft-violet);
  bottom: -15%;
  left: -5%;
  animation: lavaBlob2 22s ease-in-out infinite alternate;
}

.contact-info__blob--3 {
  width: 100px;
  height: 100px;
  background: var(--brand-soft);
  top: 40%;
  left: 20%;
  animation: lavaBlob3 20s ease-in-out infinite alternate;
}

.contact-info__blob--4 {
  width: 120px;
  height: 120px;
  background: var(--brand-soft-violet);
  bottom: 20%;
  right: 15%;
  animation: lavaBlob4 25s ease-in-out infinite alternate;
}

@keyframes lavaBlob1 {
  0% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { transform: translate(-15px, 20px) scale(1.15); border-radius: 30% 70% 70% 30% / 40% 60% 30% 70%; }
}

@keyframes lavaBlob2 {
  0% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; }
  100% { transform: translate(20px, -25px) scale(1.1); border-radius: 70% 30% 30% 70% / 30% 70% 30% 70%; }
}

@keyframes lavaBlob3 {
  0% { transform: translate(0, 0) scale(1); border-radius: 50% 50% 30% 70% / 50% 50% 50% 50%; }
  100% { transform: translate(10px, 15px) scale(1.2); border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%; }
}

@keyframes lavaBlob4 {
  0% { transform: translate(0, 0) scale(1); border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%; }
  100% { transform: translate(-20px, -10px) scale(1.12); border-radius: 70% 30% 40% 60% / 40% 60% 40% 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-info__blob {
    animation: none;
    opacity: 0.2;
  }
}

.contact-info__content {
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
  padding-bottom: 8px;
  display: inline-block;
  border-bottom: 2px solid var(--brand-primary);
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.contact-info li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-info .social {
  display: flex;
  gap: 16px;
}

.contact-info .social a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-info .social a:hover {
  color: var(--brand-primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand strong {
  font-size: 1.125rem;
}

.footer-brand .muted {
  margin: 8px 0 0;
  font-size: 0.875rem;
  display: block;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--brand-primary);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-legal a:hover {
  color: var(--brand-primary);
}

.footer-legal p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-metrics li {
    align-items: center;
  }

  .two-cols,
  .three-cols {
    grid-template-columns: 1fr;
  }

  .programs-track {
    grid-template-columns: 1fr;
  }

  .services-grid .card {
    padding-top: 64px;
    padding-left: 60px;
  }

  .services-grid .card > .card-icon--qa,
  .services-grid .card > .card-icon--automation,
  .services-grid .card > .card-icon--reports,
  .services-grid .card > .card-icon--interviews {
    left: 16px;
    top: 16px;
  }

  .card--level {
    padding: 28px;
  }

  .section,
  .section--about,
  .section--services,
  .section--programs,
  .section--contact {
    padding: 56px 0;
  }

  .main-nav {
    display: none;
  }

  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-inner {
    gap: 12px;
    flex-wrap: wrap;
    min-height: 48px;
  }

  .brand {
    flex-shrink: 0;
    min-width: 0;
  }

  .lang-switch {
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: 8px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.15s ease, background-color 0.2s, border-color 0.2s;
  }

  .nav-toggle:active {
    transform: scale(0.96);
  }

  .main-nav.open {
    display: block;
    width: 100%;
    order: 10;
    flex-basis: 100%;
    margin-top: 4px;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 4px;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-list .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin: 12px auto 0;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-list .nav-cta:active {
    transform: scale(0.98);
  }

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

@media (prefers-reduced-motion: reduce) {
  .site-bg,
  .brand-text,
  .brand-text::after {
    animation: none;
  }
  .brand:hover { transform: none; }
  .nav-cta:hover,
  .btn.primary:hover,
  .btn.secondary:hover { transform: none; }
  .card:hover { transform: none; }
  .hero-metrics li:hover strong { filter: none; }
  .carousel-track {
    transition: none;
  }
}
