/* ==========================================================================
   DESIGN SYSTEM: PREMIUM DARK BLUE-BLACK THEME
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-color: #070614;      /* Очень глубокий темно-синий-фиолетовый */
  --bg-card: #0f0d25;       /* Темный сине-фиолетовый для карточек */
  --bg-card-hover: #171438; /* Более светлый для наведения */
  --border-color: rgba(99, 102, 241, 0.2); /* Индиго-полупрозрачный контур */
  --border-focus: #3b82f6;  /* Яркий чистый синий для фокуса */
  
  --text-primary: #f8fafc;  /* Практически белый */
  --text-secondary: #94a3b8;/* Серый с синим оттенком */
  --text-muted: #475569;    /* Темно-серый */
  
  /* Classic Clean Blues (No Neon Glows) */
  --primary: #2563eb;       /* Классический королевский синий */
  --secondary: #1d4ed8;     /* Глубокий синий */
  
  /* Soft Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.6);
  
  /* Rounded Corners */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 30px;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  --transition: all 0.25s ease;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #03020a 0%, #050b1f 35%, #0d061f 70%, #03020a 100%);
  background-size: 300% 300%;
  animation: bgGradient 20s ease infinite;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hide soft glow backgrounds */
.glow-bg {
  display: none !important;
}

/* ==========================================================================
   PREMIUM CARDS
   ========================================================================== */
.glass {
  background: rgba(15, 13, 37, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass:hover {
  background: rgba(23, 20, 56, 0.6) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo span {
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
}

.logo-accent {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 48px; /* Расстояние между кнопками увеличено */
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.05rem; /* Кнопки стали больше */
  position: relative;
  padding: 8px 16px; /* Добавлены отступы для объема */
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08); /* Мягкая темно-синяя подсветка фона */
  transform: translateY(-3px); /* Анимация сдвига вверх при наведении */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%; /* Линия плавно расширяется из центра наружу */
}

.header-actions {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  color: #fff;
  border: none;
  animation: shine 4s linear infinite;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 160px 0 80px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

#wave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-new {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.hero-title span {
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
}

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

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.projects-section .section-title,
.portfolio-footer-promo h2,
.full-cycle-section .section-title,
.stages-section .section-title,
.advantages-section .section-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 30px;
}

.portfolio-footer-promo {
  margin-top: 80px;
  text-align: center;
}

.section-title span,
.portfolio-footer-promo h2 span {
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 20px auto;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   ABOUT SECTION (ОБО МНЕ)
   ========================================================================== */
.about-description-text {
  max-width: 1000px;
  margin: 30px auto 60px auto;
  text-align: center;
}

.about-description-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
}

.about-description-text p strong {
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
}



/* ==========================================================================
   PROJECTS SECTION (МОИ РАБОТЫ)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}

.project-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  transition: var(--transition);
}

.project-title-minimal {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.project-link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: rgba(7, 6, 20, 0.75);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition);
}

.project-link-minimal:hover {
  color: #ffffff;
  background: var(--bg-color);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-category-card {
  padding: 35px;
  background: transparent !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease-out !important;
}

.skill-category-card:hover {
  border-color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.02) !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08) !important;
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-item {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: default;
}

.skill-item:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTACT SECTION (СВЯЗЬ СО МНОЙ)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.contact-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-item i {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md) !important; /* Скругление */
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.detail-item div span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-item div p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.detail-item div p a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.detail-item div p a:hover {
  color: var(--primary);
}

.contact-form-wrapper {
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm) !important; /* Скругление */
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.04);
}

.form-status {
  padding: 12px;
  border-radius: var(--radius-sm) !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: #02040a;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-socials a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   LOADER & LOAD SPINNER
   ========================================================================== */
.loader-wrapper {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 50% !important; /* Круглый спиннер */
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px !important;
  }
  
  .logo {
    font-size: 1.3rem !important;
  }

  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-section .section-title,
  .portfolio-footer-promo h2,
  .full-cycle-section .section-title,
  .stages-section .section-title,
  .advantages-section .section-title {
    font-size: 2.8rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.2rem;
  }
  
  .nav-link::after {
    display: none; /* Hide bottom line indicator on mobile menu */
  }

  section {
    padding: 60px 0;
  }

  .hero-section {
    padding: 120px 0 60px 0;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 14px 24px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.15rem !important;
  }
  
  .hero-title {
    font-size: 2.8rem !important;
    letter-spacing: -0.5px;
  }
  
  .projects-section .section-title,
  .portfolio-footer-promo h2,
  .full-cycle-section .section-title,
  .stages-section .section-title,
  .advantages-section .section-title {
    font-size: 2.2rem !important;
  }
  .hero-subtitle {
    font-size: 1.15rem !important;
    margin-bottom: 20px;
  }
  .hero-text {
    font-size: 1rem;
    margin-bottom: 28px;
  }
}

/* Scroll Reveal Fade-in Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(6px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 3D Tilt Card overrides to prevent CSS transform conflicts */
.about-card, .project-card, .skill-category-card, .contact-link-card {
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease-out !important;
  transform-style: preserve-3d;
}

.about-card:hover, .project-card:hover, .skill-category-card:hover, .contact-link-card:hover {
  transform: none; /* JS handles dynamic inline transform */
}

/* Contact Link Cards Layout */
.contact-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.contact-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.contact-link-card:hover {
  background: rgba(99, 102, 241, 0.02) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08) !important;
}

.contact-link-card:hover i {
  transform: scale(1.15) translateZ(15px);
  color: var(--border-focus);
}

.contact-link-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-link-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  transform: translateZ(15px);
}

.contact-link-card i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: var(--transition);
  transform: translateZ(15px);
}

.contact-link-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
  transform: translateZ(15px);
}

.contact-btn {
  margin-top: auto;
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: var(--radius-lg) !important;
  pointer-events: none;
  transform: translateZ(25px);
  transition: var(--transition);
}

.contact-link-card:hover .contact-btn {
  background: var(--primary-hover);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.45);
}

/* Responsive adjustment for contact cards */
@media (max-width: 768px) {
  .contact-links-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Running Ticker Line */
.running-line {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: transparent;
  padding: 14px 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.running-line-track {
  display: flex;
  animation: marquee 25s linear infinite;
}

.running-line-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  letter-spacing: 1px;
}

.running-line-item::after {
  content: "✦";
  color: #3b82f6; /* Accent blue star */
  margin-left: 25px;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Promo Blocks (What website do you need?) */
.promo-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 24px;
  margin: 0 -24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: none !important;
  transition: var(--transition);
}

.promo-card:hover {
  background: rgba(2, 2, 8, 0.6);
}

.promo-card-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
  flex-shrink: 0;
  line-height: 1;
}

.promo-card-content {
  flex-grow: 1;
  text-align: left;
}

.promo-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.promo-card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.promo-card-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: none !important;
}

/* Responsive adjustments for promo blocks */
@media (max-width: 768px) {
  .promo-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
  }
  
  .promo-card-btn {
    width: 100%;
    text-align: center;
  }
  
  .promo-blocks {
    padding: 0 20px;
  }
}

/* Full Cycle Bento Grid Section */
.full-cycle-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  max-width: 1440px;
  margin: 50px auto 0 auto;
}

.full-cycle-left {
  display: flex;
  flex-direction: column;
}

.full-cycle-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.02);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.bento-card-large {
  height: 100%;
  padding-top: 40px;
}

.bento-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.bento-card-wide .bento-card-content {
  flex-grow: 1;
}

.bento-card-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  transition: var(--transition);
  flex-shrink: 0;
  width: fit-content;
  display: inline-block;
}

.bento-card-wide .bento-card-icon {
  margin-bottom: 0;
}

.bento-card:hover .bento-card-icon {
  transform: scale(1.1);
  color: #60a5fa;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for bento grid */
@media (max-width: 992px) {
  .full-cycle-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bento-card-large {
    height: auto;
  }
  
  .full-cycle-grid {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .full-cycle-right {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .bento-card-wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .bento-card-wide .bento-card-icon {
    margin-bottom: 16px;
  }
}

/* Bento list for deliverables */
.bento-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.bento-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-list li i {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Workflow Stages (Этапы работы) Section */
.stages-timeline {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  max-width: 1440px;
  margin: 50px auto 0 auto;
  height: 350px;
}

.stage-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  background: rgba(2, 2, 8, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.stage-item:hover, .stage-item.active {
  flex: 3.5;
  background: rgba(2, 2, 8, 0.65);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
}

.stage-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  display: inline-block;
  line-height: 1;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  align-self: flex-start;
  flex-shrink: 0;
}

.stage-content {
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin-top: auto;
  width: 300px;
  pointer-events: none;
}

.stage-hint {
  display: none !important; /* Hide on PC */
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.25);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stage-item:hover .stage-hint, .stage-item.active .stage-hint {
  opacity: 0;
}

.stage-item:hover .stage-content, .stage-item.active .stage-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.stage-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.stage-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for workflow stages */
@media (max-width: 992px) {
  .stage-hint {
    display: block !important; /* Show on mobile/tablet */
  }

  .stages-timeline {
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 0 20px;
  }
  
  .stage-item {
    flex: none;
    width: 100%;
    height: 95px;
    padding: 24px;
    justify-content: flex-start;
  }
  
  .stage-item:hover, .stage-item.active {
    flex: none;
    height: auto !important;
    min-height: 220px;
    padding-bottom: 30px;
  }
  
  .stage-number {
    font-size: 2.5rem;
    margin-bottom: 0;
  }
  
  .stage-item:hover .stage-number, .stage-item.active .stage-number {
    margin-bottom: 15px;
  }
  
  .stage-content {
    width: 100%;
  }
  
  .stage-content p {
    min-width: 100%;
  }
}

/* Advantages (Преимущества) Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1440px;
  margin: 50px auto 0 auto;
}

.advantage-card {
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.02);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
  color: #60a5fa;
}

.advantage-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for advantages */
@media (max-width: 992px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 20px;
  }
}
