/* ============================================
   ДоксПро — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: rgba(37, 99, 235, 0.08);
  --blue-glow: rgba(37, 99, 235, 0.25);
  --bg: #FAFBFD;
  --white: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --green: #16A34A;
  --green-light: rgba(22, 163, 74, 0.08);
  --red: #DC2626;
  --red-light: rgba(220, 38, 38, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);
  --shadow-button: 0 1px 2px rgba(37,99,235,0.3), 0 4px 16px rgba(37,99,235,0.2);
  --max-w: 1400px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* --- Typography --- */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 4px rgba(37,99,235,0.4), 0 8px 24px rgba(37,99,235,0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: 16px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 120px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: rgba(250, 251, 253, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(250, 251, 253, 0.92);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-icon {
  height: 180px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

.nav-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-contact-item svg {
  flex-shrink: 0;
  color: var(--blue);
  width: 15px;
  height: 15px;
}

.nav-contact-item:hover {
  color: var(--blue);
}

.nav-contact-item:hover svg {
  color: var(--blue-hover);
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.35s forwards;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.45s forwards;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.hero-badge-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.55s forwards;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.65s forwards;
}

/* --- Hero Demo --- */
.hero-demo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: demoReveal 1s 0.6s forwards;
}

.demo-window {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 24px 80px rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E2E8F0;
}

.demo-dot:first-child { background: #FCA5A5; }
.demo-dot:nth-child(2) { background: #FCD34D; }
.demo-dot:nth-child(3) { background: #86EFAC; }

.demo-titlebar-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-left: 12px;
  font-weight: 500;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.demo-dropzone {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg) 0%, #F8FAFC 100%);
}

.demo-document {
  width: 160px;
  height: 220px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.demo-document.scanning {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light), 0 4px 24px rgba(37,99,235,0.15);
}

.demo-doc-line {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
}

.demo-doc-line.short { width: 60%; }
.demo-doc-line.medium { width: 80%; }
.demo-doc-line.long { width: 100%; }
.demo-doc-line.photo {
  width: 40px;
  height: 48px;
  border-radius: 4px;
  background: #E2E8F0;
  position: absolute;
  right: 16px;
  top: 16px;
}

.demo-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-document.scanning .demo-scan-line {
  opacity: 1;
  animation: scanMove 2s ease-in-out infinite;
}

.demo-doc-type {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
}

.demo-document.scanning + .demo-doc-type,
.demo-document.done + .demo-doc-type {
  opacity: 1;
}

.demo-results {
  padding: 24px 28px;
  border-left: 1px solid var(--border-light);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.demo-results-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.demo-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  transform: translateX(12px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-field.visible {
  opacity: 1;
  transform: translateX(0);
}

.demo-field-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.demo-field-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.demo-status {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}

.demo-status.visible {
  opacity: 1;
}

.demo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.demo-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

/* --- Sections --- */
section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 72px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Pain Cards (Проблема клиента) --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.pain-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border-color: transparent;
}

.pain-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.pain-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.pain-transition {
  text-align: center;
  font-size: 1.3rem;
  color: var(--blue);
  padding: 32px 0 0;
}

/* --- About Long --- */
.about-long {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 64px 72px;
  box-shadow: var(--shadow-card);
}

.about-long h2 {
  margin-bottom: 32px;
}

.about-long-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* --- How It Works (Как это работает) --- */
.how-section {
  padding: 120px 0;
  background: var(--bg);
}

.how-top {
  margin-bottom: 56px;
}

.how-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.how-section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 18px;
}

.how-top p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.how-steps {
  display: flex;
  flex-direction: column;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.how-step:first-child {
  border-top: 1px solid var(--border);
}

.how-step-num {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  min-width: 90px;
  transition: var(--transition);
}

.how-step:hover .how-step-num {
  color: var(--blue);
}

.how-step-content {
  flex: 1;
}

.how-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.how-step-head svg {
  color: var(--blue);
  flex-shrink: 0;
}

.how-step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.how-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .how-step {
    flex-direction: column;
    gap: 12px;
    padding: 28px 0;
  }

  .how-step-num {
    min-width: auto;
  }

  .how-section h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
}

/* --- Screenshots (Как выглядит программа) --- */
.screenshots-section {
  padding: 120px 0;
  background: var(--white);
}

.screenshots-top {
  margin-bottom: 56px;
}

.screenshots-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.screenshots-section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 18px;
}

.screenshots-top p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.screenshot-item {
  border-radius: var(--radius);
}

.screenshot-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.screenshot-frame:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  border-color: transparent;
  transform: translateY(-4px);
}

.screenshot-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.screenshot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
}

.screenshot-dots span:first-child { background: #FCA5A5; }
.screenshot-dots span:nth-child(2) { background: #FCD34D; }
.screenshot-dots span:nth-child(3) { background: #86EFAC; }

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-hover {
  position: absolute;
  inset: 0;
  top: 44px;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.screenshot-frame:hover .screenshot-hover {
  opacity: 1;
}

.screenshot-hover svg {
  width: 32px;
  height: 32px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .screenshots-section {
    padding: 64px 0;
  }

  .screenshots-section h2 {
    font-size: 1.5rem;
  }

  .screenshots-top p {
    font-size: 0.95rem;
  }

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

  .screenshot-frame {
    border-radius: 12px;
  }

  .screenshot-dots {
    padding: 10px 14px;
    gap: 6px;
  }

  .screenshot-dots span {
    width: 8px;
    height: 8px;
  }

  .screenshot-hover {
    font-size: 0.82rem;
  }

  .screenshot-hover svg {
    width: 24px;
    height: 24px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* --- Use Cases (Для кого / Industries) --- */
.industries {
  padding: 120px 0;
  background: var(--white);
}

.industries .top {
  margin-bottom: 56px;
}

.industries .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.industries h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 18px;
}

.industries p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.industries .list {
  border-top: 1px solid var(--border);
}

.industries .item {
  display: grid;
  grid-template-columns: 340px 1fr 40px;
  align-items: center;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.industries .item:hover {
  background: rgba(37, 99, 235, 0.02);
}

.industries .item:hover .name {
  color: var(--blue);
}

.industries .item:hover .arrow {
  color: var(--blue);
  transform: translate(2px, -2px);
}

.industries .name {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: var(--transition);
}

.industries .desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.industries .arrow {
  color: var(--text-tertiary);
  text-align: right;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .industries .item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .industries .arrow {
    display: none;
  }

  .industries h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .industries .name {
    font-size: 1.2rem;
  }
}

/* --- Compare Table (Почему не облако) --- */
.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.compare-table th,
.compare-table td {
  padding: 20px 32px;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table thead th {
  background: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid var(--border);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.compare-bad-col {
  color: var(--red) !important;
}

.compare-good-col {
  color: var(--blue) !important;
}

.compare-bad-cell {
  color: var(--text-secondary);
}

.compare-good-cell {
  color: var(--blue);
  font-weight: 600;
}

.compare-bad-cell svg,
.compare-good-cell svg {
  vertical-align: middle;
  margin-right: 6px;
}

/* --- Documents Grid --- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.doc-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

.doc-card-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.doc-card-visual.passport { background: rgba(37, 99, 235, 0.08); color: #2563EB; }
.doc-card-visual.zagr { background: rgba(79, 70, 229, 0.08); color: #4F46E5; }
.doc-card-visual.vu { background: rgba(217, 119, 6, 0.08); color: #D97706; }
.doc-card-visual.snils { background: rgba(5, 150, 105, 0.08); color: #059669; }
.doc-card-visual.inn { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.doc-card-visual.oms { background: rgba(236, 72, 153, 0.08); color: #EC4899; }
.doc-card-visual.birth { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.doc-card-visual.med { background: rgba(6, 182, 212, 0.08); color: #06B6D4; }

.doc-card:hover .doc-card-visual.passport { background: #2563EB; color: #fff; }
.doc-card:hover .doc-card-visual.zagr { background: #4F46E5; color: #fff; }
.doc-card:hover .doc-card-visual.vu { background: #D97706; color: #fff; }
.doc-card:hover .doc-card-visual.snils { background: #059669; color: #fff; }
.doc-card:hover .doc-card-visual.inn { background: #8B5CF6; color: #fff; }
.doc-card:hover .doc-card-visual.oms { background: #EC4899; color: #fff; }
.doc-card:hover .doc-card-visual.birth { background: #F59E0B; color: #fff; }
.doc-card:hover .doc-card-visual.med { background: #06B6D4; color: #fff; }

.doc-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.doc-card-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.docs-custom-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.docs-custom-note a {
  color: var(--blue);
  font-weight: 600;
}

.docs-custom-note a:hover {
  text-decoration: underline;
}

/* --- Trust (Нам доверяют) --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.trust-stat {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.trust-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-label {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.trust-quote {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 48px 64px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.trust-quote-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.trust-quote-author {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* --- Pricing (Цены) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border-color: transparent;
}

.pricing-card-popular {
  background: linear-gradient(135deg, var(--blue) 0%, #4F46E5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.25);
}

.pricing-card-popular:hover {
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.35);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #FCD34D;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.8;
}

.pricing-price {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price-big {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-price-small {
  font-size: 0.5em;
  font-weight: 600;
  opacity: 0.7;
}

.pricing-period {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-card:not(.pricing-card-popular) .pricing-features li {
  color: var(--text-secondary);
}

.pricing-card-popular .pricing-features li {
  color: rgba(255,255,255,0.9);
}

.pricing-features li svg {
  flex-shrink: 0;
}

/* --- FAQ --- */
.faq-list {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 8px 36px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--blue);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
  color: var(--text-tertiary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, #4F46E5 100%);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.2);
  width: 100%;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-text {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary:hover {
  background: #F8FAFC;
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.cta-section .hero-note {
  color: rgba(255,255,255,0.6);
}

/* --- Footer --- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

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

.footer-brand {
  text-align: left;
}

.footer-logo {
  height: 180px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

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

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: var(--transition);
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demoReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scanMove {
  0% { top: 0; }
  50% { top: calc(100% - 2px); }
  100% { top: 0; }
}

/* --- Responsive: Tablet (max-width 1024px) --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .nav {
    padding: 0 32px;
    height: 80px;
  }

  .nav-logo-icon {
    height: 120px;
  }

  .nav-contacts {
    gap: 16px;
  }

  .nav-contact-item {
    font-size: 0.82rem;
    gap: 6px;
  }

  .nav-contact-item svg {
    width: 14px;
    height: 14px;
  }

  .nav-inner {
    gap: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }

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

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

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

  .hero-demo {
    max-width: 640px;
    margin: 0 auto;
  }

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

  .pain-card {
    padding: 28px 24px;
    gap: 16px;
  }

  .pain-emoji {
    font-size: 1.6rem;
  }

  .about-long {
    padding: 48px 40px;
  }

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

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

  .trust-stat {
    padding: 36px 20px;
  }

  .trust-quote {
    padding: 40px 36px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .footer-logo {
    height: 120px;
  }

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

/* --- Responsive: Mobile (max-width 768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    padding: 0 20px;
    height: 70px;
  }

  .nav-logo-icon {
    height: 80px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .nav-contacts {
    display: none;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .hero-badges {
    gap: 8px;
    margin-bottom: 28px;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge-item {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .hero-note {
    font-size: 0.75rem;
  }

  .hero-demo {
    max-width: 100%;
  }

  .demo-window {
    border-radius: 12px;
  }

  .demo-titlebar {
    padding: 12px 14px;
  }

  .demo-titlebar-text {
    font-size: 0.65rem;
    margin-left: 8px;
  }

  .demo-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-dropzone {
    padding: 28px 16px;
  }

  .demo-document {
    width: 120px;
    height: 170px;
    padding: 12px;
  }

  .demo-doc-line.photo {
    width: 30px;
    height: 36px;
  }

  .demo-doc-type {
    display: none;
  }

  .demo-results {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 20px 16px;
  }

  .demo-results-header {
    font-size: 0.72rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .demo-field {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  .demo-field-label {
    font-size: 0.72rem;
  }

  .demo-field-value {
    font-size: 0.82rem;
    text-align: left;
  }

  /* Sections */
  section {
    padding: 64px 0;
  }

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

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* Pain cards */
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .pain-card {
    padding: 20px 16px;
    gap: 12px;
  }

  .pain-emoji {
    font-size: 1.4rem;
  }

  .pain-text {
    font-size: 0.9rem;
  }

  .pain-transition {
    font-size: 1.05rem;
    padding: 24px 0 0;
  }

  /* About */
  .about-long {
    padding: 24px 16px;
  }

  .about-long h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .about-long-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* How section */
  .how-section {
    padding: 64px 0;
  }

  .how-section h2 {
    font-size: 1.5rem;
  }

  .how-top p {
    font-size: 0.95rem;
  }

  .how-step {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .how-step-num {
    min-width: auto;
    font-size: 2rem;
  }

  .how-step-title {
    font-size: 1.05rem;
  }

  .how-step-desc {
    font-size: 0.88rem;
  }

  /* Industries */
  .industries {
    padding: 64px 0;
  }

  .industries h2 {
    font-size: 1.5rem;
  }

  .industries p {
    font-size: 0.95rem;
  }

  .industries .item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .industries .name {
    font-size: 1.1rem;
  }

  .industries .desc {
    font-size: 0.88rem;
  }

  .industries .arrow {
    display: none;
  }

  /* Compare table */
  .compare-table-wrap {
    margin: 0 -20px;
    padding: 0 20px;
  }

  .compare-table {
    min-width: 500px;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 16px;
    font-size: 0.82rem;
  }

  .compare-table svg {
    width: 16px;
    height: 16px;
  }

  /* Documents */
  .docs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .doc-card {
    padding: 24px 16px 20px;
  }

  .doc-card-visual {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .doc-card-visual svg {
    width: 28px;
    height: 28px;
  }

  .doc-card-title {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  .doc-card-desc {
    font-size: 0.72rem;
  }

  .docs-custom-note {
    font-size: 0.85rem;
  }

  /* Trust */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }

  .trust-stat {
    padding: 28px 20px;
  }

  .trust-num {
    font-size: 2.2rem;
  }

  .trust-label {
    font-size: 0.85rem;
  }

  .trust-quote {
    padding: 28px 20px;
  }

  .trust-quote-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .trust-quote-author {
    font-size: 0.82rem;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .pricing-price-big {
    font-size: 2.5rem;
  }

  /* FAQ */
  .faq-list {
    padding: 4px 16px;
  }

  .faq-question {
    padding: 20px 0;
    font-size: 0.95rem;
    gap: 12px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-answer p {
    font-size: 0.88rem;
  }

  /* CTA */
  .cta-section {
    padding: 48px 20px;
    border-radius: 16px;
  }

  .cta-section h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .cta-text {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .cta-section .btn {
    padding: 16px 32px;
  }

  .cta-section .hero-note {
    font-size: 0.72rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 32px;
    margin-top: 24px;
  }

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

  .footer-logo {
    height: 80px;
  }

  .footer-brand p {
    font-size: 0.82rem;
    max-width: 100%;
  }

  .footer-col-title {
    margin-bottom: 14px;
  }

  .footer-col a {
    padding: 5px 0;
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 24px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom-links a {
    font-size: 0.75rem;
  }
}

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

  h1 {
    font-size: 1.55rem;
  }

  .hero-badge-item {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .btn-large {
    padding: 16px 28px;
    font-size: 0.95rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px;
  }

  .doc-card-visual {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .doc-card-visual svg {
    width: 24px;
    height: 24px;
  }

  .pricing-card {
    padding: 24px 16px;
  }
}

/* --- Modal Popup --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.modal-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

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

.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.modal-checkbox input {
  display: none;
}

.modal-checkbox-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 1px;
}

.modal-checkbox input:checked + .modal-checkbox-mark {
  background: var(--blue);
  border-color: var(--blue);
}

.modal-checkbox input:checked + .modal-checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.modal-checkbox-text a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .modal {
    padding: 32px 20px;
    border-radius: 16px;
    max-width: calc(100% - 32px);
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }
}
