@font-face {
  font-family: "IBM Plex mono";
  src: url("fonts/IBMPlexMono-Regular.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex mono";
  src: url("fonts/IBMPlexMono-Bold.woff") format("woff");
  font-weight: bold;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-inline-size: 375px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

picture {
  margin: 0;
  padding: 0;
}

button,
a {
  color: currentColor;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.page {
  min-width: 375px;
  font-family: "IBM Plex Mono", Arial, Helvetica, sans-serif;
  color: #353430;
  background-color: #fff1f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

.page.theme_dark {
  color: #ff0070;
  background-color: #000028;
}

.page.theme_dark .decorated-zone::after {
  border-top: 1px solid #ff0070;
  border-right: 1px solid #ff0070;
}

.page.theme_dark .decorated-zone::before {
  border-bottom: 1px solid #ff0070;
  border-left: 1px solid #ff0070;
}

.page.theme_dark .header {
  background-image: url("../../images/cover-image-dark.png");
}

.page.theme_dark .header__text {
  color: #000028;
  background-color: #ff0070;
}

.page.theme_dark .header__heading {
  color: #db00ff;
  text-shadow: 4px 4px 0px #ff0070;
}

.page.theme_dark .header__theme-menu-button_active {
  border: 1px solid #ff0070;
}

.page.theme_dark .header__theme-menu-button:hover {
  border: 1px solid rgba(255, 0, 112, 0.4);
}

.page.theme_dark .header__theme-menu-button:focus-visible {
  border-bottom: 1px solid #ff0070;
}

.page.theme_dark .header__decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  -moz-column-gap: 10px;
       column-gap: 10px;
  position: absolute;
  top: 11px;
  right: 19px;
}

.page.theme_dark .header__decoration-text {
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.4;
}

.page.theme_dark .header__decoration-element {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ff0070;
  box-shadow: 0px 0px 5px 3px #FF0070;
}

.page.theme_dark .section__heading {
  color: #ff0070;
}

.page.theme_dark .section__title {
  color: #000028;
  background-color: #ff0070;
}

.page.theme_dark .content__title {
  color: #000028;
  background-color: #ff0070;
}

.page.theme_dark .content__sub-title {
  color: #000028;
  background-color: #ff0070;
}

.page.theme_dark .content__text {
  color: #f1b2ce;
}

.page.theme_dark .content__link {
  text-shadow: 2px 1px 0px #ff0070;
}

.page.theme_dark .content__link:hover {
  border-bottom: 1px solid #f1b2ce;
}

.page.theme_dark .content__link:focus-visible {
  border: 1px solid #f1b2ce;
}

.page.theme_dark .footer__heading {
  color: #db00ff;
  text-shadow: 2px 2px 0px #ff0070;
}

.page.theme_light {
  color: #353430;
  background-color: #fff1f7;
}

.page.theme_light .header {
  background-image: url("../../images/cover-image-light.png");
}

.page.theme_light .header__text {
  background-color: #ff8dcb;
}

.page.theme_light .header__heading {
  color: #ffc2e6;
  text-shadow: 4px 4px 0px #ff8dcb;
}

.header {
  background-image: url("../../images/cover-image-light.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  padding: 10px;
}

.header__content {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-areas: "buttons" "heading" "text";
}

.header__theme-menu {
  grid-area: buttons;
  margin-top: 65px;
}

.header__heading {
  color: #ffc2e6;
  font-style: normal;
  font-weight: 700;
  line-height: 0.96;
  font-size: clamp(7.25rem, 7.0115rem + 1.0178vw, 7.5rem);
  grid-area: heading;
  text-shadow: 4px 4px 0px #ff8dcb;
  margin: 65px 0 55px 0;
  line-height: 0.85;
}

.header__text {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  background-color: #ff8dcb;
  font-weight: 700;
  grid-area: text;
  margin-bottom: 56px;
  justify-self: flex-end;
}

.header__decoration {
  display: none;
}

.decorated-zone {
  position: relative;
}

.decorated-zone::after {
  content: "";
  position: absolute;
  display: block;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  border-top: 1px solid #353430;
  border-right: 1px solid #353430;
}

.decorated-zone::before {
  content: "";
  position: absolute;
  display: block;
  bottom: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-bottom: 1px solid #353430;
  border-left: 1px solid #353430;
}

.header__theme-menu-button {
  height: 23px;
  border: 1px solid transparent;
  padding: 0 13px;
  background-color: transparent;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.header__theme-menu-button:hover {
  border: 1px solid rgba(50, 49, 45, 0.4);
  transition: border 0.2s linear;
}

.header__theme-menu-button:focus {
  outline: none;
}

.header__theme-menu-button:focus-visible {
  outline: none;
  border-bottom: 1px solid #353430;
}

.header__theme-menu-button_active {
  border: 1px solid #353430;
  pointer-events: none;
  cursor: none;
}

.header__theme-menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 13px;
}

.main {
  padding: 40px 10px;
  display: grid;
  gap: 50px;
  max-width: 1024px;
  margin: 0 auto;
}

.section {
  display: grid;
}

.section__heading {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px;
}

.section__content {
  display: grid;
  row-gap: 50px;
}

.section__content-grid {
  margin-top: 20px;
}

.section__title {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  background-color: #ff8dcb;
}

.section__content-list {
  display: grid;
  gap: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.gallery__image {
  display: block;
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content__title {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  background-color: #ff8dcb;
}

.content__sub-title {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
  background-color: #ff8dcb;
}

.content__text {
  color: #353430;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
}

.content__link {
  text-decoration: none;
  text-shadow: 2px 1px 0px #ff8dcb;
  border-bottom: 1px solid transparent;
}

.content__link:hover {
  border-bottom: 1px solid #353430;
  transition: border 0.2s linear;
}

.content__link:focus-visible {
  outline: none;
  border: 1px solid #353430;
}

.footer {
  padding: 10px;
}

.footer__heading {
  color: #ffc2e6;
  font-style: normal;
  font-weight: 700;
  line-height: 0.96;
  font-size: clamp(7.25rem, 7.0115rem + 1.0178vw, 7.5rem);
  text-shadow: 2px 2px 0px #ff8dcb;
  padding: 276px 4px;
  text-align: center;
  line-height: 0.85;
}

@media (min-width: 700px) {
  .page.theme_dark .header__decoration {
    top: 20px;
    right: 29px;
  }
  .header {
    padding: 20px 20px 20px 0;
  }

  .header__theme-menu {
    margin-top: 172px;
  }

  .header__heading {
    margin: 175px 0 162px 0;
  }

  .decorated-zone::after {
    top: 20px;
    right: 20px;
  }

  .decorated-zone::before {
    bottom: 20px;
    left: 20px;
  }
  .main {
    padding: 60px 20px;
    gap: 80px;
  }
  .section__heading {
    width: 236px;
  }
  .section_type_why {
    grid-template-columns: max-content 1fr;
    gap: 20px;
  }
  .section_type_how {
    grid-template-columns: max-content 1fr;
    gap: 20px;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    margin-top: 20px;
  }
  .image-sunset {
    grid-column: 1/3;
  }

  .image-ice-cream {
    grid-column: 3;
    grid-row: 1/3;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

  .image-tape {
    grid-column: 1;
    grid-row: 2/4;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

  .image-street {
    grid-column: 2/4;
    grid-row: 3;
  }
  .footer {
    padding: 20px;
  }

  .footer__heading {
    padding: 443px 184px;
    font-size: clamp(7.5rem, 0.5625rem + 14.4531vw, 9.8125rem);
  }
}

@media (min-width: 550px) {
  .header__heading {
    font-size: clamp(7.5rem, 0.5625rem + 14.4531vw, 9.8125rem);
  }

  .header__text {
    width: 364px;
    margin-bottom: 163px;
  }
}

@media (min-width: 1024px) {
  .header__theme-menu {
    margin-top: 0;
  }

  .header__heading {
    margin: 273px 0 114px 0;
  }

  .header__text {
    width: 491px;
    margin-bottom: 114px;
  }
  .header__theme-menu-list {
    flex-direction: row;
    justify-content: center;
    -moz-column-gap: 10px;
         column-gap: 10px;
    padding-left: 20px;
  }
  .section__heading {
    width: 315px;
  }
  .section_type_what > .section__content-list {
    grid-template-columns: repeat(3, 315px);
  }
  .image-street {
    margin-top: 5px;
  }
}

@media (min-width: 700px) and (min-width: 1024px) {
  .footer__heading {
    padding: 299px 256px;
  }
}