/* ==========================================================================
   Ozon Job Referral Landing — Styles
   ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --primary-border: #BFDBFE;
  --success: #16A34A;
  --success-soft: #F0FDF4;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --warning-text: #92400E;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --footer-bg: #0F172A;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}

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

.nav-cta {
  padding: 9px 16px;
  background: var(--primary-soft);
  color: var(--primary) !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary);
  color: #FFFFFF !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #EFF6FF 0%, var(--bg) 100%);
}

.hero-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 580px;
  font-size: 17px;
  color: var(--text-muted);
}

.code-box {
  max-width: 400px;
  margin: 0 auto 14px;
  padding: 20px 18px;
  background: var(--primary-soft);
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
  user-select: all;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary.is-copied {
  background: var(--success);
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.copy-status.is-success {
  color: var(--success);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.inline-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 14px;
}

.notice-box {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  font-size: 15px;
}

.notice-box strong {
  color: #78350F;
}

/* Features / Conditions Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.section-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

.section-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--primary-border);
  background: var(--surface);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--primary);
  color: #FFFFFF;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Final CTA */
.cta-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.8vw, 32px);
  font-weight: 800;
}

.cta-card p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #CBD5E1;
  padding: 48px 0 32px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1E293B;
}

.footer-brand {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 400px;
  margin: 0;
  color: #94A3B8;
  line-height: 1.6;
}

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

.footer-nav a {
  color: #CBD5E1;
}

.footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.65;
}

.footer-bottom p {
  margin: 0 0 8px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Legal / Simple Content Pages */
.page-content {
  padding: 56px 0 72px;
}

.doc-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.doc-card h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 34px);
}

.doc-card h2 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.doc-card p,
.doc-card li {
  color: var(--text-muted);
  font-size: 15px;
}

/* Toast Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }

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

  .steps-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 28px 0 40px;
  }

  .hero-card,
  .cta-card,
  .doc-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .section {
    padding: 44px 0;
  }

  .step-card,
  .info-card {
    padding: 20px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}
