@font-face {
  font-display: swap;
  font-family: "Averta";
  font-style: normal;
  font-weight: 300;
  src: url("../assets/webfonts/averta-light.woff2") format("woff2"), url("../assets/webfonts/averta-light.woff") format("woff");
}
@font-face {
  font-display: swap;
  font-family: "Averta";
  font-style: normal;
  font-weight: 600;
  src: url("../assets/webfonts/averta-semibold.woff2") format("woff2"), url("../assets/webfonts/averta-semibold.woff") format("woff");
}
@font-face {
  font-display: swap;
  font-family: "Averta";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/webfonts/averta-bold.woff2") format("woff2"), url("../assets/webfonts/averta-bold.woff") format("woff");
}
@font-face {
  font-display: swap;
  font-family: "Averta";
  font-style: normal;
  font-weight: 800;
  src: url("../assets/webfonts/averta-extrabold.woff2") format("woff2"), url("../assets/webfonts/averta-extrabold.woff") format("woff");
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: #ffffff;
  color: #000000;
  font-family: "Averta", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
}

strong {
  font-weight: 700;
}

a {
  transition: color 0.15s ease-out;
}

a:active,
a:focus-visible {
  color: #3eab4b;
}

@media (hover: hover) {
  a:hover {
    color: #3eab4b;
  }
}
.container {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 clamp(20px, 10vw, 40px);
  width: 100%;
}
@media (min-width: 1200px) {
  .container {
    padding: 0 100px;
  }
}

.heading-lg, .hero__title {
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.heading-sm {
  font-size: 24px;
  font-weight: 800;
  line-height: 24px;
  text-wrap: balance;
}

.hero {
  background: #000000;
  color: #ffffff;
  padding: 40px 0;
}
@media (min-width: 900px) {
  .hero {
    padding: 60px 0 100px;
  }
}

.hero__logo {
  height: auto;
  width: 100px;
}
@media (min-width: 900px) {
  .hero__logo {
    width: 136px;
  }
}

.hero__title {
  margin-top: clamp(30px, 4.2vw, 60px);
  max-width: 888px;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  margin-top: clamp(20px, 2.1vw, 30px);
  position: relative;
}

.hero__lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: clamp(28px, 2.1vw, 30px);
  max-width: 860px;
}

.hero__media {
  aspect-ratio: 322/154;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.hero__media img {
  height: 100%;
  left: 50%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 94%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 154%;
}
@media (min-width: 900px) {
  .hero__media {
    aspect-ratio: 1240/254;
    border-radius: 30px;
  }
  .hero__media img {
    object-position: 50% 82%;
    position: static;
    transform: none;
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .hero__media {
    margin-top: 50px;
  }
}

.rent {
  align-items: center;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 26px -35px 0;
  position: relative;
  text-decoration: none;
  z-index: 1;
}
@media (min-width: 900px) {
  .rent {
    margin-bottom: -65px;
  }
}
@media (min-width: 1200px) {
  .rent {
    margin: 0;
    position: absolute;
    right: 80px;
    top: 31px;
  }
}

.rent__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
}

.rent__icon {
  height: auto;
  transition: transform 0.2s ease-out;
  width: 60px;
}
@media (min-width: 900px) {
  .rent__icon {
    width: 113px;
  }
}
@media (min-width: 1200px) {
  .rent__icon {
    width: 135px;
  }
}

.rent:hover .rent__icon,
.rent:focus-visible .rent__icon {
  transform: translate(4px, 4px);
}

.about {
  background: #151515;
  color: #ffffff;
  padding: 40px 0;
}
@media (min-width: 900px) {
  .about {
    padding: 100px 0;
  }
}

.about__grid {
  display: grid;
  gap: 40px 70px;
}
@media (min-width: 900px) {
  .about__grid {
    align-items: center;
    grid-template-columns: 600fr 570fr;
  }
}

.about__media {
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .about__media {
    border-radius: 30px;
    order: -1;
  }
}
.about__media img {
  aspect-ratio: 600/308;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  width: 100%;
}

.about__body {
  max-width: 510px;
}
.about__body p {
  margin-top: 20px;
}

.booking {
  padding: 40px 0;
  scroll-margin-top: 20px;
}
@media (min-width: 900px) {
  .booking {
    padding: 85px 0;
  }
}

.booking__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .booking__grid {
    align-items: start;
    gap: 40px 80px;
    grid-template-columns: minmax(0, 600px) minmax(0, 392px);
    grid-template-rows: auto auto 1fr;
    justify-content: space-between;
  }
  .booking__grid .booking__intro {
    grid-area: 1/1;
  }
  .booking__grid .spaces {
    grid-area: 1/2/4/3;
  }
  .booking__grid .booking__contact {
    grid-area: 2/1;
  }
}

.booking__intro p {
  margin-top: 40px;
}

.booking__contact p {
  margin-top: 20px;
}
.booking__contact a {
  font-weight: 700;
  text-decoration: underline;
}

.spaces {
  display: grid;
  gap: 20px;
}

.space {
  background: #3eab4b;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  padding: 30px;
}
@media (min-width: 900px) {
  .space {
    border-radius: 30px;
    min-height: 248px;
    padding: 40px;
  }
}

.space__title {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1;
}

.space__meta {
  line-height: 24px;
  margin-top: 20px;
  max-width: 300px;
}

.newsletter {
  background: #000000;
  color: #ffffff;
  padding: 40px 0;
}
@media (min-width: 900px) {
  .newsletter {
    padding: 85px 0;
  }
}

.newsletter__intro {
  margin-top: 20px;
  max-width: 600px;
}

.newsletter__form {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 900px) {
  .newsletter__form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.field input {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 9999px;
  color: #000000;
  font: inherit;
  line-height: 24px;
  padding: 12px 24px;
  width: 100%;
}
.field input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
}
.field input:focus-visible {
  border-color: #3eab4b;
  outline: none;
}
.field input[aria-invalid=true] {
  border-color: #d91f50;
}

.field--trap {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.newsletter__submit {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
@media (min-width: 900px) {
  .newsletter__submit {
    grid-column: 1/-1;
  }
}

.button {
  background: #3eab4b;
  border: 0;
  border-radius: 9999px;
  color: #000000;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 24px;
  padding: 14px 32px;
  text-transform: uppercase;
  transition: opacity 0.15s ease-out;
}

.button[disabled] {
  cursor: default;
  opacity: 0.5;
}

@media (hover: hover) {
  .button:hover {
    opacity: 0.8;
  }
}
.newsletter__note {
  font-size: 14px;
  line-height: 20px;
}

.newsletter__status {
  font-weight: 600;
}
.newsletter__status:empty {
  display: none;
}
@media (min-width: 900px) {
  .newsletter__status {
    grid-column: 1/-1;
  }
}

.newsletter__status--error {
  color: #d91f50;
}

.newsletter__status--success {
  color: #3eab4b;
}

.newsletter__form.is-done > *:not(.newsletter__status) {
  display: none;
}

.footer {
  background: #151515;
  color: #ffffff;
  padding: 60px 0;
}

.footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto;
}
@media (min-width: 600px) {
  .footer__grid {
    align-items: start;
    gap: 40px 95px;
    grid-template-columns: auto auto 1fr;
  }
}

.footer__col {
  grid-column: 1;
}
@media (min-width: 600px) {
  .footer__col {
    grid-column: auto;
  }
}

.footer__col p {
  margin-top: 20px;
}
.footer__col a {
  font-weight: 600;
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 10px;
  grid-area: 1/2;
  justify-content: flex-end;
}
@media (min-width: 600px) {
  .socials {
    align-self: end;
    grid-area: auto;
  }
}
.socials a {
  display: block;
  padding: 5px;
  transition: opacity 0.2s ease-out;
}
.socials a:hover,
.socials a:focus-visible {
  opacity: 0.7;
}
