@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&display=swap');

@font-face {
  font-family: 'Benzin';
  src: url('../font/benzin/Benzin-Medium.eot');
  src: local('☞Benzin Medium'), local('Benzin-Medium'),
    url('../font/benzin/Benzin-Medium.eot?#iefix') format('embedded-opentype'),
    url('../font/benzin/Benzin-Medium.woff2') format('woff2'),
    url('../font/benzin/Benzin-Medium.woff') format('woff'),
    url('../font/benzin/Benzin-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('../font/benzin/Benzin-Bold.eot');
  src: local('☞Benzin Bold'), local('Benzin-Bold'),
    url('../font/benzin/Benzin-Bold.eot?#iefix') format('embedded-opentype'),
    url('../font/benzin/Benzin-Bold.woff2') format('woff2'),
    url('../font/benzin/Benzin-Bold.woff') format('woff'),
    url('../font/benzin/Benzin-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('../font/benzin/Benzin-Semibold.eot');
  src: local('☞Benzin Semibold'), local('Benzin-Semibold'),
    url('../font/benzin/Benzin-Semibold.eot?#iefix') format('embedded-opentype'),
    url('../font/benzin/Benzin-Semibold.woff2') format('woff2'),
    url('../font/benzin/Benzin-Semibold.woff') format('woff'),
    url('../font/benzin/Benzin-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('../font/benzin/Benzin-Regular.eot');
  src: local('Benzin Regular'), local('Benzin-Regular'),
    url('../font/benzin/Benzin-Regular.eot?#iefix') format('embedded-opentype'),
    url('../font/benzin/Benzin-Regular.woff2') format('woff2'),
    url('../font/benzin/Benzin-Regular.woff') format('woff'),
    url('../font/benzin/Benzin-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



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

body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
oL {
  margin: 0;
  padding: 0;
}

a,
input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;

}

input[type='text']::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

input[type='text']::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

input[type="text"] {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  border-radius: 0;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg-body);
  font-family: var(--main-font);
  color: hsl(var(--text-primary-hsl));
}

.container {
  max-width: calc(350px + (20px * 2));
  padding: 60px 20px 30px;
  margin-inline: auto;
}

:root {
  --title-font: "Benzin", Helvetica, sans-serif;
  --main-font: 'Geologica', Helvetica, sans-serif;
  --bg-body: #2C2C36;
  --text-primary-hsl: 240, 100%, 100%;
  --text-secondary-hsl: 240, 35%, 91%;
  --text-tertiary-hsl: 0, 0%, 96%;
  --decorative-color: 185, 100%, 42%;
  --error-color: #FF3232;
}

.bottom-indent {
  margin-bottom: 60px;
}

/* header */

header {
  display: flex;
  justify-content: center;
  margin-bottom: 43px;
}


header img {
  max-width: 90px;
}

/* hgroup-title-page */

.hgroup-title-page {
  position: relative;
  padding-bottom: 34px;
}

.hgroup-title-page::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 100%;
  max-width: 80px;
  height: 1px;
  background-color: hsla(var(--text-secondary-hsl), 0.5);
}

.hgroup-title-page h1 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 48px;
  line-height: 104%;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 19px;
}

@media screen and (max-width:350px) {
  .hgroup-title-page h1 {
    font-size: 32px;
  }
}

.hgroup-title-page p {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  text-wrap: balance;
  line-height: 110%;
  color: hsla(var(--text-primary-hsl), 0.8);
}

/* conditions */
.conditions__title {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 110%;
  text-align: center;
  color: hsl(var(--text-primary-hsl));
  margin-bottom: 19px;
  letter-spacing: 1px;
}

.conditions__text{
  font-weight: 100;
  font-size: 16px;
  line-height: 110%;
  color: hsl(var(--text-secondary-hsl));
  text-align: center;
}

.conditions__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conditions__list li {
  padding-left: 36px;
  position: relative;
  font-weight: 100;
  font-size: 16px;
  line-height: 110%;
  color: hsl(var(--text-secondary-hsl));
}

.conditions__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-image: url('../i/marck-list.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.conditions__list li:not(:last-child) {
  margin-bottom: 14px;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form legend {
  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  text-align: center;
  color: hsl(var(--text-primary-hsl));
  margin-bottom: 20px;
  text-wrap: balance;
}

.form fieldset {
  border: none;
  padding: 0;
}

.form input {
  width: 100%;
  background-color: transparent;
  border-radius: 12px;
  border: 1px solid hsl(var(--text-primary-hsl));
  padding: 10px 20px;
  line-height: normal;
  height: 60px;
  font-weight: 400;
  font-size: 14px;
  color: hsl(var(--text-tertiary-hsl));
}

.form input::placeholder {
  font-weight: 400;
  font-size: 14px;
  color: hsla(var(--text-tertiary-hsl), 0.6);
}

.form button[type="submit"] {
  font-family: var(--title-font);
  width: 100%;
  background-color: transparent;
  min-height: 60px;
  border-radius: 60px;
  border: 1px solid hsl(var(--decorative-color));
  color: hsl(var(--decorative-color));
  padding-inline: 20px;
  padding-block: 10px 11px;

  font-weight: 600;
  font-size: 16px;
  text-align: center;

  cursor: pointer;
  margin-top: 26px;
  transition: all 0.2s;
}

.input-choice {
  display: flex;
  position: relative;
  font-weight: 400;
  padding-left: 30px;
  color: hsla(var(--text-secondary-hsl), 0.6);
  cursor: pointer;

  font-weight: 400;
  font-size: 12px;
  line-height: 110%;
  margin-top: 14px;
  text-align: left;

}

.input-choice a {
  text-decoration: underline hsla(var(--text-secondary-hsl), 0.4);
  text-decoration-skip-ink: none;
}

.input-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}



.input-choice span {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 1px solid hsla(var(--text-secondary-hsl), 0.6);
  margin: 0;
  border-radius: 4px;
  background-color: transparent;
}

.input-choice input:checked+span {
  border: 1px solid hsl(var(--text-secondary-hsl));
}

.input-choice input:checked+span::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDExIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zLjc2MTk3IDYuMjUzOUw5Ljc5MDcgMC4yMTM4MDlDOS45MzI5NyAwLjA3MTI2OTYgMTAuMDk5IDAgMTAuMjg4NiAwQzEwLjQ3ODMgMCAxMC42NDQzIDAuMDcxMjY5NiAxMC43ODY2IDAuMjEzODA5QzEwLjkyODkgMC4zNTYzNDggMTEgMC41MjU3MzEgMTEgMC43MjE5NkMxMSAwLjkxODE4OSAxMC45Mjg5IDEuMDg3MzMgMTAuNzg2NiAxLjIyOTRMNC4yNTk5MiA3Ljc4NjE5QzQuMTE3NjUgNy45Mjg3MyAzLjk1MTY2IDggMy43NjE5NyA4QzMuNTcyMjggOCAzLjQwNjI5IDcuOTI4NzMgMy4yNjQwMiA3Ljc4NjE5TDAuMjA1MTk4IDQuNzIxNkMwLjA2MjkyNzYgNC41NzkwNiAtMC4wMDUzNjI1MiA0LjQwOTkyIDAuMDAwMzI4MzE3IDQuMjE0MTZDMC4wMDYwMTkxNSA0LjAxODQxIDAuMDgwMjM2OSAzLjg0OTAzIDAuMjIyOTgyIDMuNzA2MDFDMC4zNjU3MjcgMy41NjMgMC41MzQ3OTMgMy40OTE3MyAwLjczMDE3OCAzLjQ5MjJDMC45MjU1NjMgMy40OTI2OCAxLjA5NDM5IDMuNTYzOTUgMS4yMzY2NiAzLjcwNjAxTDMuNzYxOTcgNi4yNTM5WiIgZmlsbD0iI0UwRTBGMCIvPgo8L3N2Zz4K);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.input-choice.error-field {
  color: var(--error-color);

}

 .input-choice.error-field a{
  text-decoration: underline var(--error-color);
  }

.input-choice.error-field span {
  border-color: var(--error-color);
}

.form .error-messages {
  font-weight: 400;
  font-size: 12px;
  color: var(--error-color);
  margin-top: 5px;
  display: flex;
  align-items: flex-start;
  line-height: 20px;
}

.form .error-messages::before {
  flex: 0 0 auto;
  margin-right: 5px;
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDE4LjUzNzlDMTQuNjYyNSAxOC41Mzc5IDE4LjUzNzkgMTQuNjcwNyAxOC41Mzc5IDEwQzE4Lj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==);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.form .error-item input {
  border-color: #DA0707;
}

/* contacts */

.contacts__title {
  margin-inline: auto;
  max-width: 200px;
  text-wrap: balance;
  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  text-align: center;
  margin-bottom: 16px;
}

.contacts__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 260px;
  min-height: 50px;
  border-radius: 50px;
  border: 1px solid hsla(var(--decorative-color), 0.5);

  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  margin-inline: auto;

  color: hsl(var(--text-primary-hsl));
  text-decoration: none;
}

.contacts__link img {
  width: 26px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

/* footer */

footer p {
  margin-inline: auto;
  width: 100%;
  display: inline-block;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  text-align: center;
  color: hsla(var(--text-secondary-hsl), 0.6);
  text-decoration: none;
  margin-bottom: 16px;
}



/* modal */

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: hsla(0, 0%, 30%, 0.6);
  z-index: 100;
}

.modal .modal__wrapper {
  width: 100%;
  max-width: 350px;
  margin-inline: auto;
  position: relative;
  z-index: 150;
}

.modal__wrapper .modal__content {
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
  padding: 30px 30px;
}

.modal-challenge__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  text-align: center;
  color: hsla(var(--text-primary-hsl), 0.8);
}

.modal-challenge__text a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  vertical-align: middle;
  text-decoration: none;
  color: hsl(var(--text-primary-hsl));
  margin-top: 4px;
}

.modal-challenge__text a img {
  aspect-ratio: 1/1;
  max-width: 24px;
  object-fit: contain;
}

.modal-challenge__title {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  margin-bottom: 20px;
}

.modal__close {
  width: 100%;
  max-width: 200px;
  min-height: 44px;
  color: hsl(var(--decorative-color));
  border-radius: 44px;
  border: 1px solid hsl(var(--decorative-color));
  background-color: transparent;

  font-weight: 400;
  font-size: 14px;
  line-height: 44px;
  text-align: center;

  margin-top: 24px;
  margin-inline: auto;
}

/* copy-tooltip */

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);

  display: block;
  background-color: var(--bg-color);
  color: var(--white);
  padding: 0 15px;
  font-weight: 500;
  font-size: 12px;
  line-height: 26px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1000;


}

.copy-tooltip::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--bg-color);
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
}

.copy-tooltip.active {
  color: var(--white);
  background-color: #1A1A1A;

}

.copy-tooltip.active::after {
  border-top: 5px solid #1A1A1A;
}