/* ============================================
   prompt.by — Design System
   AI Business Automation Landing Page
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* — Base Colors — */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);

  /* — Accent (from bg01 — blue-violet) — */
  --accent-blue: #6b8cff;
  --accent-violet: #a78bfa;
  --accent-purple: #8b5cf6;

  /* — Accent (from bg02 — pink-gold) — */
  --accent-pink: #e879a8;
  --accent-gold: #f0c97b;
  --accent-magenta: #d946ef;

  /* — Gradients — */
  --gradient-hero: linear-gradient(135deg, rgba(107, 140, 255, 0.15), rgba(167, 139, 250, 0.1), rgba(217, 70, 239, 0.08));
  --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-violet), var(--accent-pink));
  --gradient-gold-pink: linear-gradient(135deg, var(--accent-gold), var(--accent-pink), var(--accent-magenta));
  --gradient-card: linear-gradient(145deg, rgba(107, 140, 255, 0.08), rgba(167, 139, 250, 0.05));
  --gradient-btn: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --gradient-btn-hover: linear-gradient(135deg, var(--accent-violet), var(--accent-magenta));

  /* — Text — */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: var(--accent-blue);

  /* — Borders — */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(107, 140, 255, 0.3);

  /* — Shadows — */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(107, 140, 255, 0.15);

  /* — Typography — */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* — Spacing — */
  --section-pad: 100px 0;
  --container: 1200px;

  /* — Transitions — */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* — Border Radius — */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---------- Light Theme Override ---------- */
[data-theme="light"] {
  /* — Base Colors — */
  --bg-primary: #f5f7fb;
  --bg-secondary: #edf0f7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.6);

  /* — Accent (slightly deeper for contrast on light) — */
  --accent-blue: #4f6fdf;
  --accent-violet: #8b6ce0;
  --accent-purple: #7c3aed;

  --accent-pink: #d65d8c;
  --accent-gold: #c9952e;
  --accent-magenta: #c026d3;

  /* — Gradients — */
  --gradient-hero: linear-gradient(135deg, rgba(79, 111, 223, 0.08), rgba(139, 108, 224, 0.06), rgba(192, 38, 211, 0.04));
  --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-violet), var(--accent-pink));
  --gradient-gold-pink: linear-gradient(135deg, var(--accent-gold), var(--accent-pink), var(--accent-magenta));
  --gradient-card: linear-gradient(145deg, rgba(79, 111, 223, 0.06), rgba(139, 108, 224, 0.04));
  --gradient-btn: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --gradient-btn-hover: linear-gradient(135deg, var(--accent-violet), var(--accent-magenta));

  /* — Text — */
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #64748b;
  --text-accent: var(--accent-blue);

  /* — Borders — */
  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-accent: rgba(79, 111, 223, 0.3);

  /* — Shadows — */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(79, 111, 223, 0.1);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-base);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-accent);
  background: rgba(107, 140, 255, 0.1);
  transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1;
}

/* Dark theme: show sun icon (to switch to light) */
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light theme: show moon icon (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---------- Theme Transition ---------- */
body,
body *:not(.theme-toggle):not(.theme-toggle *) {
  transition:
    background-color 0.4s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ---------- Light Theme — specific overrides ---------- */

/* Header scrolled */
[data-theme="light"] .header.scrolled {
  background: rgba(245, 247, 251, 0.92);
}

/* Logo invert off in light mode */
[data-theme="light"] .logo img {
  filter: none;
}

/* Hero background overlay — enough to keep text legible */
[data-theme="light"] .hero-bg::after {
  background: linear-gradient(180deg,
      rgba(245, 247, 251, 0.35) 0%,
      rgba(245, 247, 251, 0.55) 50%,
      rgba(245, 247, 251, 0.85) 100%);
}

[data-theme="light"] .hero-bg img {
  opacity: 0.6;
}

[data-theme="light"] .hero h1,
[data-theme="light"] .section-title {
  text-shadow: none;
  filter: drop-shadow(0 4px 18px rgba(79, 111, 223, 0.4)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

[data-theme="light"] .hero-badge {
  background: rgba(79, 111, 223, 0.15);
  border: 1px solid rgba(79, 111, 223, 0.3);
  color: #213ebd;
  box-shadow: 0 4px 15px rgba(79, 111, 223, 0.15);
}

[data-theme="light"] .hero-badge::before {
  background: #213ebd;
  box-shadow: 0 0 8px rgba(33, 62, 189, 0.6);
}

[data-theme="light"] .hero-description {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5);
}

/* Advantages background — vivid bg02.webp */
[data-theme="light"] .advantages-bg img {
  opacity: 0.12;
}

/* Form inputs */
[data-theme="light"] .form-input {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .form-input:focus {
  background: rgba(0, 0, 0, 0.02);
}

/* Advantage card hover */
[data-theme="light"] .advantage-card:hover {
  box-shadow: 0 8px 30px rgba(79, 111, 223, 0.12);
}

/* Case card hover */
[data-theme="light"] .case-card:hover {
  box-shadow: 0 8px 30px rgba(79, 111, 223, 0.12);
}

/* Contact items */
[data-theme="light"] .contact-item:hover {
  background: rgba(79, 111, 223, 0.04);
}

/* Mobile nav */
[data-theme="light"] .mobile-nav {
  background: rgba(245, 247, 251, 0.97);
}

/* Page header bg overlay (cases pages) */
[data-theme="light"] .page-header-bg::after {
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.5), rgba(237, 240, 247, 0.95));
}

/* Case result block */
[data-theme="light"] .case-result-block {
  background: rgba(79, 111, 223, 0.04);
}

/* Btn secondary */
[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(79, 111, 223, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-violet);
}

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 24px rgba(107, 140, 255, 0.6)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}

.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 20px rgba(107, 140, 255, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(107, 140, 255, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(2);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav a:not(.btn):hover {
  color: var(--text-primary);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 14, 26, 0.5) 0%,
      rgba(10, 14, 26, 0.7) 50%,
      rgba(10, 14, 26, 0.95) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(107, 140, 255, 0.2);
  border: 1px solid rgba(139, 169, 255, 0.4);
  border-radius: 50px;
  font-size: 1.1rem;
  color: #8ba9ff;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(107, 140, 255, 0.2);
}

.hero-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #8ba9ff;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 10px #8ba9ff;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text-primary);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Hero Form Card ---------- */
.hero-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.hero-form-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.hero-form-card .form-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}

.form-success h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ---------- Advantages Section ---------- */
.advantages {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.advantages-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.advantages-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.advantages .container {
  position: relative;
  z-index: 1;
}

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

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

.advantage-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.advantage-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

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

/* ---------- Cases Section ---------- */
.cases {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.cases .container {
  position: relative;
  z-index: 1;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(107, 140, 255, 0.1);
  border: 1px solid rgba(107, 140, 255, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}

.case-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

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

.case-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.cases-cta {
  text-align: center;
}

/* ---------- Contacts Section ---------- */
.contacts {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.contacts .advantages-bg img {
  object-position: bottom right;
}

.contacts .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts-info {
  padding-top: 20px;
}

.contacts-info h2 {
  margin-bottom: 16px;
}

.contacts-info>p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--border-accent);
  background: rgba(107, 140, 255, 0.05);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.contact-item-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
}

.contact-item-value a {
  color: var(--text-primary);
}

.contact-item-value a:hover {
  color: var(--accent-blue);
}

.contacts-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contacts-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold-pink);
}

.contacts-form-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.contacts-form-card .form-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

.fade-in-delay-5 {
  transition-delay: 0.5s;
}

.fade-in-delay-6 {
  transition-delay: 0.6s;
}

/* ---------- Cases Catalog Page ---------- */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.5), rgba(17, 24, 39, 0.95));
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-blue);
}

.breadcrumbs .sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 60px 0 80px;
}

/* ---------- Case Detail Page ---------- */
.case-detail {
  padding: 40px 0 80px;
}

.case-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.case-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.case-section {
  margin-bottom: 40px;
}

.case-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.case-section-title .icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.case-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.case-result-block {
  background: rgba(107, 140, 255, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.case-result-block .case-section-title {
  color: var(--accent-gold);
}

.case-cta {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin-top: 40px;
}

.case-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.case-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a:not(.btn) {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.mobile-nav a:not(.btn):hover {
  color: var(--accent-blue);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .contacts .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px 0;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero .container {
    padding-top: 80px;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .hero-stat-number {
    font-size: 1.5rem;
  }


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

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

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  [class*="fade-in-delay-"] {
    transition-delay: 0s !important;
    /* Отключаем задержку анимации на мобильных */
  }
}

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

  .btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .contacts-form-card {
    padding: 28px 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ---------- Utility Classes ---------- */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}