/* Работа Есть — landing. Light Office V1 — единственный визуальный источник
   (см. /root/workradar_ai/miniapp/assets/light-office-v1/theme.css):
   pearl/ivory background, white/pearl translucent surfaces, graphite text,
   restrained warm gold accent, silver/gold icon language. */

:root {
  --re-bg: #f6f3ee;
  --re-bg-alt: #efeae1;
  --re-surface: rgba(255, 255, 255, 0.86);
  --re-surface-strong: rgba(255, 255, 255, 0.94);
  --re-border: rgba(91, 102, 116, 0.16);
  --re-text: #20242b;
  --re-text-muted: #7b818b;
  --re-accent: #c99543;
  --re-accent-2: #b67d25;
  --re-accent-soft: rgba(201, 149, 67, 0.14);
  --re-accent-contrast: #ffffff;
  --re-radius-lg: 28px;
  --re-radius-md: 22px;
  --re-radius-sm: 16px;
  --re-shadow: 0 12px 32px rgba(47, 43, 38, 0.12);
  --re-shadow-sm: 0 2px 8px rgba(47, 43, 38, 0.08);
  --re-hero-bg: url("/assets/light-office-v1/backgrounds/office-light-720x1280.webp");
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@media (min-width: 900px) {
  :root {
    --re-hero-bg: url("/assets/light-office-v1/backgrounds/office-light-1080x1920.webp");
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

#how-it-works,
#features {
  scroll-margin-top: 76px;
}

body {
  background: var(--re-bg);
  color: var(--re-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overflow-x: hidden;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--re-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--re-shadow-sm);
  padding-top: var(--safe-top);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--re-text);
}

.brand-mark { border-radius: 8px; flex: none; }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--re-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, var(--re-accent) 0%, var(--re-accent-2) 100%);
  color: var(--re-accent-contrast);
  box-shadow: 0 10px 24px rgba(182, 125, 37, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(182, 125, 37, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost {
  background: var(--re-surface-strong);
  color: var(--re-text);
  border-color: var(--re-border);
  box-shadow: var(--re-shadow-sm);
}

.btn-ghost:hover { border-color: var(--re-accent); color: var(--re-accent-2); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero {
  padding: 36px 0 20px;
  background-image: linear-gradient(180deg, rgba(246, 243, 238, 0.94) 0%, rgba(246, 243, 238, 0.98) 65%, var(--re-bg) 100%), var(--re-hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--re-text);
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--re-accent-2);
  line-height: 1.35;
}

.hero-desc {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--re-text-muted);
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art { display: flex; justify-content: center; }

.hero-art-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: var(--re-surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--re-radius-lg);
  box-shadow: var(--re-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-art-icon--main {
  width: 46%;
  height: auto;
}

.hero-art-icon--matches,
.hero-art-icon--review,
.hero-art-icon--bell {
  position: absolute;
  width: 24%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(47, 43, 38, 0.16));
}

.hero-art-icon--matches { top: 10%; left: 9%; }
.hero-art-icon--review { top: 10%; right: 9%; }
.hero-art-icon--bell { bottom: 10%; right: 9%; }

/* Sections */
.section { padding: 32px 0; }
.section-alt { background: var(--re-surface-strong); border-top: 1px solid var(--re-border); border-bottom: 1px solid var(--re-border); }
.section-compact { padding: 24px 0; }

.section-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--re-text);
  text-align: center;
}

.section-title--sm { font-size: 21px; margin-bottom: 12px; }

.section-lead {
  margin: 0 0 16px;
  color: var(--re-text-muted);
  font-size: 16px;
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.section-lead--sm { margin-top: 12px; margin-bottom: 0; font-size: 14px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* Feature cards */
.feature-card {
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-md);
  box-shadow: var(--re-shadow-sm);
  padding: 16px 15px;
  text-align: center;
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--re-text);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--re-text-muted);
}

/* Benefit cards (уведомления / персональный подбор) */
.benefit-card {
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-md);
  box-shadow: var(--re-shadow-sm);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.benefit-icon { width: 48px; height: 48px; flex: none; }

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--re-text);
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  color: var(--re-text-muted);
}

/* Steps */
.step-card {
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-md);
  box-shadow: var(--re-shadow-sm);
  padding: 18px 15px;
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--re-accent-soft);
  color: var(--re-accent-2);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--re-text);
}

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

/* Sources */
.sources-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  color: var(--re-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--re-shadow-sm);
}

.badge--primary {
  border-color: var(--re-accent);
  color: var(--re-accent-2);
  background: var(--re-accent-soft);
}

.sources-note {
  margin: 13px auto 0;
  max-width: 62ch;
  font-size: 13px;
  color: var(--re-text-muted);
  text-align: center;
}

/* Pricing */
.pricing-grid { align-items: stretch; }

.price-card {
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-lg);
  box-shadow: var(--re-shadow-sm);
  padding: 21px 18px;
}

.price-card--pro {
  border-color: var(--re-accent);
  box-shadow: 0 2px 8px rgba(47, 43, 38, 0.08), 0 14px 32px rgba(201, 149, 67, 0.18);
}

.price-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--re-text);
}

.price-lead {
  margin: 0 0 13px;
  font-size: 15px;
  color: var(--re-text-muted);
}

.price-card--pro .price-lead strong { color: var(--re-accent-2); font-size: 20px; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--re-border);
  padding-top: 10px;
  font-size: 15px;
}

.price-list li:first-child { border-top: none; padding-top: 0; }

.price-list li strong { color: var(--re-accent-2); font-weight: 800; }

.price-list--plain li {
  display: block;
  color: var(--re-text-muted);
  font-size: 14px;
}

.price-list--plain li::before {
  content: "✓ ";
  color: var(--re-accent-2);
  font-weight: 800;
}

.credits-usage {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--re-border);
}

.credits-usage-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--re-accent-2);
}

.credits-usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credits-usage-list li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--re-text-muted);
}

.credits-usage-list li strong {
  color: var(--re-text);
  font-weight: 700;
}

.info-chip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--re-accent-soft);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-md);
  padding: 14px 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.info-chip-icon { width: 34px; height: 34px; flex: none; }
.info-chip span { font-size: 14px; color: var(--re-text); }

/* CTA section */
.cta-section { padding: 38px 0 44px; }

.cta-wrap { text-align: center; }

.cta-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
}

.cta-wrap .hero-cta { justify-content: center; margin-top: 8px; }

.cta-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--re-accent-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-link:hover { color: var(--re-accent); }

/* Compact informational blocks (criteria / mini-steps) */
.criteria-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.criteria-item {
  display: inline-flex;
  align-items: center;
  background: var(--re-surface-strong);
  border: 1px solid var(--re-border);
  color: var(--re-text);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--re-shadow-sm);
}

.criteria-item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--re-accent);
  flex: none;
}

.mini-steps { text-align: center; }

.mini-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--re-text);
}

.mini-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--re-accent-soft);
  color: var(--re-accent-2);
  font-weight: 800;
  font-size: 13px;
}

.trust-note {
  margin: 14px auto 0;
  max-width: 56ch;
  text-align: center;
  font-size: 13px;
  color: var(--re-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--re-border);
  padding: 20px 0 calc(20px + var(--safe-bottom));
  background: var(--re-bg-alt);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-sub {
  font-size: 13px;
  color: var(--re-text-muted);
}

.footer-company,
.footer-copyright {
  font-size: 11.5px;
  margin-top: 2px;
  opacity: 0.85;
}

.footer-contact a {
  color: var(--re-accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-contact a:hover { text-decoration: underline; }

/* Tablet+ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 46px; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-copy h1 { font-size: 52px; }
  .footer-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
