@font-face {
  font-family: "Poiret One";
  src: url("assets/fonts/PoiretOne-Regular.woff2") format("woff2"),
       url("assets/fonts/PoiretOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #071522;
  --navy-soft: #0a1d2d;
  --gold: #e4b94f;
  --gold-bright: #f2cf78;
  --gold-muted: #bd963d;
  --gold-line: rgba(228, 185, 79, 0.34);
  --gold-faint: rgba(228, 185, 79, 0.14);
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-font: "Poiret One", var(--sans);
  --page: min(1280px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--gold);
  background: var(--navy);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: clamp(20px, 3.2vh, 36px);
  left: 50%;
  width: var(--page);
  padding: 10px 14px 10px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  transform: translateX(-50%);
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(5, 20, 33, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px) saturate(0.92);
  -webkit-backdrop-filter: blur(12px) saturate(0.92);
}

.header-nav {
  display: contents;
}

.header-brand {
  justify-self: start;
  font-size: clamp(23px, 1.75vw, 29px);
  font-family: var(--brand-font);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  width: clamp(156px, 14vw, 220px);
}

.brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1168 / 246;
  color: inherit;
  stroke-width: 2.1px;
}

.header-brand .brand-wordmark {
  stroke-width: 1.8px;
}

.hero-panel .brand-wordmark {
  max-width: 414px;
  margin-inline: auto;
  stroke-width: 5px;
}

.header-nav a {
  justify-self: center;
}

.header-phone {
  justify-self: end;
}

.header-brand,
.header-phone,
.header-nav a:not(.header-question) {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.48);
}

.header-question {
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff8f5;
  background: #bb3431;
  box-shadow: 0 9px 26px rgba(95, 18, 20, 0.24);
}

.header-brand,
.header-phone,
.header-nav a,
.footer a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, background-position 420ms ease;
}

.header-brand:hover,
.header-phone:hover,
.header-nav a:hover,
.footer a:hover,
.header-brand:focus-visible,
.header-phone:focus-visible,
.header-nav a:focus-visible,
.footer a:focus-visible {
  color: var(--gold-bright);
  background-position: 100% 50%;
}

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  background: var(--navy) url("assets/hero-residence.jpg") center 54% / cover no-repeat;
}

.hero-caption {
  position: absolute;
  right: max(90px, calc((100vw - 1280px) / 2));
  bottom: 22px;
  left: 24px;
  margin: 0;
  color: #fff8eb;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  text-align: right;
  text-shadow: 0 1px 4px #071522, 0 1px 12px #071522;
}

.hero-caption span {
  white-space: nowrap;
}

.hero-panel {
  position: absolute;
  z-index: 1;
  top: 55%;
  left: clamp(64px, 14vw, 280px);
  width: min(470px, calc(100vw - 64px));
  min-height: 0;
  padding: clamp(32px, 3.1vw, 42px) clamp(28px, 3vw, 38px) clamp(26px, 2.5vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: clamp(38px, 4vw, 56px);
  background: rgba(7, 28, 45, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.hero-brand {
  margin: 0;
  width: 100%;
  font-size: clamp(62px, 5vw, 80px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero-type {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.2vw, 18px);
  font-family: var(--brand-font);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
}

.hero-heading {
  margin: clamp(24px, 2.8vh, 34px) 0 0;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.045em;
}

.hero-heading span {
  display: inline-block;
  margin-top: 4px;
}

.hero-approach {
  margin: clamp(20px, 2.2vh, 28px) 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-consultation {
  width: 100%;
  min-height: 58px;
  margin-top: clamp(24px, 2.8vh, 34px);
  padding: 15px 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 220, 0.5);
  border-radius: 999px;
  color: #fff7f3;
  background: #c73b35;
  box-shadow: 0 13px 34px rgba(117, 24, 26, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.hero-consultation:hover,
.hero-consultation:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 235, 230, 0.8);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.content-screen {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(68px, 7vw, 108px) 0;
  border-top: 1px solid var(--gold-faint);
}

.screen-inner,
.final-inner,
.footer {
  width: var(--page);
  margin-inline: auto;
}

.screen-title {
  margin: 0 0 clamp(38px, 4.5vw, 62px);
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.055em;
}

.feature-list {
  max-width: 990px;
  border-top: 1px solid var(--gold-line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 46px);
  align-items: center;
  min-height: 106px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-faint);
}

.feature-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 22px;
}

.feature-mark svg {
  width: 39px;
  height: 39px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-list h3 {
  margin: 0;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.17;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.result-screen {
  background: linear-gradient(120deg, rgba(10, 29, 45, 0.82), transparent 72%);
}

.trust-screen .screen-title,
.result-screen .screen-title {
  max-width: 100%;
  font-size: clamp(40px, 5.35vw, 76px);
  white-space: nowrap;
}

.final-screen {
  min-height: 0;
  padding: clamp(52px, 5vw, 76px) 0 0;
  border-top: 1px solid var(--gold-faint);
}

.city-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}

.city-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gold-line);
  background: var(--navy-soft);
}

.city-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.city-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
  transition: transform 700ms ease;
}

.city-photo:hover img {
  transform: scale(1.025);
}

.city-photo figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(16px, 1.8vw, 26px);
  left: clamp(18px, 2vw, 30px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.city-photo figcaption strong {
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.9;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(3, 12, 22, 0.6);
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(250px, 1.2fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(24px, 2.5vw, 38px);
  padding: clamp(46px, 5vw, 70px) 0 48px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(229, 189, 80, 0.035), transparent 90px);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-muted) 16%, var(--gold-bright) 50%, var(--gold-muted) 84%, transparent 100%);
}

.footer::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--navy);
  transform: translateX(-50%) rotate(45deg);
}

.footer-brand {
  font-size: clamp(26px, 2.5vw, 36px);
  font-family: var(--brand-font);
  font-weight: 400;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.footer-brand .brand-wordmark {
  max-width: 280px;
  stroke-width: 2px;
}

.footer-brand span {
  display: block;
  margin-top: 10px;
  color: var(--gold-muted);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  font-size: clamp(19px, 1.75vw, 25px);
  font-variant-numeric: tabular-nums;
}

.footer-action {
  min-width: 290px;
  padding: 22px 30px;
  border: 1px solid rgba(255, 226, 220, 0.48);
  border-radius: 999px;
  color: #fff8f5;
  background: #c73b35;
  box-shadow: 0 12px 30px rgba(117, 24, 26, 0.25);
  text-align: center;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-action:hover,
.footer-action:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 240, 236, 0.8);
  background: #db4941;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--gold-faint);
  color: rgba(228, 185, 79, 0.68);
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.65;
}

.header-question:hover,
.header-question:focus-visible {
  color: #fff;
  background: #d4423b;
}

.contact-actions {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(228, 185, 79, 0.3);
  border-radius: 50%;
  color: #fff8eb;
  background: rgba(10, 29, 45, 0.94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
}

.contact-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action .contact-icon-fill {
  fill: currentColor;
  stroke: none;
}

.page-jump {
  color: var(--gold-bright);
}

.page-jump.is-up svg {
  transform: rotate(180deg);
}

.contact-action-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 7px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: #fff8eb;
  background: var(--navy-soft);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-action:focus-visible .contact-action-label {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .contact-action:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
    background: #15324a;
    transform: translateY(-2px);
  }

  .contact-action:hover .contact-action-label {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-action {
    transition: color 220ms ease, background-color 220ms ease,
      border-color 220ms ease, transform 350ms var(--motion-ease, ease);
  }

  .page-jump svg {
    transition: transform 400ms var(--motion-ease, ease);
  }

  .contact-action-label {
    transition: opacity 180ms ease, visibility 180ms ease;
  }
}

@media print {
  .contact-actions {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1400px) {
  :root {
    --page: calc(100vw - 160px);
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 36px);
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .contact-actions {
    right: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--gold-faint);
    border-radius: 999px;
    background: rgba(7, 21, 34, 0.84);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(50%);
  }

  .contact-action {
    width: 46px;
    height: 46px;
    box-shadow: none;
  }

  .contact-action-label {
    right: 50%;
    bottom: calc(100% + 16px);
    transform: translateX(50%);
  }

  .hero-caption {
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 18px;
    font-size: 10px;
  }

  .site-header {
    top: 14px;
    left: 18px;
    width: calc(100% - 36px);
    grid-template-columns: 1fr auto;
    gap: 14px 12px;
    padding: 12px 14px;
    transform: none;
    font-size: 13px;
    border-radius: 26px;
  }

  .header-brand {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(16px, 4.8vw, 20px);
    width: clamp(126px, 34vw, 150px);
  }

  .header-phone {
    grid-column: 2;
    grid-row: 1;
  }

  .header-nav {
    display: contents;
  }

  .header-nav a:first-child {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .header-nav a:last-child {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .header-question {
    padding: 9px 14px;
  }

  .hero {
    min-height: max(780px, 100svh);
    background-position: 58% center;
  }

  .hero-panel {
    top: 54%;
    left: 50%;
    width: calc(100vw - 30px);
    min-height: 0;
    padding: 28px 20px 22px;
    border-radius: 34px;
    transform: translate(-50%, -50%);
  }

  .hero-brand {
    font-size: clamp(58px, 18vw, 76px);
  }

  .hero-type {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .hero-heading {
    margin-top: 24px;
    font-size: clamp(26px, 7.8vw, 32px);
  }

  .hero-approach {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-consultation {
    min-height: 54px;
    margin-top: 24px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .content-screen {
    min-height: auto;
    padding: 78px 0;
  }

  .screen-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .trust-screen .screen-title,
  .result-screen .screen-title {
    font-size: clamp(38px, 11vw, 52px);
    white-space: normal;
  }

  .feature-list article {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    min-height: 96px;
  }

  .feature-mark {
    width: 60px;
    height: 64px;
    border-radius: 18px;
  }

  .feature-mark svg {
    width: 33px;
    height: 33px;
  }

  .feature-list h3 {
    font-size: clamp(19px, 6vw, 25px);
  }

  .feature-list br {
    display: none;
  }

  .final-screen {
    min-height: auto;
    padding: 58px 0 0;
  }

  .city-photo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .city-photo {
    aspect-ratio: 4 / 3;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 22px;
  }

  .footer-action {
    width: 100%;
    min-width: 0;
  }

  .footer-brand {
    font-size: clamp(30px, 8.8vw, 44px);
  }

  .footer-legal {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .site-header {
    font-size: 12px;
  }

  .header-question {
    white-space: nowrap;
  }

  .hero-caption {
    bottom: calc(132px + env(safe-area-inset-bottom));
  }
}
