@charset "UTF-8";
/* fonts */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  src: url("/assets/inter.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  src: url("/assets/inter_italic.ttf") format("truetype");
}
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* main styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --checkmark-color: white;
}

body {
  font-size: 16px;
}

input,
button,
textarea {
  font-family: inherit;
}

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
}

section h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

section p {
  font-size: 1rem;
  line-height: 1.5;
}

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  color: #333;
  padding: 64px 16px;
  /* background: radial-gradient(#fe5956, #ba0af7); */
  color: #fefefe;
  background: radial-gradient(rgba(254, 89, 86, 0.3137254902) 0%, rgba(186, 10, 247, 0.3137254902) 30%, transparent 70%), linear-gradient(#222222, #111111);
  background-size: 100vmax 100vmax, 100% 100%;
  background-position: bottom 35vmax center, center center;
}

.hero__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  gap: 32px;
}

.hero__image {
  width: 256px;
  height: 256px;
  -o-object-fit: contain;
  object-fit: contain;
}

.hero__content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__content p {
  font-size: 1.2rem;
  line-height: 1.5;
  opacity: 0.8;
}

@media (max-width: 800px) {
  .hero {
    padding: 32px 16px;
    background-position: 25vw -50vmax, center center;
  }
  .hero__row {
    flex-direction: column;
    max-width: 600px;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  .hero__content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .hero__content p {
    font-size: 1rem;
    line-height: 1.5;
  }
}
.auth-providers {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.auth-providers button {
  max-width: 128px;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 24px;
  background-color: #ba0af7;
  border: none;
  cursor: pointer;
  padding: 26px;
  background: radial-gradient(#fe5956, #ba0af7);
  background-position: bottom right;
  background-size: 300% 300%;
}

.auth-providers button.ya {
  filter: hue-rotate(60deg);
}

.auth-providers button.vk {
  filter: hue-rotate(300deg);
}

.auth-providers button.tg {
  filter: hue-rotate(265deg) brightness(1.3);
}

.auth-providers button:hover {
  opacity: 0.85;
}

.auth-providers button:active {
  opacity: 0.7;
}

.auth-providers button img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

@media (max-width: 800px) {
  .auth-providers {
    gap: 24px;
  }
  .auth-providers button {
    max-width: 86px;
    padding: 20px;
  }
}
@media (max-width: 500px) {
  .auth-providers button {
    max-width: 80px;
    padding: 16px;
  }
}
.books-grid {
  /* background-color: #f0f0f0; */
  margin-top: 24px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  --book-separator: rgba(0, 0, 0, 0.2);
}

.book-wrapper:first-of-type .book {
  border-top-left-radius: 8px;
}

.book-wrapper:nth-of-type(2) .book {
  border-top-right-radius: 8px;
}

.book-wrapper:last-of-type .book {
  border-bottom-right-radius: 8px;
}

.book-wrapper:nth-last-of-type(2) .book {
  border-bottom-left-radius: 8px;
}

@media (max-width: 900px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  .book-wrapper:first-of-type .book {
    border-top-right-radius: 8px;
  }
  .book-wrapper:nth-of-type(2) .book {
    border-top-right-radius: 0;
  }
  .book-wrapper:last-of-type .book {
    border-bottom-left-radius: 8px;
  }
  .book-wrapper:nth-last-of-type(2) .book {
    border-bottom-left-radius: 0;
  }
}
.book-wrapper {
  --book-color: 186, 10, 247;
  --book-color: 0, 0, 0;
}

.book-wrapper input {
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
  top: 0;
  left: 0;
  position: fixed;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.book {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  --common-border: 0 0 0 1px var(--book-separator);
  --additional-shadow: inset 0 0 0 0 #ba0af755;
  box-shadow: var(--additional-shadow), var(--common-border);
  margin-bottom: -1px;
  margin-right: -1px;
  transition: box-shadow 0.13s ease-in-out;
  cursor: pointer;
  background-color: #f0f0f0;
  gap: 24px;
}

.book:hover {
  --additional-shadow: inset 0 0 0 2px rgba(var(--book-color), 0.333);
}

.book-wrapper input:checked ~ .book {
  --additional-shadow: inset 0 0 0 2px rgb(var(--book-color));
  z-index: 2;
}

.book__cover {
  width: 90px;
  height: auto;
  aspect-ratio: 0.7;
  position: relative;
  flex-shrink: 0;
}

.book__checkmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Красить фон галочки в цвет обводки */
  background-color: rgba(var(--book-color), 0.2);
  /* Красить фон галочки чёрным */
  /* background-color: rgba(0, 0, 0, 0.2); */
  /* Красить фон галочки белым */
  /* background-color: rgba(255, 255, 255, 0.1); */
  color: var(--checkmark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.13s ease-in-out;
}

.book__checkmark svg {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 4px rgb(0, 0, 0));
}

@keyframes check-appear {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
.book-wrapper input:checked ~ .book .book__checkmark {
  opacity: 1;
}

.book-wrapper input:checked ~ .book .book__checkmark svg {
  animation: check-appear 0.5s linear(0, 0.578 8.3%, 1.01 16.9%, 1.175 21.4%, 1.307 26%, 1.406 30.8%, 1.473 35.8%, 1.503 39.8%, 1.514 44%, 1.507 48.5%, 1.48 53.2%, 1.389 62.3%, 1.158 79.5%, 1.077 86.4%, 1.019 93.6%, 1);
}

.book__cover > img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  background-color: white;
  color: #333;
  text-shadow: 0 0 4px white, 0 0 8px white;
  text-align: center;
}

.book__info {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */ /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version */
}

.book__info small {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

.book__info h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.book__info p {
  font-size: 1rem;
}

@media (max-width: 500px) {
  .book__info small {
    font-size: 0.75rem;
  }
  .book__info h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .book__info p {
    font-size: 0.8rem;
  }
}
.books-form button {
  margin: 0 auto;
  margin-top: 32px;
  display: block;
  border: none;
  background: radial-gradient(#fe5956, #ba0af7);
  background-position: bottom right;
  background-size: 300% 300%;
  color: white;
  border-radius: 100vmax;
  cursor: pointer;
  transition: opacity 0.13s ease-in-out;
  font-size: 1.2rem;
  padding: 18px 64px;
}

.books-form button:disabled {
  filter: grayscale(1) brightness(1.5);
  pointer-events: none;
}

.books-form button:hover {
  opacity: 0.85;
}

.books-form button:active {
  opacity: 0.7;
}

footer {
  background-color: #181818;
  background: radial-gradient(rgba(254, 89, 86, 0.3137254902) 0%, rgba(186, 10, 247, 0.3137254902) 30%, transparent 70%), linear-gradient(#222222, #111111);
  /* background-image: radial-gradient(rgba(255, 255, 255, .3) 0%, transparent 50%); */
  background-size: 100vmax 100vmax, 100% 100%;
  background-position: 100vmax 25vmax, center center;
  color: #fafafa;
}

footer h3 {
  font-weight: normal;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.founders {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.founders a {
  padding: 8px;
  /* background-color: white; */
  border-radius: 16px;
}

.founders img {
  max-height: 128px;
  transition: filter 0.13s ease-in-out;
}

.founders a:hover {
  filter: brightness(0.8);
}

@media (max-width: 500px) {
  .founders {
    gap: 24px;
    flex-direction: column;
  }
  .founders img {
    max-height: 96px;
  }
}
.credits {
  margin-top: 32px;
}

.credits p {
  font-size: 0.7rem;
  margin: 8px 0;
  color: #fafafa;
}

.credits p:first-of-type {
  margin-top: 0;
}

.credits p:last-of-type {
  margin-bottom: 0;
}

.center {
  text-align: center;
}