/* ===== About ===== */
.about { padding: var(--space-section) 0 clamp(56px, 7vw, 96px); }
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text { display: grid; gap: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 12px; }
.facts div { padding-top: 14px; border-top: 4px solid var(--sun); }
.facts div:nth-child(2) { border-color: var(--sky); }
.facts div:nth-child(3) { border-color: var(--crimson); }
.facts div:nth-child(4) { border-color: var(--steppe); }
.facts dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.1; }
.facts dd { color: var(--ink-soft); font-size: var(--step--1); font-weight: 600; }

/* Proverb shaped like a yurt dome */
.proverb {
  position: relative;
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(56px, 7vw, 84px) clamp(28px, 4vw, 48px) clamp(36px, 4vw, 48px);
  border-radius: 50% 50% var(--radius-m) var(--radius-m) / 34% 34% var(--radius-m) var(--radius-m);
  background: var(--sky-ink);
  color: var(--white);
  box-shadow: inset 0 -14px 0 var(--crimson);
}
.proverb__shanyraq { width: clamp(76px, 9vw, 108px); height: clamp(76px, 9vw, 108px); color: var(--sun); animation: spin 60s linear infinite; }
.proverb blockquote { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.2; text-wrap: balance; }
.proverb figcaption { font-size: var(--step--1); font-weight: 700; opacity: .85; padding-bottom: 14px; }

.why__title { margin: clamp(64px, 8vw, 110px) 0 clamp(28px, 4vw, 44px); }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(28px, 4vw, 56px); }
.why__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding-top: 22px; border-top: 2px dashed rgba(34, 25, 94, .18); }
.why__item svg { width: 56px; height: 56px; }
.why__item h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin-bottom: 6px; }
.why__item p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }

/* ===== Groups: arched felt cards with mascots ===== */
.groups { margin-top: clamp(48px, 6vw, 80px); padding: var(--space-section) 0; background: var(--sky-pale); }
.group-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-top: 64px; }
.group {
  --bg: var(--white);
  --fg: var(--night);
  position: relative;
  display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center;
  padding: 0 20px 26px;
  border: 3px solid var(--night);
  border-radius: 999px 999px var(--radius-m) var(--radius-m);
  background: var(--bg); color: var(--fg);
  box-shadow: 0 8px 0 var(--night);
  transition: transform .5s var(--ease-out), box-shadow .3s;
  will-change: transform;
}
.group:hover { box-shadow: 0 14px 0 var(--night); }
.group__mascot { width: 128px; height: 128px; margin-top: -64px; filter: drop-shadow(0 6px 0 rgba(34, 25, 94, .15)); transition: transform .4s var(--ease-bounce); }
.group:hover .group__mascot { animation: jump .8s var(--ease-bounce); }
.group h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; margin-top: 6px; }
.group__age { padding: 3px 12px; border-radius: 999px; background: var(--night); color: var(--white); font-weight: 800; font-size: .9rem; }
.group p:not([class]) { font-size: var(--step--1); line-height: 1.5; margin-top: 6px; }
.group__size { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 700; opacity: .75; }
.group--chick { --bg: #FFE27A; }
.group--lamb { --bg: var(--white); }
.group--foal { --bg: #BFE8AE; }
.group--camel { --bg: #FFCDBF; }
.group--leopard { --bg: var(--night); --fg: var(--white); }
.group--leopard .group__age { background: var(--sun); color: var(--night); }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes jump { 30% { transform: translateY(-18px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } }

/* ===== Day: sun crosses the sky with scroll ===== */
.day { position: relative; height: 420vh; background: var(--day-bg, #FFE8B0); }
.day__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.day__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.day__panel { display: grid; gap: 12px; }
.day__arc { width: 100%; max-width: 540px; color: var(--night); overflow: visible; margin-top: 24px; }
.day__trail { stroke-dasharray: 1; stroke-dashoffset: var(--day-left, 1); }
.day__now { min-height: 9.5em; }
.day__time { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.day__what { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.day__desc { color: var(--ink-soft); max-width: 28em; }
.day__now.is-changing > * { animation: swapIn .5s var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }

.day__list { display: grid; gap: 4px; counter-reset: none; }
.day__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 12px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  opacity: .42;
  transition: opacity .35s, transform .45s var(--ease-out), background .35s;
}
.day__list time { min-width: 4.2em; padding: 3px 0; border-radius: 999px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .35s; }
.day__list li.is-past { opacity: .7; }
.day__list li.is-now { opacity: 1; transform: translateX(10px); background: rgba(255, 255, 255, .7); }
.day__list li.is-now time { background: var(--sun); }

/* ===== Join steps ===== */
.join { padding: var(--space-section) 0; }
.steps-wrap { position: relative; }
.steps-path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.steps-path path { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; }
.js .steps-path path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.js .is-drawn .steps-path path { stroke-dashoffset: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps__n {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 24px 0 10px;
  border: 3px solid var(--night); border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-display); font-weight: 900; font-size: 2rem;
  box-shadow: 0 5px 0 var(--night);
}
.steps li:nth-child(2) .steps__n { background: #9FE3F0; margin-top: 4px; }
.steps li:nth-child(3) .steps__n { background: #FFB3A6; margin-top: 30px; }
.steps li:nth-child(4) .steps__n { background: #BFE8AE; margin-top: 8px; }
.steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.steps p { color: var(--ink-soft); font-size: var(--step--1); }

/* ===== Team ===== */
.team { padding: var(--space-section) 0; background: var(--sun-pale); }
.team__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.person { display: grid; justify-items: center; text-align: center; gap: 4px; }
.person__face {
  position: relative;
  display: grid; place-items: center;
  width: clamp(120px, 13vw, 156px); aspect-ratio: 1; margin-bottom: 14px;
  border: 3px solid var(--night); border-radius: 50%;
  background: var(--c);
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--fg, var(--night));
}
.person__face::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 3px dashed var(--c);
  transition: transform 1.2s var(--ease-out);
}
.person:hover .person__face::after { transform: rotate(120deg); }
.person h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.person p { color: var(--ink-soft); font-size: var(--step--1); }

/* ===== Reviews ===== */
.reviews { padding: var(--space-section) 0; }
.reviews .h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease-out); }
.review { flex: 0 0 100%; display: grid; gap: 24px; padding-right: 8%; }
.review blockquote { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.3; max-width: 30em; text-wrap: pretty; }
.review blockquote::before { content: "«"; color: var(--crimson); }
.review blockquote::after { content: "»"; color: var(--crimson); }
.review figcaption { font-weight: 800; color: var(--sky-deep); }
.slider__controls { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.slider__btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 3px solid var(--night); border-radius: 50%; background: var(--white); cursor: pointer;
  box-shadow: 0 4px 0 var(--night); transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--sun); }
.slider__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
  width: 14px; height: 14px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(34, 25, 94, .2); transition: width .4s var(--ease-out), background .3s;
}
.slider__dots button[aria-current="true"] { width: 36px; background: var(--crimson); }

/* ===== FAQ ===== */
.faq { padding: 0 0 var(--space-section); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 2px dashed rgba(34, 25, 94, .2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2322195E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .4s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 52px 24px 0; color: var(--ink-soft); }
.faq details[open] p { animation: swapIn .45s var(--ease-out); }

/* ===== Contact: under a dome ===== */
.contact {
  padding: calc(var(--space-section) + 20px) 0 var(--space-section);
  background: var(--sky-ink);
  color: var(--white);
  border-radius: 50% 50% 0 0 / clamp(40px, 8vw, 120px) clamp(40px, 8vw, 120px) 0 0;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__text { display: grid; gap: 22px; }
.contact .lead { color: rgba(255, 255, 255, .9); }
.contact__info { display: grid; gap: 16px; margin-top: 10px; font-weight: 700; font-size: var(--step-1); }
.contact__info b { display: block; font-size: var(--step--1); font-weight: 700; opacity: .8; }
.contact__info a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

.form {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 3px solid var(--night); border-radius: 28px;
  background: var(--white); color: var(--night);
  box-shadow: 0 10px 0 var(--night);
}
.form__fields { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field input, .field select {
  width: 100%; padding: 14px 16px;
  border: 2.5px solid #CBC6E8; border-radius: 14px;
  background: var(--white); color: var(--night);
  font: inherit; font-weight: 600;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2322195E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0, 163, 196, .2); }
.field__error { display: none; color: var(--crimson); font-weight: 700; font-size: .9rem; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--crimson); animation: shake .4s; }
.field.is-invalid .field__error { display: block; }
.form__submit { margin-top: 6px; }
.form__done { display: grid; justify-items: center; gap: 8px; padding: 32px 8px; text-align: center; outline: none; }
.form__done:not([hidden]) { animation: popIn .7s var(--ease-bounce); }
.form__done svg { width: 96px; height: 96px; color: var(--crimson); animation: spin 8s linear infinite; }
.form__done-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } }

/* Confetti of ornaments on success */
.confetti { position: fixed; z-index: 80; width: 18px; height: 18px; pointer-events: none; border-radius: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .group-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 64px 20px 24px; margin: 0 -20px;
    scrollbar-width: none;
  }
  .group-list::-webkit-scrollbar { display: none; }
  .group { scroll-snap-align: center; }
}
@media (max-width: 900px) {
  .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .steps-path { display: none; }
  .steps .steps__n { margin-top: 14px; }
  .day { height: 360vh; }
  .day__grid { grid-template-columns: 1fr; }
  .day__list { display: none; }
  .day__arc { max-width: 360px; }
}
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; }
  .facts { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .review { padding-right: 0; }
  .faq details p { padding-right: 0; }
}
