:root {
  --ink: #20211f;
  --muted: #66645f;
  --paper: #f8f5ee;
  --paper-2: #eee8dc;
  --gold: #f1a23e;
  --gold-dark: #c77a25;
  --green: #22362f;
  --sea: #183d4a;
  --white: #fff;
  --shadow: 0 24px 70px rgba(20, 22, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 870px;
  padding-bottom: 58px;
  overflow: hidden;
  color: var(--white);
  background-image: url("./assets/hero-resort.png");
  background-position: center;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 28, 0.84) 0%, rgba(8, 22, 28, 0.48) 44%, rgba(8, 22, 28, 0.08) 100%),
    linear-gradient(0deg, rgba(13, 18, 19, 0.46), transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow--dark {
  color: var(--gold-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 970px;
  margin-bottom: 30px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.96;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 480px;
  margin-bottom: 38px;
  font-size: 23px;
  line-height: 1.35;
}

.button {
  min-height: 66px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(112deg, var(--gold) 0%, #ffc071 52%, var(--gold) 100%);
  box-shadow: 0 4px 0 var(--gold-dark), 0 16px 30px rgba(199, 122, 37, 0.26);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--gold-dark), 0 20px 34px rgba(199, 122, 37, 0.3);
}

.button--hero {
  width: min(420px, 100%);
  min-height: 86px;
}

.button--small {
  width: 100%;
  min-height: 54px;
  padding-inline: 20px;
  font-size: 12px;
}

.hero__facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 105px;
}

.hero__facts article {
  min-height: 168px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero__facts span {
  display: block;
  margin-bottom: 12px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
}

.hero__facts p {
  margin: 0;
  line-height: 1.45;
}

.section {
  padding: 105px 0;
}

.intro__grid,
.beach__grid,
.presentation__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.intro p:last-child,
.beach__copy p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.feature-band {
  padding: 88px 0;
  background: var(--green);
}

.feature-band__grid,
.plans__grid,
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-band__grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.plan,
.benefits article {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
}

.feature-card__image {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.feature-card__image--territory {
  background-image: url("./assets/territory-resort.png");
}

.feature-card__image--income {
  background-image: url("./assets/apartment-interior.png");
}

.feature-card h3,
.feature-card p {
  padding-inline: 30px;
}

.feature-card h3 {
  padding-top: 30px;
}

.feature-card p {
  padding-bottom: 34px;
  color: var(--muted);
  line-height: 1.55;
}

.beach {
  background: #fbfaf5;
}

.beach__photo {
  min-height: 520px;
  border-radius: 8px;
  background-image: url("./assets/private-beach.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.benefits {
  position: relative;
  color: var(--ink);
  background: #fbfaf5;
}

.benefits article {
  padding: 34px;
  color: var(--ink);
  border: 1px solid rgba(32, 33, 31, 0.08);
}

.benefits span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold-dark);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
}

.benefits p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.plan {
  padding: 22px;
}

.plan__scheme {
  height: 230px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 6px;
  background: url("./assets/plan-studio.svg") center / cover no-repeat;
}

.plan__scheme--two {
  background-image: url("./assets/plan-one-bedroom.svg");
}

.plan__scheme--three {
  background-image: url("./assets/plan-two-bedroom.svg");
}

.plan p {
  color: var(--muted);
}

.presentation {
  position: relative;
  padding: 110px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 61, 74, 0.94), rgba(34, 54, 47, 0.88)),
    url("./assets/presentation-bg.png");
  background-position: center;
  background-size: cover;
}

.presentation h2 {
  color: var(--white);
}

.presentation ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presentation li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  line-height: 1.45;
}

.presentation li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.lead-form {
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin-bottom: 6px;
}

.lead-form > p:not(.lead-form__status) {
  margin-bottom: 22px;
  color: var(--muted);
}

.lead-form label {
  display: block;
  margin-bottom: 14px;
}

.lead-form span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lead-form input {
  width: 100%;
  height: 64px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--ink);
  outline: none;
}

.lead-form input:focus {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.lead-form .button {
  width: 100%;
  margin-top: 4px;
}

.lead-form small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.lead-form small a {
  color: var(--sea);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form__status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.lead-form__status:empty {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 19, 0.72);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 38px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal__panel h2 {
  margin-right: 34px;
  font-size: 42px;
  color: var(--ink);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 10px;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.lead-form--modal {
  padding: 0;
  box-shadow: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 11;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(120px);
  transition: transform 0.25s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    min-height: 780px;
  }

  .hero__facts,
  .feature-band__grid,
  .plans__grid,
  .benefits__grid,
  .intro__grid,
  .beach__grid,
  .presentation__grid {
    grid-template-columns: 1fr;
  }

  .hero__facts {
    margin-top: 70px;
  }

  .intro__grid,
  .beach__grid,
  .presentation__grid {
    gap: 34px;
  }

  .section,
  .presentation {
    padding: 76px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: 760px;
    background-image: url("./assets/hero-resort.png");
  }

  .hero__content {
    padding-top: 95px;
    text-align: center;
  }

  h1 {
    font-size: 37px;
    line-height: 1.08;
  }

  h2 {
    font-size: 36px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .button--hero {
    min-height: 66px;
  }

  .hero__facts {
    gap: 12px;
    margin-top: 58px;
  }

  .hero__facts article {
    min-height: 0;
    padding: 20px;
    border-radius: 16px;
  }

  .hero__facts span {
    font-size: 36px;
  }

  .feature-card__image,
  .beach__photo,
  .plan__scheme {
    min-height: 240px;
    height: 240px;
  }

  .lead-form,
  .modal__panel {
    padding: 24px;
  }

  .modal__panel h2 {
    font-size: 32px;
  }
}
