/* New home page concept for Yoga Expert International School. */
:root {
  --home-cream: #f7f3eb;
  --home-gold: #c49a5c;
  --home-ink: #1e2c25;
  --home-line: rgba(30, 44, 37, 0.14);
  --home-muted: #68716a;
  --home-paper: #fffdf8;
  --home-sage: #516653;
  --home-sage-deep: #334536;
  --home-terracotta: #bf6b35;
}

.home-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 154, 92, 0.13), transparent 32rem),
    linear-gradient(180deg, #fffcf6 0%, #f4efe5 54%, #ebe5d7 100%);
  color: var(--home-ink);
  min-height: 100vh;
  overflow: hidden;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.76) 36%, rgba(255, 253, 248, 0.1) 68%),
    var(--hero-image);
  background-position: center, center right;
  background-size: cover, cover;
  display: grid;
  min-height: 940px;
  padding: 184px clamp(24px, 7vw, 120px) 0;
  position: relative;
}

.home-hero-copy { width: min(700px, 100%); }

.home-kicker, .home-section-label {
  color: var(--home-sage);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.home-kicker::after {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 1px;
  margin-left: 22px;
  vertical-align: middle;
  width: 84px;
}

.home-hero h1, .home-intro h2, .home-section-head h2, .home-master h2, .home-film h2, .home-consult h2, .home-footer h2 {
  color: var(--home-ink);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.home-hero h1 {
  font-size: clamp(4.8rem, 8vw, 9.3rem);
  max-width: 690px;
}

.home-hero-copy>p:not(.home-kicker) {
  color: var(--home-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.58;
  margin: 30px 0 0;
  max-width: 560px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}

.home-button {
  align-items: center;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  color: var(--home-ink);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  text-decoration: none;
}

.home-button-primary {
  background: var(--home-sage);
  border-color: var(--home-sage);
  color: #fffdf8;
}

.home-button-quiet {
  background: rgba(255, 253, 248, 0.46);
  gap: 12px;
}

.home-button-quiet span, .home-play span {
  border: 1px solid rgba(51, 69, 54, 0.36);
  border-radius: 50%;
  display: inline-grid;
  font-size: 0.82rem;
  height: 42px;
  place-items: center;
  width: 42px;
}

.home-hero-panel {
  align-self: end;
  background: rgba(247, 243, 235, 0.8);
  border-top: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 96px;
  width: min(1060px, 100%);
}

.home-hero-panel div {
  align-items: center;
  border-right: 1px solid var(--home-line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  min-height: 142px;
  padding: 28px 34px;
}

.home-hero-panel div:last-child { border-right: 0; }

.home-hero-panel strong {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
}

.home-hero-panel span {
  color: var(--home-muted);
  line-height: 1.45;
}

.home-intro, .home-programs, .home-master, .home-film, .home-events, .home-journal, .home-consult, .home-footer {
  margin: 0 auto;
  width: min(1180px, calc(100% - 40px));
}

.home-intro { padding: 118px 0 86px; }

.home-intro-grid {
  display: grid;
  gap: clamp(38px, 7vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
}

.home-intro h2, .home-section-head h2, .home-master h2, .home-film h2, .home-consult h2 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }

.home-intro-text {
  color: var(--home-muted);
  display: grid;
  font-size: 1.12rem;
  gap: 24px;
  line-height: 1.72;
}

.home-intro-text p { margin: 0; }

.home-programs, .home-events, .home-journal {
  border-top: 1px solid var(--home-line);
  padding: 92px 0;
}

.home-section-head {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  margin-bottom: 48px;
}

.home-section-head .home-kicker { align-self: start; }

.home-program-grid, .home-article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-program-card, .home-article-grid article, .home-event-list article, .home-form {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(51, 69, 54, 0.06);
}

.home-program-card {
  min-height: 330px;
  padding: 28px;
}

.home-program-card span, .home-article-grid span {
  color: var(--home-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-program-card h3, .home-event-list h3, .home-article-grid h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
  margin: 46px 0 18px;
  color: #404434;
}

.home-program-card p, .home-event-list p, .home-article-grid a, .home-program-card small {
  color: var(--home-muted);
  line-height: 1.58;
}

.home-program-card small {
  color: var(--home-sage);
  display: block;
  font-weight: 700;
  margin-top: 28px;
}

.home-master {
  align-items: center;
  display: grid;
  gap: clamp(36px, 7vw, 96px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  padding: 62px 0 110px;
}

.home-master-image { position: relative; }

.home-master-image::before {
  border: 1px solid rgba(191, 107, 53, 0.32);
  border-radius: 8px;
  content: "";
  inset: 26px -24px -26px 24px;
  position: absolute;
}

.home-master-image img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  object-position: center;
  position: relative;
  width: 100%;
}

.home-master-copy p:not(.home-kicker), .home-film-copy p, .home-consult p {
  color: var(--home-muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.home-mantra {
  align-items: center;
  border-top: 1px solid var(--home-line);
  display: flex;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
}

.home-mantra span {
  color: var(--home-terracotta);
  font-size: 2.2rem;
}

.home-mantra p {
  color: var(--home-sage) !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.home-film {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  padding: 28px 0 110px;
}

.home-film-media {
  background-image:
    linear-gradient(0deg, rgba(30, 44, 37, 0.16), rgba(30, 44, 37, 0.16)),
    var(--studio-image);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(51, 69, 54, 0.18);
  display: grid;
  min-height: 540px;
  place-items: center;
}

.home-play {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 50%;
  color: var(--home-sage-deep);
  cursor: pointer;
  display: grid;
  height: 96px;
  place-items: center;
  width: 96px;
}

.home-play span {
  border: 0;
  height: auto;
  width: auto;
}

.home-event-list {
  display: grid;
  gap: 14px;
}

.home-event-list article {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 190px 1fr auto;
  padding: 24px 28px;
}

.home-event-list time {
  color: var(--home-sage);
  font-weight: 700;
}

.home-event-list h3 {
  font-size: 1.78rem;
  margin: 0;
}

.home-event-list p {
  margin: 0;
  text-align: right;
}

.home-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-article-grid article {
  min-height: 270px;
  padding: 30px;
}

.home-article-grid h3 { margin-top: 34px; }

.home-article-grid a {
  color: var(--home-sage);
  display: inline-flex;
  font-weight: 700;
  margin-top: 22px;
  text-decoration: none;
}

.home-consult {
  align-items: start;
  border-top: 1px solid var(--home-line);
  display: grid;
  gap: clamp(36px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  padding: 112px 0;
}

.home-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.home-form label {
  color: var(--home-sage);
  display: grid;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-form input, .home-form textarea {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--home-line);
  border-radius: 6px;
  color: var(--home-ink);
  font: inherit;
  width: 100%;
}

.home-form input {
  min-height: 52px;
  padding: 0 16px;
}

.home-form textarea {
  min-height: 116px;
  padding: 14px 16px;
  resize: vertical;
}

.home-form button {
  cursor: pointer;
  width: 100%;
}

.home-footer {
  backdrop-filter: blur(22px) saturate(125%);
  background:
    radial-gradient(circle at 86% 12%, rgba(200, 168, 90, 0.14), transparent 16rem),
    rgba(30, 35, 20, 0.92);
  border: 1px solid rgba(233, 226, 210, 0.2);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(21, 23, 13, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr) minmax(180px, 0.5fr);
  margin: 0 auto 34px;
  padding: 52px;
  width: min(1180px, calc(100% - 40px));
}

.home-footer-brand img {
  filter: saturate(0) brightness(0) invert(1) opacity(0.9);
  height: auto;
  width: min(280px, 100%);
}

.home-footer p, .home-footer a {
  color: var(--color-taupe-300);
  line-height: 1.6;
}

.home-footer h2 {
  color: var(--color-bone-100);
  font-size: clamp(2rem, 4vw, 4.2rem);
  max-width: 560px;
}

.home-footer-links {
  align-content: start;
  display: grid;
  gap: 12px;
}

.home-footer-links a { text-decoration: none; }

.home-footer-links a:hover { color: var(--color-amber-400); }

@media (max-width: 980px) {
  .home-hero {
    background-image:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.84) 42%, rgba(255, 253, 248, 0.28) 100%),
      var(--hero-image);
    background-position: center, center bottom;
    min-height: 860px;
    padding-top: 144px;
  }
  .home-hero h1 { font-size: clamp(4rem, 14vw, 7rem); }
  .home-hero-panel, .home-intro-grid, .home-section-head, .home-master, .home-film, .home-consult, .home-footer { grid-template-columns: 1fr; }
  .home-program-grid, .home-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero-panel div {
    border-bottom: 1px solid var(--home-line);
    border-right: 0;
  }
  .home-event-list article {
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .home-event-list p { text-align: left; }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 780px;
    padding: 124px 20px 0;
  }
  .home-actions { display: grid; }
  .home-hero-panel, .home-program-grid, .home-article-grid { grid-template-columns: 1fr; }
  .home-hero-panel div {
    min-height: 108px;
    padding: 20px;
  }
  .home-intro, .home-programs, .home-master, .home-film, .home-events, .home-journal, .home-consult { padding-block: 70px; }
  .home-film-media { min-height: 360px; }
  .home-footer {
    border-radius: 20px;
    padding: 30px 24px;
    width: calc(100% - 40px);
  }
}

/* Ответ формы консультации */
.home-form-note {
  color: var(--home-sage-deep);
  font-size: 0.92rem;
  grid-column: 1 / -1;
  margin: 0;
}

.home-form-note.is-error { color: var(--home-terracotta); }
