/* ============================================================
   MOVIA TRANSFER SYSTEM PLATFORM — Design System (movia_3)
   Based on movia_1 visual identity: light theme, blue #009BDE
   ============================================================ */

:root {
  --blue: #009BDE;
  --blue-dark: #0080c0;
  --blue-light: #e8f6fd;
  --blue-mid: #cceeff;
  --green: #00C853;
  --orange: #FF6D00;
  --red: #E53935;
  --text-1: #1A1A2E;
  --text-2: #4A4A6A;
  --text-3: #8888AA;
  --bg: #FFFFFF;
  --bg-2: #F7F9FC;
  --bg-3: #EEF3F9;
  --border: #E0E8F0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-max: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 30px rgba(0,155,222,.35);
  --max-w: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-1); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-max);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,155,222,.45); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-sm { padding: 10px 20px !important; font-size: 14px !important; }
.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { padding: 96px 0; background: var(--bg-2); }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  line-height: 1.12; letter-spacing: -.03em; color: var(--text-1); margin-bottom: 16px;
}
.section-subtitle { font-size: 18px; color: var(--text-2); line-height: 1.65; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  height: var(--header-h);
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px; background: var(--blue); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
.logo-text { font-size: 18px; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-sm); transition: color .15s, background .15s; text-decoration: none;
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-2); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all .2s; }

/* ---- Hero ---- */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #fff 0%, #f0f8fe 60%, #fff 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-content { max-width: 560px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px;
}
.hero-tag-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.hero-title {
  font-size: clamp(36px, 5vw, 58px); font-weight: 900;
  line-height: 1.08; letter-spacing: -.04em; color: var(--text-1); margin-bottom: 20px;
}
.hero-sub { font-size: 18px; color: var(--text-2); line-height: 1.65; margin-bottom: 36px; }
.highlight { color: var(--blue); font-weight: 700; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-max);
}

/* ---- Phone mockup ---- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 300px; background: #1a1a2e; border-radius: 44px; padding: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.phone-screen { background: var(--bg-2); border-radius: 32px; overflow: hidden; padding: 20px; min-height: 440px; }
.app-hdr { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-av { width: 44px; height: 44px; background: var(--blue); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.app-nm { font-size: 15px; font-weight: 700; color: var(--text-1); }
.app-nm-sub { font-size: 12px; color: var(--text-3); }
.app-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px; }
.app-stat { border-radius: 12px; padding: 12px 8px; text-align: center; }
.app-stat-n { font-size: 18px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.app-stat-l { font-size: 10px; color: var(--text-3); }
.app-orders { display: flex; flex-direction: column; gap: 8px; }
.app-order { background: #fff; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 8px; }
.app-order-id { font-size: 11px; font-weight: 700; color: var(--text-3); width: 36px; flex-shrink: 0; }
.app-order-route { font-size: 12px; color: var(--text-1); flex: 1; }
.app-order-status { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.blob1 { position: absolute; width: 320px; height: 320px; background: radial-gradient(circle, rgba(0,155,222,.12) 0%, transparent 70%); border-radius: 50%; top: -60px; right: -60px; pointer-events: none; }
.blob2 { position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(0,200,83,.1) 0%, transparent 70%); border-radius: 50%; bottom: -40px; left: 0; pointer-events: none; }

/* ---- Stats bar ---- */
.stats-bar { background: var(--blue); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 16px 24px; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 15px; color: rgba(255,255,255,.75); font-weight: 500; }

/* ---- Mode cards ---- */
.mode-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.mode-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: box-shadow .2s, transform .2s; }
.mode-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mode-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; background: var(--blue-light); color: var(--blue); }
.mode-card h3 { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.mode-card p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.mode-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-light); padding: 4px 12px; border-radius: var(--r-max); }

/* ---- Benefits grid ---- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.benefit-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: box-shadow .2s, transform .2s; }
.benefit-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; }
.benefit-item h4 { font-size: 17px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.benefit-item p { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ---- Roles ---- */
.roles-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.role-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: box-shadow .2s, transform .2s; text-align: center; }
.role-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.role-avatar { width: 64px; height: 64px; border-radius: 20px; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.role-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.role-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin-top: 48px; }
.pricing-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; position: relative; transition: box-shadow .2s; }
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-mid), var(--shadow-md); transform: scale(1.03); }
.featured-badge { position: absolute; top: -14px; left: 50%; transform: translate(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 18px; border-radius: var(--r-max); white-space: nowrap; }
.plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.plan-price { font-size: 42px; font-weight: 900; color: var(--text-1); letter-spacing: -.04em; line-height: 1; display: flex; align-items: flex-end; gap: 6px; }
.plan-per { font-size: 16px; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.plan-desc { font-size: 14px; color: var(--text-2); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-1); }
.feature-item.excluded { color: var(--text-3); text-decoration: line-through; }
.feature-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--blue-light); color: var(--blue); }
.feature-item.excluded .feature-check { background: var(--bg-3); color: var(--text-3); }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 100px 0; overflow: hidden; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-deco1 { position: absolute; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; top: -200px; left: -200px; pointer-events: none; }
.cta-deco2 { position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; bottom: -100px; right: -100px; pointer-events: none; }
.cta-section h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1.1; }
.cta-section > .cta-inner > p { font-size: 18px; color: rgba(255,255,255,.82); line-height: 1.6; }
.cta-note { font-size: 13px; color: rgba(255,255,255,.6); }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---- Footer ---- */
.footer { background: var(--text-1); padding: 64px 0 32px; color: rgba(255,255,255,.6); }
.footer-top { display: grid; grid-template-columns: 260px 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--blue); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.footer-logo-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.footer-tagline { font-size: 14px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; }

/* ---- Forms ---- */
.form-page { background: var(--bg-2); min-height: 100vh; display: flex; flex-direction: column; }
.form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px; }
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 48px; width: 100%; max-width: 480px; box-shadow: var(--shadow-md); }
.form-card-wide { max-width: 560px; }
.form-title { font-size: 28px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 8px; }
.form-sub { font-size: 15px; color: var(--text-2); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 15px; color: var(--text-1);
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,155,222,.15); }
.form-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.form-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-2); }
.form-footer a { color: var(--blue); font-weight: 600; }

.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ---- Cabinet ---- */
.cabinet-wrap { padding: 120px 0 80px; }
.cabinet-page-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 40px; }
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cabinet-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px; }
.cabinet-card-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; gap: 16px; }
.data-row:last-of-type { border-bottom: none; }
.data-label { color: var(--text-2); font-weight: 500; flex-shrink: 0; }
.data-value { font-weight: 600; color: var(--text-1); text-align: right; }
.license-badge { background: var(--blue-light); color: var(--blue); padding: 4px 14px; border-radius: var(--r-max); font-size: 13px; font-weight: 700; font-family: monospace; word-break: break-all; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .roles-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 260px; }
  .hero-content { max-width: 100%; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.2); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cabinet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px 24px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .nav-right { gap: 10px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .mode-cards { grid-template-columns: 1fr; }
  .roles-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 560px) {
  .form-card { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .section-alt { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
  .footer-cols { grid-template-columns: 1fr; }
  .phone-mockup { width: 220px; }
  .cabinet-card { padding: 24px 20px; }
}

/* ---- Apple ---- */

/* ===== NEW SLIDER (НЕ КОНФЛИКТУЕТ) ===== */

.iphone-pro-x {
  width: 300px;
  height: 620px;
  background: #111;
  border-radius: 50px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.dynamic-island-x {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: black;
  border-radius: 20px;
  z-index: 10;
}

.iphone-screen-x {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: black;
}

/* СЛАЙДЕР */
.slider-x {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides-x {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slides-x img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* адаптив */
@media (max-width: 1024px) {
  .iphone-pro-x {
    width: 250px;
    height: 520px;
  }
}

@media (max-width: 600px) {
  .iphone-pro-x {
    width: 200px;
    height: 420px;
  }
}