/* Landing v2 – base container (Step 6) */

.modal-content input,
.modal-content button {
  box-sizing: border-box;
}


.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
/* Landing v2 – page background (Step 7) */


/* Landing v2 – sections layout (Step 8) */

.landing-section {
  padding: 80px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.landing-section:last-child {
  border-bottom: none;
}
/* --- Landing v2: override global body background --- */
/* body.landing-page {
  background:  #f6f7f2 !important;
} */
/* --- Landing v2: footer neutralization --- */
body.landing-page .footer {
  background: transparent;
  color: #555;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

body.landing-page .footer a {
  color: #6b8f3f;
}
/* ===== Step 9: Hero geometry & overlap ===== */

/* Сам hero — уменьшаем верхний отступ и готовим зону перехода */
.landing-hero {
  padding-top: 40px;
  padding-bottom: 60px;
  margin-top: -60px;
  min-height: 220px; /* ключевая строка */
}

/* ===== Step 11: Hero text base ===== */

.landing-hero h1 {
  margin-bottom: 12px;
}

.landing-hero p {
  max-width: 520px;
}


/* Внутренний контейнер hero */
.landing-hero-inner {
  max-width: 800px;
  padding-top: 40px;
}
/* ===== Step 12: Hero quiet emphasis ===== */

.landing-hero-inner {
  max-width: 640px;        /* визуальный баланс */
}

.hero-subtitle {
  margin-bottom: 20px;
}

.hero-note {
  opacity: 0.75;           /* тише основного текста */
  max-width: 420px;        /* ощущение интимности */
}
/* ===== Step 13: Actions section layout ===== */

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.action-card {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.action-card h3 {
  margin: 0 0 10px 0;
}

.action-card p {
  margin: 0;
  max-width: 38ch;
}

@media (max-width: 900px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }
  .action-card p {
    max-width: none;
  }
}
/* ===== Step 15: Project stats layout ===== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stat-item {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.stat-item strong {
  display: block;
  font-size: 1.4em;
  margin-bottom: 6px;
}

.stat-item span {
  display: block;
  font-weight: 500;
}

.stat-item small {
  display: block;
  opacity: 0.75;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.modal {
  display: none;
}

.modal.open {
  display: flex;
}
.modal {
 position: fixed;
  inset: 0;
  display: none; /* по умолчанию закрыта */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 26px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-content .close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.modal-content .close:hover {
  color: #333;
}
.modal-content h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 600;
}
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  background: #fafafa;
}

.modal-content input:focus {
  outline: none;
  border-color: #6b8f3f;
  background: #ffffff;
}
.captcha-block {
  margin: 10px 0 14px;
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.captcha-code {
  flex: 1;
  text-align: center;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 3px;
  padding: 8px 10px;
  background: #f2f2f2;
  border-radius: 10px;
}

.captcha-refresh {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e6e6e6;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-refresh:hover {
  background: #dcdcdc;
}

.modal-content .submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: #6b8f3f;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-content .submit-btn:hover {
  background: #5a7c34;
}

/* === AURORA PATCH START: LANDING TYPOGRAPHY + BUTTON SYSTEM (STEP 1) === */

body.landing-page {
  /* базовая типографика */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: #2b2b2b;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Заголовки */
body.landing-page h1 {
  font-size: 38px;
  line-height: 1.18;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

/* body.landing-page h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
} */

body.landing-page h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

/* Текст */
body.landing-page p {
  margin: 0 0 12px 0;
}

body.landing-page .hero-subtitle {
  font-size: 16px;
  margin-bottom: 16px;
}

body.landing-page .hero-note {
  font-size: 14px;
  opacity: 0.78;
}

/* Кнопки (единая система) */
body.landing-page .auth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

body.landing-page .btn-auth {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;

  border: 1px solid transparent;
  background: transparent;
  color: inherit;

  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  user-select: none;
}

body.landing-page .btn-auth:active {
  transform: translateY(1px);
}

body.landing-page .btn-auth.primary {
  background: #6b8f3f;
  border-color: #6b8f3f;
  color: #fff;
}

body.landing-page .btn-auth.primary:hover {
  background: #5e7f37;
  border-color: #5e7f37;
}

body.landing-page .btn-auth.secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.18);
  color: #2b2b2b;
}

body.landing-page .btn-auth.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.24);
}

/* Чуть “дороже” карточки, но без шума */
body.landing-page .action-card,
body.landing-page .stat-item {
  background: rgba(255, 255, 255, 0.75);
}

/* Адаптив заголовка, чтобы не рвало на узких экранах */
@media (max-width: 520px) {
  body.landing-page h1 {
    font-size: 30px;
  }
}

/* === AURORA PATCH END: LANDING TYPOGRAPHY + BUTTON SYSTEM (STEP 1) === */

/* === AURORA STEP 2.1: hero spacing fix === */

.landing-hero {
  padding-top: 32px;
  padding-bottom: 40px;
}

.landing-cta-top {
  padding-top: 20px;
  padding-bottom: 40px;
}
/* === AURORA STEP 2.2: hero width balance === */

.landing-hero-inner {
  max-width: 900px;
}
.landing-hero h1 {
  max-width: 720px;
}

.hero-subtitle,
.hero-note {
  max-width: 640px;
}
/* === AURORA STEP 2.3: body background refinement === */
 body.landing-page {
  background:
    linear-gradient(
      180deg,
      #f4f6ee 0%,
      #f8f8f3 60%,
      #f6f7f2 100%
    );
} 
 body.landing-page {
  background-image: url('/img/3-bg.png')  center / cover no-repeat;
} 
/* === AURORA STEP 2.6 START: HERO CARD STYLES === */
.hero-card {
  max-width: 820px;
  margin-top: 20px;
  padding: 36px 42px;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);

  border-radius: 18px;
}
/* === AURORA STEP 2.6 END: HERO CARD STYLES === */
/* === AURORA STEP 2.6 START: HERO SECTION TUNING === */
.landing-hero {
  padding-top: 40px;
  padding-bottom: 40px;
}
/* === AURORA STEP 2.6 END: HERO SECTION TUNING === */
/* === AURORA STEP 2.6 START: ABOUT CARD STYLES === */
.about-card {
  max-width: 820px;
  margin: 0;
  padding: 32px 40px;

  background: rgba(255, 255, 255, 0.6);

  border-radius: 16px;
}
/* === AURORA STEP 2.6 END: ABOUT CARD STYLES === */
/* === AURORA STEP 2.6 START: SECTION RHYTHM === */
.landing-section {
  padding: 64px 0;
}

.landing-section.landing-hero {
  padding-top: 32px;
}
/* === AURORA STEP 2.6 END: SECTION RHYTHM === */
