/* ============================================
   AI SEOboost - Main Stylesheet
   Cyberpunk/Techno-Minimalism Design
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Orbitron:wght@400;500;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --black: #000000;
  --red: #FF2D2D;
  --red-dark: #CC1111;
  --red-glow: rgba(255, 45, 45, 0.3);
  --white: #FFFFFF;
  --gray-900: #111111;
  --gray-800: #1A1A1A;
  --gray-700: #2A2A2A;
  --gray-600: #444444;
  --gray-400: #888888;
  --gray-200: #CCCCCC;
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-pill: 100px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
}

.text-ui {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  margin-bottom: 80px;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 45, 45, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--red);
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  position: relative;
}

.nav-logo-icon svg {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--red);
}

.nav-dropdown-arrow {
  font-size: 8px;
  transition: var(--transition);
}

.nav-item:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  border-radius: 6px;
  transition: var(--transition);
}

.nav-dropdown-link:hover {
  color: var(--white);
  background: rgba(255, 45, 45, 0.1);
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--border-radius-pill);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-cta:hover {
  background: var(--red-dark);
  box-shadow: 0 0 20px var(--red-glow);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--border-radius-pill);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: visible;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.25);
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 28px rgba(255, 45, 45, 0.5), 0 4px 20px rgba(255, 45, 45, 0.2);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 160%;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 11px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}


.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(255,45,45,0.05) 0%, transparent 55%);
}

/* Background watermark */
.hero-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(280px, 40vw, 600px);
  color: rgba(255,45,45,0.025);
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Scanning line */
.hero-scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 40%, var(--red) 60%, transparent 100%);
  opacity: 0;
  z-index: 1;
  animation: heroScan 7s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255,45,45,0.5);
}

@keyframes heroScan {
  0% { top: 0; opacity: 0; }
  5% { opacity: 0.45; }
  92% { opacity: 0.25; }
  100% { top: 100%; opacity: 0; }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 0 56px;
}

/* Status bar */
.hero-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--red); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--red); }
}

.hero-status-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
}


.hero-status-sep {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--gray-700);
}

.hero-status-ver {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-600);
  margin-left: auto;
}

/* Main layout */
.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  flex: 1;
}

/* Left side */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-seo-label {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.9;
  color: var(--red);
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.9;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  position: relative;
}

.hero-title.glitch {
  animation: glitch 200ms steps(2) forwards;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: inherit;
  line-height: inherit;
  text-transform: uppercase;
}

.hero-title::before {
  color: #FF2D2D;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  opacity: 0;
}

.hero-title::after {
  color: #FF5555;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0;
}

.hero-title.glitch::before {
  animation: glitch-top 200ms steps(2) forwards;
  opacity: 1;
}

.hero-title.glitch::after {
  animation: glitch-bottom 200ms steps(2) forwards;
  opacity: 1;
}

/* Tags row */
.hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hero-tag-item {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gray-600);
  text-transform: uppercase;
}

.hero-tag-div {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--gray-700);
}

/* Right side */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 4px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--gray-400);
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-note-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-note-text {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-600);
}

/* Stats bar */
.hero-statsbar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--gray-800);
  background: rgba(17,17,17,0.7);
}

.hero-stats-inner {
  display: flex;
  align-items: stretch;
}

.hero-stat {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  color: var(--white);
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray-600);
  text-transform: uppercase;
}

.hero-stats-sep {
  width: 1px;
  background: var(--gray-800);
  flex-shrink: 0;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 45, 45, 0.1);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 50%, #0D0D0D 100%);
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================
   Service Cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-700);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.service-card {
  background: var(--gray-900);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: #0D0D0D;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-number {
  color: var(--red);
}

.service-number {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.15em;
  margin-bottom: 40px;
  transition: var(--transition);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 45, 45, 0.06);
  border: 1px solid rgba(255, 45, 45, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
  filter: drop-shadow(0 0 6px rgba(255, 45, 45, 0.3));
}

.service-card:hover .service-icon {
  background: rgba(255, 45, 45, 0.12);
  border-color: rgba(255, 45, 45, 0.5);
  filter: drop-shadow(0 0 12px rgba(255, 45, 45, 0.5));
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.service-arrow {
  font-size: 20px;
  color: var(--gray-600);
  transition: var(--transition);
  align-self: flex-start;
}

.service-card:hover .service-arrow {
  color: var(--red);
  transform: translate(4px, -4px);
}

/* ============================================
   Why Us Cards
   ============================================ */
.why-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-4px);
}

.why-number {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -10px;
  right: 20px;
  pointer-events: none;
  user-select: none;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 45, 45, 0.06);
  border: 1px solid rgba(255, 45, 45, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 45, 45, 0.3));
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: rgba(255, 45, 45, 0.12);
  border-color: rgba(255, 45, 45, 0.5);
  filter: drop-shadow(0 0 12px rgba(255, 45, 45, 0.5));
}

.why-title {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.why-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============================================
   Process Steps
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-700), var(--red), var(--gray-700), transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gray-900);
  border: 2px solid var(--gray-700);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
  color: var(--gray-400);
  position: relative;
}

.process-step:hover .process-step-num {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px var(--red-glow);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.process-step-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================================
   SEO Section (Yandex / Google)
   ============================================ */
.seo-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.seo-platform {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 40px;
}

.seo-platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.seo-platform-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}

.seo-platform-logo.yandex {
  background: linear-gradient(135deg, #FF0000, #CC0000);
}

.seo-platform-logo.google {
  background: linear-gradient(135deg, #4285F4, #34A853);
}

.seo-platform-name {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
}

.seo-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-200);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-800);
}

.seo-feature:last-child {
  border-bottom: none;
}

.seo-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================
   Cases / Portfolio Cards
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.case-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.case-card:hover .case-card-bg {
  transform: scale(1.05);
}

.case-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 80px;
  z-index: 1;
  pointer-events: none;
}

.case-mockup svg {
  width: 100%;
  height: auto;
  max-height: 65%;
  filter: drop-shadow(0 8px 24px rgba(255, 45, 45, 0.15));
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.case-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 45, 45, 0.15);
  border: 1px solid rgba(255, 45, 45, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
}

.case-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1;
}

.case-result {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-200);
}

.case-result strong {
  color: var(--red);
}

/* ============================================
   Advantages
   ============================================ */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.advantage-item {
  border-bottom: 1px solid var(--gray-800);
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.advantage-item:first-child {
  border-top: 1px solid var(--gray-800);
}

.advantage-item:hover {
  padding-left: 16px;
}

.advantage-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  width: 40px;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.advantage-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
  flex: 1;
  transition: var(--transition);
}

.advantage-item:hover .advantage-title {
  color: var(--red);
}

.advantage-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  max-width: 300px;
  line-height: 1.6;
}

.advantage-arrow {
  font-size: 24px;
  color: var(--gray-600);
  transition: var(--transition);
}

.advantage-item:hover .advantage-arrow {
  color: var(--red);
  transform: translateX(8px);
}

/* ============================================
   Technologies Row
   ============================================ */
.tech-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.tech-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--gray-700);
  transition: var(--transition);
  cursor: default;
}

.tech-item:last-child {
  border-right: none;
}

.tech-item:hover {
  background: rgba(255, 45, 45, 0.05);
}

.tech-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: var(--transition);
}

.tech-item:hover .tech-name {
  color: var(--white);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Contact Form
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.form-input {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--red);
  background: rgba(255, 45, 45, 0.03);
}

.form-input::placeholder {
  color: var(--gray-600);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pricing-card.featured {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.03);
}

.pricing-card:hover:not(.featured) {
  border-color: var(--red);
  transform: translateY(-4px);
}

.pricing-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--red);
  padding: 4px 12px;
  border-radius: 100px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.pricing-plan {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.pricing-card.featured .pricing-plan {
  color: rgba(255,255,255,0.7);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.pricing-card.featured .pricing-price-sub {
  color: rgba(255,255,255,0.7);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-700);
}

.pricing-card.featured .pricing-features {
  border-bottom-color: rgba(255,255,255,0.2);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-200);
}

.pricing-card.featured .pricing-feature {
  color: rgba(255,255,255,0.9);
}

.pricing-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 45, 45, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--red);
}

.pricing-card.featured .pricing-feature-check {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.pricing-card.featured .btn {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.pricing-card.featured .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-800);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  transition: var(--transition);
  gap: 20px;
}

.faq-question:hover .faq-q-text {
  color: var(--red);
}

.faq-q-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  flex: 1;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-400);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-800);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 160px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-hero-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-logo {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand-logo span {
  color: var(--red);
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 45, 45, 0);
  transition: var(--transition);
}

.footer-social-link:hover {
  border-color: rgba(255, 45, 45, 0.5);
  color: var(--red);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.2), inset 0 0 12px rgba(255, 45, 45, 0.05);
}

.footer-social-link svg {
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.footer-social-link:hover svg {
  filter: drop-shadow(0 0 4px rgba(255, 45, 45, 0.6));
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-600);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-600);
  transition: var(--transition);
}

.footer-bottom-link:hover {
  color: var(--gray-400);
}

/* ============================================
   Decorative Elements
   ============================================ */
.wireframe-decor {
  position: absolute;
  border: 1px solid rgba(255, 45, 45, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 45, 0.4), transparent);
  z-index: 9998;
  animation: scanLine 6s linear infinite;
  pointer-events: none;
}

/* ============================================
   Portfolio Filter
   ============================================ */
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--gray-700);
  color: var(--gray-400);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================
   Contact Page
   ============================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-sphere {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 45, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 3s ease-in-out infinite;
}

.map-sphere::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 45, 0.2);
}

.map-sphere::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 45, 0.15);
}

.map-sphere-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-top {
  0% { transform: translate(0); }
  25% { transform: translate(4px, 0); }
  50% { transform: translate(-4px, 0); }
  75% { transform: translate(2px, 0); }
  100% { transform: translate(0); }
}

@keyframes glitch-bottom {
  0% { transform: translate(0); }
  25% { transform: translate(-4px, 0); }
  50% { transform: translate(4px, 0); }
  75% { transform: translate(-2px, 0); }
  100% { transform: translate(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes echo-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* Fade in up animation class */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-red { color: var(--red); }
.text-gray { color: var(--gray-400); }
.text-white { color: var(--white); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-gray-800 { background-color: var(--gray-800); }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.border-bottom { border-bottom: 1px solid var(--gray-800); }

/* Jobs section */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-800);
  transition: var(--transition);
  cursor: pointer;
}

.job-item:first-child {
  border-top: 1px solid var(--gray-800);
}

.job-item:hover {
  padding-left: 16px;
}

.job-num {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  width: 40px;
  flex-shrink: 0;
}

.job-info {
  flex: 1;
}

.job-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.job-details {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-400);
}

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--gray-700);
  color: var(--gray-400);
}

.job-arrow {
  font-size: 24px;
  color: var(--gray-600);
  transition: var(--transition);
}

.job-item:hover .job-arrow {
  color: var(--red);
  transform: translateX(8px);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 45, 45, 0.06);
  border: 1px solid rgba(255, 45, 45, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 6px rgba(255, 45, 45, 0.3));
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.benefit-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================================
   Responsive - 1200px
   ============================================ */
@media (max-width: 1200px) {
  .container {
    padding: 0 32px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================
   Responsive - 768px
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: clamp(40px, 10vw, 80px);
  }

  .hero {
    padding-top: var(--nav-height);
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-seo-label {
    font-size: clamp(48px, 14vw, 90px);
  }

  .hero-title {
    font-size: clamp(60px, 18vw, 130px);
  }

  .hero-stats-inner {
    flex-wrap: wrap;
  }

  .hero-stat {
    flex: 1 1 40%;
    padding: 20px 24px;
  }

  .hero-stats-sep {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .seo-platforms {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .advantages-list .advantage-desc {
    display: none;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--gray-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    gap: 4px;
    z-index: 999;
    border-left: 1px solid var(--gray-700);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--gray-800);
    margin-top: 4px;
    margin-left: 14px;
    display: none;
  }

  .nav-item.open .nav-dropdown {
    display: block;
  }

  .tech-row {
    flex-wrap: wrap;
  }

  .tech-item {
    flex-basis: 50%;
    border-right: none;
    border-bottom: 1px solid var(--gray-700);
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero-title {
    font-size: clamp(48px, 15vw, 100px);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Responsive - 480px
   ============================================ */
@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero-seo-label {
    font-size: clamp(44px, 16vw, 80px);
  }

  .hero-title {
    font-size: clamp(52px, 20vw, 100px);
  }

  .hero-stat {
    flex: 1 1 100%;
    padding: 16px 20px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 10px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

/* ============================================
   Loading Screen
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 320px;
}

.loader-logo {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loader-logo-ai {
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 22px;
}

.loader-logo-name {
  color: var(--white);
}

.loader-logo-accent {
  color: var(--red);
}

.loader-bar-wrap {
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--red-glow);
  transition: width 0.1s ease;
}

.loader-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  text-transform: uppercase;
}
