/* BlessedPost — web. Тема: тёмный аниме-неонуар (чёрный/графит + алый). SVG запрещены. */

:root {
  --bg: #0a0a0c;
  --panel: #141419;
  --panel-glass: rgba(20, 20, 25, 0.78);
  --border: #23232d;
  --accent: #c1121f;
  --accent-hover: #e02434;
  --accent-deep: #7a0b14;
  --text: #f5f0e8;
  --muted: #9a97a3;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent-deep) var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  /* Тонкая текстура-сетка на чистом CSS (без SVG и картинок) */
  background-image:
    repeating-linear-gradient(0deg, rgba(245, 240, 232, 0.016) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(245, 240, 232, 0.015) 0 1px, transparent 1px 56px);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

::selection { background: rgba(193, 18, 31, 0.45); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--accent-hover); }

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(193, 18, 31, 0.25), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

/* Логотип — изображение */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(193, 18, 31, 0.35));
}

.logo-halo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 12px rgba(193, 18, 31, 0.8),
    0 0 30px rgba(193, 18, 31, 0.4),
    inset 0 0 8px rgba(224, 36, 52, 0.7);
  background: radial-gradient(circle at 50% 40%, rgba(224, 36, 52, 0.4), rgba(20, 20, 25, 0.2));
  flex: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

/* Переключатель языка */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 20, 25, 0.6);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-switch button.active {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep));
  color: var(--text);
}

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

.btn {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* бегущий блик по кнопке */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.btn:hover::after { transform: translateX(120%); }

.btn-red {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(193, 18, 31, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-glass {
  background: rgba(20, 20, 25, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(193, 18, 31, 0.35);
}

/* ---------- Hero (редакционная компоновка: текст слева, арт справа) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 150px 24px 90px;
}

.hero-text { min-width: 0; }

.hero-kicker {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(193, 18, 31, 0.55);
  background: rgba(20, 20, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  color: var(--text);
  text-align: left;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent) 50%, var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 40px;
}

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

/* Арт-карточка справа: рамка, тень, наклон, алый glow */
.hero-art {
  position: relative;
  animation: artIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes artIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: none; }
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 6% -8% -10% 6%;
  background: radial-gradient(ellipse at center, rgba(193, 18, 31, 0.38), transparent 65%);
  filter: blur(42px);
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(193, 18, 31, 0.5);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65);
  transform: perspective(1200px) rotateY(5deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.hero-art:hover img {
  transform: perspective(1200px) rotateY(1.5deg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 50px rgba(193, 18, 31, 0.18);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(193, 18, 31, 0.55);
  border-radius: 14px;
}

.scroll-hint::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-hover);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.15; }
}

/* ---------- Секции ---------- */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 56px;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Фичи ---------- */

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

.feature-card {
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(193, 18, 31, 0.65);
  box-shadow: 0 24px 50px rgba(193, 18, 31, 0.22);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  background: radial-gradient(circle at 35% 30%, #e8b9bd, var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Как это работает ---------- */

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

.how-card {
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.how-card:hover {
  transform: translateY(-8px);
  border-color: rgba(193, 18, 31, 0.65);
  box-shadow: 0 24px 50px rgba(193, 18, 31, 0.22);
}

.how-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.how-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.how-card:hover .how-media img { transform: scale(1.05); }

.how-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 25, 0.95) 100%);
}

.how-step-num {
  position: absolute;
  left: 22px;
  bottom: 8px;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-hover);
  text-shadow: 0 0 24px rgba(193, 18, 31, 0.5);
}

.how-body { padding: 22px 26px 30px; }
.how-body h3 { font-size: 1.35rem; }
.how-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  margin: 40px 0 0;
  padding: 130px 24px;
  text-align: center;
  background: url('assets/img/cta-bg.jpg') center 35% / cover no-repeat fixed;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 12, 0.35) 30%, rgba(60, 6, 11, 0.55) 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 44px;
  border-radius: 28px;
  background: rgba(16, 14, 16, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(193, 18, 31, 0.4);
  box-shadow: var(--shadow-soft), 0 0 60px rgba(193, 18, 31, 0.12);
}

.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta-inner p { color: var(--muted); margin: 0 0 30px; }

/* ---------- Футер ---------- */

.site-footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(193, 18, 31, 0.2);
  background: #0d0d10;
}

/* ---------- Страница регистрации ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 48px;
  position: relative;
  background: url('assets/img/register-bg.jpg') center 25% / cover no-repeat fixed;
}

.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(193, 18, 31, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.45), rgba(10, 10, 12, 0.7));
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 44px 40px;
  border-radius: 26px;
  background: var(--panel-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), 0 0 50px rgba(193, 18, 31, 0.1);
}

.auth-card h1 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(10, 10, 12, 0.65);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.field input:focus {
  border-color: var(--accent);
  background: rgba(10, 10, 12, 0.85);
  box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.22), 0 4px 18px rgba(193, 18, 31, 0.2);
}

.field .hint {
  display: block;
  font-size: 0.78rem;
  margin-top: 6px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.field.invalid input { border-color: var(--accent-hover); }
.field.invalid .hint { color: var(--accent-hover); }
.field.valid input { border-color: #4a7a3d; }

.email-preview {
  text-align: center;
  font-size: 0.95rem;
  margin: -6px 0 20px;
  color: var(--accent-hover);
  font-weight: 600;
  min-height: 1.4em;
}

#cf-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 0;
}

.auth-card .btn-red { width: 100%; text-align: center; }

.auth-links {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-msg {
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  animation: msgIn 0.4s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.form-msg.error {
  background: rgba(193, 18, 31, 0.12);
  border: 1px solid rgba(193, 18, 31, 0.5);
  color: #f0a3a9;
}

.success-box { text-align: center; animation: msgIn 0.5s ease; }

.success-box .success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text);
  background: radial-gradient(circle at 35% 30%, #e8b9bd, var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 0 24px rgba(193, 18, 31, 0.7), 0 0 60px rgba(193, 18, 31, 0.35);
}

.success-box .email-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 26px;
  word-break: break-all;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 120px;
  }
  .hero h1 { text-align: left; }
  .hero-art img { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .how-media { height: 200px; }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 18px; }
  .auth-card { padding: 32px 24px; }
  .cta-inner { padding: 40px 24px; }
}

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