:root {
  --cake-bg: #fdfdf1;
  --cake-accent: #b37451;
  --cake-button: #d29174;
  --cake-border: #d1bfaa;
  --cake-white: #ffffff;
  --cake-text: #b37451;
  --cake-muted: rgba(179, 116, 81, 0.72);
  --cake-container: 1160px;
  --cake-script: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cake-bg);
  color: var(--cake-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.24;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.cake-container {
  width: min(var(--cake-container), calc(100% - 40px));
  margin: 0 auto;
}

.cake-section {
  padding: 118px 0 0;
}

.cake-section h2,
.cake-reviews h2 {
  margin: 0 0 48px;
  color: var(--cake-accent);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.cake-logo {
  font-family: var(--cake-script);
  font-size: 24px;
  line-height: 1;
  color: var(--cake-accent);
  white-space: nowrap;
}

.cake-logo--light {
  color: var(--cake-white);
}

.cake-header {
  width: min(var(--cake-container), calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cake-burger {
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.cake-burger span {
  display: block;
  height: 2px;
  background: var(--cake-accent);
}

.cake-hero {
  min-height: 621px;
}

.cake-hero__title {
  min-height: 157px;
  display: grid;
  place-items: start center;
  text-align: center;
}

.cake-hero h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cake-hero__image {
  position: relative;
  min-height: 400px;
  --hero-parallax-y: 50%;
  background-position: center var(--hero-parallax-y);
  background-size: cover;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 1160px) minmax(20px, 1fr);
  padding: 0 0 20px;
  will-change: background-position;
}

.cake-hero__image::before {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.52));
}

.cake-hero__image p,
.cake-hero__image a {
  position: relative;
  z-index: 1;
}

.cake-hero__image p {
  grid-column: 2;
  width: 333px;
  margin: 0;
  color: var(--cake-white);
}

.cake-button,
.cake-hero__image .cake-button {
  min-height: 60px;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: var(--cake-button);
  color: var(--cake-white);
  text-align: center;
}

.cake-button--light,
.cake-hero__image .cake-button--light {
  grid-column: 2;
  justify-self: end;
  width: 176px;
  margin-top: -60px;
  background: var(--cake-white);
  color: var(--cake-accent);
}

.cake-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cake-stat {
  min-height: 275px;
  padding: 22px 20px;
  border: 1px solid var(--cake-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cake-stat div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cake-stat span {
  font-family: var(--cake-script);
  font-size: 100px;
  line-height: 1;
}

.cake-stat em {
  margin-top: 38px;
  font-family: var(--cake-script);
  font-size: 22px;
  font-style: normal;
}

.cake-stat p {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cake-why__photo {
  grid-column: 3 / span 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 570px;
  object-fit: cover;
}

.cake-audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 570px));
  gap: 20px;
}

.cake-audience__photo {
  min-height: 570px;
  padding: 48px 40px;
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.cake-audience__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.cake-audience__photo h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cake-white);
}

.cake-audience__cards {
  min-height: 570px;
  padding: 126px 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: linear-gradient(135deg, #6a6867 0%, #d29174 100%);
  overflow: hidden;
}

.cake-audience__cards article {
  min-height: 317px;
  padding: 24px 20px;
  background: var(--cake-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cake-audience__cards h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.cake-audience__cards p {
  margin: 0;
}

.cake-marquee {
  width: 100%;
  margin: 118px 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--cake-accent);
  font-family: var(--cake-script);
  font-size: 50px;
  line-height: 1.5;
}

.cake-marquee__track {
  display: flex;
  width: max-content;
  animation: cake-marquee-scroll 30s linear infinite;
  will-change: transform;
}

.cake-marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.cake-marquee span,
.cake-marquee b {
  display: inline-block;
  margin-right: 34px;
  font-weight: 400;
}

@keyframes cake-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.cake-works__slider {
  position: relative;
  min-height: 540px;
  padding: 40px 0;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.cake-works__slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.cake-works__slider article {
  position: relative;
  z-index: 1;
  width: min(766px, calc(100% - 80px));
  padding: 20px;
  background: var(--cake-white);
}

.cake-works__slider img {
  width: 100%;
  height: 338px;
  object-fit: cover;
}

.cake-works__slider h3 {
  margin: -66px 20px 48px;
  position: relative;
  color: var(--cake-white);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.cake-works__slider p {
  margin: 0;
}

.cake-works__arrows {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.cake-works__arrows button {
  width: 56px;
  height: 56px;
  border: 0;
  background: var(--cake-white);
  color: var(--cake-accent);
  font-size: 30px;
}

.cake-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cake-benefits__grid article,
.cake-benefits__grid > img,
.cake-benefits__banner {
  min-height: 275px;
  border: 1px solid var(--cake-border);
}

.cake-benefits__grid > img {
  width: 100%;
  height: 275px;
  object-fit: cover;
}

.cake-benefits__grid article {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cake-benefits__grid strong {
  font-family: var(--cake-script);
  font-size: 42px;
  font-weight: 400;
}

.cake-benefits__grid p {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cake-benefits__banner {
  grid-column: span 2;
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.cake-benefits__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.cake-benefits__banner a {
  position: relative;
  z-index: 1;
  min-width: 176px;
  min-height: 60px;
  display: grid;
  place-items: center;
  background: var(--cake-white);
}

.cake-courses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cake-course {
  min-height: 446px;
  padding: 10px;
  border: 1px solid var(--cake-border);
  display: flex;
  flex-direction: column;
}

.cake-course__image {
  position: relative;
  height: 229px;
  margin-bottom: 20px;
}

.cake-course__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cake-course__image span {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 82px;
  min-height: 27px;
  padding: 6px 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cake-white);
}

.cake-course h3 {
  margin: 0 0 34px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.cake-course ul {
  min-height: 60px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--cake-script);
  font-size: 25px;
  line-height: 1.2;
}

.cake-course__footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 127px;
  align-items: end;
  gap: 10px;
}

.cake-course__footer p {
  margin: 0;
  text-transform: uppercase;
}

.cake-course__footer a {
  min-height: 38px;
  display: grid;
  place-items: center;
  background: var(--cake-button);
  color: var(--cake-white);
}

.cake-reviews {
  margin-top: 118px;
  padding: 90px 0 110px;
  background: var(--cake-accent);
  color: var(--cake-white);
}

.cake-reviews__number {
  margin: 0;
  color: var(--cake-white);
  font-family: var(--cake-script);
  font-size: 100px;
  line-height: 1;
}

.cake-reviews h2 {
  color: var(--cake-white);
}

.cake-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 40px;
}

.cake-review blockquote {
  position: relative;
  min-height: 121px;
  margin: 0 0 34px;
  padding: 35px;
  background: var(--cake-white);
  color: var(--cake-accent);
}

.cake-review blockquote::after {
  content: "";
  position: absolute;
  left: 35px;
  bottom: -23px;
  border-style: solid;
  border-width: 24px 24px 0 0;
  border-color: var(--cake-white) transparent transparent transparent;
}

.cake-review > div {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cake-review img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.cake-review p {
  margin: 0;
}

.cake-review strong,
.cake-review span {
  display: block;
  font-weight: 400;
}

.cake-review span {
  font-size: 12px;
}

.cake-lead__grid {
  display: grid;
  grid-template-columns: 469px 1fr;
  gap: 101px;
  align-items: end;
}

.cake-lead__content h2 {
  margin-bottom: 28px;
}

.cake-lead__content p {
  margin: 0 0 34px;
}

.cake-lead form {
  display: grid;
  gap: 20px;
}

.cake-lead input,
.cake-lead button {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--cake-border);
  background: transparent;
  color: var(--cake-accent);
  padding: 0 20px;
}

.cake-lead input::placeholder {
  color: var(--cake-accent);
  opacity: 1;
}

.cake-lead button {
  border-color: var(--cake-accent);
  background: var(--cake-accent);
  color: var(--cake-white);
  text-transform: uppercase;
  cursor: pointer;
}

.cake-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cake-form-status {
  padding: 12px 14px;
  border: 1px solid var(--cake-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cake-accent);
}

.cake-form-status--error {
  border-color: #b65f4a;
  color: #9b4734;
}

.cake-lead__grid > img {
  width: 570px;
  height: 458px;
  object-fit: cover;
}

.cake-founder {
  text-align: center;
  overflow: hidden;
}

.cake-founder blockquote {
  width: min(700px, 100%);
  margin: 0 auto 34px;
  font-family: var(--cake-script);
  font-size: 45px;
  line-height: 1;
}

.cake-founder blockquote::before {
  content: "”";
  display: block;
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 70px;
  line-height: 0.6;
  font-weight: 700;
}

.cake-founder__avatar {
  width: 83px;
  height: 83px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
}

.cake-founder__name {
  margin: 0 0 4px;
  font-size: 16px;
  text-transform: uppercase;
}

.cake-founder__role {
  margin: 0;
  font-family: var(--cake-script);
  font-size: 18px;
}

.cake-founder__strip {
  width: 1350px;
  max-width: none;
  margin: 68px 0 0 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cake-founder__strip img {
  width: 185px;
  height: 210px;
  object-fit: cover;
  margin-left: -18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cake-founder__strip img:nth-child(odd) {
  transform: rotate(-10deg);
}

.cake-founder__strip img:nth-child(even) {
  transform: rotate(9deg);
}

.cake-blog__intro {
  width: min(357px, 100%);
  margin: -24px 0 58px 3px;
}

.cake-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cake-post {
  min-height: 430px;
  border: 1px solid var(--cake-border);
}

.cake-post img {
  width: 100%;
  height: 239px;
  object-fit: cover;
}

.cake-post h3 {
  margin: 25px 20px 23px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.cake-post p {
  min-height: 51px;
  margin: 0 20px 20px;
}

.cake-post time {
  display: block;
  margin: 0 20px;
  font-size: 10px;
}

.cake-custom-blocks {
  padding-top: 90px;
}

.cake-custom-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.cake-custom-block--right img {
  order: 2;
}

.cake-custom-block img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.cake-custom-block h2 {
  margin: 0 0 24px;
}

.cake-custom-block p {
  margin: 0;
  color: var(--cake-accent);
  font-size: 18px;
  line-height: 1.45;
}

.cake-footer {
  margin-top: 118px;
  padding: 51px 0 36px;
  background: var(--cake-accent);
  color: var(--cake-white);
}

.cake-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 40px;
  gap: 20px;
  align-items: start;
}

.cake-footer p {
  margin: 84px 0 0;
  font-size: 12px;
}

.cake-footer nav,
.cake-footer address {
  display: grid;
  gap: 17px;
  font-style: normal;
}

.cake-footer strong {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.cake-footer button {
  width: 40px;
  height: 40px;
  margin-top: 106px;
  border: 0;
  background: var(--cake-white);
  color: var(--cake-accent);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .cake-hero h1 {
    font-size: 42px;
  }

  .cake-why__grid,
  .cake-courses__grid,
  .cake-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cake-why__photo,
  .cake-benefits__banner {
    grid-column: span 2;
  }

  .cake-audience__grid,
  .cake-lead__grid,
  .cake-reviews__grid,
  .cake-blog__grid {
    grid-template-columns: 1fr;
  }

  .cake-lead__grid {
    gap: 40px;
  }

  .cake-lead__grid > img {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .cake-container {
    width: calc(100% - 32px);
  }

  .cake-section {
    padding-top: 76px;
  }

  .cake-section h2,
  .cake-reviews h2 {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 1.2;
  }

  .cake-header {
    width: calc(100% - 32px);
  }

  .cake-hero {
    min-height: auto;
  }

  .cake-hero__title {
    min-height: 132px;
  }

  .cake-hero h1 {
    font-size: 32px;
  }

  .cake-hero__image {
    min-height: 500px;
    grid-template-columns: 16px 1fr 16px;
    align-content: end;
    gap: 18px;
  }

  .cake-hero__image p {
    width: min(333px, 100%);
  }

  .cake-button--light,
  .cake-hero__image .cake-button--light {
    justify-self: start;
    margin: 0;
  }

  .cake-why__grid,
  .cake-courses__grid,
  .cake-benefits__grid {
    grid-template-columns: 1fr;
  }

  .cake-why__photo,
  .cake-benefits__banner {
    grid-column: auto;
    height: auto;
    min-height: 320px;
  }

  .cake-stat {
    min-height: 220px;
  }

  .cake-stat span,
  .cake-reviews__number {
    font-size: 82px;
  }

  .cake-audience__photo,
  .cake-audience__cards {
    min-height: auto;
  }

  .cake-audience__photo {
    min-height: 420px;
    padding: 32px 24px;
  }

  .cake-audience__cards {
    padding: 32px;
    grid-template-columns: 1fr;
  }

  .cake-marquee {
    margin-top: 76px;
    font-size: 38px;
  }

  .cake-works__slider article {
    width: calc(100% - 32px);
    padding: 14px;
  }

  .cake-works__slider img {
    height: 260px;
  }

  .cake-works__arrows {
    right: 16px;
    bottom: 16px;
  }

  .cake-course {
    min-height: auto;
  }

  .cake-reviews {
    margin-top: 76px;
    padding: 70px 0;
  }

  .cake-review blockquote {
    padding: 24px;
  }

  .cake-lead__grid {
    grid-template-columns: 1fr;
  }

  .cake-custom-block {
    grid-template-columns: 1fr;
  }

  .cake-custom-block--right img {
    order: 0;
  }

  .cake-lead__grid > img {
    height: 320px;
  }

  .cake-founder blockquote {
    font-size: 36px;
  }

  .cake-founder__strip {
    width: 900px;
  }

  .cake-founder__strip img {
    width: 130px;
    height: 160px;
  }

  .cake-footer__grid {
    grid-template-columns: 1fr;
  }

  .cake-footer p,
  .cake-footer button {
    margin-top: 30px;
  }
}
