@font-face {
  font-family: "Montserat";
  src: url("assets/montserrat-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserat";
  src: url("assets/montserrat-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ebebeb;
  color: #1a1a1a;
  font-family: "Montserat", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: #5e09df;
}

.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  padding-top: 39px;
}

.hero__card {
  position: relative;
  height: 434px;
  border-radius: 25px;
  overflow: hidden;
  background: linear-gradient(135deg, #4904d9 0%, #7a0ee5 100%);
  color: #fff;
}

.hero__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 40px;
  width: 130px;
  height: auto;
}

.hero__title {
  position: absolute;
  z-index: 2;
  left: 40px;
  bottom: 36px;
  margin: 0;
  max-width: 713px;
  color: #fff;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

.hero__coin {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.hero__coin--a {
  width: 335px;
  top: 30px;
  right: -72px;
}

.hero__coin--b {
  width: 287px;
  top: 174px;
  left: 673px;
  transform: rotate(-9deg);
}

.company {
  margin-top: 80px;
  padding: 40px 40px 48px;
  background: #fff;
  border-radius: 25px;
}

.company__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company__icon {
  width: 32px;
  height: 32px;
  flex: none;
}

.company h2,
.acc summary {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.company__text {
  max-width: 560px;
  margin-top: 18px;
}

.company__text p {
  margin: 0;
}

.company__text p + p {
  margin-top: 1.4em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 20px;
  margin: 48px 0 0;
}

.fact {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 26, 26, 0.3);
}

.fact dt {
  margin: 0;
  color: rgba(26, 26, 26, 0.3);
  font-weight: 500;
}

.fact dd {
  margin: 10px 0 0;
}

.documents {
  margin-top: 80px;
}

.acc {
  border-top: 1px solid rgba(26, 26, 26, 0.3);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 69px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary:focus-visible {
  outline: 2px solid #5e09df;
  outline-offset: 4px;
}

.acc__icon {
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform 0.4s ease-in-out;
}

.acc[open] .acc__icon {
  transform: rotate(180deg);
}

.docs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 19px;
  padding: 4px 0 28px;
}

.doc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 167px;
  padding: 20px;
  background: #fff;
  border-radius: 25px;
  color: #1a1a1a;
  transition: box-shadow 0.2s ease;
}

.doc:hover {
  color: #1a1a1a;
  box-shadow: inset 0 0 0 2px #5e09df;
}

.doc:focus-visible {
  outline: 2px solid #5e09df;
  outline-offset: 3px;
}

.doc__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(26, 26, 26, 0.3);
}

.doc__meta img {
  width: 32px;
  height: 32px;
  flex: none;
}

.doc__name {
  line-height: 1.4;
}

.legal {
  margin-top: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.3);
  padding-top: 100px;
}

.legal p {
  margin: 0;
  color: rgba(26, 26, 26, 0.3);
}

@media (max-width: 1199px) {
  .page {
    width: min(960px, 100%);
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__card {
    height: 334px;
  }

  .hero__logo {
    top: 30px;
    left: 30px;
    width: 110px;
  }

  .hero__title {
    left: 30px;
    bottom: 28px;
    max-width: 68%;
    font-size: 36px;
  }

  .hero__coin--a {
    width: 252px;
    top: 24px;
    right: -48px;
  }

  .hero__coin--b {
    width: 252px;
    top: 110px;
    left: auto;
    right: 120px;
  }

  .company {
    padding: 32px 32px 40px;
  }

  .doc {
    min-height: 132px;
    padding: 16px;
  }
}

@media (max-width: 959px) {
  .page {
    width: min(640px, 100%);
  }

  .hero {
    padding-top: 20px;
  }

  .hero__card {
    height: 620px;
  }

  .hero__title {
    max-width: 88%;
    bottom: 40px;
  }

  .hero__coin--a {
    width: 230px;
    top: 72px;
    right: -36px;
  }

  .hero__coin--b {
    width: 220px;
    top: 180px;
    right: auto;
    left: 18%;
  }

  .company {
    margin-top: 48px;
  }

  .company__text {
    max-width: none;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
  }

  .documents {
    margin-top: 48px;
  }

  .docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .doc {
    min-height: 150px;
  }
}

@media (max-width: 639px) {
  .page {
    width: min(480px, 100%);
  }

  .hero__card {
    height: 280px;
    border-radius: 15px;
  }

  .hero__logo {
    top: 20px;
    left: 20px;
    width: 90px;
  }

  .hero__title {
    left: 20px;
    right: 20px;
    bottom: 18px;
    max-width: none;
    font-size: 24px;
  }

  .hero__coin--a {
    width: 150px;
    top: 16px;
    right: -28px;
  }

  .hero__coin--b {
    width: 140px;
    top: 8px;
    left: auto;
    right: 70px;
  }

  .company {
    margin-top: 40px;
    padding: 24px 20px 28px;
    border-radius: 15px;
  }

  .company__text br {
    display: none;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .company,
  .facts,
  .doc {
    font-size: 14px;
  }

  .documents {
    margin-top: 40px;
  }

  .doc {
    min-height: 160px;
    border-radius: 15px;
  }

  .legal {
    padding-top: 48px;
  }
}

@media (max-width: 479px) {
  .page {
    width: 100%;
  }

  .hero__card {
    height: 450px;
  }

  .hero__title {
    max-width: 92%;
    bottom: 28px;
  }

  .hero__coin--a {
    width: 168px;
    top: 64px;
    right: auto;
    left: 8px;
  }

  .hero__coin--b {
    width: 160px;
    top: 190px;
    left: auto;
    right: -16px;
  }

  .company__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .company,
  .facts,
  .doc,
  .legal {
    font-size: 12px;
  }

  .company h2,
  .acc summary {
    font-size: 20px;
  }

  .doc {
    min-height: 147px;
    padding: 14px;
    gap: 12px;
  }

  .doc__meta img {
    width: 24px;
    height: 24px;
  }

  .acc__icon {
    width: 28px;
    height: 28px;
  }
}
