*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  min-height: 100%;
}
body {
  background: #fff;
  color: #29282e;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.page {
  flex: 1;
}
[class*="__container"] {
  width: min(100% - 40px, 1140px);
  margin-inline: auto;
}
.header {
  background: #fff;
}
.header__container {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
}
.header__logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header__advertisement {
  font-size: 12px;
}
.advertorial {
  padding: 0 0 82px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px;
}
.hero__content {
  padding-right: 18px;
}
.hero h1,
.story h2 {
  font-family: "Noto Sans Display", "Noto Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.hero h1 {
  margin-bottom: 28px;
  font-size: 40px;
}
.hero p {
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.43;
}
.hero .accent {
  font-weight: 600;
}
.accent {
  color: #862749;
  font-weight: 600;
}
.hero__image,
.story__image {
  width: 100%;
  height: 100%;
  border-radius: 16px 16px 56px 56px;
  object-fit: cover;
}
.hero__image {
  max-height: 545px;
}
.button {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 13px 22px;
  border-radius: 4px;
  background: #ddc83a;
  color: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  text-align: center;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}
.button:focus-visible,
.header__logo:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #862749;
  outline-offset: 4px;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 66px;
  align-items: start;
}
.story--image-left {
  grid-template-areas: "image title" "image copy";
}
.story--image-right {
  grid-template-areas: "title image" "copy image";
}
.story--wide-title {
  grid-template-areas: "title title" "image copy";
}
.story--wide-title.story--image-right {
  grid-template-areas: "title title" "copy image";
}
.story h2 {
  grid-area: title;
  font-size: 32px;
}
.story--wide-title > h2 {
  text-align: left;
}
.story--centered-title > h2 {
  width: 700px;
  justify-self: center;
  text-align: center;
}
.story__image {
  grid-area: image;
}
.story__copy {
  grid-area: copy;
  display: grid;
  gap: 24px;
}
.story__copy p {
  font-size: 20px;
  line-height: 1.48;
}
.story__button {
  grid-column: 1/-1;
  margin-top: 8px;
}
.footer {
  background: #050505;
  color: #f7f7f7;
  padding: 58px 0 30px;
  font-family: "Roboto", Arial, sans-serif;
}
.footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.footer__column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.footer__title {
  font-size: 16px;
  font-weight: 600;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a:hover,
.footer__company a:hover {
  text-decoration: underline;
}
.footer__copyright {
  margin-top: 46px;
  color: #777;
  font-size: 14px;
  text-align: center;
}
.legal {
  padding: 58px 0 80px;
}
.legal__container {
  max-width: 940px;
}
.legal__title {
  font-family: "Noto Sans Display", "Noto Sans", sans-serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.legal__updated {
  margin: 12px 0 30px;
  color: #666;
}
.legal__content {
  display: grid;
  max-width: 850px;
  gap: 32px;
}
.legal__section {
  display: grid;
  gap: 12px;
}
.legal__section-title {
  font-family: "Noto Sans Display", "Noto Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.legal__list {
  display: grid;
  gap: 6px;
  padding-left: 24px;
}
.legal__link {
  color: #862749;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__address {
  font-style: normal;
  line-height: 1.65;
}
.legal__definitions {
  display: grid;
  gap: 18px;
}
.legal__definitions div {
  display: grid;
  gap: 4px;
}
.legal__definitions dt {
  font-weight: 600;
}
.legal__definitions dd {
  margin: 0;
}
.legal__table-wrap {
  overflow: auto;
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
}
.legal__table th,
.legal__table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}
@media (max-width: 800px) {
  [class*="__container"] {
    width: min(100% - 30px, 560px);
  }
  body {
    font-size: 15px;
  }
  .header__container {
    min-height: 70px;
  }
  .header__logo {
    width: 40px;
    height: 40px;
  }
  .header__advertisement {
    font-size: 8px;
  }
  .advertorial {
    padding-bottom: 46px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 42px;
  }
  .hero__content {
    display: contents;
  }
  .hero h1 {
    order: 1;
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
  }
  .hero__image {
    order: 2;
    height: clamp(235px, 62vw, 310px);
    border-radius: 16px 16px 56px 56px;
  }
  .hero p {
    order: 3;
    margin: 0;
    font-size: 20px;
  }
  .hero .accent {
    order: 4;
  }
  .hero .button {
    order: 5;
  }
  .button {
    min-height: 44px;
    margin-top: 0;
    padding: 11px 16px;
    font-size: 13px;
  }
  .story,
  .story--image-left,
  .story--image-right,
  .story--wide-title,
  .story--wide-title.story--image-right {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 42px;
  }
  .story h2,
  .story--wide-title > h2 {
    order: 1;
    font-size: 24px;
    text-align: left;
  }
  .story--centered-title > h2 {
    align-self: center;
    width: 100%;

  }
  .story__image {
    order: 2;
    width: 100%;
    height: clamp(230px, 62vw, 310px);
    border-radius: 16px 16px 56px 56px;
    object-position: center;
  }
  .story__copy {
    order: 3;
    gap: 18px;
  }
  .story__copy p {
    font-size: 16px;
    line-height: 1.5;
  }
  .story__button {
    order: 4;
    width: 100%;
    margin-top: 0;
  }
  .footer {
    padding: 36px 0 24px;
  }
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__copyright {
    margin-top: 32px;
  }
  .legal {
    padding: 40px 0 60px;
  }
  .legal__title {
    font-size: 30px;
  }
  .legal__section-title {
    font-size: 20px;
  }
}
@media (max-width: 380px) {
  [class*="__container"] {
    width: min(100% - 22px, 560px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
