/* Главная школа — блоки по ТЗ этапа 1 */

.home-page [id] { scroll-margin-top: 88px; }

.home-page .header {
  background: var(--header-bg);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(180px, 58vw);
  object-fit: contain;
}

/* —— Hero —— */
.home-hero {
  position: relative;
  padding: 28px 0 56px;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -10% 40% auto -20%;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(247, 148, 60, 0.18), transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(247, 148, 60, 0.1), transparent 55%);
  pointer-events: none;
}
.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.home-hero__brand {
  margin: 0 0 18px;
}
.home-hero__brand img {
  height: clamp(56px, 8vw, 72px);
  width: auto;
}
.home-hero__slogan {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}
.home-hero__slogan span {
  color: var(--orange-hover);
}
.home-hero__lead {
  margin: 0 0 18px;
  max-width: 36ch;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.55;
}
.home-hero__age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
}
.home-hero__age svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange-hover);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-hero__visual {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: min(440px, 52vh);
  background: var(--orange-wash);
  box-shadow: var(--shadow);
}
.home-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}
.home-hero__leaf {
  position: absolute;
  width: 72px;
  height: 72px;
  opacity: 0.9;
  pointer-events: none;
}
.home-hero__leaf--a {
  left: -18px;
  bottom: 24px;
  transform: rotate(-18deg);
}
.home-hero__leaf--b {
  right: -14px;
  top: 18px;
  transform: rotate(28deg) scaleX(-1);
}

/* —— About —— */
.home-about {
  padding: 28px 0 64px;
}
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}
.home-about__panel {
  background: var(--paper);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 12px 40px rgba(40, 28, 18, 0.05);
  display: grid;
  gap: 18px;
  align-content: start;
}
.home-about__panel h2 {
  margin-bottom: 4px;
  max-width: 18ch;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}
.home-about__panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.home-about__visual {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  min-height: 280px;
  background: var(--orange-wash);
  box-shadow: 0 12px 40px rgba(40, 28, 18, 0.06);
}
.home-about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* —— Outcomes —— */
.home-outcomes {
  padding: 24px 0 72px;
  text-align: center;
}
.home-outcomes__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}
.outcome-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 26px 22px 24px;
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.04);
  border: 1px solid var(--line);
}
.outcome-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-hover);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.outcome-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.outcome-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.outcome-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* —— Programs —— */
.home-programs {
  padding: 24px 0 72px;
}
.home-programs__head {
  text-align: center;
  margin-bottom: 36px;
}
.home-programs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.program-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.program-item:hover {
  border-color: rgba(247, 148, 60, 0.45);
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.06);
}
.program-item--live {
  background: var(--orange-soft);
  border-color: rgba(247, 148, 60, 0.35);
}
.program-item__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-hover);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.program-item--live .program-item__num {
  background: #fff;
}
.program-item__body h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.program-item__body h3 span {
  font-weight: 600;
  color: var(--muted);
}
.program-item__body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.program-item__badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-hover);
}

/* —— Format —— */
.home-format {
  padding: 24px 0 80px;
  text-align: center;
}
.home-format__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.format-card {
  background: var(--orange-wash);
  border-radius: 22px;
  padding: 22px 14px;
  color: var(--ink);
}
.format-card strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.format-card span {
  display: block;
  font-size: 0.92rem;
  color: #4a4e56;
  line-height: 1.4;
}

/* —— Footer —— */
.home-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: #f3f1ee;
}
.home-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  align-items: start;
}
.home-footer__brand p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 32ch;
  font-size: 0.95rem;
}
.home-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.home-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.home-footer__links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.home-footer__links a:hover { color: var(--orange-hover); }
.home-footer__meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.home-footer__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1000px) {
  .home-outcomes__grid { grid-template-columns: 1fr 1fr; }
  .home-format__grid { grid-template-columns: 1fr 1fr; }
  .home-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__visual {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
  .home-about__grid { grid-template-columns: 1fr; }
  .home-about__visual {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  .home-about__panel h2 { max-width: none; }
}

@media (max-width: 640px) {
  .home-outcomes__grid,
  .home-format__grid,
  .home-footer__grid { grid-template-columns: 1fr; }
  .program-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .program-item__num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}
