/* ============================================================
   Vse Khorosho — landing styles
   Простой, чистый дизайн без зависимостей.
   ============================================================ */

:root {
  --color-primary: #1976d2;
  --color-primary-dark: #1565c0;
  --color-success: #43a047;
  --color-danger: #e53935;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-border: #e0e0e0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
}

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

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .nav { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

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

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
}

.hero-subtitle {
  font-size: 19px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

@media (max-width: 900px) {
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .hero-buttons { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
}

.hero-note {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Phone mockup ===== */
.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
  border-radius: 28px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-status {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.mock-greeting {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.mock-checkin {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(67, 160, 71, 0.3);
}

.mock-info {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.mock-sos {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-danger);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  section { padding: 60px 0; }
}

/* ===== Features ===== */
.features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--color-bg-alt);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ===== How it works ===== */
.how-it-works {
  background: var(--color-bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

/* ===== Pricing ===== */
.pricing {
  background: var(--color-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  position: relative;
}

.pricing-card-highlighted {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.price {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-text);
}

.price-period {
  color: var(--color-text-muted);
  font-size: 16px;
}

.price-features {
  list-style: none;
  margin-bottom: 24px;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 15px;
}

.price-features li:last-child {
  border-bottom: none;
}

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

/* ===== Download ===== */
.download {
  background: var(--color-bg-alt);
  text-align: center;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  min-width: 200px;
}

.store-button:hover {
  background: #333;
}

.store-icon {
  font-size: 28px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-small {
  font-size: 11px;
  opacity: 0.8;
}

.store-large {
  font-size: 18px;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-alt);
  margin-bottom: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.faq-item a {
  color: var(--color-primary);
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 60px 0 20px;
}

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

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-col .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}
