/* ═══════════════════════════════════════════════════════
   МИРОКОРП — Landing Page Styles
   Black & White IT Theme
   ═══════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --glow: rgba(255, 255, 255, 0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --section-py: 120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

ul, ol { list-style: none; }

button:not(.hamburger) {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  padding: 6px 18px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════ PRELOADER ═══════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.preloader-logo {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
  animation: preloader-pulse 1.4s ease-in-out infinite;
  margin-bottom: 28px;
}

.preloader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ═══════ PARTICLE CANVAS ═══════ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════ SCROLL PROGRESS ═══════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,1));
  z-index: 10001;
  width: 0%;
  transition: width 0.05s linear;
}

/* ═══════ HEADER ═══════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border-color);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
}

.logo:hover .logo-img { transform: rotate(10deg) scale(1.1); }

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 36px;
}

.desktop-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 1001;
  padding: 10px 8px;
  margin: -10px -8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu a:hover::after { width: 60%; }

/* ═══════ HERO ═══════ */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: 80px;
}

/* Landscape phones: allow scroll instead of cramming */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 40px;
  }
  .scroll-indicator { display: none; }
}

.input-touch .scroll-mouse { display: none; }
.input-touch .scroll-phone { display: flex; }
.input-mouse .scroll-mouse { display: flex; }
.input-mouse .scroll-phone { display: none; }

@media (pointer: coarse) {
  html:not(.input-mouse) .scroll-mouse { display: none; }
  html:not(.input-mouse) .scroll-phone { display: flex; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 22px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title {
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(80px);
}

.title-accent {
  background: linear-gradient(135deg, #ffffff 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typewriter {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-secondary);
  min-height: 1.6em;
  margin-bottom: 16px;
  opacity: 0;
}

.hero-typewriter::after {
  content: '|';
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
  font-weight: 200;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(25px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(25px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: scroll-fade-in 0.8s ease 3s forwards;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-phone {
  display: none;
  width: 20px;
  height: 34px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 5px;
  position: relative;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
}

.scroll-swipe {
  width: 2.5px;
  height: 10px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: scroll-swipe-move 2s ease-in-out infinite;
}

.scroll-swipe::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 4px solid var(--text-secondary);
  animation: scroll-swipe-move 2s ease-in-out infinite;
}

@keyframes scroll-swipe-move {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(-6px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-wheel {
  width: 2.5px;
  height: 7px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: scroll-wheel-move 2s ease-in-out infinite;
}

@keyframes scroll-wheel-move {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(8px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes scroll-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1.5px solid var(--text-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* ═══════ SERVICE CARDS ═══════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% -20%, var(--glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 255, 255, 0.02);
}

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

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.service-icon svg { width: 100%; height: 100%; }
.service-card:hover .service-icon { color: var(--text-primary); transform: scale(1.1); }

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  flex: 1;
}

.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--text-primary);
  gap: 10px;
}

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

.timeline-line {
  position: absolute;
  left: 32px; /* center of 64px circle */
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
}

.timeline-step {
  display: flex;
  gap: 36px;
  padding-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
}

.timeline-step:last-child { padding-bottom: 0; }

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-tertiary);
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
  transition: all 0.5s ease;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.timeline-step:hover .step-number {
  border-color: var(--text-primary);
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════ TECH STACK ═══════ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.5s var(--ease);
  opacity: 0;
  transform: scale(0.8);
  cursor: default;
}

.stack-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px) scale(1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 255, 255, 0.02);
}

.stack-item img {
  width: 48px;
  height: 48px;
  filter: grayscale(100%) brightness(1.8);
  transition: all 0.4s ease;
}

.stack-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.15);
}

.stack-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.stack-item:hover span { color: var(--text-primary); }

/* ═══════ CONTACT ═══════ */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.4s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), 0 0 20px rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.05);
}

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

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-status {
  font-size: 0.85rem;
  transition: var(--transition);
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
.form-status.warning { color: #fbbf24; }

.btn-submit {
  margin-left: auto;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════ FOOTER ═══════ */
#footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal span {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-contacts h4,
.footer-nav h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.footer-contacts a,
.footer-contacts address {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: normal;
  margin-bottom: 12px;
  line-height: 1.5;
}

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

.footer-nav a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --header-h: 64px;
  }

  .desktop-nav { display: none; }
  .hamburger { display: flex; }

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

  .service-card { padding: 28px 24px; }

  .form-row { grid-template-columns: 1fr; }

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

  .section-header { margin-bottom: 48px; }

  .timeline-step { gap: 20px; }
  .timeline-line { left: 26px; /* center of 52px circle */ }

  .step-number {
    min-width: 52px;
    height: 52px;
    font-size: 0.78rem;
  }

  .step-content h3 { margin-top: 6px; }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stack-item {
    padding: 20px 10px;
    gap: 10px;
  }

  .stack-item img {
    width: 36px;
    height: 36px;
  }

  .scroll-indicator { bottom: 20px; }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 6rem);
    margin-bottom: 20px;
  }

  .hero-badge { margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stack-item {
    padding: 16px 8px;
    border-radius: 8px;
  }

  .stack-item img {
    width: 32px;
    height: 32px;
  }

  .stack-item span {
    font-size: 0.72rem;
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .step-number {
    min-width: 44px;
    height: 44px;
  }

  .timeline-line { left: 22px; /* center of 44px circle */ }
  .timeline-step { gap: 16px; }
}

/* ═══════ UTILITY ANIMATIONS ═══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
