:root {
  --black: #130500;
  --white: #f5faff;
  --dark-grey: #333333;
  --medium-dark-grey: #4F4F4F;
  --medium-grey: #7D7D7D;
  --medium-light-grey: #B3B3B3;
  --light-grey: #E0E0E0;
  --main-orange: #FF6F00;
  --reddish-orange: #FF4500;
  --gold: #FFD700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
}

body {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  color: var(--black);
}

input {
  font-weight: 300;
  font-size: 1rem;
  box-sizing: content-box;
  height: 1rem;
}

button {
  font-size: 1rem;
}

a {
  color: var(--black);
}

p {
  line-height: 1.5;
}

strong {
  font-weight: 500;
  color: var(--main-orange);
}

h1, h2, h3,
h4, h5, h6 {
  line-height: 1;
  font-weight: 300;
}

body, html {
  width: 100%;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
  flex: 1;
  align-items: center;
  padding: 20px;
  padding-top: 200px;
}

@media screen and (max-width: 1350px) {
  main {
    padding-top: 0;
    justify-content: center;
  }
}

.B_main-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--medium-light-grey);
}

.B_main-header .logo p {
  font-size: 1.25rem;
}

.B_main-header .logo a {
  text-decoration: none;
}

section.B_hero,
section.B_newsletter {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.B_hero h1 {
  font-size: 2.5rem;
}

.control .language {
  display: flex;
  gap: 5px;
}

.control .language button {
  background-color: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--medium-grey);
  transition: color 100ms linear;
}

.control .language button:hover,
.control .language button:active {
  color: var(--dark-grey);
}

.control .language button.selected {
  color: var(--black);
}

.B_newsletter form {
  display: flex;
  gap: 15px;
  align-items: center;
  max-width: max-content;
}

.B_newsletter form input {
  border-radius: 2px;
  border: 1px solid var(--medium-light-grey);
  padding: 10px 15px;
  line-height: 1;
  min-width: 250px;
}

.B_newsletter form button {
  border: none;
  line-height: 1;
  padding: 10px 15px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--white);
  font-weight: 400;
  background-color: var(--main-orange);
  transition: background-color 100ms linear;
  width: max-content;
}

.B_newsletter form button.loading {
  opacity: 0.5;
  cursor: not-allowed;
}

.B_newsletter .register-result-block {
  max-width: 600px;
  line-break: anywhere;
}

.B_newsletter .register-message {
  font-size: 1rem;
  font-weight: 400;
}

@media screen and (max-width: 1350px) {
  .B_newsletter form {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .B_newsletter form input {
    width: calc(100% - 30px);
  }

  .B_newsletter form button {
    width: 100%;
  }
}

.B_newsletter form button:hover,
.B_newsletter form button:active {
  background-color: var(--reddish-orange);
}

.B_newsletter form button.loading:hover,
.B_newsletter form button.loading:active {
  background-color: var(--main-orange);
}
