/* ============================================
   ДВЭБ — Design System v3
   Brand colors: #003070 / #20B0A0 / #D0D0D0
   Font: Stem (local)
   ============================================ */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-Thin.woff2') format('woff2'), url('../fonts/Stem-Thin.woff') format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-ExtraLight.woff2') format('woff2'), url('../fonts/Stem-ExtraLight.woff') format('woff');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-Light.woff2') format('woff2'), url('../fonts/Stem-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-SemiLight.woff2') format('woff2'), url('../fonts/Stem-SemiLight.woff') format('woff');
  font-weight: 350; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-Regular.woff2') format('woff2'), url('../fonts/Stem-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-Medium.woff2') format('woff2'), url('../fonts/Stem-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stem';
  src: url('../fonts/Stem-Bold.woff2') format('woff2'), url('../fonts/Stem-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== TOKENS ===== */
:root {
  --brand-blue: #003070;
  --brand-blue-dark: #002555;
  --brand-blue-light: #1A4585;
  --brand-teal: #20B0A0;
  --brand-teal-hover: #25C0AE;
  --brand-teal-soft: rgba(32, 176, 160, 0.12);
  --brand-teal-glow: rgba(32, 176, 160, 0.3);
  --brand-grey: #D0D0D0;
  --brand-grey-blue: #C0D0E0;

  --bg-base: #F7F8FA;
  --bg-surface: #FFFFFF;
  --bg-tinted: #EEF1F6;
  --bg-dark: var(--brand-blue);
  --bg-dark-surface: var(--brand-blue-dark);

  --text-primary: #1A1F2E;
  --text-secondary: #5A6578;
  --text-muted: #8A92A3;
  --text-inverse: #FFFFFF;

  --border: rgba(0, 48, 112, 0.1);
  --border-active: rgba(0, 48, 112, 0.25);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 4px rgba(0, 48, 112, 0.06);
  --shadow: 0 4px 20px rgba(0, 48, 112, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 48, 112, 0.12);

  --font: 'Stem', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1180px;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 500; font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--brand-teal); color: #fff; }
.btn-primary:hover { background: var(--brand-teal-hover); transform: translateY(-2px); box-shadow: 0 8px 20px var(--brand-teal-glow); }
.btn-blue { background: var(--brand-blue); color: #fff; }
.btn-blue:hover { background: var(--brand-blue-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,48,112,0.25); }
.btn-outline { background: transparent; color: var(--brand-blue); border: 1.5px solid var(--border-active); }
.btn-outline:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-ghost { background: var(--bg-tinted); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand-teal); color: var(--brand-teal); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 18px 44px; font-size: 1.1rem; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-w); margin: 0 auto; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; }
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.logo-title { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; white-space: nowrap; letter-spacing: -0.02em; }
.header-contacts { display: flex; align-items: center; gap: 20px; }
.phone {
  font-weight: 500; font-size: 1rem; color: var(--text-primary);
  white-space: nowrap; transition: color 0.2s;
}
.phone:hover { color: var(--brand-teal); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; flex-direction: column; gap: 16px;
  padding: 20px 24px; background: var(--bg-surface); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-primary); font-weight: 500; padding: 8px 0; }

/* ===== HERO ===== */
.hero {
  background: var(--brand-blue);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: -50px;
  width: 500px; height: 500px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner { display: flex; align-items: flex-start; gap: 40px; position: relative; z-index: 1; }
.hero-left { flex: 0 0 290px; }

.side-nav {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 14px;
  backdrop-filter: blur(8px);
}
.side-nav-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: all 0.2s; color: #fff;
}
.side-nav-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.1); }
.side-nav-icon { font-size: 1.25rem; flex-shrink: 0; }
.side-nav-btn strong { display: block; font-size: 0.88rem; font-weight: 500; }
.side-nav-btn small { font-size: 0.75rem; opacity: 0.65; }

.hero-content { flex: 1; padding-top: 4px; }

/* Fixed logo in top-right corner */
.corner-logo {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 56px;
  height: auto;
  z-index: 1000;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.corner-logo:hover { opacity: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(32, 176, 160, 0.15);
  border: 1px solid rgba(32, 176, 160, 0.3);
  border-radius: 100px;
  font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--brand-teal); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--brand-teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(1.4); } }

.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero-title .accent { color: var(--brand-teal); }
.hero-subtitle { font-size: clamp(0.92rem, 1.6vw, 1.05rem); color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 580px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Яркая кнопка образца заявления */
.btn-zayavka {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(255,107,53,0.4);
  animation: zayavka-glow 2.5s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-zayavka:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,53,0.55);
  background: linear-gradient(135deg, #ff5722, #e8800e);
}
@keyframes zayavka-glow {
  0%,100% { box-shadow: 0 4px 18px rgba(255,107,53,0.4); }
  50% { box-shadow: 0 4px 28px rgba(255,107,53,0.65); }
}

/* Кнопка перечня документов */
.btn-perechen {
  background: linear-gradient(135deg, #003070, #0066cc);
  color: #fff;
  border: none;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,48,112,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-perechen:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,48,112,0.5);
  background: linear-gradient(135deg, #002855, #0055b3);
}

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-header { margin-bottom: 36px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand-teal); margin-bottom: 12px; font-weight: 500;
}
.section-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--brand-teal); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.section-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 32px; max-width: 640px; }

/* ===== CARD ===== */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 22px 0; }
.info-item { padding: 16px; background: var(--bg-tinted); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-secondary); }
.info-item strong { display: block; margin-bottom: 5px; color: var(--brand-blue); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.card h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.personnel-list li { padding: 11px 0; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.personnel-list li:last-child { border: none; }

.contact-info { flex: 1; }
.contact-item { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.contact-item a { color: var(--brand-teal); }

/* ---- TEAM (medical landing style) ---- */
.section-label { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 10px; }
.team { padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; transition: all 0.25s; box-shadow: var(--shadow-sm); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; color: var(--text-primary); }
.team-role { color: var(--brand-blue); font-size: 0.87rem; font-weight: 600; margin-bottom: 10px; }
.team-exp { font-size: 0.84rem; color: var(--text-secondary); }

/* ===== STAGES ===== */
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.stage-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative;
  overflow: hidden; transition: all 0.3s;
}
.stage-card:hover { border-color: var(--brand-teal); transform: translateY(-3px); box-shadow: var(--shadow); }
.stage-num {
  position: absolute; top: 8px; right: 18px;
  font-size: 4rem; font-weight: 700; color: var(--bg-tinted); line-height: 1; z-index: 0;
}
.stage-card h3 { font-size: 1.1rem; margin-bottom: 12px; position: relative; z-index: 1; }
.stage-card p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; position: relative; z-index: 1; }

/* ===== PRICE ===== */
.price-block {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.price-block h3 { font-size: 1.15rem; margin-bottom: 18px; color: var(--brand-blue); }
.price-subtitle { font-size: 0.95rem; font-weight: 500; margin: 22px 0 10px; color: var(--text-primary); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.price-table td:last-child { text-align: right; font-weight: 500; white-space: nowrap; color: var(--brand-teal); }
.price-notes { background: #FFF8E8; border: 1px solid rgba(245, 166, 35, 0.2); border-radius: var(--radius-lg); padding: 26px; margin-top: 18px; }
.price-notes h4 { font-size: 0.98rem; margin-bottom: 12px; color: #B88200; }
.price-notes ol { padding-left: 20px; }
.price-notes ol li { padding: 5px 0; font-size: 0.85rem; color: var(--text-secondary); list-style: decimal; }

/* ===== REGULATORY ===== */
.reg-group {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
  transition: border-color 0.2s;
}
.reg-group:hover { border-color: var(--border-active); }
.reg-group summary {
  padding: 16px 22px; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; transition: background 0.2s;
}
.reg-group summary::-webkit-details-marker { display: none; }
.reg-group summary::after { content: '+'; font-size: 1.1rem; color: var(--brand-teal); transition: transform 0.2s; }
.reg-group[open] summary::after { transform: rotate(45deg); }
.reg-group summary:hover { background: var(--bg-tinted); }
.reg-group ol { padding: 0 22px 18px 28px; }
.reg-group ol li { padding: 5px 0; font-size: 0.85rem; color: var(--text-secondary); list-style: decimal; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-item { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-secondary); }
.contact-item a { color: var(--brand-teal); font-weight: 500; }
.contact-cta {
  text-align: center; background: var(--brand-blue); color: #fff;
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-cta h3 { color: #fff; }
.contact-cta p { color: rgba(255,255,255,0.7); }

/* ===== FOOTER ===== */
.footer { background: var(--brand-blue); color: #fff; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }
.footer-col p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-col a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-teal); }

/* ===== QUIZ ===== */
.quiz-page { min-height: 70vh; padding: 48px 0; }
.quiz-container {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow);
}
.quiz-header { text-align: center; margin-bottom: 30px; }
.quiz-header h1 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 8px; }
.quiz-header p { color: var(--text-secondary); font-size: 0.92rem; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.quiz-label { display: block; font-weight: 500; margin-bottom: 10px; font-size: 0.98rem; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
  font-size: 0.9rem; color: var(--text-secondary);
}
.quiz-option:hover { border-color: var(--brand-teal); background: var(--brand-teal-soft); color: var(--text-primary); }
.quiz-option.selected { border-color: var(--brand-teal); background: var(--brand-teal-soft); color: var(--text-primary); }
.quiz-option input { width: 18px; height: 18px; accent-color: var(--brand-teal); }
.quiz-input {
  width: 100%; padding: 13px 16px; background: var(--bg-tinted);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; font-family: var(--font); color: var(--text-primary);
  transition: border-color 0.2s; margin-bottom: 12px;
}
.quiz-input::placeholder { color: var(--text-muted); }
.quiz-input:focus { outline: none; border-color: var(--brand-teal); background: #fff; }
.quiz-textarea {
  width: 100%; padding: 13px 16px; background: var(--bg-tinted);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; font-family: var(--font); color: var(--text-primary);
  min-height: 100px; resize: vertical; transition: border-color 0.2s;
}
.quiz-textarea::placeholder { color: var(--text-muted); }
.quiz-textarea:focus { outline: none; border-color: var(--brand-teal); background: #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 16px; }
.quiz-error { display: none; color: #e53935; font-size: 0.82rem; margin-top: 10px; }
.quiz-other-input { margin-top: 10px; }
.consent-checkbox { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 20px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; transition: border-color 0.2s; }
.consent-checkbox:has(input:checked) { border-color: var(--brand-teal); }
.consent-checkbox input { margin-top: 2px; cursor: pointer; }
.consent-checkbox span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.quiz-progress { display: flex; gap: 4px; margin-bottom: 30px; }
.quiz-dot { flex: 1; height: 4px; background: var(--bg-tinted); border-radius: 3px; transition: 0.3s; }
.quiz-dot.active { background: var(--brand-teal); }
.quiz-dot.done { background: var(--brand-teal); opacity: 0.4; }
.quiz-success { text-align: center; padding: 30px; }
.quiz-success-icon { font-size: 3rem; margin-bottom: 14px; }
.quiz-success h2 { font-size: 1.35rem; margin-bottom: 8px; }
.quiz-success p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 20px; }

/* ===== BULLET LIST ===== */
.bullet-list { margin: 10px 0; padding-left: 20px; }
.bullet-list li { padding: 4px 0; list-style: disc; font-size: 0.9rem; color: var(--text-secondary); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }

/* ===== SELECTION ===== */
::selection { background: var(--brand-teal); color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-tinted); }
::-webkit-scrollbar-thumb { background: var(--brand-grey); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== LEGAL PAGES ===== */
.legal-text h2 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--brand-blue); }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.75; }
.legal-list { margin: 8px 0 16px; padding-left: 20px; }
.legal-list li { padding: 4px 0; list-style: disc; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CONSENT CHECKBOX ===== */
.consent-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; background: var(--bg-tinted);
  border-radius: var(--radius); cursor: pointer;
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
}
.consent-checkbox input { width: 18px; height: 18px; accent-color: var(--brand-teal); flex-shrink: 0; margin-top: 1px; }
.consent-checkbox a { color: var(--brand-teal); }

/* ===== FOOTER LEGAL ===== */
.footer-legal { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-legal a:hover { color: var(--brand-teal); }

/* ===== FILE UPLOAD ===== */
.file-drop-zone {
  border: 2px dashed var(--border-active);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-tinted);
  margin-bottom: 12px;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}
.file-drop-icon { font-size: 2rem; margin-bottom: 8px; }
.file-drop-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 4px; }
.file-drop-link { color: var(--brand-teal); font-weight: 500; text-decoration: underline; }
.file-drop-hint { font-size: 0.75rem; color: var(--text-muted); }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; animation: fadeIn 0.3s;
}
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.file-item-size { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.file-item-remove { color: #e53935; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 4px; }
.file-item-remove:hover { opacity: 0.7; }
.file-total { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.file-total.error { color: #e53935; }

/* ===== MAP ===== */
.map-wrapper { display: grid; grid-template-columns: 1fr 280px; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
#map { height: 440px; width: 100%; }
.map-info { background: var(--bg-surface); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.map-info-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.map-info-icon { font-size: 1.3rem; flex-shrink: 0; }
.map-info-item strong { display: block; color: var(--brand-blue); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.map-info-item a { color: var(--brand-teal); }

/* Custom map markers */
.map-marker-logo {
  width: 48px; height: 48px;
  background: #fff;
  border: 3px solid var(--brand-teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  cursor: pointer;
  overflow: hidden;
}
.map-marker-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.map-marker-arrow {
  width: 40px; height: 40px;
  background: #FF6B35;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  cursor: pointer;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
}
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 16px 18px; font-family: var(--font); }
.leaflet-popup-content strong { color: var(--brand-blue); font-size: 0.9rem; }
.leaflet-popup-content p { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

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

/* ---- LARGE DESKTOP (1440px+) ---- */
@media (min-width: 1440px) {
  :root { --max-w: 1280px; }
  .hero { padding: 88px 0 76px; }
  .section { padding: 76px 0; }
  .corner-logo { width: 64px; top: 18px; right: 22px; }
}

/* ---- SMALL DESKTOP / LARGE TABLET (max 1023px) ---- */
@media (max-width: 1023px) {
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-left { flex: none; width: 100%; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .side-nav-btn { flex: 1 1 calc(50% - 4px); min-width: 130px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-contacts .btn { display: none; }
  .burger { display: flex; }
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .corner-logo { width: 48px; }
  .hero { padding: 52px 0 48px; }
  .hero-left { order: 2; }
  .hero-content { order: 1; }
}

/* ---- TABLET (max 767px) ---- */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 10px 16px; gap: 6px; flex-wrap: wrap; }
  .logo { flex: 1 1 auto; min-width: 0; }
  .logo-title { font-size: 1rem; white-space: normal; }
  .header-contacts { flex: 1 1 100%; justify-content: center; padding-top: 4px; }
  .header-contacts .btn { display: inline-flex; }
  .burger { display: none; }

  /* Hero */
  .hero { padding: 36px 0 36px; }
  .hero::before { display: none; }
  .hero-title { font-size: 1.45rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-eyebrow { font-size: 0.68rem; margin-bottom: 16px; }

  /* Side nav becomes vertical stack */
  .side-nav { flex-direction: column; }
  .side-nav-btn { flex: 1 1 100%; padding: 10px 12px; }
  .side-nav-btn strong { font-size: 0.82rem; }
  .side-nav-btn small { font-size: 0.7rem; }

  /* Corner logo */
  .corner-logo { width: 40px; top: 12px; right: 12px; opacity: 0.7; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-title { font-size: 1.25rem; }
  .section-desc { font-size: 0.88rem; }
  .section-eyebrow { font-size: 0.68rem; }

  /* Cards & grids */
  .card { padding: 18px; }
  .info-grid { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: 1fr; }
  .stage-card { padding: 22px; }
  .stage-num { font-size: 3rem; }

  /* Price */
  .price-block { padding: 18px; }
  .price-table td { font-size: 0.82rem; padding: 8px 0; }
  .price-notes { padding: 18px; }
  .price-notes ol li { font-size: 0.78rem; }

  /* Regulatory */
  .reg-group summary { padding: 12px 14px; font-size: 0.85rem; }
  .reg-group ol { padding: 0 12px 14px 22px; }
  .reg-group ol li { font-size: 0.78rem; }

  /* Team */
  .team { padding: 56px 0; }
  .section-label { font-size: 0.76rem; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-card { padding: 22px; }

  /* Contact */
  .contact-cta { padding: 22px; }
  .contact-cta h3 { font-size: 1.1rem; }

  /* Buttons */
  .btn { padding: 11px 22px; font-size: 0.88rem; }
  .btn-lg { padding: 13px 28px; font-size: 0.95rem; }
  .btn-xl { padding: 14px 28px; font-size: 0.95rem; }

  /* Header */
  .logo-img { width: 32px; height: 32px; }
  .logo-title { font-size: 0.95rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
  .header-contacts { gap: 10px; }
  .phone { font-size: 0.82rem; }
  .mobile-menu { padding: 16px; gap: 12px; }
  .mobile-menu a { padding: 6px 0; font-size: 0.92rem; }

  /* Quiz / Form */
  .quiz-page { padding: 28px 0; }
  .quiz-container { padding: 22px 16px; }
  .quiz-header h1 { font-size: 1.15rem; }
  .quiz-header p { font-size: 0.82rem; }
  .quiz-label { font-size: 0.9rem; }
  .quiz-option { padding: 11px 14px; font-size: 0.85rem; gap: 10px; }
  .quiz-option input { width: 16px; height: 16px; }
  .quiz-input { padding: 11px 14px; font-size: 0.88rem; }
  .quiz-textarea { padding: 11px 14px; font-size: 0.88rem; min-height: 90px; }
  .quiz-nav { gap: 10px; margin-top: 20px; }
  .quiz-error { font-size: 0.76rem; }
  .quiz-progress { margin-bottom: 22px; }
  .consent-checkbox { padding: 12px; }
  .consent-checkbox span { font-size: 0.78rem; }
  .consent-checkbox input { width: 16px; height: 16px; }

  /* File upload */
  .file-drop-zone { padding: 20px 14px; }
  .file-drop-icon { font-size: 1.6rem; }
  .file-drop-text { font-size: 0.82rem; }
  .file-drop-hint { font-size: 0.68rem; }
  .file-item { padding: 8px 10px; font-size: 0.78rem; }
  .file-item-name { font-size: 0.78rem; }

  /* Map */
  .map-wrapper { grid-template-columns: 1fr; }
  #map { height: 320px; }
  .map-info { padding: 18px; gap: 14px; }

  /* Footer */
  .footer { padding: 28px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-col { text-align: center !important; }
  .footer-legal { margin: 8px 0; }
  .footer-logo { width: 34px; height: 34px; }
  .footer-col p { font-size: 0.76rem; }
  .footer-legal a { font-size: 0.72rem; }

  /* Legal pages */
  .legal-text h2 { font-size: 1.02rem; }
  .legal-text p { font-size: 0.82rem; }
  .legal-list li { font-size: 0.8rem; }
}

/* ---- SMALL SMARTPHONE (max 380px) ---- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .header-inner { padding: 10px 12px; }
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.8rem; }
  .quiz-container { padding: 18px 12px; }
  .quiz-header h1 { font-size: 1.05rem; }
  .quiz-option { padding: 10px 12px; font-size: 0.82rem; }
  .quiz-option span { font-size: 0.82rem; }
  .btn { padding: 10px 18px; font-size: 0.82rem; width: 100%; justify-content: center; }
  .quiz-nav { flex-direction: column-reverse; }
  .quiz-nav .btn { width: 100%; }
  .logo-title { font-size: 0.95rem; font-weight: 700; line-height: 1.2; white-space: nowrap; letter-spacing: -0.02em; }
  .logo-img { width: 32px; height: 32px; }
  .corner-logo { width: 34px; }
  .stage-num { font-size: 2.5rem; }
  .section-title { font-size: 1.12rem; }
  .price-table td { font-size: 0.76rem; }
}

/* ---- LANDSCAPE MOBILE ---- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 24px 0; }
  .hero-title { font-size: 1.3rem; margin-bottom: 10px; }
  .hero-subtitle { margin-bottom: 16px; }
  .section { padding: 28px 0; }
  .quiz-page { padding: 20px 0; }
}

/* ---- PRINT ---- */
@media print {
  .header, .footer, .corner-logo, .burger, .mobile-menu,
  .hero-actions, .side-nav, .quiz-nav, .file-drop-zone { display: none !important; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero-title { color: #000; }
  .hero-subtitle { color: #333; }
  body { background: #fff; }
  .card, .price-block { box-shadow: none; border: 1px solid #ccc; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
.text-center { text-align: center; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 680px; margin: 10px auto 0; line-height: 1.5; }
