:root {
  --night: 0;
  --text: #f7f2ea;
  --muted: rgba(247, 242, 234, .74);
  --line: rgba(229, 177, 118, .68);
  --glow: rgba(230, 164, 86, .46);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #06090d;
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.logo-link {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}

.experience {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #06090d;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(20px, 3vw, 42px) clamp(22px, 4vw, 64px) 0;
  pointer-events: none;
}

.site-logo {
  width: clamp(190px, 18vw, 325px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.36));
  display: block;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.top-actions button {
  min-width: 118px;
  min-height: 42px;
  border: 1px solid rgba(255, 247, 235, .56);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(7, 10, 14, .22);
  color: rgba(255, 247, 235, .92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.top-actions button:hover,
.top-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(236, 196, 132, .9);
  background: rgba(229, 177, 118, .13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 0 30px rgba(229, 177, 118, .22);
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
  transition: opacity 850ms ease, transform 1100ms cubic-bezier(.2, .74, .18, 1);
}

.screen.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.screen.is-leaving {
  opacity: 0;
  transform: scale(1.16);
}

.bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.bg--day {
  background-image: url("assets/exterior-day.png");
}

.bg--night {
  opacity: var(--night);
  background-image: url("assets/exterior-night.png");
}

.bg--interior {
  background-image: url("assets/interior.png");
}

.screen--exterior::after,
.screen--interior::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 49% 50%, transparent 0 36%, rgba(0,0,0,.2) 72%, rgba(0,0,0,.56)),
    linear-gradient(90deg, rgba(0,0,0,.22), transparent 30%, transparent 70%, rgba(0,0,0,.24));
}

.ambient-lights {
  position: absolute;
  inset: 0;
  opacity: var(--night);
  pointer-events: none;
  background:
    radial-gradient(circle at 48.8% 39%, rgba(255, 187, 93, .34), transparent 9%),
    radial-gradient(circle at 68% 66%, rgba(255, 169, 80, .28), transparent 8%),
    radial-gradient(circle at 77% 77%, rgba(112, 172, 255, .28), transparent 6%);
  mix-blend-mode: screen;
}

.door-hotspot {
  position: absolute;
  z-index: 5;
  left: 49%;
  top: 61%;
  width: min(31vw, 500px);
  height: min(23vh, 230px);
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
}

.door-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.door-hotspot::before {
  content: "ДОБРО ПОЖАЛОВАТЬ";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  transform: translate(-50%, -50%) scale(.98);
  padding: 0 20px;
  color: rgba(41, 139, 255, .9);
  font-size: clamp(26px, 3.45vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 4px rgba(31, 133, 255, .8),
    0 0 14px rgba(0, 102, 235, .5),
    0 0 30px rgba(0, 84, 205, .32),
    0 3px 18px rgba(0,0,0,.7);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.door-hotspot:hover::after,
.door-hotspot:focus-visible::after {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.door-hotspot:hover::before,
.door-hotspot:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.interior-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 53%, transparent 0 34%, rgba(0,0,0,.28) 74%, rgba(0,0,0,.62)),
    linear-gradient(180deg, rgba(0,0,0,.28), transparent 34%, rgba(0,0,0,.24));
}

.back-link {
  position: absolute;
  z-index: 8;
  left: 48px;
  bottom: 42px;
  width: 58px;
  height: 46px;
  border: 1px solid rgba(255, 222, 177, .68);
  border-radius: 999px;
  background: rgba(9, 12, 15, .36);
  color: rgba(255, 244, 228, .9);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 0 28px rgba(229, 177, 118, .18);
  backdrop-filter: blur(8px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateX(-4px);
  border-color: rgba(255, 229, 188, .98);
  background: rgba(229, 177, 118, .18);
  box-shadow: 0 0 34px rgba(229, 177, 118, .34);
}

.info-zone {
  position: absolute;
  z-index: 7;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.info-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 34px rgba(229, 177, 118, .28), inset 0 0 28px rgba(229, 177, 118, .1);
  transition: opacity .45s ease;
}

.info-zone:hover::after,
.info-zone.is-open::after,
.info-zone:focus-within::after,
.info-zone:focus-visible::after {
  opacity: 1;
}

.info-zone--projects {
  left: 37.2%;
  top: 30.8%;
  width: 27.6%;
  height: 27%;
}

.info-zone--contacts {
  left: 5.1%;
  top: 41.4%;
  width: 9.7%;
  height: 20%;
}

.contact-board-title {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 92%;
  transform: translateX(-50%);
  color: rgba(255, 229, 188, .84);
  font-size: clamp(12px, 1.02vw, 17px);
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(229, 177, 118, .46), 0 2px 8px rgba(0,0,0,.72);
  pointer-events: none;
}

.info-card {
  position: absolute;
  width: min(560px, 36vw);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 28px 30px;
  border: 1px solid rgba(236, 196, 132, .72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 18, 15, .94), rgba(7, 9, 10, .9)),
    radial-gradient(circle at 20% 0, rgba(236, 196, 132, .16), transparent 38%);
  color: rgba(255, 249, 238, .94);
  box-shadow:
    0 28px 100px rgba(0,0,0,.68),
    0 0 44px rgba(229, 177, 118, .24),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .74, .18, 1);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(236, 196, 132, .18);
  border-radius: 5px;
  pointer-events: none;
}

.info-zone:hover .info-card,
.info-zone.is-open .info-card,
.info-zone:focus-within .info-card,
.info-zone:focus-visible .info-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.info-card--projects {
  position: fixed;
  left: 50vw;
  top: 50vh;
  bottom: auto;
  width: min(680px, 90vw);
  max-height: min(74vh, 680px);
  transform: translate(-50%, -46%) scale(.98);
}


.info-zone:hover .info-card--projects,
.info-zone:focus-within .info-card--projects,
.info-zone:focus-visible .info-card--projects {
  transform: translate(-50%, -50%) scale(1);
}


.info-card--contacts {
  position: fixed;
  left: 50vw;
  top: 50vh;
  width: min(500px, 90vw);
  max-height: min(78vh, 720px);
  transform: translate(-50%, -46%) scale(.98);
}

.info-zone:hover .info-card--contacts,
.info-zone.is-open .info-card--contacts,
.info-zone:focus-within .info-card--contacts,
.info-zone:focus-visible .info-card--contacts {
  transform: translate(-50%, -50%) scale(1);
}

.info-card h2 {
  margin: 0 0 20px;
  color: #fff7e8;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(229, 177, 118, .28);
}

.info-card article + article {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 177, 118, .24);
}

.info-card h3 {
  margin: 0 0 8px;
  color: #fff6e6;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 700;
}

.info-card p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 247, 235, .84);
}

.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 247, 235, .72);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(229, 177, 118, .54);
  border-radius: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,.055);
  color: #fff;
}

.contact-form textarea {
  min-height: 88px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-width: 150px;
  min-height: 40px;
  border: 1px solid rgba(229, 177, 118, .76);
  border-radius: 999px;
  background: rgba(229, 177, 118, .14);
  color: #fff;
  transition: background .22s ease, box-shadow .22s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: rgba(229, 177, 118, .24);
  box-shadow: 0 0 24px rgba(229, 177, 118, .22);
}

.header-panel {
  position: fixed;
  z-index: 30;
  right: clamp(22px, 4vw, 64px);
  top: clamp(82px, 8vw, 118px);
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(236, 196, 132, .72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 18, 15, .94), rgba(7, 9, 10, .9)),
    radial-gradient(circle at 20% 0, rgba(236, 196, 132, .16), transparent 38%);
  color: rgba(255, 249, 238, .94);
  box-shadow:
    0 28px 100px rgba(0,0,0,.68),
    0 0 44px rgba(229, 177, 118, .24),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(.985);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2, .74, .18, 1);
}

.header-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-panel__close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: rgba(255, 247, 235, .86);
  font-size: 24px;
  line-height: 1;
}

.header-panel h2 {
  margin: 0 42px 18px 0;
  color: #fff7e8;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
}

.header-panel h3 {
  margin: 18px 0 8px;
  color: #fff6e6;
  font-size: 17px;
}

.header-panel p {
  margin: 0 0 10px;
  color: rgba(255, 247, 235, .84);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .door-hotspot {
    width: 46vw;
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100svh;
  }

  .experience {
    height: 100svh;
    min-height: 100svh;
  }

  .site-header {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 0;
  }

  .site-logo {
    width: min(42vw, 160px);
  }

  .top-actions {
    gap: 8px;
  }

  .top-actions button {
    min-width: 72px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .bg {
    background-position: center;
  }

  .screen--exterior .bg {
    background-position: 48% center;
  }

  .screen--interior .bg {
    background-position: 52% center;
  }

  .door-hotspot {
    left: 50%;
    top: 58%;
    width: 72vw;
    height: 19vh;
  }

  .door-hotspot::before {
    font-size: clamp(18px, 6vw, 32px);
    padding: 0 10px;
  }

  .back-link {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 42px;
  }

  .info-zone--projects {
    left: 2%;
    top: 36%;
    width: 96%;
    height: 27%;
  }

  .info-zone--contacts {
    left: 2%;
    top: 36%;
    width: 34%;
    height: 27%;
  }

  .info-card,
  .info-card--projects,
  .info-card--contacts {
    position: fixed;
    left: 50vw;
    top: 52svh;
    width: min(92vw, 430px);
    max-height: 76svh;
    padding: 22px 20px;
    transform: translate(-50%, -46%) scale(.98);
  }

  .info-card h2 {
    font-size: 23px;
  }

  .info-card h3 {
    font-size: 15px;
  }

  .info-card p {
    font-size: 14px;
  }

  .info-zone:hover .info-card--projects,
  .info-zone.is-open .info-card--projects,
  .info-zone:focus-within .info-card--projects,
  .info-zone:focus-visible .info-card--projects,
  .info-zone:hover .info-card--contacts,
  .info-zone.is-open .info-card--contacts,
  .info-zone:focus-within .info-card--contacts,
  .info-zone:focus-visible .info-card--contacts {
    transform: translate(-50%, -50%) scale(1);
  }

  .header-panel {
    left: 50%;
    right: auto;
    top: 86px;
    width: min(92vw, 430px);
    max-height: calc(100svh - 104px);
    padding: 24px 20px;
    transform: translate(-50%, -10px) scale(.985);
  }

  .header-panel.is-open {
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .experience {
    height: 100svh;
    min-height: 100svh;
  }

  .site-header {
    padding: 18px 34px 0;
  }

  .site-logo {
    width: min(25vw, 190px);
  }

  .info-zone--projects {
    left: 31%;
    top: 36%;
    width: 40%;
    height: 35%;
  }

  .info-zone--contacts {
    left: 6%;
    top: 38%;
    width: 16%;
    height: 34%;
  }

  .info-card,
  .info-card--projects,
  .info-card--contacts {
    position: fixed;
    left: 50vw;
    top: 53svh;
    width: min(76vw, 620px);
    max-height: 72svh;
    padding: 20px 22px;
    transform: translate(-50%, -46%) scale(.98);
  }

  .info-zone:hover .info-card--projects,
  .info-zone.is-open .info-card--projects,
  .info-zone:focus-within .info-card--projects,
  .info-zone:focus-visible .info-card--projects,
  .info-zone:hover .info-card--contacts,
  .info-zone.is-open .info-card--contacts,
  .info-zone:focus-within .info-card--contacts,
  .info-zone:focus-visible .info-card--contacts {
    transform: translate(-50%, -50%) scale(1);
  }
}
