.cw-programs,
.cw-program-single {
  background: var(--cw-color-surface);
  color: var(--cw-text);
  font-family: var(--font-body);
}

.cw-programs-hero,
.cw-program-single-hero {
  position: relative;
  min-height: 637px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cw-color-surface-evergreen-muted);
}

.cw-programs-hero__image,
.cw-program-single-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-programs-hero__shade,
.cw-program-single-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.cw-programs-hero__inner,
.cw-program-single-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  text-align: center;
}

.cw-programs-hero h1,
.cw-program-single-hero h1 {
  width: min(100%, 1080px);
  margin: 0 auto;
  color: var(--cw-white);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  overflow-wrap: break-word;
}

.cw-program-button,
.cw-program-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 44px;
  padding: 10px 28px;
  border: 0;
  background: var(--cw-color-action);
  color: var(--cw-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cw-program-button:hover,
.cw-program-button:focus-visible,
.cw-program-form button:hover,
.cw-program-form button:focus-visible {
  background: var(--cw-color-action-hover);
  color: var(--cw-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--cw-dark-evergreen-rgb), 0.14);
}

.cw-programs-list {
  display: grid;
  gap: 52px;
  padding-top: 86px;
  padding-bottom: 86px;
}

.cw-program-card {
  position: relative;
  min-height: clamp(330px, 34vw, 500px);
  overflow: hidden;
  background: var(--cw-dark-evergreen);
  color: var(--cw-white);
}

.cw-program-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transform: scale(1.06);
  transform-origin: center center;
  transition:
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 550ms ease-in-out;
  will-change: filter, transform;
}

.cw-program-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.68) 31%, rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.08) 78%, rgba(0, 0, 0, 0.02) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
}

.cw-program-card__content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  padding: clamp(76px, 9vw, 160px) 58px 58px;
}

.cw-program-card h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.cw-program-card p {
  width: min(100%, 520px);
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.35;
}

.cw-program-card:hover .cw-program-card__image {
  filter: brightness(0.9) saturate(0.98);
  transform: scale(1);
}

.cw-program-single-intro {
  padding-top: 70px;
  padding-bottom: 58px;
}

.cw-program-single-intro h2,
.cw-program-offer h2,
.cw-program-benefits h2 {
  margin: 0;
  color: var(--cw-green-primary);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cw-program-single-intro h2 {
  margin-bottom: 42px;
}

.cw-program-single-intro__text {
  max-width: 1050px;
  margin-bottom: 58px;
  color: var(--cw-dark-moss);
  font-size: 17px;
  line-height: 1.45;
}

.cw-program-single-intro__text p {
  margin: 0;
}

.cw-program-single-video {
  position: relative;
  overflow: hidden;
}

.cw-program-single-video__poster,
.cw-program-single-video__image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.cw-program-single-video__poster {
  position: relative;
  cursor: pointer;
}

.cw-program-single-video__poster img,
.cw-program-single-video__image {
  display: block;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
}

.cw-program-single-video__poster span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.cw-program-single-video__poster span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 21px solid #fff;
  transform: translate(-50%, -50%);
}

.cw-program-single-video__poster:hover span,
.cw-program-single-video__poster:focus-visible span {
  background: rgba(var(--cw-dark-evergreen-rgb), 0.88);
  transform: translate(-50%, -50%) scale(1.06);
}

.cw-program-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: clamp(72px, 9vw, 120px);
  align-items: start;
  padding-top: 48px;
  padding-bottom: 58px;
}

.cw-program-offer h2 {
  margin-bottom: 30px;
}

.cw-program-offer__intro {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--cw-color-text);
  font-size: 16px;
  line-height: 1.38;
}

.cw-program-offer__intro p {
  margin: 0;
}

.cw-program-offer__items {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.cw-program-offer__item {
  position: relative;
  min-height: 54px;
  padding: 13px 20px 13px 38px;
  border-radius: 8px;
  background: var(--cw-color-surface-evergreen-muted);
  color: var(--cw-color-text);
  font-size: 16px;
  line-height: 1.25;
}

.cw-program-offer__item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 19px;
  width: 5px;
  height: 5px;
  background: currentColor;
}

.cw-program-offer__item strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
}

.cw-program-offer__item span {
  margin-left: 4px;
}

.cw-program-offer__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

.cw-program-benefits {
  padding-top: 10px;
  padding-bottom: 88px;
}

.cw-program-benefits h2 {
  margin-bottom: 62px;
}

.cw-program-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 62px;
}

.cw-program-benefit {
  position: relative;
  min-height: 174px;
  padding: 18px 0 18px 18px;
}

.cw-program-benefit::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  border-radius: 28px;
  background: var(--program-benefit-accent);
}

.cw-program-benefit__inner {
  position: relative;
  min-height: 138px;
  height: 100%;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--cw-color-surface-neutral);
  box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.18);
}

.cw-program-benefit h3 {
  margin: 0 0 12px;
  color: var(--cw-green-primary);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.08;
}

.cw-program-benefit__text,
.cw-program-benefit__text p {
  margin: 0;
  color: var(--cw-color-text);
  font-size: 15px;
  line-height: 1.28;
}

.cw-program-benefit__text a {
  color: var(--cw-green-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cw-program-benefit__text a:hover,
.cw-program-benefit__text a:focus-visible {
  color: var(--cw-green-accent);
}

.cw-program-single-builder {
  padding-bottom: 78px;
}

.cw-program-form {
  padding-bottom: 76px;
}

.cw-program-form__intro {
  position: relative;
  overflow: hidden;
  background: var(--cw-color-surface-evergreen-soft);
  padding: 74px 0 82px;
}

.cw-program-form__intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  background: var(--cw-color-surface);
  clip-path: polygon(0 72%, 100% 13%, 100% 100%, 0 100%);
}

.cw-program-form__intro .cw-container {
  position: relative;
  z-index: 1;
}

.cw-program-form h2 {
  margin: 0;
  color: var(--cw-green-primary);
  font-family: var(--font-body);
  font-size: clamp(42px, 4.8vw, 70px);
  font-weight: 300;
  line-height: 1.08;
  text-transform: uppercase;
}

.cw-program-form h2 + p {
  margin: 8px 0 0;
  color: var(--cw-green-primary);
  font-family: var(--font-body);
  font-size: clamp(34px, 3.7vw, 55px);
  font-weight: 300;
  line-height: 1.06;
}

.cw-program-form__note {
  margin: -32px 0 46px auto;
  width: fit-content;
  color: var(--cw-moss);
  font-size: 18px;
  line-height: 1.2;
}

.cw-program-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 78px;
}

.cw-program-form__field {
  display: block;
}

.cw-program-form__field.is-wide {
  grid-column: 1 / -1;
}

.cw-program-form input,
.cw-program-form textarea,
.cw-program-form select {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--cw-moss);
  border-radius: 0;
  background: transparent;
  color: var(--cw-color-text);
  font: inherit;
  font-size: 20px;
  line-height: 1.2;
  padding: 0 0 20px;
}

.cw-program-form textarea {
  min-height: 44px;
  resize: vertical;
}

.cw-program-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cw-evergreen) 50%), linear-gradient(135deg, var(--cw-evergreen) 50%, transparent 50%);
  background-position: calc(100% - 18px) 30%, calc(100% - 9px) 30%;
  background-size: 9px 9px, 9px 9px;
  background-repeat: no-repeat;
  color: var(--cw-moss);
  padding-right: 38px;
  padding-left: 0;
}

.cw-program-form select option {
  padding: 8px 12px;
  color: var(--cw-color-text);
}

.cw-program-form input::placeholder,
.cw-program-form textarea::placeholder {
  color: var(--cw-moss);
  opacity: 1;
}

.cw-program-form button {
  display: flex;
  min-width: 180px;
  margin: 70px auto 0;
}

@media (max-width: 1024px) {
  .cw-programs-hero,
  .cw-program-single-hero {
    min-height: 520px;
  }

  .cw-program-card__content {
    padding: 82px 42px 46px;
  }

  .cw-program-offer {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cw-program-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cw-programs-hero,
  .cw-program-single-hero {
    min-height: 390px;
  }

  .cw-programs-list {
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .cw-program-card {
    min-height: 430px;
  }

  .cw-program-card__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.75) 100%);
  }

  .cw-program-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 24px 28px;
  }

  .cw-program-card p {
    font-size: 15px;
  }

  .cw-program-single-intro {
    padding-top: 46px;
    padding-bottom: 38px;
  }

  .cw-program-single-intro h2,
  .cw-program-offer h2,
  .cw-program-benefits h2 {
    font-size: 28px;
  }

  .cw-program-single-intro h2 {
    margin-bottom: 24px;
  }

  .cw-program-single-video__poster img,
  .cw-program-single-video__image {
    aspect-ratio: 1.35 / 1;
  }

  .cw-program-offer {
    padding-top: 28px;
  }

  .cw-program-offer__item {
    padding-left: 32px;
    font-size: 15px;
  }

  .cw-program-benefits {
    padding-bottom: 54px;
  }

  .cw-program-benefits h2 {
    margin-bottom: 32px;
  }

  .cw-program-benefits__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cw-program-form__fields {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cw-program-form__note {
    margin-top: 22px;
    margin-bottom: 34px;
  }

  .cw-program-form h2 {
    font-size: 38px;
  }

  .cw-program-form h2 + p {
    font-size: 30px;
  }
}

@media (min-width: 1600px) {
  .cw-programs-hero,
  .cw-program-single-hero {
    min-height: 660px;
  }

  .cw-programs-hero__inner,
  .cw-program-single-hero__inner {
    width: min(1320px, calc(100% - 48px));
  }

  .cw-programs-hero h1,
  .cw-program-single-hero h1 {
    font-size: 62px;
  }

  .cw-programs-list {
    gap: 58px;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .cw-program-card {
    min-height: 520px;
  }

  .cw-program-card__content {
    width: min(100%, 730px);
    padding-right: 66px;
    padding-left: 66px;
  }

  .cw-program-card p,
  .cw-program-single-intro__text {
    font-size: 18px;
  }
}

@media (min-width: 1920px) {
  .cw-programs-hero,
  .cw-program-single-hero {
    min-height: 690px;
  }

  .cw-programs-hero__inner,
  .cw-program-single-hero__inner {
    width: min(1440px, calc(100% - 48px));
  }

  .cw-programs-hero h1,
  .cw-program-single-hero h1 {
    font-size: 68px;
  }

  .cw-programs-list {
    gap: 64px;
    padding-top: 108px;
    padding-bottom: 108px;
  }

  .cw-program-card {
    min-height: 560px;
  }

  .cw-program-card__content {
    width: min(100%, 780px);
    padding-right: 72px;
    padding-left: 72px;
  }

  .cw-program-card h2 {
    font-size: 50px;
  }

  .cw-program-card p {
    width: min(100%, 620px);
    font-size: 20px;
  }

  .cw-program-button,
  .cw-program-form button {
    min-height: 48px;
    padding-inline: 30px;
    font-size: 19px;
  }

  .cw-program-single-intro h2,
  .cw-program-offer h2,
  .cw-program-benefits h2 {
    font-size: 40px;
  }

  .cw-program-single-intro__text {
    max-width: 1180px;
    font-size: 19px;
  }

  .cw-program-offer__intro,
  .cw-program-offer__item {
    font-size: 18px;
  }

  .cw-program-benefit p {
    font-size: 17px;
  }
}
