*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

@font-face {
  font-display: swap;
  font-family: 'MarkPro';
  font-weight: normal;
  font-style: 400;
  src: url('../fonts/fontfont-markpro.woff2') format('woff2');
}

/* general */
html {
  background-color: #000;
  color: #fff;
  font-family: 'MarkPro';
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  min-height: 100dvh;
  scroll-behavior: smooth;
  background: url(../img/back.jpg) center bottom no-repeat;
  background-size: cover;
  padding: 48px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

body.warm {
  background-image: url(../img/back-warm.jpg);
}

body > * {
  flex: 1;
  width: 100%;
  text-align: center;
  position: relative;
}

@media (width > 800px) {
  body {
    padding-top: 120px;
    justify-content: space-between;
  }

  body > * {
    flex-grow: 0;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100dvh;
  background-image: url('../img/dots.svg');
  background-size: 800px 800px;
  background-position: left 50% bottom -309px;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100dvh;
  background-image: url('../img/dots.svg');
  background-size: 1920px 1920px;
  background-position: left 50% bottom 120px;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

header {
  display: flex;
  justify-content: center;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
}

body > p {
  max-width: 480px;
  margin-inline: auto;
}

form {
  max-width: 480px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

button[type=submit] {
  appearance: none;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  background-image: linear-gradient(to left, #300a61, #6b0068, #9e0066, #ca005a, #ed1846);
  border: 0;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  padding: 15px;
  line-height: 1.5;
  cursor: pointer;
}

fieldset {
  border: 0;
  padding: 0;
  display: contents;
}

legend {
  width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
  background-color: rgba(245, 245, 245, 0.24);
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 245, 245, 0.6);
  backdrop-filter: blur(2px) saturate(180%);
  color: #fff;
}

textarea {
  height: 80px;
  resize: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #fff;
  opacity: 0.8;
}

footer {
  font-size: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 255px;
  margin-inline: auto;
}

footer > * {
  flex: 1;
  flex-grow: 0;
}

footer > :last-child {
  display: flex;
  gap: 20px;
  display: none;
}

footer a {
  color: #fff;
}

@media (width > 625px) {
  footer {
    max-width: 560px;
    /* no socials */
    /*text-align: initial;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;*/
  }
}

@media (width > 460px) {
  form {
    grid-template-columns: 1fr 1fr;
  }

  fieldset > :nth-child(1),
  fieldset > :nth-child(2),
  fieldset > :nth-child(5),
  fieldset > :nth-child(6) { 
    grid-column: span 2;
  }

  textarea {
    height: 96px;
  }
}

#form-response {
  padding-top: 10px;
  text-align: center;
}

.switcher {
  font-size: 0.625rem;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.switch {
    background-color: rgba(255,255,255,0.4);
    border-radius: 1e3px;
    cursor: pointer;
    display: inline-block;
    height: 28px;
    padding: 1px;
    position: relative;
    vertical-align: top;
    width: 64px;
}
.switch-input {
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
}
.switch-label {
    background: rgba(0,174,255,0.4) none repeat scroll 0 0;
    border-radius: inherit;
    display: block;
    font-size: 10px;
    height: inherit;
    position: relative;
    text-transform: uppercase;
    transition: all 0.15s ease-out 0s;
}
.switch-label::before, .switch-label::after {
    line-height: 1;
    margin-top: -0.5em;
    position: absolute;
    top: 50%;
    transition: inherit;
}

.switch-input:checked ~ .switch-label {
    background: rgba(237,24,70,0.4) none repeat scroll 0 0;
}

.switch-handle {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 1e3px;
    height: 23px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: left 0.15s ease-out 0s;
    width: 39px;
}
.switch-handle::before {
    background-color: rgba(255,255,255,0.4);
    border-radius: 1e3px;
    content: "";
    height: 22px;
    left: 0;
    top: 0;
    position: absolute;
    width: 37px;
}
.switch-input:checked ~ .switch-handle {
    left: 22px;
}
.switch-green > .switch-input:checked ~ .switch-label {
    background-color: #4fb845;
}
