/* Mushroomer — главная (отдельно от юридических страниц) */

.page-home {
  --home-bg: #f3effa;
  --home-ink: #1a0e30;
  --home-muted: #5e4a7a;
  --home-purple: #4a1f8c;
  --home-purple-deep: #2d124f;
  --home-glow: #b894f0;
  --home-mint: #8fd4a0;
  --home-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --home-sans: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  margin: 0;
  font-family: var(--home-sans);
  color: var(--home-ink);
  background: var(--home-bg);
  line-height: 1.6;
}

.page-home a {
  color: var(--home-purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-home a:hover {
  color: var(--home-glow);
}

[hidden] {
  display: none !important;
}

/* Фоновые пятна */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-bg::before,
.home-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.home-bg::before {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, #9e6ee8 0%, transparent 68%);
}

.home-bg::after {
  width: min(55vw, 400px);
  height: min(55vw, 400px);
  bottom: 8%;
  left: -12%;
  background: radial-gradient(circle, #7bc98a55 0%, transparent 70%);
}

.home-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Навигация */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}

.home-logo {
  font-family: var(--home-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.home-logo a {
  text-decoration: none;
  color: var(--home-ink);
}

.home-nav-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.home-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.home-nav-links a {
  text-decoration: none;
  color: var(--home-muted);
}

.home-nav-links a:hover {
  color: var(--home-ink);
}

.lang-switch {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(45, 18, 79, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 18, 79, 0.06);
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--home-muted);
}

.lang-switch button.lang-btn-active {
  background: var(--home-purple-deep);
  color: #fff;
}

/* Hero — split, тёмный блок */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, var(--home-purple-deep) 0%, #3d1a6e 48%, #5a2d9e 100%);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #f8f4ff;
  box-shadow: 0 24px 64px rgba(45, 18, 79, 0.35);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .home-hero {
    grid-template-columns: 1.05fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--home-mint);
  border-radius: 2px;
}

.home-hero h1 {
  font-family: var(--home-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.home-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32em;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: #fff;
  color: var(--home-purple-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-store:hover {
  color: var(--home-purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.home-hero .btn-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 0.95;
}

.home-hero .btn-text:hover {
  color: #fff;
  opacity: 1;
  border-bottom-color: #fff;
}

/* Иконка приложения */
.home-hero-visual {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.2) 0%, transparent 58%);
  pointer-events: none;
}

.home-app-icon {
  position: relative;
  z-index: 1;
  width: min(260px, 58vw);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

/* Полоска принципов */
.home-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 2.5rem 0 0;
  border: 1px solid rgba(45, 18, 79, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.home-principles div {
  padding: 1.25rem 1.35rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--home-ink);
  border-right: 1px solid rgba(45, 18, 79, 0.08);
}

.home-principles div:last-child {
  border-right: none;
}

.home-principles strong {
  display: block;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  margin-bottom: 0.25rem;
}

/* Список возможностей */
.home-section-title {
  margin: 3.5rem 0 1.5rem;
  font-family: var(--home-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(45, 18, 79, 0.08);
}

.home-feature:first-child {
  border-top: 1px solid rgba(45, 18, 79, 0.08);
}

.home-feature::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: 0.15rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--home-purple), var(--home-glow));
  box-shadow: 0 0 0 3px rgba(101, 53, 178, 0.12);
}

.home-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--home-muted);
  max-width: 52em;
}

/* Дисклеймер */
.home-disclaimer {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--home-mint);
  background: rgba(143, 212, 160, 0.12);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  color: var(--home-muted);
}

/* Футер */
.home-footer {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(45, 18, 79, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--home-muted);
}

.home-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-footer nav a {
  text-decoration: none;
  color: var(--home-muted);
  font-weight: 500;
}

.home-footer nav a:hover {
  color: var(--home-ink);
}

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

  .home-principles div {
    border-right: none;
    border-bottom: 1px solid rgba(45, 18, 79, 0.08);
  }

  .home-principles div:last-child {
    border-bottom: none;
  }

}
