/* NEXERA design system — sapphire + emerald
   Logo diamond blues + fresh green accents */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-deep: #1E3A8A;
  --primary-soft: #DBEAFE;
  --primary-mist: #EFF6FF;
  --accent: #38BDF8;
  --accent-soft: #E0F2FE;
  --green: #10B981;
  --green-bright: #34D399;
  --green-deep: #047857;
  --green-soft: #D1FAE5;
  --green-mist: #ECFDF5;
  --indigo: #4F46E5;
  --ink: #0B1224;
  --text: #152038;
  --text-muted: #5B6B86;
  --bg: #F4F8F9;
  --bg-soft: #EEF6F4;
  --bg-deep: #0B1224;
  --white: #FFFFFF;
  --border: rgba(37, 99, 235, 0.1);
  --border-strong: rgba(16, 185, 129, 0.28);
  --shadow: 0 12px 40px rgba(16, 185, 129, 0.07);
  --shadow-lg: 0 28px 64px rgba(11, 18, 36, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font-display: "Syne", "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", "Manrope", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 40% at -5% 25%, rgba(16, 185, 129, 0.1), transparent 48%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(37, 99, 235, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--ink);
}

.container {
  width: min(100% - 2.75rem, var(--container));
  margin-inline: auto;
}

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--accent), var(--green), var(--indigo));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.65;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

.section-head-compact {
  margin-bottom: 2rem;
}

.section-head-compact .section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.55rem;
}

.section-head-compact .section-lead {
  font-size: 1rem;
  max-width: 540px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.55rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 48%, var(--green) 130%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--green-deep) 120%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-mist);
}

.btn-accent {
  background: linear-gradient(135deg, var(--green-deep), var(--green), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.btn-white {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

.btn-white:hover {
  background: var(--primary-mist);
  color: var(--primary-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  padding: 1.15rem 0;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(245, 248, 252, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(15, 32, 56, 0.06);
  border-bottom-color: rgba(37, 99, 235, 0.08);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 0;
  transition: transform 0.3s var(--ease), filter 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.28));
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  background: transparent;
}

.logo-img-header {
  height: 48px;
}

.site-header.scrolled .logo-img-header {
  height: 42px;
}

.logo-footer {
  display: inline-flex;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0;
}

.logo-img-footer {
  height: 58px;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.35));
}

.logo-footer:hover .logo-img-footer {
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).active::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a.active {
  color: var(--primary-dark);
}

.nav-cta {
  padding: 0.7rem 1.25rem !important;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: #fff !important;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.22);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--green-deep));
  color: #fff !important;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: 8.5rem 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 88% 18%, rgba(56, 189, 248, 0.24), transparent 58%),
    radial-gradient(ellipse 45% 50% at 12% 70%, rgba(16, 185, 129, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 60% 90%, rgba(37, 99, 235, 0.1), transparent 50%),
    linear-gradient(165deg, #F7FCFF 0%, #EEF8F5 42%, #F4F8F9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(52vw, 520px);
  aspect-ratio: 1;
  right: -4%;
  top: 18%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.16));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: blur(2px);
  opacity: 0.9;
  animation: diamondPulse 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes diamondPulse {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.75; }
  50% { transform: rotate(4deg) scale(1.04); opacity: 1; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
  background: linear-gradient(120deg, var(--ink) 8%, var(--primary) 42%, var(--green) 78%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .eyebrow {
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 1rem;
  max-width: 34ch;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), var(--green), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 48ch;
}

.hero .btn-group {
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94) 0%, #1E3A8A 42%, #0F766E 78%, #10B981 120%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.4), transparent 40%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.38), transparent 42%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}

@keyframes auroraShift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-visual-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  color: #fff;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-visual-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero-visual-caption span {
  font-size: 0.9rem;
  opacity: 0.85;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-item .label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---- Sections ---- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-compact {
  padding: 4rem 0;
}

.section.alt {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}

.section.soft {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 100%, rgba(16, 185, 129, 0.12), transparent 50%),
    var(--bg-soft);
}

#services {
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12), transparent 42%),
    linear-gradient(180deg, #F0F9F6 0%, #FFFFFF 100%);
}

#advantages {
  background:
    radial-gradient(circle at 0% 30%, rgba(37, 99, 235, 0.08), transparent 42%),
    linear-gradient(160deg, #F8FCFF 0%, #EEF8F4 55%, #F4F8F9 100%);
}

#cases {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF7F4 100%);
}

#clients {
  background:
    radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08), transparent 60%),
    #F7FBFA;
}

#contact-form {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F5F1 100%);
}

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.services-grid {
  gap: 1rem;
}

.services-group + .services-group {
  margin-top: 2.5rem;
}

.services-group-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--primary-deep);
}

.service-card,
.case-card,
.advantage-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(15, 32, 56, 0.03);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
  height: 100%;
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 253, 245, 0.75) 100%);
}

.service-card:hover,
.case-card:hover,
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.28);
}

.advantage-card {
  background: linear-gradient(165deg, #FFFFFF 0%, #F3FBF7 100%);
}

a.service-card:hover {
  transform: translateY(-4px);
  background: #fff;
}

a.service-card:hover h3 {
  color: var(--primary);
}

.service-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.16));
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-top .service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.15rem;
  margin-bottom: 0;
}

.service-card h3,
.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.service-top h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.service-card p,
.advantage-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

a.service-card p {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Cases */
.case-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.case-image,
.case-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0B1224, #1E3A8A 48%, #38BDF8);
  position: relative;
  overflow: hidden;
}

.case-image img,
.case-cover-media,
.case-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.case-card:hover .case-cover-media,
.case-card:hover .case-slide.is-active img {
  transform: scale(1.04);
}

.case-cover--fallback {
  background:
    radial-gradient(circle at 78% 22%, rgba(56, 189, 248, 0.32), transparent 42%),
    radial-gradient(circle at 18% 80%, rgba(16, 185, 129, 0.3), transparent 45%),
    linear-gradient(145deg, #0B1224 0%, #1E3A8A 42%, #0F766E 72%, #10B981 110%);
}

.case-cover-brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.85rem;
}

.case-cover-diamond {
  width: min(42%, 120px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(16, 185, 129, 0.85), rgba(37, 99, 235, 0.9));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.28);
  animation: float 7s ease-in-out infinite;
}

.case-cover-label {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-slider,
.case-slider-track,
.case-slide {
  position: absolute;
  inset: 0;
}

.case-slide {
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.case-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.case-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.case-slider-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.case-slider-dot.is-active {
  width: 18px;
  background: #fff;
}

.case-banner .case-cover {
  aspect-ratio: 21 / 8;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.case-body {
  padding: 1.45rem 1.5rem 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-cat {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.case-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.case-client {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin: -0.15rem 0 0.65rem;
}

.case-client-hero {
  margin: 0 0 0.75rem !important;
  color: var(--primary-deep) !important;
  font-size: 1rem !important;
}

.case-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}

.case-tech {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.22);
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.advantage-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.advantage-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.client-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  filter: grayscale(1);
  opacity: 0.72;
  overflow: visible;
}

.client-card:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
  box-shadow: var(--shadow);
  z-index: 2;
  border-color: rgba(37, 99, 235, 0.22);
}

.client-card img {
  max-height: 48px;
  width: auto;
}

.client-card .client-name {
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.client-hover-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.client-hover-badge i {
  font-size: 0.85rem;
}

.client-card-individuals:hover .client-hover-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--green), var(--primary));
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.timeline-item p {
  color: var(--text-muted);
  margin: 0;
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* CTA */
.cta-block {
  position: relative;
  border-radius: 28px;
  padding: 4.25rem 3rem;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(56, 189, 248, 0.32), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(16, 185, 129, 0.32), transparent 45%),
    linear-gradient(135deg, #0B1224 0%, #1E3A8A 40%, #0F766E 72%, #10B981 110%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.cta-block::before {
  content: "";
  position: absolute;
  width: 220px;
  aspect-ratio: 1;
  right: 8%;
  top: -40px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  pointer-events: none;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  position: relative;
}

.cta-block p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  position: relative;
}

/* Forms */
.form-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  background: #fff;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.success-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--green-deep);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: popIn 0.5s var(--ease);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Page hero */
.page-hero {
  padding: 9.5rem 0 3.75rem;
  background:
    radial-gradient(ellipse 70% 60% at 75% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(16, 185, 129, 0.12), transparent 50%),
    linear-gradient(180deg, #EEF8F5, var(--bg));
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  aspect-ratio: 1;
  right: 6%;
  top: 30%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(16, 185, 129, 0.14));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  color: var(--ink);
  position: relative;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0;
  position: relative;
}

/* Case detail */
.case-banner {
  aspect-ratio: 21 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0B1224, #1E3A8A 50%, #38BDF8);
  margin-bottom: 2.5rem;
  position: relative;
}

.case-banner > img,
.case-banner .case-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-banner .case-cover {
  aspect-ratio: auto;
  position: absolute;
  inset: 0;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.content-block {
  margin-bottom: 2rem;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.content-block p {
  color: var(--text-muted);
  margin: 0;
  white-space: pre-line;
}

.side-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}

.side-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(56, 189, 248, 0.16), transparent 40%),
    radial-gradient(ellipse at 10% 100%, rgba(16, 185, 129, 0.18), transparent 42%),
    linear-gradient(160deg, #070B16 0%, #0B1224 50%, #0F2A26 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  max-width: 280px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--green-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  transition: 0.25s ease;
}

.socials a:hover {
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-color: transparent;
  transform: translateY(-2px);
}

/* Alerts */
.flash-wrap {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flash {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  animation: popIn 0.35s var(--ease);
}

.flash.success { border-color: #10B981; }
.flash.danger { border-color: #EF4444; }
.flash.warning { border-color: #F59E0B; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 36, 0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: linear-gradient(180deg, #FFFFFF, #F4F8F9);
  padding: 1.25rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom));
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(11, 18, 36, 0.16);
}

.mobile-nav.open .mobile-panel {
  transform: none;
}

.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.mobile-panel-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.mobile-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}

.mobile-panel a {
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.9rem 0.35rem;
  border-radius: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-panel a:hover {
  background: var(--primary-mist);
  color: var(--primary-dark);
}

.mobile-panel .btn {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 48px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .case-meta-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .hero::after {
    width: 38vw;
    top: auto;
    bottom: 6%;
    opacity: 0.35;
  }

  .hero-visual {
    min-height: 260px;
    order: 2;
    border-radius: 22px;
  }

  .hero-content {
    order: 1;
  }

  .cards-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .clients-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav.open[hidden] {
    display: block !important;
  }

  .logo-img-header {
    height: 38px;
  }

  .site-header.scrolled .logo-img-header {
    height: 34px;
  }

  .logo-img-footer {
    height: 48px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-right: -0.5rem;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .case-banner {
    aspect-ratio: 16 / 10;
  }

  .side-card {
    position: static;
  }

  .flash-wrap {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .flash {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cards-grid,
  .advantages-grid,
  .clients-grid,
  .form-grid,
  .footer-grid,
  .stats-bar,
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .cta-block {
    padding: 2.5rem 1.25rem;
    border-radius: 22px;
  }

  .cta-block h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-compact {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .page-hero {
    padding: 7rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hero {
    padding: 5.75rem 0 2.25rem;
  }

  .hero-brand {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-visual {
    min-height: 210px;
  }

  .hero .btn-group {
    width: 100%;
  }

  .hero .btn,
  .btn-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .stats-bar {
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .stat-item .num {
    font-size: 1.4rem;
  }

  .container {
    width: min(100% - 1.35rem, var(--container));
  }

  .form-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .form-control {
    font-size: 16px; /* prevent iOS zoom */
    min-height: 48px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .case-body {
    padding: 1.15rem 1.15rem 1.35rem;
  }

  .case-cover,
  .case-image {
    aspect-ratio: 16 / 11;
  }

  .client-card {
    min-height: 96px;
    padding: 1.1rem;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-header.scrolled {
    padding: 0.55rem 0;
  }
}

@media (max-width: 400px) {
  .advantage-card {
    flex-direction: column;
    gap: 0.75rem;
  }

  .services-group-title {
    font-size: 1.05rem;
  }
}
