/* mooncadastr.store — Services landing. Same design language as partner site: dark cosmic theme */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --text: #e8e8ed;
  --text-muted: #9a9aaa;
  --accent: #7c5cff;
  --accent-hover: #9378ff;
  --accent-soft: rgba(124, 92, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --moon: #c4b8d4;
  --success: #4ade80;
  --radius: 12px;
  --radius-lg: 20px;
  --font-title: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  height: auto;
  padding: 10px 0;
}

.logo {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo:hover {
  color: var(--accent);
}

.header-inner .btn {
  flex-shrink: 0;
}

.btn-text-short {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(100, 80, 180, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(124, 92, 255, 0.08), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 24px;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 640px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 1.05rem;
}

.hero-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.hero-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.hero-note {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.section-subtitle,
.section-intro,
.section-highlight {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 640px;
}

.section-highlight {
  color: var(--moon);
  font-weight: 500;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* Asset actions */
.asset-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  text-transform: lowercase;
  transition: border-color 0.2s, background 0.2s;
}

.asset-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 92, 255, 0.3);
}

/* Tariffs */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.tariff-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tariff-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.tariff-featured {
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08) 0%, var(--bg-card) 100%);
}

.tariff-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.15);
}

.tariff-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.tariff-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tariff-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.tariff-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.tariff-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.tariff-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.tariff-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tariff-result {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tariff-card .btn {
  width: 100%;
}

/* AI section */
.ai-features {
  max-width: 560px;
}

/* Why section */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.why-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2em;
}

/* CTA section */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 255, 0.06) 100%);
}

.cta-text {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.cta-sub {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.cta-quote {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 32px;
  font-weight: 500;
}

/* Steps list (3 этапа) */
.steps-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
  max-width: 520px;
}

.steps-list li {
  margin-bottom: 0.75rem;
}

.steps-list a {
  color: var(--accent);
}

/* FAQ */
.section-faq .section-title {
  margin-bottom: 1.25rem;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
}

.faq-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* CTA secondary (Займите своё место) */
.section-cta-secondary {
  text-align: center;
}

.section-cta-secondary .cta-text {
  margin-bottom: 1.5rem;
}

.steps-inline {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 auto 1.5rem;
  max-width: 400px;
  text-align: left;
}

.steps-inline li {
  margin-bottom: 0.5rem;
}

.cta-support {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-support a {
  color: var(--accent);
}

/* Footer legal */
.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Form */
.section-form {
  padding-bottom: 100px;
}

.form-intro {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.order-form {
  max-width: 480px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9aaa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-form .btn {
  margin-top: 8px;
}

/* Модальное окно оплаты */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.payment-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.payment-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.payment-modal-close:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.payment-modal-header {
  margin-bottom: 20px;
  padding-right: 40px;
}

.payment-modal-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.payment-modal-tariff {
  font-weight: 600;
  margin: 0 0 4px;
}

.payment-modal-sum {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

/* Брендинг ЮMoney по правилам: на тёмном фоне — белый логотип */
.yoomoney-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yoomoney-logo {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.yoomoney-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.yoomoney-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.payment-form-container {
  min-width: 288px;
  min-height: 200px;
}

.payment-form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer — ссылка на оплату ЮMoney */
.footer-payment {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-yoomoney {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-yoomoney:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-links {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links span {
  color: var(--text-muted);
  margin: 0 8px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive — мобильная вёрстка */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 52px;
    padding: 8px 0;
    gap: 10px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .header-inner .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin: 0 0 20px;
  }

  .hero-text,
  .hero-note {
    font-size: 1rem;
  }

  .hero .btn-lg {
    width: 100%;
    padding: 14px 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin: 0 0 24px;
  }

  .tariffs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tariff-card {
    padding: 20px;
  }

  .tariff-card .btn {
    padding: 12px 20px;
  }

  .asset-actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cta-quote {
    font-size: 1.15rem;
  }

  .order-form .btn {
    width: 100%;
  }

  .payment-modal-box {
    margin: 12px;
    max-height: 85vh;
    padding: 20px;
  }

  .payment-modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .header-inner .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .asset-actions {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    padding: 12px 14px;
    font-size: 16px; /* отключает зум на iOS при фокусе */
  }

  .footer-links,
  .footer-payment {
    font-size: 0.85rem;
  }

  .footer-links span {
    margin: 0 4px;
  }
}

/* Узкие экраны — кнопка в шапке не обрезается */
@media (max-width: 380px) {
  .logo {
    font-size: 0.8rem;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .header-inner .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
