/* Стили только для пробного редизайна главной (home.html) */

.home-page {
  --home-teal: #0d9488;
  --home-teal-dark: #0f766e;
  --home-coral: #f97316;
  --home-ink: #0f172a;
  --home-muted: #64748b;
  --home-cream: #fffbeb;
  --home-sky: #ecfeff;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--home-ink);
}

.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: "Nunito", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* —— Hero —— */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #042f2e 0%, #0f766e 42%, #14b8a6 100%);
  color: #fff;
}

.home-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.home-hero__blob--1 {
  width: 280px;
  height: 280px;
  background: #fbbf24;
  top: -80px;
  right: 10%;
}

.home-hero__blob--2 {
  width: 200px;
  height: 200px;
  background: #818cf8;
  bottom: -40px;
  left: 5%;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1fr 1fr;
    padding: 4.5rem 1.5rem 5rem;
    gap: 3rem;
  }
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.home-hero__title span {
  color: #fde68a;
}

.home-hero__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.home-btn:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 2px;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn--primary {
  background: #fff;
  color: var(--home-teal-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-btn--primary:hover {
  background: #f0fdfa;
}

.home-btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-btn--dark {
  background: var(--home-teal-dark);
  color: #fff;
}

.home-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.home-hero__visual .mascot__img--hero {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  animation: home-float 5s ease-in-out infinite;
}

@keyframes home-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Stats */
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  text-align: center;
}

.home-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-stat__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* —— Sections —— */
.home-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.home-section--cream {
  background: var(--home-cream);
}

.home-section--sky {
  background: var(--home-sky);
}

.home-section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.home-section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.home-section__head p {
  color: var(--home-muted);
  line-height: 1.6;
}

.home-guest-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--home-muted);
  margin: -1.5rem auto 1.5rem;
  max-width: 32rem;
}

/* Subjects */
.home-subjects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-subjects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-subjects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-subject {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 2px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 100%;
}

a.home-subject:hover {
  border-color: var(--home-teal);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
  transform: translateY(-3px);
}

.home-subject--locked {
  cursor: default;
  opacity: 0.92;
}

.home-subject__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-subject__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.home-subject:nth-child(3n + 1) .home-subject__icon {
  background: #ccfbf1;
  color: #0f766e;
}

.home-subject:nth-child(3n + 2) .home-subject__icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.home-subject:nth-child(3n) .home-subject__icon {
  background: #ffedd5;
  color: #c2410c;
}

.home-subject__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.home-subject__meta {
  font-size: 0.8rem;
  color: var(--home-muted);
}

.home-subject__cta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-teal);
}

/* Steps */
.home-steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-step {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.home-step img {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

.home-step h3 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.home-step p {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.55;
}

/* Features */
.home-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-feature {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.home-feature img {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}

.home-feature h3 {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.home-feature p {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.55;
}

/* CTA band */
.home-cta {
  background: linear-gradient(120deg, #1e1b4b, #4338ca);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.home-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.home-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Приветствие за визит (раз в день) */
.home-welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.home-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.home-welcome__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.home-welcome__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f1f5f9;
  border-radius: 9999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.home-welcome__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.home-welcome__text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.home-welcome__rewards {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 0.75rem;
}

.home-welcome__ach {
  font-size: 0.85rem;
  color: #0369a1;
  margin-bottom: 1rem;
}

.home-welcome__btn {
  width: 100%;
}
