/* Shared visual system for the programs hub and the beginner landing page. */
.main > .program:first-child,
.main > .text-block:first-child {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 6vw, 88px) 0 clamp(58px, 6vw, 86px) !important;
  background:
    radial-gradient(circle at 4% 14%, rgba(103, 172, 172, 0.2), transparent 24%),
    radial-gradient(circle at 96% 86%, rgba(217, 190, 125, 0.22), transparent 26%),
    #e7e4df;
}

.main > .program:first-child::before,
.main > .program:first-child::after,
.main > .text-block:first-child::before,
.main > .text-block:first-child::after {
  position: absolute;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.main > .program:first-child::before,
.main > .text-block:first-child::before {
  top: -220px;
  right: -180px;
  width: 460px;
  height: 460px;
}

.main > .program:first-child::after,
.main > .text-block:first-child::after {
  bottom: -220px;
  left: -150px;
  width: 390px;
  height: 390px;
}

.main > .program:first-child .container,
.main > .text-block:first-child .container {
  position: relative;
  z-index: 1;
}

/* Programs page: heading and two primary directions. */
.main > .program:first-child .program-decor {
  display: none;
}

.main > .program:first-child .program-wrapper > .row:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  margin: 0 0 clamp(36px, 5vw, 58px);
}

.main > .program:first-child .program__title {
  display: flex;
  width: auto;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.main > .program:first-child .program__title::before,
.main > .text-block:first-child .page-content > .text-block__title::before {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #447f80;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(#67acac, #67acac) left center / 32px 2px no-repeat;
}

.main > .program:first-child .program__title::before {
  content: "Два направления обучения";
}

.main > .text-block:first-child .page-content > .text-block__title::before {
  content: "Первое знакомство с керамикой";
}

.main > .program:first-child .program__title::before,
.main > .text-block:first-child .page-content > .text-block__title::before {
  padding-left: 44px;
}

.main > .program:first-child .program__text {
  max-width: 610px;
  margin: 0 0 0 auto;
  padding: 0 0 4px;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: right;
}

.main > .program:first-child .program-wrapper > .row:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin: 0;
}

.main > .program:first-child .program-wrapper > .row:last-child > div {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}

.main > .program:first-child .card {
  --learning-accent: #d9be7d;
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid var(--learning-accent);
  border-radius: 26px;
  background: rgba(246, 243, 238, 0.94);
  box-shadow: 0 20px 50px rgba(53, 53, 53, 0.09);
  color: #242424;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main > .program:first-child .program-wrapper > .row:last-child > div:nth-child(2) .card {
  --learning-accent: #67acac;
}

.main > .program:first-child .card-top {
  order: 2;
  margin: 0;
  padding: 22px 24px 24px;
}

.main > .program:first-child .card__title {
  height: auto;
  min-height: 54px;
  gap: 14px;
  margin: 0;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.main > .program:first-child .card__title span {
  justify-content: flex-start;
  height: auto;
  padding: 0;
  background: transparent;
  text-align: left;
}

.main > .program:first-child .card__title svg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: color-mix(in srgb, var(--learning-accent), white 52%);
}

.main > .program:first-child .card__title svg rect {
  fill: transparent;
}

.main > .program:first-child .card__image {
  order: 1;
  margin: 0;
  border-radius: 0;
  background: #c6c0b5;
}

.main > .program:first-child .card__image img,
.main > .program:first-child .card--medium .card__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Beginner page: editorial content becomes a structured landing page. */
.main > .text-block:first-child .text-block-wrapper::before {
  display: none;
}

.main > .text-block:first-child .text-block__row {
  display: block;
}

.main > .text-block:first-child .page-content {
  display: grid;
  width: 100% !important;
  max-width: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  gap: 24px clamp(28px, 5vw, 72px);
  align-items: start;
}

.main > .text-block:first-child .page-content > .text-block__title {
  position: relative;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.main > .text-block:first-child .page-content__featured {
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 390px;
  margin: 0;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid #67acac;
  border-radius: 26px;
  background: #c6c0b5;
  box-shadow: 0 20px 50px rgba(53, 53, 53, 0.09);
}

.main > .text-block:first-child .page-content__featured img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.main > .text-block:first-child .page-content__featured + p {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 0;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

.main > .text-block:first-child .page-content > .row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin: 18px 0 0;
}

.main > .text-block:first-child .page-content > .row > figure {
  overflow: hidden;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(53, 53, 53, 0.08);
}

.main > .text-block:first-child .page-content > .row img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: cover;
}

.main > .text-block:first-child .page-content > ul {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main > .text-block:first-child .page-content > ul li {
  margin: 0;
}

.main > .text-block:first-child .page-content > ul a,
.seo-growth .text-block-wrapper:first-child .page-content li a {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 15px 52px 15px 18px;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-radius: 18px;
  background: rgba(246, 243, 238, 0.9);
  color: #282828;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.main > .text-block:first-child .page-content > ul a::after,
.seo-growth .text-block-wrapper:first-child .page-content li a::after {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #97c7c7;
  content: "→";
  transform: translateY(-50%);
}

/* Beginner page: compact next steps and FAQ. */
.main > .seo-growth {
  padding: clamp(48px, 5vw, 72px) 0;
  background: #ded8cf;
}

.main > .seo-growth > .container {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

.main > .seo-growth .text-block-wrapper {
  height: 100%;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid #67acac;
  border-radius: 26px;
  background: rgba(246, 243, 238, 0.92);
  box-shadow: 0 16px 42px rgba(53, 53, 53, 0.07);
}

.main > .seo-growth .text-block-wrapper:first-child {
  border-top-color: #d9be7d;
}

.main > .seo-growth .text-block-wrapper::before {
  display: none;
}

.main > .seo-growth .text-block__row {
  display: block;
}

.main > .seo-growth .page-content {
  display: block;
  width: 100% !important;
  max-width: none;
}

.main > .seo-growth .page-content h2 {
  margin: 0 0 24px;
  color: #242424;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.main > .seo-growth .text-block-wrapper:first-child .page-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main > .seo-growth .text-block-wrapper:first-child .page-content li {
  margin: 0;
}

.main > .seo-growth .text-block-wrapper:nth-child(2) .page-content h3 {
  position: relative;
  margin: 0;
  padding: 17px 0 8px 22px;
  border-top: 1px solid rgba(53, 53, 53, 0.1);
  color: #2d2d2d;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.main > .seo-growth .text-block-wrapper:nth-child(2) .page-content h3:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.main > .seo-growth .text-block-wrapper:nth-child(2) .page-content h3::before {
  position: absolute;
  top: 23px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67acac;
  content: "";
}

.main > .seo-growth .text-block-wrapper:nth-child(2) .page-content h3:first-of-type::before {
  top: 6px;
}

.main > .seo-growth .text-block-wrapper:nth-child(2) .page-content p {
  margin: 0;
  padding: 0 0 17px 22px;
  color: #56514c;
  font-size: 15px;
  line-height: 1.45;
}

/* Programs page: explanatory split card. */
.main > .program:first-child + .text-block {
  margin: 0;
  padding: clamp(44px, 4vw, 58px) 0;
  background: #e7e4df;
}

.main > .program:first-child + .text-block::after,
.main > .program:first-child + .text-block .text-block-wrapper::before {
  display: none;
}

.main > .program:first-child + .text-block .text-block__row {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: stretch;
  min-height: 390px;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid #67acac;
  border-radius: 26px;
  background: rgba(246, 243, 238, 0.94);
  box-shadow: 0 16px 42px rgba(53, 53, 53, 0.08);
}

.main > .program:first-child + .text-block .text-block__text,
.main > .program:first-child + .text-block .text-block__image {
  width: auto;
  margin: 0;
}

.main > .program:first-child + .text-block .text-block__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  color: #47423d;
  font-size: 18px;
  line-height: 1.5;
}

.main > .program:first-child + .text-block .text-block__title {
  margin: 0 0 22px;
  color: #242424;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.main > .program:first-child + .text-block .text-block__image {
  position: relative;
  min-height: 390px;
  background: #c6c0b5;
}

.main > .program:first-child + .text-block .text-block__image a {
  position: absolute;
  inset: 0;
  display: block;
}

.main > .program:first-child + .text-block .text-block__image img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
}

/* Programs page: reviews. */
.main > .program:first-child + .text-block + .reviews {
  padding: clamp(48px, 5vw, 72px) 0 !important;
  background: #e7e4df;
}

.main > .program:first-child + .text-block + .reviews .reviews-wrapper::before {
  display: none;
}

.main > .program:first-child + .text-block + .reviews .reviews-wrapper > .row {
  align-items: center;
  margin-bottom: 22px !important;
}

.main > .program:first-child + .text-block + .reviews .section-title {
  margin: 0 !important;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.main > .program:first-child + .text-block + .reviews .reviews__btn {
  min-height: 54px;
  padding: 15px 20px;
  background: #67acac;
  color: #181818;
  font-size: 16px;
  font-weight: 700;
}

.main > .program:first-child + .text-block + .reviews review-lab {
  display: block;
  overflow: hidden;
  border-radius: 24px;
}

/* Programs page: certificate catalogue without staggered empty rows. */
.main > .sertificates {
  margin: 0 !important;
  padding: clamp(52px, 5vw, 76px) 0 !important;
  background: #ded8cf;
}

.main > .sertificates::before,
.main > .sertificates::after,
.main > .sertificates .sertificates-decor-item {
  display: none;
}

.main > .sertificates .sertificates-wrapper > .row:first-child {
  margin: 0 0 28px;
}

.main > .sertificates .sertificates-wrapper > .row:first-child .section-title {
  flex: 0 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.main > .sertificates .sertificates-group {
  margin-top: 32px;
}

.main > .sertificates .sertificates-group:first-of-type {
  margin-top: 0;
}

.main > .sertificates .sertificates-group__title {
  margin: 0 0 18px;
  font-size: 24px;
}

.main > .sertificates .sertificates-group__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin: 0;
}

.main > .sertificates .sertificates-group__item {
  display: flex;
  width: auto;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 0;
}

.main > .sertificates .sertificates-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid var(--certificate-accent);
  border-radius: 22px;
  background: rgba(246, 243, 238, 0.94);
  box-shadow: 0 16px 42px rgba(53, 53, 53, 0.08);
}

.main > .sertificates .sertificates-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0 0 15px;
  border-radius: 14px;
  background: #eeeae3;
}

.main > .sertificates .sertificates-card__image img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.main > .sertificates .sertificates-card__title {
  min-height: 3.75em;
  flex: 1 1 auto;
  margin: 0 0 14px;
  color: #282828;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.main > .sertificates .sertificates-card__price {
  margin: 0 0 15px;
  color: #202020;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.main > .sertificates .sertificates-card__btn {
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: auto 0 0;
  padding: 13px 16px;
  background: var(--certificate-accent);
  color: #181818;
  font-size: 14px;
  font-weight: 700;
}

/* Programs page: final contact card. */
.main > .banner {
  padding: clamp(50px, 5vw, 72px) 0;
  background: #e7e4df;
}

.main > .banner .banner-wrapper {
  overflow: hidden;
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-top: 4px solid #db816d;
  border-radius: 26px;
  background: rgba(246, 243, 238, 0.94);
  box-shadow: 0 16px 42px rgba(53, 53, 53, 0.08);
}

.main > .banner .banner-wrapper > .row {
  align-items: stretch;
  margin: 0;
}

.main > .banner .banner-wrapper > .row > div {
  padding: 0;
}

.main > .banner .banner__image,
.main > .banner .banner__image img {
  width: 100%;
  height: 100%;
}

.main > .banner .banner__image img {
  min-height: 360px;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.main > .banner .banner__info {
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.main > .banner .banner__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.main > .banner .banner__text {
  max-width: 570px;
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: normal;
}

.main > .banner .banner__btn {
  min-height: 54px;
  margin: 0;
  padding: 15px 20px;
  background: #db816d;
  color: #181818;
  font-size: 16px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .main > .program:first-child .card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 64px rgba(53, 53, 53, 0.15);
  }

  .main > .program:first-child .card:hover .card__image img {
    transform: scale(1.035);
  }

  .main > .text-block:first-child .page-content > ul a:hover,
  .seo-growth .text-block-wrapper:first-child .page-content li a:hover {
    transform: translateY(-2px);
    background: #f7f4ef;
  }
}

@media screen and (max-width: 1100px) {
  .main > .program:first-child .program-wrapper > .row:first-child {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main > .program:first-child .program__text {
    max-width: 760px;
  }

  .main > .text-block:first-child .page-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  }

  .main > .seo-growth > .container {
    grid-template-columns: 1fr;
  }

  .main > .sertificates .sertificates-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .main > .text-block:first-child .page-content {
    grid-template-columns: 1fr;
  }

  .main > .text-block:first-child .page-content > .text-block__title,
  .main > .text-block:first-child .page-content__featured,
  .main > .text-block:first-child .page-content__featured + p {
    grid-column: 1;
    grid-row: auto;
  }

  .main > .text-block:first-child .page-content > .text-block__title {
    order: 1;
  }

  .main > .text-block:first-child .page-content__featured {
    order: 2;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .main > .text-block:first-child .page-content__featured + p {
    order: 3;
  }

  .main > .text-block:first-child .page-content > .row {
    order: 4;
  }

  .main > .text-block:first-child .page-content > ul {
    order: 5;
  }

  .main > .program:first-child + .text-block .text-block__row {
    grid-template-columns: 1fr;
  }

  .main > .program:first-child + .text-block .text-block__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .main > .program:first-child + .text-block .text-block__image a {
    position: absolute;
  }
}

@media screen and (max-width: 680px) {
  .main > .program:first-child,
  .main > .text-block:first-child {
    padding: 44px 0 50px !important;
  }

  .main > .program:first-child::before,
  .main > .text-block:first-child::before {
    top: -180px;
    right: -220px;
  }

  .main > .program:first-child .program__title,
  .main > .text-block:first-child .page-content > .text-block__title {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.02;
  }

  .main > .program:first-child .program__title::before,
  .main > .text-block:first-child .page-content > .text-block__title::before {
    margin-bottom: 13px;
    padding-left: 40px;
    font-size: 10px;
  }

  .main > .program:first-child .program__text,
  .main > .text-block:first-child .page-content__featured + p {
    font-size: 15px;
  }

  .main > .program:first-child .program__text {
    margin-left: 0;
    text-align: left;
  }

  .main > .program:first-child .program-wrapper > .row:first-child {
    margin-bottom: 30px;
  }

  .main > .program:first-child .program-wrapper > .row:last-child,
  .main > .text-block:first-child .page-content > .row,
  .main > .text-block:first-child .page-content > ul,
  .main > .sertificates .sertificates-group__grid {
    grid-template-columns: 1fr;
  }

  .main > .program:first-child .program-wrapper > .row:last-child {
    gap: 16px;
  }

  .main > .program:first-child .card {
    border-radius: 21px;
  }

  .main > .program:first-child .card-top {
    padding: 18px;
  }

  .main > .program:first-child .card__title {
    min-height: 42px;
    font-size: 21px;
  }

  .main > .program:first-child .card__title svg {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .main > .text-block:first-child .page-content {
    gap: 18px;
  }

  .main > .text-block:first-child .page-content__featured,
  .main > .text-block:first-child .page-content > .row > figure {
    border-radius: 20px;
  }

  .main > .text-block:first-child .page-content > .row {
    margin-top: 2px;
    gap: 14px;
  }

  .main > .text-block:first-child .page-content > ul a,
  .seo-growth .text-block-wrapper:first-child .page-content li a {
    min-height: 58px;
    font-size: 14px;
  }

  .main > .seo-growth {
    padding: 38px 0 46px;
  }

  .main > .seo-growth .text-block-wrapper {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .main > .seo-growth .page-content h2 {
    margin-bottom: 19px;
    font-size: 27px;
  }

  .main > .seo-growth .text-block-wrapper:nth-child(2) .page-content h3 {
    font-size: 17px;
  }

  .main > .program:first-child + .text-block,
  .main > .program:first-child + .text-block + .reviews,
  .main > .sertificates,
  .main > .banner {
    padding: 38px 0 46px;
  }

  .main > .program:first-child + .text-block + .reviews,
  .main > .sertificates {
    padding: 38px 0 46px !important;
  }

  .main > .program:first-child + .text-block .text-block__row,
  .main > .banner .banner-wrapper {
    border-radius: 20px;
  }

  .main > .program:first-child + .text-block .text-block__text {
    padding: 24px 19px;
    font-size: 15px;
  }

  .main > .program:first-child + .text-block .text-block__title,
  .main > .program:first-child + .text-block + .reviews .section-title,
  .main > .sertificates .sertificates-wrapper > .row:first-child .section-title,
  .main > .banner .banner__title {
    font-size: 29px;
  }

  .main > .program:first-child + .text-block + .reviews .reviews-wrapper > .row {
    margin-bottom: 16px !important;
  }

  .main > .sertificates .sertificates-wrapper > .row:first-child {
    margin-bottom: 22px;
  }

  .main > .sertificates .sertificates-group {
    margin-top: 26px;
  }

  .main > .sertificates .sertificates-group__title {
    margin-bottom: 14px;
    font-size: 21px;
  }

  .main > .sertificates .sertificates-card {
    padding: 14px;
    border-radius: 20px;
  }

  .main > .sertificates .sertificates-card__title {
    min-height: 0;
    font-size: 17px;
  }

  .main > .banner .banner__info {
    padding: 26px 19px;
  }

  .main > .banner .banner__text {
    font-size: 15px;
  }

  .main > .banner .banner__btn {
    max-width: none;
    font-size: 14px;
  }

  .main > .banner .banner__image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main > .program:first-child .card,
  .main > .program:first-child .card__image img,
  .main > .text-block:first-child .page-content > ul a,
  .seo-growth .text-block-wrapper:first-child .page-content li a {
    transition: none;
  }
}

/* Tighten the vertical rhythm between the main program sections. */
@media screen and (min-width: 681px) {
  .main > .program:first-child {
    padding-bottom: clamp(40px, 4vw, 58px) !important;
  }

  .main > .program:first-child + .text-block {
    padding-top: clamp(28px, 3vw, 42px);
  }

  .main > .program:first-child + .text-block + .reviews {
    padding-bottom: clamp(34px, 3.5vw, 50px) !important;
  }

  .main > .sertificates {
    padding-top: clamp(34px, 3.5vw, 50px) !important;
  }
}

@media screen and (max-width: 680px) {
  .main > .program:first-child {
    padding-bottom: 34px !important;
  }

  .main > .program:first-child + .text-block {
    padding-top: 28px;
  }

  .main > .program:first-child + .text-block + .reviews {
    padding-bottom: 30px !important;
  }

  .main > .sertificates {
    padding-top: 30px !important;
  }
}
