/* 1) Нормальная модель ширины */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;               
    overscroll-behavior-x: none;   
    overscroll-behavior-y: auto;  
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@supports not (overflow-x: clip) {
    html, body {
        overflow-x: hidden;
    }
}

.hero {
  padding: 28px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 560px);
  justify-content: space-between;
  gap: 32px;
  align-items: stretch;
}


.hero__left {
  min-width: 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__schoolname {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  transform: none;
}

.hero__form-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
}

.hero__form-head {
  margin-bottom: 14px;
  text-align: center;
}

.hero__form-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  letter-spacing: 0.02em;
}

.hero__form-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4b46, #E53935);
}

.hero__form-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6f6f6f;
  max-width: 420px;
  margin-inline: auto;
}

.hero__right {
  min-width: 0;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.hero__preview {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: none;
}

.hero-contacts-card {
  width: min(520px, 100%);
  margin-inline: auto;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  margin-top: auto;
}

.hero-contacts-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  margin: -4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.hero-contacts-card__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
}

.hero-contact {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #dedede;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.hero-contact svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  transition: transform .18s ease;
}

.hero-contact--vk {
  color: #0077FF;
}

.hero-contact--yandex {
  color: #FF0000;
}

.hero-contact:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .12);
  border-color: rgba(0, 0, 0, .16);
}

.hero-contact:hover svg {
  transform: scale(1.06);
}

.hero-contact:active {
  transform: scale(.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .10);
}

.hero-contact:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 95, 46, .18), 0 12px 22px rgba(0, 0, 0, .12);
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__left,
  .hero__right {
    max-width: 540px;
    margin: 0 auto;
  }

  .hero__preview {
    max-width: 540px;
  }

  .hero-contacts-card {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 18px 0 28px;
  }

  .hero__form-card {
    padding: 14px;
  }

  .hero-contacts-card__links {
    gap: 20px;
  }
}

.content {
  text-align: center;
}

.title {
  position: relative;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;

  display: inline-block;

  color: transparent;
  -webkit-text-fill-color: transparent;

  background-image: linear-gradient(90deg, #ff4b46 0%, #E53935 25%, #ff6f60 50%, #ff8a80 75%, #E53935 100%);
  -webkit-background-clip: text;
  background-clip: text;

  background-size: 400% 100%;
  background-position: 0% 50%;
  animation: title-gradient 6s ease-in-out infinite;

  overflow: hidden;
}

@keyframes title-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6f6f6f;
  max-width: 420px;
  margin-inline: auto;
}
.hero__season-title-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 18px;
}

.hero__season-title {
  display: inline-block;
  max-width: 100%;

  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;

  white-space: nowrap;     /* 1 строка */
  overflow: visible;       /* НЕ обрезаем */
  text-overflow: unset;    /* убираем троеточие */

  font-family: "Cera Condensed Pro", "Montserrat", sans-serif;
  font-size: clamp(40px, 4vw, 44px);  /* на узких экранах уменьшается */
  font-weight: 900;

  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    90deg,
    #ff4b46 0%,
    #E53935 40%,
    #ff6f60 70%,
    #E53935 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

/* дополнительная страховка для очень узких экранов */
@media (max-width: 360px) {
  .hero__season-title {
    letter-spacing: 0.01em;
    font-size: 30px;
  }
}
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.aurora__item {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  filter: blur(18px);
  mix-blend-mode: overlay;
  opacity: .9;
  animation: aurora-border 6s ease-in-out infinite;
}

.aurora__item:nth-child(1) {
  background: rgba(255, 75, 70, .65);
  top: -65%;
  left: -18%;
  animation: aurora-border 6s ease-in-out infinite, aurora-1 14s ease-in-out infinite alternate;
}

.aurora__item:nth-child(2) {
  background: rgba(229, 57, 53, .75);
  top: -45%;
  right: -10%;
  animation: aurora-border 6s ease-in-out infinite, aurora-2 16s ease-in-out infinite alternate;
}

.aurora__item:nth-child(3) {
  background: rgba(255, 138, 128, .65);
  bottom: -45%;
  left: -10%;
  animation: aurora-border 6s ease-in-out infinite, aurora-3 12s ease-in-out infinite alternate;
}

.aurora__item:nth-child(4) {
  background: rgba(255, 111, 96, .65);
  bottom: -65%;
  right: -18%;
  animation: aurora-border 6s ease-in-out infinite, aurora-4 18s ease-in-out infinite alternate;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


@keyframes aurora-1 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(70%, 85%)
  }
}

@keyframes aurora-2 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(-70%, 95%)
  }
}

@keyframes aurora-3 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(80%, -85%)
  }
}

@keyframes aurora-4 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(-80%, -95%)
  }
}

@keyframes aurora-border {
  0% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%
  }

  25% {
    border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%
  }

  50% {
    border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%
  }

  75% {
    border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%
  }

  100% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%
  }
}

@media (max-width:420px) {
  .title {
    font-size: 20px;
  }

  .aurora__item {
    width: 200px;
    height: 200px;
    filter: blur(16px);
  }
}


.lead-form {
  margin: 0;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.lead-form__field--full {
  grid-column: 1 / -1;
}

.lead-form__label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #151515;
  margin-bottom: 6px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.lead-form textarea {
  height: auto;
  min-height: 78px;
  max-height: 120px;
  overflow-y: auto;
  resize: vertical;
  padding-top: 10px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.lead-form__price {
  margin-top: 6px;
  font-size: 12px;
  color: #6f6f6f;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.lead-form__price::before {
  content: "Стоимость:";
  color: #8a8a8a;
}

.lead-form__actions {
  grid-column: 1 / -1;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.lead-form__submit {
  width: fit-content;
  min-width: 180px;
  height: 44px;

  cursor: pointer;
  border-radius: 999px;
  border: 0;

  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;

  background: linear-gradient(15deg,
      #E53935,
      #ff4b46,
      #ff6f60,
      #ff8a80,
      #ff6f60,
      #ff4b46,
      #E53935);
  background-size: 320% 100%;
  background-position: left center;

  box-shadow: 0 10px 18px rgba(229, 57, 53, 0.26);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);

  transition:
    background-position 0.35s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.lead-form__submit:hover {
  filter: brightness(0.98);
  box-shadow: 0 12px 22px rgba(229, 57, 53, 0.32);
  transform: translateY(-1px);
}

.lead-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(229, 57, 53, 0.22);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  line-height: 1.35;
  color: #444;
}

.lead-form__consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-form__consent-box {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lead-form__consent-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #E53935;
  border-bottom: 2px solid #E53935;
  border-radius: 1px;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.lead-form__consent input:checked+.lead-form__consent-box {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .14);
}

.lead-form__consent input:checked+.lead-form__consent-box::after {
  transform: rotate(-45deg) scale(1);
}

.lead-form__consent:hover .lead-form__consent-box {
  border-color: #bdbdbd;
}

.lead-form__consent-text {
  max-width: 520px;
}

.lead-form__consent-text a {
  color: #E53935;
  text-decoration: underline;
}

.lead-form__consent-text a:hover {
  text-decoration: none;
}

.lead-form__consent.is-error .lead-form__consent-box {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .18);
}

.lead-form__consent-error {
  display: none;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #E53935;
}

.lead-form__consent.is-error .lead-form__consent-error {
  display: block;
}

@media (max-width: 640px) {
  .lead-form__consent {
    gap: 8px;
    font-size: 11.5px;
  }

  .lead-form__consent-box {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 2px;
  }

  .lead-form__consent-box::after {
    width: 8px;
    height: 4px;
    border-left: 2px solid #E53935;
    border-bottom: 2px solid #E53935;
  }
}

#id_consent_personal.is-error {
  outline: 2px solid #e53935;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* по центру на мобильных */
    gap: 24px;
    /* тот же отступ */
    min-width: 0;
  }

  .hero__preview,
  .hero-contacts-card {
    max-width: 560px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .lead-form__grid {
    grid-template-columns: 1fr;
  }
}

.programs {
  padding: 40px 0;
}

.home-programs {
  margin-top: 40px;
  margin-bottom: 60px;
  --accent: #E53935;
}

.home-programs__title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.home-programs__subtitle {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}

/* tabs */
.home-programs__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.home-programs__tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #d3d3d3;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, opacity .15s ease;
  will-change: transform;
}

.home-programs__tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 650;
  box-shadow: 0 10px 20px rgba(229, 57, 53, .18);
}

.home-programs__tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
  border-color: rgba(0, 0, 0, .18);
}

.home-programs__tab:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.home-programs__tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .18), 0 10px 22px rgba(0, 0, 0, .10);
}

/* lists */
.home-programs__lists {
  margin-bottom: 24px;
}

.home-programs__list.is-hidden {
  display: none;
}

/* carousel */
.home-programs__carousel {
  position: relative;
  padding: 0 56px;
}

.home-programs__viewport{
  overflow-y: hidden;
  overflow-x: clip;  /* или hidden */
  padding: 0;
}
@supports not (overflow: clip){
  .home-programs__viewport{ overflow-x: hidden; }
}

.home-programs__cards{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 0;
}


.home-programs__cards::-webkit-scrollbar {
  display: none;
}

/* card */
.home-programs__card {
  flex: 0 0 calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  scroll-snap-align: start;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.home-programs__card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.home-programs__card-desc {
  font-size: 12px;
  line-height: 1.35;
  color: #2b2b2b;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* если short_description выводится через linebreaksbr (<br>) — выглядит нормально */
.home-programs__card-desc br {
  content: "";
}

.home-programs__card-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}

.home-programs__card-price-label {
  font-size: 12px;
  color: #6f6f6f;
  font-weight: 400;
}

.home-programs__card-price-value {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.home-programs__card-more {
  width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  margin-top: auto;
}

.home-programs__card-more:hover {
  border-color: rgba(0, 0, 0, .22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.home-programs__card-more:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
}

/* nav */
.home-programs__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  z-index: 5;
  user-select: none;
}

.home-programs__nav--prev {
  left: 8px;
}

.home-programs__nav--next {
  right: 8px;
}

.home-programs__nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* controls row (as in your HTML) */
.home-programs__controls-row {
  display: none;
  /* on desktop arrows are absolute; show on mobile */
}

/* modal */
.home-programs__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
}

.home-programs__modal.is-open {
  display: flex;
}

.home-programs__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.home-programs__modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(820px, 94vw);
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.home-programs__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #ececec;
}

.home-programs__modal-head {
  min-width: 0;
}

.home-programs__modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.home-programs__modal-sub {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.home-programs__modal-sub-label {
  font-size: 12px;
  color: #6f6f6f;
  font-weight: 400;
}

.home-programs__modal-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.home-programs__modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.home-programs__modal-content {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 18px;
}

.home-programs__modal-content::-webkit-scrollbar {
  width: 10px;
}

.home-programs__modal-content::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 999px;
}

.home-programs__modal-content::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 999px;
}

.home-programs__modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.home-programs__modal-body {
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* if you ever switch modal description to linebreaks (with <p>) */
.home-programs__modal-body p {
  margin: 0 0 10px;
}

.home-programs__modal-body p:last-child {
  margin-bottom: 0;
}

.home-programs__card-desc {
  position: relative;
}

.home-programs__readmore {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-programs__readmore:hover {
  opacity: .85;
}

.home-programs__readmore.is-hidden {
  display: none;
}

.home-programs__card-desc.is-expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.home-programs__modal-body p {
  margin: 0 0 10px;
}

.home-programs__modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .home-programs__card {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .home-programs__carousel {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
  }

  .home-programs__viewport {
    width: min(520px, 100%);
  }

  .home-programs__cards {
    width: 100%;
    padding-right: 0;
  }

  .home-programs__card {
    flex-basis: 100%;
    max-width: 100%;
  }

  /* hide absolute arrows, show bottom controls row */
  .home-programs__nav {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .home-programs__nav--prev,
  .home-programs__nav--next {
    left: auto;
    right: auto;
  }

  .home-programs__controls-row {
    width: min(520px, 100%);
    display: flex;
    justify-content: center;
    gap: 14px;
  }

  .home-programs__modal-dialog {
    width: 94vw;
    max-height: 82vh;
    border-radius: 14px;
  }

  .home-programs__modal-header {
    padding: 16px 14px 10px;
  }

  .home-programs__modal-content {
    padding: 12px 14px 14px;
  }
}


.home-teachers {
  margin: 60px 0;
}

.home-teachers__title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.home-teachers__card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.home-teachers__content {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr;
  gap: 18px;
  align-items: stretch;
}

.home-teachers__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 8px 6px;
}

.home-teachers__text {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  color: #111;
}

.home-teachers__thumbs {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-left: 2px;
}

.home-teachers__thumb {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
  box-shadow: 0 0 0 1px #d8d8d8;
  margin-left: -10px;
  flex-shrink: 0;
}

.home-teachers__thumb:first-child {
  margin-left: 0;
}

.home-teachers__thumb.is-active {
  box-shadow: 0 0 0 2px #e53935;
}

.home-teachers__thumb-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.home-teachers__profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 240px;
}

.home-teachers__photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.home-teachers__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}


.home-teachers__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-teachers__name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111;
}

.home-teachers__bio {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #2b2b2b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-teachers__info.is-collapsed .home-teachers__bio {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.home-teachers__info.is-expanded .home-teachers__bio {
  display: block;
  line-clamp: none;
}

.home-teachers__more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #e53935;
}

.home-teachers__more.is-hidden {
  display: none;
}

.home-teachers__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.home-teachers__badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f2f2f2;
  font-size: 12px;
  line-height: 1;
}

.home-teachers__badge-label {
  color: #7a7a7a;
  font-weight: 400;
}

.home-teachers__badge-value {
  font-weight: 500;
  color: #111;
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .home-teachers__content {
    grid-template-columns: 1fr;
  }

  .home-teachers__left {
    min-height: unset;
    padding: 4px 2px;
  }

  .home-teachers__text {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .home-teachers__profile {
    grid-template-columns: 1fr;
  }

  .home-teachers__photo-wrap {
    height: 320px;
  }
}

@media (max-width: 980px) {
  .home-teachers__card {
    max-width: 100%;
    border-radius: 12px;
  }
}

.about {
  padding: 26px 0 18px;
}

.about__title {
  text-align: center;
  font-weight: 900;
  letter-spacing: .08em;
  color: #111;
  margin: 0 0 14px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.about-card{
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .18);

  overflow: clip;

  min-height: 148px;
  padding: 14px 14px 12px;

  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.10);
  color: #fff;
  background: #F1363E;

  isolation: isolate;
}

@supports not (overflow: clip){
  .about-card{
    overflow: hidden;
  }
}

.about-card::before,
.about-card::after{
  contain: paint;
}

.about-card--achievements {
  background: #F1363E;
}

.about-card--dream {
  background: #F1363E;
}

.about-card--camp {
  background: #F1363E;
}

.about-card::before{
  content:"";
  position:absolute;
  inset: -40%;          /* даёт запас для свечения */
  left: auto;
  top: auto;
  width: auto;
  height: auto;

  transform: none;      /* убрать translate(-50%, -50%) */
  filter: blur(12px);
  opacity: .85;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(45deg,
      rgba(255, 255, 255, 0) 0 42%,
      rgba(255, 255, 255, .45) 50%,
      rgba(255, 255, 255, 0) 58% 100%),
    linear-gradient(-45deg,
      rgba(255, 255, 255, 0) 0 42%,
      rgba(255, 255, 255, .45) 50%,
      rgba(255, 255, 255, 0) 58% 100%),
    radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, .65) 0%,
      rgba(255, 255, 255, .30) 22%,
      rgba(255, 255, 255, .10) 38%,
      rgba(255, 255, 255, 0) 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}


@keyframes aboutDreamBreath {
  0% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(.86) saturate(1.08);
  }

  100% {
    filter: brightness(1) saturate(1);
  }
}

@keyframes aboutDreamGlow {
  0% {
    opacity: .78;
  }

  50% {
    opacity: .95;
  }

  100% {
    opacity: .78;
  }
}

/* включаем "дыхание" только когда JS поставил is-shine */
.about-card--dream.is-shine {
  animation: aboutDreamBreath 7s ease-in-out infinite;
  will-change: filter;
}

/* блик — это твой большой ::before (он как раз даёт белое свечение) */
.about-card--dream.is-shine::before {
  animation: aboutDreamGlow 7s ease-in-out infinite;
  will-change: opacity;
}

.about-card__body {
  position: relative;
  z-index: 2;
}

.about-card--dream.is-shine .about-card__body {
  filter: none;
}


.about-card--achievements::before { transform: rotate(18deg); }
.about-card--dream::before        { transform: rotate(-12deg); }
.about-card--camp::before         { transform: rotate(8deg); }


.about-card__text--fugaz {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.about-card--achievements .about-card__text.about-card__text--fugaz {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}


.about .about-card__text {
  font-family: "Fugaz One", cursive;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .about-card__text--fugaz {
    font-size: 16px;
    line-height: 1.4;
  }
}

.about-card__text--fugaz {
  letter-spacing: .02em;
}


.about-card__medal-trigger {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 56px;
  height: 56px;
  z-index: 3;

  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.about-card__medal-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  z-index: 2;
  pointer-events: none;
  transform-origin: center top;
}

.about-card__medal-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  filter: blur(8px);
  transform: none !important;
}

.about-card__medal {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
  transform-origin: center top;
}

.about-card__medal.swing {
  animation: pendulumSwing 1s ease-out;
}

@keyframes pendulumSwing {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(20deg);
  }

  35% {
    transform: rotate(-18deg);
  }

  55% {
    transform: rotate(12deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  90% {
    transform: rotate(4deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.about-card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, .28) 50%,
      rgba(255, 255, 255, 0) 58%);

  transform: translateX(-80%) rotate(8deg);
  opacity: 0;
}

@keyframes aboutShineOnce {
  0% {
    transform: translateX(-80%) rotate(8deg);
    opacity: 0;
  }

  15% {
    opacity: .9;
  }

  100% {
    transform: translateX(80%) rotate(8deg);
    opacity: 0;
  }
}

.about-card.is-shine::after {
  animation: aboutShineOnce 1.8s ease-out forwards;
}

@keyframes aboutShine {
  0% {
    transform: translateX(-70%) rotate(8deg);
  }

  100% {
    transform: translateX(70%) rotate(8deg);
  }
}

.about-card--dream.is-animated::after {
  animation: aboutShine 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .about-card.is-shine::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.about-card--dream {
  background:
    radial-gradient(circle at 55% 45%,
      rgba(255, 255, 255, .35),
      rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg,
      #F1363E,
      #E1262F);
}


.about-card--dream.is-shine {
  animation: dreamPulse 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .about-card--dream.is-shine {
    animation: none !important;
    filter: none !important;
  }

  .about-card--dream.is-shine::before {
    animation: none !important;
    opacity: .85 !important;
  }
}

.about-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-card__text {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .45),
    0 2px 8px rgba(0, 0, 0, .25);
}

.about-card__heading {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.15;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


.about-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  max-width: 92%;
  opacity: .95;
}

.about-card__btn {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .92);
  color: #111;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
  position: relative;
  z-index: 4;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  overflow: hidden;
}


.about-card__btn::after {
  content: "";
  position: absolute;
  inset: -2px -40%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .65) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-60%);
  opacity: 0;
}

.about-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .98);
}

.about-card__btn:hover::after {
  opacity: 1;
  animation: aboutBtnShine .9s ease-out forwards;
}

.about-card__btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
}

.about-card__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 14px 24px rgba(0, 0, 0, .18);
}

@keyframes aboutBtnShine {
  0% {
    transform: translateX(-60%);
  }

  100% {
    transform: translateX(60%);
  }
}


.about-card--wide {
  grid-column: 1 / -1;
  min-height: 132px;
}

.about-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.about-modal.is-open {
  display: flex;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.about-modal__dialog {
  position: relative;
  width: min(920px, 94vw);
  max-height: 82vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.about-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.about-modal__head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #ececec;
}

.about-modal__title {
  font-size: 18px;
  font-weight: 700;
}

.about-modal__content {
  padding: 14px 18px 18px;
  overflow: auto;
}

.about-modal__body {
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  margin-bottom: 12px;
}

.about-modal__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-modal__figure {
  margin: 0;
}

.about-modal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.about-modal__caption {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

.is-modal-open {
  overflow: hidden;
}

.about-card__text,
.about-modal__body {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}



@media (max-width: 740px) {
  .about-modal__gallery {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 980px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .about-card {
    min-height: 150px;
  }

  .about-card__heading {
    font-size: 15px;
  }

  .about-card__text {
    font-size: 12.5px;
  }
}

.home-reviews {
  padding: 56px 0;
  background: transparent;
}

.home-reviews__title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.home-reviews__card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.home-reviews__sources {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  justify-content: center;
  align-items: start;
  gap: 120px;
  margin: 0 auto 18px;
  padding-top: 8px;
}

.home-reviews__source {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit !important;
}

.home-reviews__source--empty {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  min-height: 56px;
  border: 1px dashed #e0e0e0;
  border-radius: 12px;
}

.home-reviews__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.home-reviews__brand-name,
.home-reviews__brand-name--vk {
  display: none;
}

.home-reviews__brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}

.home-reviews__brand-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  fill: currentColor !important;
}

.home-reviews__brand-icon--yandex {
  background: #e53935;
  font-weight: 900;
}

.home-reviews__brand-icon--vk {
  background: #0077ff;
}

.home-reviews__source-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-reviews__stars {
  color: #f6b300;
  letter-spacing: 1px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.home-reviews__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-reviews__rating-value {
  font-weight: 900;
  font-size: 17px;
}

.home-reviews__rating-count {
  font-size: 12px;
  color: #777;
}

.home-reviews__subtitle {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .2px;
  color: #111;
  margin: 18px 0 16px;
}

.home-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 18px;
}

.home-reviews__dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid #e53935;
  background: #fff;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #e53935;
  text-align: center;

  /* Обновлённая часть — идеальное центрирование */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  appearance: none;
  -webkit-appearance: none;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.home-reviews__dot:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(229, 57, 53, .18);
}

.home-reviews__dot.is-active {
  background: #e53935;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .18), 0 8px 18px rgba(229, 57, 53, .28);
}

.home-reviews__viewport {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.home-reviews__slide.is-hidden {
  display: none;
}

.home-reviews__img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.home-reviews__empty {
  text-align: center;
  color: #888;
  padding: 28px 10px;
}

@media (max-width: 820px) {
  .home-reviews__sources {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }

  .home-reviews__source {
    width: 100%;
  }

  .home-reviews__card {
    padding: 16px;
  }
}

.home-life__title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .8px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-life__card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

/* Tabs */
.home-life__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.home-life__tab {
  border: 1px solid #b9b9b9;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}


.home-life__tab:hover {
  transform: translateY(-1px);
}

.home-life__tab.is-active {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
  font-weight: 650;
}


/* Viewer */
.home-life__viewer {
  display: grid;
  grid-template-columns: 42px auto 42px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Рамка ровно по фото (без внутренних отступов) */
.home-life__frame {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;

  width: fit-content;
  max-width: 100%;

  display: inline-block;
  padding: 0;
  /* важно: убрали отступ */
}

.home-life__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;

  display: block;
  /* важно: убирает “зазор” снизу */
  border-radius: 0;
  /* рамка теперь на .frame, поэтому здесь 0 */
  background: #fff;
}

.home-life__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #444;
  padding: 16px;
  text-align: center;
}

.home-life__empty[hidden] {
  display: none !important;
}

.home-life__arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  background: #fff;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  transition: opacity .15s ease;
}

.home-life__arrow.is-disabled {
  opacity: .35;
  pointer-events: none;
}


.home-life__caption {
  margin-top: 10px;
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;

  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: .2px;
  color: #222;
}

/* 1) Фильтры (табы) чуть меньше по умолчанию */
.home-life__tabs {
  gap: 8px;
  /* было 10px */
  margin-bottom: 10px;
  /* было 12px */
}

.home-life__tab {
  padding: 6px 12px;
  /* было 7px 14px */
  font-size: 12px;
  /* добавили */
  line-height: 1;
  /* чтобы не раздувало */
  border-radius: 999px;
}

/* 2) На телефоне: табы компактнее, фото шире, стрелки чуть меньше */
@media (max-width: 640px) {

  .home-life__tabs {
    gap: 6px;
    margin-bottom: 10px;
  }

  .home-life__tab {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
  }

  /* уменьшаем ширину колонок со стрелками, чтобы фото стало больше */
  .home-life__viewer {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    /* было 42px auto 42px */
    gap: 8px;
  }

  /* делаем рамку и фото максимально “широкими” в пределах карточки */
  .home-life__frame {
    width: 100%;
    display: block;
  }

  .home-life__img {
    width: 100%;
    height: auto;
    max-height: 460px;
    /* можно убрать, если хочешь без ограничений */
    object-fit: cover;
    /* если фото разного размера и хочется “полнее” */
  }

  .home-life__arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .home-life__caption {
    font-size: 12px;
    margin-top: 8px;
  }
}


.home-faq {
  padding: 46px 0;
}

.home-faq__title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .8px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-faq__list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-faq__item {
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.home-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.home-faq__q-text {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.home-faq__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex: 0 0 30px;
  border: 1.5px solid #e53935;
  background: #fff;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-faq__icon::before,
.home-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #e53935;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.home-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.home-faq__q:hover .home-faq__icon {
  box-shadow: 0 6px 14px rgba(229, 57, 53, .18);
  transform: translateY(-1px);
}

.home-faq__a {
  overflow: hidden;
  transition: all .28s ease;
  max-height: 0;
}

.home-faq__item.is-open .home-faq__a {
  max-height: 500px;
  /* достаточно большое значение, чтобы вместить любой ответ */
}

.home-faq__a-inner {
  padding: 0 22px 22px;
  font-size: 13px;
  line-height: 1.45;
  color: #2b2b2b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-faq__item.is-open .home-faq__icon {
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .18), 0 10px 18px rgba(229, 57, 53, .22);
  transform: none;
}

.home-faq__item.is-open .home-faq__icon::before,
.home-faq__item.is-open .home-faq__icon::after {
  background: #fff;
}

.home-faq__item.is-open .home-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.home-faq__empty {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: #888;
  padding: 18px 10px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .home-faq__list {
    max-width: 100%;
    padding: 0 16px;
  }

  .home-faq__item {
    border-radius: 12px;
  }

  .home-faq__q {
    padding: 16px;
  }

  .home-faq__a-inner {
    padding: 0 16px 16px;
  }

  .home-faq__empty {
    padding: 18px 16px;
  }
}

.home-location {
  padding: 46px 0;
}

.home-location__title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .8px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-location__card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.home-location__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.home-location__lead {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
  color: #111;
}

.home-location__sub {
  margin: 0;
  font-size: 12px;
  color: #6f6f6f;
}

.home-location__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  background: #fff;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  font-weight: 750;
  transition: transform .14s ease, box-shadow .14s ease;
}

.home-location__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.home-location__btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-location__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.home-location__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 820px) {
  .home-location__head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-location__btn {
    width: fit-content;
  }
}

@keyframes aboutCardBreath {
  0% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(.86) saturate(1.08);
  }

  100% {
    filter: brightness(1) saturate(1);
  }
}

@keyframes aboutCardGlow {
  0% {
    opacity: .78;
  }

  50% {
    opacity: .95;
  }

  100% {
    opacity: .78;
  }
}

.about-card.is-shine {
  animation: aboutCardBreath 7s ease-in-out infinite;
  will-change: filter;
}

.about-card.is-shine::before {
  animation: aboutCardGlow 7s ease-in-out infinite;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .about-card.is-shine {
    animation: none !important;
    filter: none !important;
  }

  .about-card.is-shine::before {
    animation: none !important;
    opacity: .85 !important;
  }
}

/* FIX: убираем раздувание страницы справа из-за about-card glow */

/* не трогаем размеры/позиционирование псевдоэлементов */
.about-card::before,
.about-card::after{
  contain: paint;
}

/* НИКАКОГО translate(-50%, -50%) — только поворот */
.about-card--achievements::before{ transform: rotate(18deg) !important; }
.about-card--dream::before{        transform: rotate(-12deg) !important; }
.about-card--camp::before{         transform: rotate(8deg) !important; }

/* текст без break-all (на мобилках может давать странные расчёты ширины) */
.about-card__text{
  overflow-wrap: anywhere;
  word-break: normal;
}



.home-programs__viewport{
  overflow-y: hidden;
  overflow-x: clip; /* можно hidden */
}
@supports not (overflow: clip){
  .home-programs__viewport{ overflow-x: hidden; }
}

@media (max-width: 980px) {
    .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .hero__left,
    .hero__right {
        width: 100%;
        max-width: 100% !important;
    }
}

/* ===== Camp 2026 ===== */
.camp-section {
  margin: 48px 0 56px;
}

.camp-section .container {
  max-width: 1180px;
}

.camp-section__title {
  margin: 0 0 22px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.03em;

  font-family: "Cera Condensed Pro", "Montserrat", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;

  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    90deg,
    #ff4b46 0%,
    #E53935 40%,
    #ff6f60 70%,
    #E53935 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.camp-section__frame {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: stretch;

  width: 100%;
  min-height: 420px;

  background: #f7f4f4;
  border: 1.5px solid rgba(35, 35, 35, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.camp-section__gallery {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #ff3c38 0%, #df1f2f 100%);
}

.camp-section__gallery-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.camp-section__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.camp-section__image.is-active {
  opacity: 1;
}

.camp-section__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);

  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.camp-section__arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.camp-section__arrow--prev {
  left: 18px;
}

.camp-section__arrow--next {
  right: 18px;
}

.camp-section__arrow-icon {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #2f3440;
  border-right: 3px solid #2f3440;
}

.camp-section__arrow-icon--prev {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.camp-section__arrow-icon--next {
  transform: rotate(45deg);
  margin-right: 4px;
}

@media (max-width: 640px) {
  .camp-section__arrow {
    width: 42px;
    height: 42px;
  }

  .camp-section__arrow-icon {
    width: 10px;
    height: 10px;
    border-top-width: 2.5px;
    border-right-width: 2.5px;
  }

  .camp-section__arrow--prev {
    left: 12px;
  }

  .camp-section__arrow--next {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .camp-section {
    margin: 40px 0 48px;
  }

  .camp-section__title {
    margin-bottom: 18px;
    font-size: clamp(26px, 8vw, 40px);
    letter-spacing: 0.02em;
  }

  .camp-section__gallery {
    min-height: 250px;
  }

  .camp-section__arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .camp-section__arrow--prev {
    left: 12px;
  }

  .camp-section__arrow--next {
    right: 12px;
  }
}
.camp-section__content {
  min-height: 420px;
  background: #f7f4f4;
  padding: 30px 30px 30px 34px;

  display: flex;
  align-items: stretch;
}

.camp-section__content-scroll {
  width: 100%;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 12px;

  text-align: left;
  font-size: 18px;
  line-height: 1.58;
  color: #2d313a;

  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.camp-section__content-scroll p {
  margin: 0 0 18px;
}

.camp-section__content-scroll p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .camp-section__frame {
    display: flex;
    flex-direction: column;
  }

  .camp-section__gallery {
    width: 100%;
    height: 320px;
  }

  .camp-section__gallery-viewport {
    height: 100%;
  }

  .camp-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .camp-section__content {
    width: 100%;
  }

  .camp-section__content-scroll {
    max-height: none;
    overflow: visible;
  }

}
.camp-section__content-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.camp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.camp-info-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(35, 35, 35, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.camp-info-card--lead {
  background: transparent;
  border: none;
  padding: 0;
}

.camp-info-card--accent {
  background: linear-gradient(180deg, rgba(255, 75, 70, 0.08) 0%, rgba(255, 75, 70, 0.03) 100%);
  border: 1px solid rgba(229, 57, 53, 0.14);
}

.camp-info-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #353943;
}

.camp-info-card__text,
.camp-info-card__note,
.camp-program-item__text,
.camp-text-soft {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3e47;
}

.camp-text-lead {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.5;
  color: #313540;
}

.camp-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}

.camp-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(53, 57, 67, 0.18);
}

.camp-price-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.camp-price-list span {
  font-size: 16px;
  color: #4a4f59;
}

.camp-price-list strong {
  font-size: 18px;
  font-weight: 800;
  color: #2f3440;
  white-space: nowrap;
}

.camp-shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.camp-shift-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 35, 35, 0.1);
  font-size: 14px;
  line-height: 1.3;
  color: #373c46;
}

.camp-program-item + .camp-program-item {
  margin-top: 14px;
}

.camp-program-item__label {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e53935;
}

@media (max-width: 900px) {
  .camp-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CAMP 2026 — TABLET
========================= */
@media (max-width: 980px) {
  .camp-section {
    margin: 40px 0 48px;
  }

  .camp-section__title {
    margin-bottom: 18px;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.02;
    letter-spacing: 0.02em;
  }

  .camp-section__frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .camp-section__gallery {
    min-height: 320px;
    height: 320px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.08);
  }

  .camp-section__content {
    min-height: auto;
    padding: 22px 20px;
  }

  .camp-section__content-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    gap: 12px;
  }

  .camp-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* =========================
   CAMP 2026 — MOBILE
========================= */
@media (max-width: 768px) {
  .camp-section {
    margin: 34px 0 42px;
  }

  .camp-section .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .camp-section__title {
    margin-bottom: 16px;
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.04;
    letter-spacing: 0.015em;
  }

  .camp-section__frame {
    border-radius: 18px;
    overflow: hidden;
  }

  .camp-section__gallery {
    position: relative;
    min-height: 260px;
    height: 260px;
  }

  .camp-section__gallery-viewport {
    height: 100%;
  }

  .camp-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .camp-section__arrow {
    width: 42px;
    height: 42px;
  }

  .camp-section__arrow--prev {
    left: 12px;
  }

  .camp-section__arrow--next {
    right: 12px;
  }

  .camp-section__arrow-icon {
    width: 10px;
    height: 10px;
    border-top-width: 2.5px;
    border-right-width: 2.5px;
  }

  .camp-section__content {
    padding: 18px 16px 18px;
  }

  .camp-section__content-scroll {
    gap: 10px;
  }

  .camp-text-lead {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .camp-text-soft,
  .camp-info-card__text,
  .camp-info-card__note,
  .camp-program-item__text {
    font-size: 15px;
    line-height: 1.5;
  }

  .camp-info-card {
    padding: 14px 14px 13px;
    border-radius: 14px;
  }

  .camp-info-card__title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.2;
  }

  .camp-price-list {
    gap: 8px;
    margin-bottom: 10px;
  }

  .camp-price-list li {
    gap: 10px;
    padding-bottom: 6px;
  }

  .camp-price-list span {
    font-size: 15px;
  }

  .camp-price-list strong {
    font-size: 16px;
  }

  .camp-shifts {
    gap: 8px;
  }

  .camp-shift-chip {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
  }

  .camp-program-item + .camp-program-item {
    margin-top: 12px;
  }

  .camp-program-item__label {
    font-size: 13px;
    margin-bottom: 5px;
  }
}


/* =========================
   CAMP 2026 — NARROW MOBILE
========================= */
@media (max-width: 480px) {
  .camp-section {
    margin: 28px 0 38px;
  }

  .camp-section .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .camp-section__title {
    font-size: clamp(22px, 9vw, 32px);
    margin-bottom: 14px;
  }

  .camp-section__frame {
    border-radius: 16px;
  }

  .camp-section__gallery {
    min-height: 220px;
    height: 220px;
  }

  .camp-section__arrow {
    width: 38px;
    height: 38px;
  }

  .camp-section__arrow--prev {
    left: 10px;
  }

  .camp-section__arrow--next {
    right: 10px;
  }

  .camp-section__content {
    padding: 14px 12px 14px;
  }

  .camp-text-lead {
    font-size: 15px;
    line-height: 1.42;
  }

  .camp-text-soft,
  .camp-info-card__text,
  .camp-info-card__note,
  .camp-program-item__text {
    font-size: 14px;
    line-height: 1.48;
  }

  .camp-info-card {
    padding: 12px;
    border-radius: 12px;
  }

  .camp-info-card__title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .camp-price-list strong {
    font-size: 15px;
  }

  .camp-shift-chip {
    font-size: 13px;
    padding: 9px 10px;
  }
}