/* ============================================
   DESIGN SYSTEM — Cyberpunk / Holographic Tech
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0A0D1A;
  --bg-secondary: #0F1225;
  --bg-card: rgba(15, 18, 37, 0.7);
  --bg-glass: rgba(15, 18, 37, 0.5);

  --accent-cyan: #00F0FF;
  --accent-magenta: #FF00FF;
  --accent-purple: #8B5CF6;

  --text-primary: #F0F9FF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #00F0FF, #FF00FF, #8B5CF6);
  --gradient-cyan-magenta: linear-gradient(135deg, #00F0FF, #FF00FF);
  --gradient-btn: linear-gradient(135deg, #00F0FF 0%, #8B5CF6 50%, #FF00FF 100%);
  --gradient-border: linear-gradient(135deg, rgba(0,240,255,0.5), rgba(255,0,255,0.5));

  /* Glow */
  --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
  --glow-magenta: 0 0 30px rgba(255, 0, 255, 0.3);
  --glow-cyan-strong: 0 0 60px rgba(0, 240, 255, 0.4), 0 0 120px rgba(0, 240, 255, 0.1);

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

  /* Spacing */
  --section-padding: 40px 0 64px;
  --container-width: 1200px;

  /* Borders */
  --border-glass: 1px solid rgba(0, 240, 255, 0.15);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-top-color: var(--accent-cyan);
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu ul {
  display: flex;
  gap: 28px;
}

.nav-menu ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu ul a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width var(--transition-base);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-menu ul a:hover {
  color: var(--text-primary);
}

.nav-menu ul a.active {
  color: var(--accent-cyan);
}

.nav-menu ul a:hover::after {
  width: 100%;
}

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

.nav-telegram {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary) !important;
  transition: color var(--transition-fast) !important;
}

.nav-telegram:hover {
  color: var(--accent-cyan) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4), 0 0 80px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(12px);
}

.glow-btn:hover::before {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  width: fit-content;
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

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

.subtitle {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.slogan {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

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

/* Hero Visual / Photo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-container {
  position: relative;
  width: 380px;
  height: 460px;
}

.holographic-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  padding: 3px;
  background: var(--gradient-cyan-magenta);
  box-shadow: var(--glow-cyan-strong);
  animation: frame-pulse 4s ease-in-out infinite;
}

@keyframes frame-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 50px rgba(0, 240, 255, 0.4), 0 0 100px rgba(0, 240, 255, 0.15), 0 0 150px rgba(255, 0, 255, 0.05); }
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--border-radius-lg) - 3px);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating panels */
.floating-panel {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(10, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 10px 16px;
  box-shadow: var(--glow-cyan);
  white-space: nowrap;
}

.panel-1 {
  top: 20%;
  right: -40px;
  animation: float-panel-1 5s ease-in-out infinite;
}

.panel-2 {
  bottom: 20%;
  left: -30px;
  animation: float-panel-2 6s ease-in-out infinite;
}

@keyframes float-panel-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float-panel-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}

.arrow-down {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   MARQUEE / LOGO LINE
   ============================================ */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 240, 255, 0.06);
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  overflow: hidden;
  background: rgba(0, 240, 255, 0.01);
}

.marquee-container {
  display: flex;
  gap: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  flex-shrink: 0;
  padding-right: 60px;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.marquee-item:hover {
  color: var(--accent-cyan);
}

/* Brand icon inside badge */
.brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---- Brand colours & animations ---- */
@keyframes brand-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%       { opacity: 0.75; filter: brightness(1.4); }
}

.marquee-item[class*="brand-"] {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.marquee-item[class*="brand-"]:hover {
  transform: scale(1.08);
  filter: brightness(1.4);
  background: rgba(255,255,255,0.08);
}

/* ChatGPT — фирменный зелёный */
.brand-chatgpt {
  color: #10A37F;
  text-shadow: 0 0 12px rgba(16, 163, 127, 0.5);
  animation: brand-pulse 3.5s ease-in-out infinite;
}

/* Claude — тёплый янтарь */
.brand-claude {
  color: #D4956A;
  text-shadow: 0 0 12px rgba(212, 149, 106, 0.5);
  animation: brand-pulse 4s ease-in-out infinite 0.4s;
}

/* Midjourney — чистый белый */
.brand-midjourney {
  color: #E8E8E8;
  text-shadow: 0 0 12px rgba(232, 232, 232, 0.35);
  animation: brand-pulse 4.5s ease-in-out infinite 0.8s;
}

/* Stable Diffusion — фиолетовый */
.brand-stablediffusion {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
  animation: brand-pulse 3.8s ease-in-out infinite 0.2s;
}

/* DeepSeek — синий */
.brand-deepseek {
  color: #4D6BFE;
  text-shadow: 0 0 12px rgba(77, 107, 254, 0.5);
  animation: brand-pulse 4.2s ease-in-out infinite 0.6s;
}

/* Grok — серебристый */
.brand-grok {
  color: #C0C0C0;
  text-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
  animation: brand-pulse 3.6s ease-in-out infinite 1s;
}

/* n8n — коралловый */
.brand-n8n {
  color: #FF6D5A;
  text-shadow: 0 0 12px rgba(255, 109, 90, 0.5);
  animation: brand-pulse 4s ease-in-out infinite 0.3s;
}

/* Flowise — бирюзовый */
.brand-flowise {
  color: #00C4CC;
  text-shadow: 0 0 12px rgba(0, 196, 204, 0.5);
  animation: brand-pulse 4.4s ease-in-out infinite 0.7s;
}

/* Gemini — градиент Google */
.brand-gemini {
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.4));
  animation: brand-pulse 5s ease-in-out infinite 0.5s;
}

/* Runway — неоново-зелёный */
.brand-runway {
  color: #00FF94;
  text-shadow: 0 0 12px rgba(0, 255, 148, 0.5);
  animation: brand-pulse 3.9s ease-in-out infinite 0.9s;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   ABOUT / BIO SECTION
   ============================================ */
#about {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-quote {
  position: relative;
  border-left: 3px solid var(--accent-cyan);
  background: var(--bg-glass);
  padding: 24px 28px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-top: 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.about-quote:hover {
  background: rgba(0, 240, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.quote-content {
  font-style: italic;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.quote-hint {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-top: 12px;
  text-align: right;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-wrapper .holographic-frame {
  width: 340px;
  height: 420px;
}

/* Achievement cards */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 240, 255, 0.08);
}

.achievement-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient-cyan-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.achievement-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.achievement-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   HELP SECTION (С чем я могу помочь)
   ============================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.help-grid .help-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.help-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  overflow: hidden;
}

.help-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cyan-magenta);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.help-card:hover::after {
  opacity: 1;
}

.help-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.help-card-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-cyan-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}

.help-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.help-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 240, 255, 0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 24px;
  font-size: 13px;
}

/* ============================================
   EDUCATION / CERTIFICATIONS
   ============================================ */
#education {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

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

.cert-frame-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  perspective: 1200px;
  height: calc(100% - 66px);
  width: 100%;
  margin-top: 10px;
}

.cert-3d-wrapper {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotateX(20deg) rotateY(-20deg) rotateZ(4deg) scale(0.9);
  transform-style: preserve-3d;
  width: 100%;
  max-width: 320px;
}

.cert-frame-link:hover .cert-3d-wrapper {
  transform: rotateX(5deg) rotateY(-5deg) rotateZ(1deg) scale(1.02);
}

.cert-frame {
  background: #111;
  padding: 12px;
  border-radius: 2px;
  border: 1px solid #000;
  box-shadow: 
    -20px 30px 40px rgba(0, 0, 0, 0.7),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.6);
  transform: translateZ(20px);
}

.cert-mat {
  background: #fdfdfd;
  padding: 24px;
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.3),
    inset -1px -1px 3px rgba(255, 255, 255, 0.8);
}

.cert-image {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.25);
}

.edu-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.edu-column h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: var(--border-glass);
}

.edu-items {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
}

.edu-item {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edu-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.edu-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.edu-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.reviews-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  padding: 48px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  text-align: center;
  flex-shrink: 0;
}

.review-quote-mark {
  font-size: 64px;
  line-height: 1;
  background: var(--gradient-cyan-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.review-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 32px;
  font-style: italic;
}

.review-author {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.review-position {
  font-size: 14px;
  color: var(--text-muted);
}

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--bg-glass);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 18px;
}

.slider-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--accent-cyan);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}


/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.contact-link:hover {
  color: var(--accent-cyan);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 15px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

/* intl-tel-input integration styles */
.iti {
  width: 100%;
}
.iti__country-list {
  background: var(--bg-primary) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-radius: var(--border-radius-sm) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}
.iti__country {
  transition: background var(--transition-fast);
}
.iti__country.iti__highlight,
.iti__country:hover {
  background: rgba(0, 240, 255, 0.1) !important;
}
.iti__divider {
  border-bottom: 1px solid rgba(0, 240, 255, 0.1) !important;
}
.iti__selected-flag {
  background: transparent !important;
  padding: 0 16px !important;
}


.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 36px;
}

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(0, 240, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-payments {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 240, 255, 0.06);
  border-bottom: 2px solid rgba(0, 240, 255, 0.5);
  margin-bottom: 24px;
}

.payments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.pay-item {
  color: #7a8c9e;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity var(--transition-base), color var(--transition-base);
}

.pay-item:hover {
  opacity: 1;
  color: var(--text-primary);
}


.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contacts a,
.footer-contacts span {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-contacts a:hover {
  color: var(--accent-cyan);
}


.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 240, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--accent-cyan);
}

.footer-credits {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 32px 0 48px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .slogan {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .photo-container {
    width: 300px;
    height: 370px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrapper {
    order: -1;
  }

  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 24px 0 40px;
  }

  /* Header mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 13, 26, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 32px;
    transition: right var(--transition-base);
    border-left: 1px solid rgba(0, 240, 255, 0.08);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu ul a {
    font-size: 18px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Sections mobile */
  .hero h1 {
    font-size: 36px;
  }

  .photo-container {
    width: 260px;
    height: 320px;
  }

  .floating-panel {
    display: none;
  }

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

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

  .help-grid .help-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
  }

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

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

  .review-card {
    padding: 32px 24px;
  }

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

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

  .footer-bottom-links {
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }
}

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

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

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

  .contact-form {
    padding: 24px 20px;
  }
}

/* ============================================
   SECTION BACKGROUND IMAGES
   ============================================ */

/* Общие свойства для всех фоновых псевдоэлементов */
.hero::before,
#about::before,
#services::before,
#cases::before,
#education::before,
#reviews::before,
#tools::before,
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Уникальные свойства каждой секции */
.hero::before         { background-image: url('bg-hero.png');      background-position: center right;  opacity: 0.18; }
#about::before        { background-image: url('bg-about.png');     background-position: center right; }
#services::before     { background-image: url('bg-services.png');  background-position: center left; }
#cases::before        { background-image: url('bg-cases.png');     background-position: center right; }
#education::before    { background-image: url('bg-education.png'); background-position: center left; }
#reviews::before      { background-image: url('bg-reviews.png');   background-position: center right; }
#tools::before        { background-image: url('bg-tools.png');     background-position: center; }
#contact::before      { background-image: url('bg-contact.png');   background-position: center bottom; }

/* Контент секций поверх фона */
#about .container,
#services .container,
#cases .container,
#education .container,
#reviews .container,
#tools .container,
#contact .container {
  position: relative;
  z-index: 1;
}
