:root {
  --grey-color: #1a1b1c;
  --background-color: #dcdcdc;
  --text-color: var(--grey-color);
  --blood-red-color: #d21234;
  --blood-red-darker-color: #a6132e;
  --dm-sans: "DM Sans", sans-serif;
  --caudex-serif: "Caudex", serif;
  --max-width: 1116px;
  --page-horizontal-padding: 24px;
  --button-share-hover-color: #e2dede;
}

body {
  background-color: var(--background-color);
  color: #1a1b1c;
  font-family: var(--caudex-serif);
  font-size: 131.25%;
  margin: 0;
}

.header {
  padding: 0 var(--page-horizontal-padding);
  max-width: var(--max-width);
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav-link {
  text-decoration: none;
  font-family: var(--dm-sans);
  color: var(--text-color);
  transition: border-color 0.3s;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.header-nav-link:hover,
.header-nav-link.active {
  border-color: var(--text-color);
}

main {
  padding: 0 var(--page-horizontal-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

@keyframes fadein {
  0% {
    opacity: 0;
    transform: translateY(10%);
  }

  75% {
    transform: translateY(0);
  }

  100% {
    opacity: 100%;
  }
}

.logo {
  filter: hue-rotate(200deg) saturate(1);
}

.title {
  background-image: url("/Ilu.png");
  background-size: 736px;
  background-repeat: no-repeat;
  padding-top: 420px;
  background-position: top center;
  animation: fadein 2s;
}

.title p {
  font-size: 72px;
  line-height: 76px;
  margin: 0;
  font-weight: bold;
}

.title strong,
.terms-full-title strong {
  color: var(--blood-red-color);
  margin: 0;
  font-weight: bold;
}

.buttons {
  margin-top: 32px;
}

.buttons > * + * {
  margin-left: 16px;
}

.button {
  padding: 13px 24px;
  font-size: 24px;
  line-height: 31px;
  font-family: var(--dm-sans);
  text-decoration: none;
  border-radius: 2px;
  display: inline-block;
  transition: background-color 0.3s;
  border: 3px solid transparent;
  text-align: center;
}

.button.cta {
  background-color: var(--blood-red-color);
  color: white;
}

.button.cta:hover {
  background-color: var(--blood-red-darker-color);
}

.button.outline {
  border: 3px solid var(--grey-color);
  color: var(--grey-color);
  transition: background-color 0.3s, color 0.3s;
  background-color: transparent;
}

.button.outline:hover {
  background-color: var(--text-color);
  color: var(--button-share-hover-color);
}

.button-share {
  border: 3px solid var(--grey-color);
  color: var(--grey-color);
  padding: 9px calc(16px + 50px) 9px 16px;
  font-size: 21px;
  line-height: 27px;
  display: block;
  position: relative;
  font-weight: 500;
  font-family: var(--dm-sans);
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.3s, color 0.3s;
  background-color: transparent;
  cursor: pointer;
}

.button-share:hover {
  background-color: var(--text-color);
  color: var(--button-share-hover-color);
}

.button-share::after {
  content: " ";
  background-image: url("/arrow-up-right.svg");
  background-color: var(--grey-color);
  width: 51px;
  height: 51px;
  display: block;
  position: absolute;
  top: -3px;
  right: -3px;
  background-position: center;
  background-repeat: no-repeat;
}

.terms {
  margin-top: 228px;
  margin-bottom: 196px;
}

h2 {
  font-size: 72px;
  line-height: 76px;
  margin: 0;
}

.terms h2 {
  margin-bottom: 64px;
}

.terms ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  column-gap: 30px;
  row-gap: 128px;
  counter-reset: count;
  background-image: url("/terms-bg.png");
  background-repeat: no-repeat;
  background-size: 97px;
  background-position: right 23% bottom 10%;
}

.terms ol li {
  counter-increment: count;
}

.terms ol li p {
  margin: 0 0 32px 0;
  margin-top: 16px;
  font-size: 40px;
  line-height: 44px;
  font-weight: bold;
}

.terms ol li a {
  color: var(--blood-red-color);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--dm-sans);
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.3s;
}

.terms ol li a:hover {
  border-color: var(--blood-red-color);
}

.terms ol li::before {
  content: "[" counter(count) "]";
  color: var(--blood-red-color);
  font-size: 40px;
  font-family: var(--dm-sans);
  font-weight: 500;
}

.terms footer {
  margin-top: 128px;
  font-family: var(--dm-sans);
  color: var(--text-color);
  font-size: 21px;
  line-height: 27px;
}

.terms footer a {
  color: var(--blood-red-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.terms footer a:hover {
  border-bottom-color: var(--blood-red-color);
}

.footer {
  padding: 0 var(--page-horizontal-padding);
  max-width: var(--max-width);
  margin: 196px auto 32px;
  display: flex;
  gap: 24px;
  font-family: var(--dm-sans);
  font-size: 21px;
  font-weight: 400;
  line-height: 27px;
}

.footer div {
  width: 50%;
}

.footer .contact {
  display: flex;
  gap: 16px;
}

.footer .contact p {
  margin-bottom: 0;
  font-weight: 500;
}

.footer .contact a {
  color: var(--text-color);
  transition: color 0.3s;
}

.footer .contact a:hover {
  color: var(--blood-red-color);
}

.hide-desktop {
  display: none;
}

.floating {
  display: none;
}

h3 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 32px;
  font-family: var(--caudex-serif);
}

.terms-full {
  max-width: 736px;
  margin-top: 64px;
  font-family: var(--dm-sans);
  margin-bottom: 196px;
}

.terms-full strong {
  font-weight: 500;
}

.terms-full ol {
  padding: 0;
  margin: 0;
  counter-reset: count;
  list-style: none;
}

.terms-full ol > li {
  counter-increment: count;
  margin-top: 40px;
  font-size: 21px;
  line-height: 1.5;
}

.terms-full ol > li > p {
  margin-top: 4px;
  margin-bottom: 32px;
}

.terms-full ol > li > p.remove-margin {
  margin: 0;
}

.terms-full ol > li::before {
  content: "[" counter(count) "]";
  color: var(--blood-red-color);
  font-size: 21px;
  line-height: 27px;
  font-family: var(--dm-sans);
  font-weight: 500;
}

.terms-full ol > li ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.terms-full ol > li ul.strong {
  font-weight: 500;
}

@media screen and (max-width: 1024px) {
  .hide-mobile {
    display: none;
  }

  .hide-desktop {
    display: block;
  }

  .header {
    justify-content: center;
  }

  .title {
    background-size: 500px;
    padding-top: 290px;
  }

  .title p {
    font-size: 42px;
    line-height: 48px;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .buttons > * + * {
    margin-left: 0;
  }

  .button {
    font-size: 18px;
    line-height: 24px;
    padding: 9px;
  }

  .button.outline {
    font-weight: 500;
  }

  .terms {
    margin: 96px 0;
  }

  h2 {
    font-size: 42px;
    line-height: 48px;
  }

  .terms {
    background-image: none;
  }

  .terms ol {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .terms ol li::before {
    font-size: 28px;
    line-height: 37px;
  }

  .terms ol li p {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 32px;
    font-weight: bold;
    margin-top: 8px;
  }

  .terms footer {
    margin-top: 64px;
  }

  .footer {
    flex-direction: column-reverse;
    margin-top: 96px;
    gap: 16px;
  }

  .footer div {
    width: 100%;
  }

  .footer .contact {
    flex-direction: column;
    gap: 0;
  }

  .floating {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s;
    display: flex;
    justify-content: space-between;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  }

  .floating.visible {
    transform: translateY(0);
  }

  .button-share-floating {
    width: 50px;
    height: 50px;
    text-indent: -100px;
    display: block;
    background-color: #f2f2f2;
    background-image: url("/arrow-up-right-dark.svg");
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    color: transparent;
    font-size: 1px;
    border: 0;
  }

  h3 {
    font-size: 28px;
    line-height: 32px;
    font-weight: 700;
  }

  .terms-full {
    margin-bottom: 96px;
  }

  .terms-full ol > li {
    font-size: 18px;
  }
}
