:root {
  --ink: #10294a;
  --ink-soft: #1b3553;
  --rust: #b6502f;
  --rust-dark: #9e3f23;
  --muted: #5f6974;
  --line: #e8ddd7;
  --panel: #fbf7f4;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(22, 42, 66, 0.12);
  font-family: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

img {
  max-width: 100%;
}

.page {
  min-width: 320px;
  overflow: hidden;
  background: #fff;
}

.section {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 22px 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 36px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(182, 80, 47, 0.28);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(180deg, #bd5b39 0%, var(--rust) 100%);
  box-shadow: 0 14px 28px rgba(164, 70, 38, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #c86846 0%, var(--rust-dark) 100%);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 83px max(32px, calc((100vw - 1200px) / 2 + 32px)) 42px;
  background:
    linear-gradient(90deg, rgba(242, 249, 255, 0.97) 0%, rgba(242, 249, 255, 0.88) 36%, rgba(242, 249, 255, 0.22) 63%, rgba(242, 249, 255, 0) 100%),
    url("../assets/bg-hero-prototype.png") right center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 3.5vw, 45px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p {
  margin: 28px 0 28px;
  color: var(--ink-soft);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.hero .btn {
  min-width: 355px;
}

.hero__stats {
  position: absolute;
  right: max(32px, calc((100vw - 1200px) / 2 + 32px));
  bottom: 32px;
  left: max(32px, calc((100vw - 1200px) / 2 + 32px));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 132px;
  padding: 24px 28px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(19, 44, 72, 0.18);
  backdrop-filter: blur(8px);
}

.icon-badge {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #bd5b39 0%, #a44124 100%);
}

.icon-badge img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.stat-card strong {
  display: block;
  color: #070707;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stat-card span:not(.icon-badge) {
  display: block;
  margin-top: 8px;
  color: #2d2d2d;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.28;
}

.mortgage__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 48px;
  align-items: center;
  min-height: 455px;
  padding: 54px 30px 54px 40px;
  border-radius: 16px;
  background: var(--panel);
}

.mortgage h2,
.shore h2,
.infrastructure h2,
.finish h2,
.presentation h2,
.modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 2.9vw, 40px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: 0;
}

.mortgage__panel > img {
  width: 100%;
  height: 390px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(17, 45, 76, 0.1);
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 62px 0 54px;
}

.terms article {
  display: grid;
  justify-items: center;
  min-height: 120px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.terms article + article {
  border-left: 1px solid #d9c8bf;
}

.term-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--rust);
  background: #f6e6df;
}

.term-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.terms span:not(.term-icon) {
  color: #242424;
  font-size: 15px;
  line-height: 1.2;
}

.terms strong {
  color: #090909;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.deadline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--rust);
  font-size: 17px;
  font-weight: 500;
}

.deadline img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.shore__card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.89) 33%, rgba(255, 255, 255, 0.36) 52%, rgba(255, 255, 255, 0) 76%),
    url("../assets/bg-shore-promenade.png") right center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(24, 48, 73, 0.08);
}

.shore__content {
  width: min(475px, 100%);
  padding: 48px 0 48px 39px;
}

.shore p {
  margin: 31px 0 28px;
  color: #101010;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.47;
}

.shore .btn {
  min-width: 263px;
  min-height: 61px;
  font-size: 17px;
}

.infrastructure {
  padding-top: 6px;
  padding-bottom: 28px;
  text-align: center;
}

.infrastructure h2,
.finish h2 {
  font-size: clamp(29px, 2.5vw, 34px);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.infra-grid article {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rust);
  box-shadow: 0 8px 24px rgba(21, 45, 70, 0.04);
}

.infra-grid img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.infra-grid span {
  margin-top: 13px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.13;
  text-transform: uppercase;
}

.finish {
  padding-top: 0;
  padding-bottom: 34px;
  text-align: center;
}

.finish > p {
  margin: 8px 0 19px;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 500;
}

.finish__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.finish__grid article {
  min-width: 0;
}

.finish__grid img {
  width: 100%;
  height: 185px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(17, 39, 62, 0.08);
}

.finish__grid strong {
  display: block;
  margin-top: 13px;
  color: #101010;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
}

.presentation {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  min-height: 400px;
  margin-top: 12px;
  background: #173049;
}

.presentation__copy {
  width: min(600px, 100%);
  justify-self: end;
  padding: 45px 92px 38px 32px;
  color: #fff;
}

.presentation h2 {
  color: #fff;
  font-size: clamp(28px, 2.5vw, 37px);
  line-height: 1.15;
}

.presentation__copy > p {
  margin: 17px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.45;
}

.presentation__image {
  min-height: 400px;
  background: url("../assets/bg-cta-terrace.png") center / cover no-repeat;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.form-field,
.phone-field {
  position: relative;
  display: block;
}

.phone-field img {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 23px;
  height: 23px;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.lead-form input {
  width: 100%;
  height: 49px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 7px;
  color: #1f2e3e;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 2px 8px rgba(15, 36, 58, 0.08);
  outline: 0;
  font-size: 16px;
  font-weight: 500;
}

.phone-field input {
  padding-left: 53px;
}

.lead-form input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.lead-form .btn {
  width: 100%;
  min-height: 58px;
  font-size: 17px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.25;
}

.lead-form__status {
  min-height: 18px;
  margin: -4px 0 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.lead-form__status:empty {
  display: none;
}

.form-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.form-note img {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.form-note--modal {
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  padding: 34px 32px;
  background: #10294a;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.site-footer span {
  display: block;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 25, 39, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 42px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

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

.modal__dialog p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.modal .lead-form input {
  border-color: var(--line);
  background: #fff;
}

.modal .lead-form__status {
  margin: -4px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4eee9;
  color: var(--rust);
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 760px;
    padding-top: 54px;
  }

  .hero__content {
    width: min(610px, 100%);
  }

  .hero__stats,
  .mortgage__panel,
  .finish__grid,
  .presentation {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 46px;
  }

  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .mortgage__panel {
    gap: 30px;
    padding: 36px 24px;
  }

  .mortgage__panel > img {
    height: 340px;
  }

  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation__copy {
    width: 100%;
    justify-self: stretch;
    padding: 40px 24px;
  }

  .presentation__image {
    min-height: 360px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    background: #fff;
  }

  .section {
    width: 100%;
    padding: 22px 16px;
  }

  .btn,
  .hero .btn,
  .shore .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
  }

  .hero {
    min-height: 0;
    padding: 34px 20px 28px;
    background:
      linear-gradient(180deg, rgba(242, 249, 255, 0.98) 0%, rgba(242, 249, 255, 0.9) 54%, rgba(242, 249, 255, 0.64) 100%),
      linear-gradient(90deg, rgba(242, 249, 255, 0.98) 0%, rgba(242, 249, 255, 0.72) 58%, rgba(242, 249, 255, 0.08) 100%),
      url("../assets/bg-hero-prototype.png") 64% top / auto 560px no-repeat;
  }

  .hero__content {
    width: 100%;
  }

  .hero h1 {
    max-width: 345px;
    font-size: 28px;
    line-height: 1.14;
  }

  .hero p {
    max-width: 330px;
    margin: 18px 0 22px;
    font-size: 15px;
    line-height: 1.42;
  }

  .hero__stats {
    gap: 0;
    margin-top: 24px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(16, 41, 74, 0.15);
    overflow: hidden;
  }

  .stat-card {
    gap: 15px;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .stat-card + .stat-card {
    border-top: 1px solid rgba(16, 41, 74, 0.08);
  }

  .icon-badge {
    width: 50px;
    height: 50px;
  }

  .icon-badge img {
    width: 25px;
    height: 25px;
  }

  .stat-card strong {
    font-size: 22px;
    white-space: nowrap;
  }

  .stat-card span:not(.icon-badge) {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.24;
  }

  .mortgage h2,
  .shore h2,
  .infrastructure h2,
  .finish h2,
  .presentation h2 {
    font-size: 28px;
    line-height: 1.14;
  }

  .mortgage {
    padding-top: 24px;
  }

  .mortgage__panel {
    gap: 18px;
    padding: 24px 18px 20px;
    border-radius: 14px;
    background: #fbf7f4;
  }

  .mortgage h2 {
    text-align: center;
  }

  .terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 18px;
  }

  .terms article {
    min-height: 112px;
    padding: 12px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
  }

  .terms article + article {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .term-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 11px;
  }

  .term-icon img {
    width: 23px;
    height: 23px;
  }

  .terms span:not(.term-icon) {
    font-size: 11px;
    line-height: 1.18;
  }

  .terms strong {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.15;
    white-space: normal;
  }

  .mortgage__panel > img {
    height: 230px;
    border-radius: 10px;
  }

  .deadline {
    justify-content: center;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }

  .shore__card {
    min-height: 460px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 44%, rgba(255, 255, 255, 0.18) 100%),
      url("../assets/bg-shore-promenade.png") 69% center / cover no-repeat;
    box-shadow: 0 14px 36px rgba(24, 48, 73, 0.1);
  }

  .shore__content {
    width: 100%;
    padding: 28px 20px 24px;
  }

  .shore p,
  .presentation__copy > p {
    font-size: 15px;
  }

  .shore p {
    max-width: 290px;
    margin: 20px 0 22px;
    line-height: 1.42;
  }

  .shore br {
    display: none;
  }

  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
  }

  .infrastructure {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .infrastructure h2,
  .finish h2 {
    font-size: 25px;
  }

  .infra-grid article {
    min-height: 104px;
    padding: 14px 8px 12px;
    border-radius: 9px;
  }

  .infra-grid img {
    width: 34px;
    height: 34px;
  }

  .infra-grid span {
    margin-top: 10px;
    font-size: 11px;
  }

  .finish__grid {
    gap: 20px;
  }

  .finish__grid img {
    height: 210px;
    border-radius: 10px;
  }

  .finish__grid strong {
    margin-top: 10px;
    font-size: 18px;
  }

  .finish > p {
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    line-height: 1.35;
  }

  .presentation {
    margin-top: 18px;
    border-radius: 0;
    overflow: hidden;
  }

  .presentation__copy {
    padding: 34px 20px 28px;
  }

  .presentation__copy > p {
    line-height: 1.4;
  }

  .lead-form input {
    height: 54px;
    border-radius: 8px;
  }

  .lead-form .btn {
    min-height: 56px;
    border-radius: 8px;
  }

  .presentation__image {
    min-height: 255px;
    background-position: center bottom;
  }

  .site-footer {
    padding: 28px 20px;
  }

  .site-footer p,
  .site-footer__links a {
    font-size: 12px;
  }

  .form-note br,
  .presentation br {
    display: none;
  }

  .modal__dialog {
    padding: 34px 20px 24px;
  }
}
