/* ============ Открыто — лендинг (Apple-style, светлая тема) ============ */

:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --success: #34c759;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

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

.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.btn-ghost:hover { background: rgba(0, 113, 227, 0.14); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; padding: 12px 20px; font-size: 15px; }

/* ============ Хедер ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.header.scrolled { border-bottom-color: var(--border); }

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

/* Зелёная точка у первой «О» вордмарка */
.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  vertical-align: top;
  margin: 1px 0 0 -5px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ============ Hero ============ */

.hero { padding: 72px 0 40px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.badge-new {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #248a3d; /* тёмно-зелёный: белый текст проходит контраст WCAG */
  border-radius: 100px;
}

/* ============ Мокап телефона ============ */

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

.phone {
  position: relative;
  width: 290px;
  border-radius: 44px;
  background: #1d1d1f;
  padding: 12px;
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #1d1d1f;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  padding: 58px 14px 22px;
  min-height: 540px;
  overflow: hidden;
}

/* Пуш-уведомление вверху экрана */
.app-push {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  animation: pushIn 0.8s cubic-bezier(0.32, 1.25, 0.5, 1) 0.9s both;
}

@keyframes pushIn {
  from { opacity: 0; transform: translateY(-32px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-push-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.app-push-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-push-title { font-size: 12px; font-weight: 700; }
/* Одна строка с многоточием: высота пуша не меняется от длины текста,
   иначе мокап «дышит» и контент страницы под ним дёргается */
.app-push-text { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-push-time { margin-left: auto; align-self: flex-start; font-size: 10px; color: var(--text-secondary); }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.app-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.app-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.app-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.app-avatar-blue { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.app-avatar-green { background: rgba(52, 199, 89, 0.14); color: #248a3d; }
.app-avatar-gray { background: rgba(110, 110, 115, 0.12); color: var(--text-secondary); }

.app-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
}

.app-status-new { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.app-status-work { background: rgba(110, 110, 115, 0.12); color: var(--text-secondary); }
.app-status-paid { background: rgba(52, 199, 89, 0.14); color: #248a3d; }

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.app-card-text { display: flex; flex-direction: column; min-width: 0; }
.app-card-title { font-size: 14px; font-weight: 600; }
.app-card-sub { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Живая лента: появление новой карточки */
.app-card-enter {
  animation: cardIn 0.55s cubic-bezier(0.32, 1.25, 0.5, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Подсветка карточки при смене статуса */
.app-card-flash {
  animation: cardFlash 0.9s ease;
}

@keyframes cardFlash {
  0% { box-shadow: var(--shadow-sm); }
  35% { box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.45); }
  100% { box-shadow: var(--shadow-sm); }
}

/* Уход нижней карточки */
.app-card-leave {
  animation: cardOut 0.4s ease both;
}

@keyframes cardOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* Пуш: повторный въезд при новой заявке */
.app-push-replay {
  animation: pushIn 0.7s cubic-bezier(0.32, 1.25, 0.5, 1) both;
}

/* Счётчик дня внизу экрана */
.app-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.06);
}

.app-summary-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.app-summary-value { font-size: 13px; font-weight: 700; color: var(--text); }
.app-summary-value .bump { animation: bump 0.5s ease; display: inline-block; }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); color: #248a3d; }
  100% { transform: scale(1); }
}

/* ============ Секции ============ */

.section { padding: 88px 0; }

.section-alt { background: var(--bg-card); }

.section-head { text-align: center; margin-bottom: 56px; }

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-secondary);
}

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

/* ============ Карточки возможностей ============ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.section-alt .card { border: 1px solid var(--border); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.08);
  margin-bottom: 18px;
}

.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.card p { margin-top: 8px; font-size: 14px; color: var(--text-secondary); }

/* ============ Шаги ============ */

.step {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.step p { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }

/* ============ Сравнение цен ============ */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 440px) auto minmax(0, 320px);
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.compare-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  box-shadow: var(--shadow-sm);
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.compare-name { font-size: 15px; color: var(--text-secondary); }
.compare-price { font-size: 15px; font-weight: 600; white-space: nowrap; }

.compare-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.compare-total .compare-name { font-weight: 600; color: var(--text); }

.compare-sum {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 59, 48, 0.8);
  white-space: nowrap;
}

.compare-arrow { display: flex; justify-content: center; }

.compare-ours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.compare-ours-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.compare-ours-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.compare-ours-price span { font-size: 18px; font-weight: 600; opacity: 0.85; }

.compare-ours-note { font-size: 14px; opacity: 0.9; }

.compare-ours-save {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #248a3d; /* тёмно-зелёный: белый текст проходит контраст WCAG */
  border-radius: 999px;
  padding: 5px 12px;
}

.compare-disclaimer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ============ Тарифы ============ */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 440px);
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.price-card-pro {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
}

.price-card-pro .price-value { font-size: 48px; }

.price-microcopy {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 { font-size: 21px; font-weight: 700; }

.price { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }

.price-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-period { font-size: 15px; font-weight: 500; color: var(--text-secondary); }

.price-alt { font-size: 13px; color: var(--text-secondary); }

.price-list {
  list-style: none;
  margin: 24px 0 28px;
  flex-grow: 1;
}

.price-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: rgba(52, 199, 89, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3 7.8 12 13 6.6' stroke='%2334c759' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.price-list .price-muted { color: var(--text-secondary); }

.price-list .price-muted::before {
  background-color: rgba(110, 110, 115, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9h7' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============ FAQ ============ */

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

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

.faq summary:hover { color: var(--accent); }

.faq-chevron {
  display: inline-flex;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq details[open] .faq-chevron { transform: rotate(180deg); }

.faq details p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ CTA ============ */

.cta-section {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-section p {
  margin: 14px 0 30px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* ============ Футер ============ */

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-footer { font-size: 17px; }

.footer-requisites {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-copy { font-size: 13px; color: var(--text-secondary); }

/* ============ Документы (оферта, privacy) ============ */

.doc { padding: 56px 0 80px; }

.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.doc .doc-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.doc p, .doc li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}

.doc ul, .doc ol { padding-left: 24px; margin-bottom: 12px; }

.doc .doc-note {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
}

.doc a { color: var(--accent); }

/* ============ Анимации появления ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-push { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Адаптив ============ */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }
  .compare { grid-template-columns: minmax(0, 440px); justify-items: center; gap: 20px; }
  .compare-stack { width: 100%; }
  .compare-arrow { transform: rotate(90deg); }
  .compare-ours { width: 100%; max-width: 440px; align-items: center; text-align: center; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 440px); justify-content: center; }
  .price-card-pro { order: -1; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .phone-screen { min-height: 480px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .price-card-pro { padding: 32px 24px; }
  .compare-stack { padding: 4px 18px; }
  .compare-sum { font-size: 19px; }
  .compare-ours-price { font-size: 38px; }
}
