@font-face {
  font-family: 'Canela';
  src: url("../fonts/Canela-Thin.woff2") format('woff2'),
       url("../fonts/Canela-Thin.woff") format('woff');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Canela';
  src: url("../fonts/Canela-Regular.woff2") format('woff2'),
       url("../fonts/Canela-Regular.woff") format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: #000 url("../img/bg.jpg") no-repeat 50% 50%;
  background-size: cover;
  color: #FFF;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-size-adjust: 100%;
  background-attachment: fixed;
}

body,
input,
button {
  font-family: Roboto, Arial, sans-serif;
}

a {
  color: currentColor;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.button {
  display: block;
  font-weight: bold;
  font-size: 12px;
  background: none;
  box-sizing: border-box;
  text-transform: uppercase;
  cursor: pointer;
  transition-property: background-color, border-color, color;
  transition-duration: 150ms;
}
.button.-type-cta {
  height: 40px;
  color: #FFF;
  border: 1px solid #D7C8AD;
  margin-top: 11px;
}
.button.-type-cta:hover {
  background-color: #D7C8AD;
  color: #000;
}
.button.-type-form {
  width: 100%;
  height: 50px;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.button.-type-form:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 45px 0 65px;
}
.header__logo {
  display: flex;
  align-items: baseline;
}
.header__logo img {
  display: block;
  margin-right: 22px;
}
.header__logo p {
  font-weight: normal;
  font-size: 12px;
  line-height: 14px;
  position: relative;
  top: -3px;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 auto;
}

h1 {
  font-weight: 100;
  font-family: Canela, serif;
  line-height: 1.1952862em;
  letter-spacing: -0.00740741em;
  margin: 0;
  padding: 0;
}
h1 b {
  display: block;
  font-weight: normal;
  color: #D5C9AF;
}
h2 {
  font-weight: 100;
  font-family: Canela, serif;
  font-size: 42px;
  line-height: 1.1952862em;
  letter-spacing: -0.00740741em;
  margin: 0;
  padding: 0;
}

hr {
  display: block;
  width: 100%;
  height: 1px;
  padding: 0;
  border: none;
  background: #FFF;
  opacity: 0.5;
}

.details__summary {
  text-transform: uppercase;
  font-weight: bold;
}
.details ul {
  padding: 0;
  margin: 0;
  font-weight: 300;
}
.details li {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer {
  font-size: 12px;
  line-height: 16px;
}
.footer__contact {
  padding-right: 16px;
}
.footer__contact a {
  font-weight: bold;
}
.footer__legal {
  opacity: 0.5;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2147483638;
  white-space: nowrap;
  word-spacing: -1em;
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 150ms;
}
.modal.-active {
  opacity: 1;
  visibility: visible;
}
.modal:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  width: 0;
}
.modal__container {
  display: inline-flex;
  vertical-align: middle;
  max-width: 100%;
  max-height: 100%;
  white-space: normal;
  word-spacing: normal;
}
.modal__body {
  box-sizing: border-box;
  width: 580px;
  max-width: 100%;
  background-color: #222;
  position: relative;
  margin: auto;
  border: 12px solid transparent;
  background-clip: padding-box;
}
.modal__close {
  display: block;
  position: absolute;
  top: 40px;
  right: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}
.modal__close svg {
  pointer-events: none;
}
.modal__form {
  padding-top: 30px;
}
.modal__form-field input {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 300;
  font-size: 14px;
  line-height: 16px;
  color: #FFF;
  margin: 0;
  padding: 15px 0;
  outline: none;
}
.modal__form-field input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.modal__form-field.-is-invalid input {
  border-bottom-color: rgba(255, 0, 0, 0.6);
}
.modal__form-field-error {
  font-weight: normal;
  font-size: 12px;
  padding-top: 3px;
  color: rgba(255, 0, 0, 0.6);
}
.modal__form-submit {
  padding-top: 23px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 
  body {
    background-image: url("../img/bg@2x.jpg");
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1279px) {
  .details__list ul:last-child {
    width: 100%;
    position: relative;
  }
  .details__list ul:last-child li:first-child {
    position: absolute;
    top: -20px;
    right: 0;
    transform: translateY(-100%);
  }
  .details__list ul:nth-child(2),
  .details__list ul:last-child li:first-child {
    width: 268px;
  }
}

@media only screen and (min-width: 1024px) {
  .layout {
    padding: 0 64px;
  }
  h1 {
    margin-left: 41.7%;
  }
  hr {
    margin: 44px 0 66px;
  }
  .details {
    display: flex; 
    justify-content: space-between; 
  }
  .details__summary {
    width: 41%;
  }
  .details__list {
    width: 58.2%;
  }
}

@media only screen and (min-width: 375px) and (max-width: 1023px) {
  .layout {
    padding: 0 32px;
  }
}

@media only screen and (max-width: 1023px) {
  hr {
    margin: 44px 0;
  }
  .details__summary {
    margin-bottom: 32px;
  }
}

@media only screen and (min-width: 768px) {
  .details__list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    white-space: nowrap;
  }
}

@media only screen and (min-width: 640px) {
  h1 {
    font-size: 59.4px;
  }
  .footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 86px 0 36px;
  }
  .footer__legal {
    text-align: right;
  }
}

@media only screen and (max-width: 639px) {
  h1 {
    font-size: 38px;
  }
  .footer {
    padding: 36px 0;
  }
  .footer__legal {
    padding-top: 18px;
  }
}

@media only screen and (min-width: 480px) {
  .modal__body {
    padding: 44px 40px 48px;
  }
  .modal__form-line {
    display: flex;
    margin: 0 -12px 25px;
  }
  .modal__form-field {
    box-sizing: border-box;
    width: 100%;
    flex: 1 1 auto;
    padding: 0 12px;
  }
}

@media only screen and (max-width: 479px) {
  .modal__body {
    padding: 22px 20px 36px;
  }
  .modal__form-field {
    margin-bottom: 25px;
  }
}

@media only screen and (min-width: 375px) {
  .button.-type-cta {
    padding: 2px 33px 0;
  }
}

@media only screen and (max-width: 374px) {
  .layout {
    padding: 0 16px;
  }
  .button.-type-cta {
    padding: 2px 16px 0;
  }
  h1 {
    font-size: 30px;
  }
}
