:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6;
  --color-text: #000000;
  --color-muted: #848484;
  --color-accent: #ff4602;
  --color-accent-soft: #f3f6f9;
  --color-blue: #2875dd;
  --content-width: 1240px;
  --radius-button: 8px;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Manrope", sans-serif;
}

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

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

p,
h1,
h2,
ul {
  margin: 0;
}

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

.hero {
  width: 100%;
  min-height: 691px;
}

.hero__wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.hero__intro {
  background: #000000 url("./assets/bg_desk.jpg") center center / cover no-repeat;
  color: #ffffff;
}

.hero__header .brand__mark {
  filter: brightness(0) invert(1);
}

.hero__header .brand__accent {
  display: none;
}

.hero__header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-top: 25px;
  padding-bottom: 35px;
}

.brand {
  display: inline-block;
  width: 113px;
  flex: 0 0 auto;
}

.brand__images {
  position: relative;
  display: block;
  width: 113px;
  height: 58px;
}

.brand__mark,
.brand__accent {
  position: absolute;
  display: block;
}

.brand__mark {
  top: 6px;
  left: 1px;
  width: 111px;
  height: 47px;
}

.brand__accent {
  top: 6px;
  right: 2px;
  width: 17px;
  height: 17px;
}

.hero__divider {
  width: 1px;
  height: 49px;
  margin-top: 3px;
  margin-left: -1px;
  background: currentColor;
}

.hero__location {
  padding-top: 0;
  margin-left: 1px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

.hero__content {
  position: relative;
  padding-top: 70px;
  padding-bottom: 120px;
}

.hero__budget {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  background: #ffffff;
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.42;
}

.hero__title {
  position: relative;
  z-index: 1;
  width: 720px;
  padding-bottom: 40px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.hero__title-accent {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.hero__title-accent::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 6px;
  background: #2875dd;
}

.hero__title-accent-text {
  position: relative;
  z-index: 1;
}

.hero__description {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 60px;
}

.hero__icons {
  display: flex;
  padding-top: 9px;
  padding-right: 4px;
}

.hero__icons-image {
  width: 70px;
  height: 20px;
}

.hero__text {
  width: 700px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.42;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.channel-block {
  position: relative;
  min-height: 533px;
  margin-top: 80px;
  margin-bottom: 64px;
  padding: 60px;
  overflow: hidden;
  border-radius: 25px;
  background-color: var(--color-bg-alt);
  background-image: url("./assets/channel-bg-desktop.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-text);
}

.channel-block__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 750px;
}

.channel-block__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.channel-block__list {
  width: 650px;
}

.channel-block__item {
  position: relative;
  padding: 8px 55px 8px 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.channel-block__item-title {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.channel-block__item-text {
  margin: 6px 0 0;
  font-size: inherit;
  line-height: inherit;
}

.channel-block__item::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--color-accent);
}

.author-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 465px;
  justify-content: start;
  align-items: start;
  gap: 80px;
  margin-bottom: 72px;
  padding-top: 32px;
}

.author-block__content {
  padding-top: 22px;
}

.author-block__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.author-block__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 35px;
  font-size: 20px;
  line-height: 1.35;
}

.author-block__text strong {
  font-weight: 700;
}

.author-block__actions {
  display: flex;
  gap: 24px;
  margin-top: 35px;
}

.author-block__button {
  min-width: 184px;
}

.author-block__visual {
  display: flex;
  justify-content: flex-end;
}

.author-block__portrait {
  position: relative;
  width: 465px;
  height: 465px;
  overflow: hidden;
  border-radius: 25px;
  background: #e8edf3;
}

.author-block__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  background: var(--color-bg-alt);
}

.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 600px;
}

.footer__logo {
  display: inline-block;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-row {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  column-gap: 32px;
  font-size: 18px;
  line-height: 1.3888888889;
}

.footer__contact-row:last-child {
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 57px;
}

.footer__contact-row--wide {
  grid-template-columns: 85px minmax(0, 1fr);
  column-gap: 32px;
}

.footer__term {
  font-weight: 700;
  white-space: nowrap;
}

.footer__description {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 350px;
  font-size: 18px;
  line-height: 1.3888888889;
}

.footer__legal-title {
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 25px 35px;
  border-radius: var(--radius-button);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.button--primary {
  min-width: 163px;
  background: var(--color-accent);
  color: var(--color-accent-soft);
}

.button--secondary {
  min-width: 155px;
  border: 3px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.button:hover,
.button:focus-visible {
  outline: none;
}

@media (max-width: 1279px) {
  .hero {
    min-height: auto;
  }

  .hero__wrap {
    width: min(100% - 48px, 920px);
  }

  .hero__header {
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .brand {
    width: 102px;
  }

  .brand__images {
    width: 102px;
    height: 53px;
  }

  .brand__mark {
    top: 5px;
    width: 100px;
    height: auto;
  }

  .brand__accent {
    top: 5px;
    right: 1px;
  }

  .hero__location {
    margin-left: 0;
    font-size: 18px;
  }

  .hero__content {
    padding-top: 44px;
    padding-bottom: 80px;
  }

  .hero__title {
    width: min(100%, 780px);
    font-size: 28px;
  }

  .hero__title-accent::after {
    bottom: 3px;
    height: 3px;
  }

  .hero__budget {
    font-size: 17px;
  }

  .hero__text {
    width: min(100%, 620px);
    font-size: 21px;
  }

  .channel-block {
    min-height: 480px;
    margin-bottom: 56px;
    padding: 48px;
  }

  .channel-block__content {
    width: min(100%, 620px);
  }

  .channel-block__title {
    font-size: 30px;
  }

  .channel-block__list {
    width: min(100%, 560px);
  }

  .channel-block__item {
    font-size: 18px;
  }

  .author-block {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    margin-bottom: 64px;
    padding-top: 16px;
  }

  .author-block__content {
    padding-top: 10px;
  }

  .author-block__text {
    font-size: 18px;
  }

  .author-block__actions {
    gap: 16px;
  }

  .author-block__portrait {
    width: 380px;
    height: 380px;
  }

  .footer__container {
    width: min(100% - 48px, 920px);
    flex-direction: column;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer__left,
  .footer__legal {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero__intro {
    background-image: linear-gradient(to bottom, rgb(0 0 0 / 65%), transparent 38%), url("./assets/bg_mob.jpg");
    background-position: center top;
    background-size: 100% calc(100vw * 530 / 743);
  }

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

  .hero__header {
    min-height: calc(100vw * 530 / 743);
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .brand {
    width: 88px;
  }

  .brand__images {
    width: 88px;
    height: 45px;
  }

  .brand__mark {
    top: 5px;
    left: 1px;
    width: 86px;
    height: 36px;
  }

  .brand__accent {
    top: 5px;
    right: 1px;
    width: 13px;
    height: 13px;
  }

  .hero__divider {
    flex: 0 0 1px;
    display: block;
    height: 38px;
    margin-top: 2px;
    margin-left: 0;
  }

  .hero__location {
    flex: 1 1 auto;
    width: auto;
    padding-top: 1px;
    margin-left: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .hero__content {
    padding-top: 26px;
    padding-bottom: 56px;
  }

  .hero__title {
    width: 100%;
    padding-bottom: 24px;
    font-size: 24px;
    line-height: 1.3;
  }

  .hero__title-accent {
    white-space: normal;
  }

  .hero__title-accent::after {
    display: none;
  }

  .hero__title-accent-text {
    text-decoration: none;
  }

  .hero__description {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 36px;
  }

  .hero__icons {
    padding-top: 0;
    padding-right: 0;
  }

  .hero__budget {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero__text {
    width: 100%;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero__actions {
    flex-direction: column;
    gap: 14px;
  }

  .button {
    width: 100%;
    height: 62px;
    padding: 21px 18px;
  }

  .button--primary,
  .button--secondary {
    min-width: 0;
  }

  .channel-block {
    min-height: 0;
    margin-top: 35px;
    margin-bottom: 40px;
    padding: 0;
    background-image: none;
  }

  .channel-block__content {
    width: 100%;
    gap: 14px;
    padding: 48px 20px 26px;
  }

  .channel-block__title {
    font-size: 24px;
    line-height: 1.25;
  }

  .channel-block__list {
    width: 100%;
  }

  .channel-block__item {
    padding: 7px 0 7px 28px;
    font-size: 18px;
    line-height: 1.35;
  }

  .channel-block__item::before {
    top: 15px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 3px;
  }

  .author-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
    padding-top: 8px;
  }

  .author-block__content {
    order: 2;
    padding-top: 0;
  }

  .author-block__title {
    font-size: 24px;
  }

  .author-block__text {
    gap: 10px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.35;
  }

  .author-block__actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }

  .author-block__button {
    width: 100%;
    min-width: 0;
  }

  .author-block__visual {
    order: 1;
    justify-content: flex-start;
  }

  .author-block__portrait {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
  }

  .author-block__portrait img {
    position: absolute;
    inset: 0;
  }

  .footer__container {
    width: calc(100% - 32px);
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer__left {
    gap: 20px;
  }

  .footer__contacts,
  .footer__legal {
    font-size: 16px;
    line-height: 1.375;
  }

  .footer__contact-row,
  .footer__contact-row:last-child,
  .footer__contact-row--wide {
    grid-template-columns: 1fr;
    row-gap: 2px;
    column-gap: 0;
  }
}
