:root {
  --ink: #17130f;
  --paper: #fffdfa;
  --cream: #f7f2ea;
  --sage: #8fae8b;
  --aqua: #6ebfbe;
  --plum: #8e5477;
  --gold: #c9a13c;
  --lavender: #d8d4f2;
  --line: rgba(23, 19, 15, 0.14);
  --shadow: 0 18px 46px rgba(23, 19, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@supports (height: 100dvh) {
  html,
  body,
  #app {
    height: 100dvh;
  }
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #fffefa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.35;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 253, 250, 0.12), rgba(255, 253, 250, 0.2)),
    var(--wall-bird);
  background-position: left 2vw center;
  background-repeat: no-repeat;
  background-size: min(68vw, 900px) auto;
  opacity: 0.86;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 253, 250, 0.12), rgba(255, 253, 250, 0.18)),
    var(--wall-gold);
  background-position: right 22vw top 60%;
  background-repeat: no-repeat;
  background-size: min(64vw, 900px) auto;
  opacity: 0.74;
}

#app {
  position: relative;
  z-index: 1;
}

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

button,
input,
select {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 1.02;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.75vw, 3.2rem);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
  font-weight: 500;
}

h3 {
  font-size: 0.95rem;
}

#app {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
}

.site-header {
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 10px clamp(16px, 3vw, 42px);
  background: rgba(255, 253, 250, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.language-switch,
.hero-actions,
.panel-heading,
.gallery-controls {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-details a:hover {
  color: var(--plum);
}

.language-switch {
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.lang-button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(23, 19, 15, 0.62);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.lang-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.one-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: 54px minmax(0, 1fr);
  grid-template-areas:
    "actions actions"
    "hero gallery";
  gap: clamp(12px, 1.4vw, 20px);
  min-height: 0;
  padding: clamp(12px, 1.8vw, 24px) clamp(12px, 1.8vw, 24px) calc(clamp(12px, 1.8vw, 24px) + 32px);
}

.developer-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: none;
  padding: 7px 14px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 0 0 8px 8px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.developer-credit strong {
  display: inline-flex;
  gap: 4px;
  color: var(--ink);
  font-size: inherit;
  font-weight: 600;
}

.brand-gold {
  color: var(--gold);
}

.hero-panel,
.gallery-panel,
.info-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 60, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.7);
  box-shadow: var(--shadow);
}

.hero-panel {
  grid-area: hero;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.2vw, 30px) clamp(14px, 1.8vw, 24px);
}

.hero-title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(8px, 1vw, 14px);
}

.hero-title-line span {
  color: var(--plum);
  font-size: clamp(0.66rem, 0.86vw, 0.82rem);
  font-weight: 950;
  text-transform: uppercase;
}

.hero-title-line h1 {
  min-width: 0;
  overflow: visible;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.founder-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(220px, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  min-height: 0;
}

.founder-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-right: 0;
}

.founder-photo-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.founder-photo-wrap::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 20%;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 253, 250, 0.82), rgba(255, 253, 250, 0));
}

.founder-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  object-fit: cover;
  object-position: center 22%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.founder-intro p {
  max-width: 28rem;
  margin: 0;
  color: rgba(23, 19, 15, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.42vw, 1.55rem);
  font-style: italic;
  line-height: 1.42;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f4d873 0%, var(--gold) 52%, #a87d1e 100%);
  border-color: rgba(168, 125, 30, 0.5);
  box-shadow: 0 12px 24px rgba(201, 161, 60, 0.28);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
}

.gallery-panel {
  grid-area: gallery;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: clamp(14px, 1.8vw, 22px);
  background: rgba(255, 253, 250, 0.78);
}

.panel-heading {
  justify-content: space-between;
  gap: 14px;
}

.gallery-controls {
  gap: 8px;
}

.gallery-wheel {
  --gallery-card-width: clamp(280px, 38%, 460px);
  display: grid;
  grid-auto-columns: var(--gallery-card-width);
  grid-auto-flow: column;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 10px 18px;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: calc((100% - var(--gallery-card-width)) / 2);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 161, 60, 0.58) rgba(255, 255, 255, 0.44);
  touch-action: pan-x;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-wheel::-webkit-scrollbar {
  height: 8px;
}

.gallery-wheel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
}

.gallery-wheel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(142, 84, 119, 0.72), rgba(201, 161, 60, 0.82));
  border-radius: 999px;
}

.gallery-wheel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gallery-wheel.is-wheel-scrolling {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.gallery-empty {
  display: grid;
  min-width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(201, 161, 60, 0.48);
  border-radius: 8px;
  color: rgba(23, 19, 15, 0.58);
  background: rgba(255, 255, 255, 0.38);
  font-weight: 850;
  text-align: center;
}

.work-item {
  --depth-distance: 0;
  --depth-abs: 1;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 60, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 34px rgba(23, 19, 15, 0.12);
  opacity: 0.86;
  scroll-snap-align: center;
  transform: translateZ(0) scale(0.96);
  transform-origin: center;
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  will-change: opacity, transform;
}

.work-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%);
  pointer-events: none;
}

.work-item:hover {
  border-color: rgba(201, 161, 60, 0.74);
  box-shadow: 0 22px 44px rgba(23, 19, 15, 0.18);
}

.work-item.is-near {
  opacity: 0.92;
}

.work-item.is-active {
  border-color: rgba(201, 161, 60, 0.86);
  box-shadow: 0 26px 54px rgba(23, 19, 15, 0.24);
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 180ms ease;
}

.work-item:hover img {
  transform: scale(1.04);
}

.work-item.is-active img {
  transform: scale(1.03);
}

.wheel-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(23, 19, 15, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.wheel-button span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.wheel-button:hover {
  background: var(--paper);
  box-shadow: 0 16px 30px rgba(23, 19, 15, 0.14);
  transform: translateY(-1px);
}

.top-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 0;
}

.info-panel {
  height: 100%;
  min-height: 0;
  padding: clamp(10px, 1.1vw, 14px);
}

.top-actions .info-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel-button {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 10px;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 243, 190, 0.94) 0%, rgba(201, 161, 60, 0.9) 62%, rgba(168, 125, 30, 0.94) 100%);
  border: 1px solid rgba(168, 125, 30, 0.46);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 24px rgba(201, 161, 60, 0.2);
}

.booking-panel {
  display: grid;
}

.booking-panel h2,
.booking-note {
  display: none;
}

.panel-button:hover {
  background: linear-gradient(135deg, rgba(255, 248, 214, 0.98) 0%, rgba(218, 180, 76, 0.96) 58%, rgba(184, 137, 31, 0.98) 100%);
}

.info-panel h2 {
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
}

.info-panel .eyebrow {
  display: none;
}

.telegram-button {
  width: 100%;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding: 0 14px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 600;
}

.contacts-panel {
  display: block;
}

.contact-details {
  min-width: 0;
}

.contact-details dl {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: rgba(23, 19, 15, 0.54);
  font-size: 0.56rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-details dd {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 850;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px);
  background: rgba(23, 19, 15, 0.34);
  backdrop-filter: blur(10px);
}

.modal-layer[hidden],
.modal-window[hidden] {
  display: none;
}

.modal-window {
  position: relative;
  display: grid;
  align-content: start;
  width: min(1240px, 100%);
  min-height: min(620px, 86vh);
  max-height: min(94vh, 920px);
  overflow: auto;
  padding: clamp(36px, 4.4vw, 64px);
  border: 1px solid rgba(201, 161, 60, 0.36);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 24px 70px rgba(23, 19, 15, 0.26);
}

.modal-window h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
}

.modal-window p {
  margin-bottom: 0;
  color: rgba(23, 19, 15, 0.68);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.58;
}

.modal-window p strong {
  font-weight: 850;
}

.modal-window p + p {
  margin-top: 14px;
}

.price-image-wrap {
  overflow: hidden;
  border: 1px solid rgba(201, 161, 60, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.price-image {
  display: block;
  width: 100%;
  height: auto;
}

.price-modal {
  width: min(1180px, 98vw);
  max-height: 94vh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(16px, 2vh, 24px);
}

.price-modal h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.6vh, 2rem);
}

.price-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.price-action {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(201, 161, 60, 0.88);
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.price-action:hover {
  background: var(--gold);
}

.price-modal .price-image-wrap {
  max-height: calc(94vh - 128px);
}

.price-modal .price-image {
  width: 100%;
  max-height: calc(94vh - 130px);
  object-fit: contain;
}

.rent-offer {
  display: grid;
  gap: 22px;
}

.rent-intro {
  max-width: 30em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.36rem, 2vw, 1.75rem);
}

.rent-specialists {
  padding: 18px 20px;
  color: rgba(23, 19, 15, 0.78);
  background: rgba(201, 161, 60, 0.12);
  border: 1px solid rgba(201, 161, 60, 0.26);
  border-radius: 8px;
}

.rent-specialists strong {
  color: var(--ink);
  font-weight: 950;
}

.rent-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.rent-terms div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 19, 15, 0.1);
  border-radius: 8px;
}

.rent-terms dt {
  margin-bottom: 8px;
  color: rgba(23, 19, 15, 0.56);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rent-terms dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 1.75vw, 1.58rem);
  font-weight: 950;
}

.rent-contract {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(201, 161, 60, 0.56);
  border-radius: 8px;
}

.rent-contract span,
.rent-contract a {
  color: var(--ink);
  font-size: clamp(1.16rem, 1.5vw, 1.34rem);
  font-weight: 950;
  text-decoration: none;
}

.rent-contract a:hover {
  color: var(--gold);
}

.rent-contract p {
  margin: 0;
  color: rgba(23, 19, 15, 0.62);
  font-size: 1.06rem;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.modal-details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.modal-details div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-details dt {
  color: rgba(23, 19, 15, 0.54);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-details dd {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 0;
  font-size: clamp(1.12rem, 1.35vw, 1.28rem);
  font-weight: 850;
}

@media (max-width: 1060px) {
  #app {
    grid-template-rows: 104px minmax(0, 1fr);
  }

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

  .one-screen {
    grid-template-columns: 1fr;
    grid-template-rows: 48px minmax(0, 0.56fr) minmax(0, 1.04fr);
    grid-template-areas:
      "actions"
      "hero"
      "gallery";
  }

  .hero-actions {
    align-self: end;
  }

  .top-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #app {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .site-header {
    gap: 8px;
    padding: 6px 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    max-width: 132px;
  }

  .one-screen {
    gap: 8px;
    padding: 8px 8px 44px;
    grid-template-rows: 76px minmax(0, 0.48fr) minmax(0, 0.52fr);
    grid-template-areas:
      "actions"
      "hero"
      "gallery";
  }

  .developer-credit {
    bottom: 8px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .developer-credit strong {
    font-size: inherit;
  }

  .hero-panel,
  .gallery-panel,
  .info-panel {
    padding: 10px;
  }

  h1 {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 0.82rem;
  }

  .founder-intro p {
    display: block;
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    line-height: 1.34;
  }

  .founder-intro {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 34%);
    gap: 8px;
    align-items: stretch;
  }

  .founder-copy {
    padding-right: 0;
  }

  .founder-photo-wrap {
    border-radius: 8px;
  }

  .founder-photo {
    display: block;
    height: 100%;
    min-height: 116px;
    font-size: 0.74rem;
    object-position: center 32%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-title-line {
    gap: 6px;
    align-items: center;
  }

  .hero-title-line span {
    font-size: 0.56rem;
  }

  .button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .gallery-wheel {
    --gallery-card-width: min(84vw, 360px);
    grid-auto-columns: var(--gallery-card-width);
    padding: 8px 4px 12px;
    mask-image: none;
    perspective: none;
  }

  .work-item,
  .work-item.is-active {
    height: 100%;
    aspect-ratio: auto;
    opacity: 1;
    transform: none;
  }

  .top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .top-actions .info-panel {
    padding: 0;
  }

  .panel-button {
    padding: 7px;
    font-size: clamp(0.78rem, 3.3vw, 0.98rem);
  }

  .telegram-button {
    min-height: 0;
    padding: 7px;
    font-size: clamp(0.72rem, 3vw, 0.9rem);
  }

  .contact-details dd {
    font-size: 0.66rem;
  }

  .booking-panel h2,
  .contacts-panel h2 {
    display: none;
  }

  .booking-note {
    display: none;
  }

  .modal-layer {
    align-items: stretch;
    padding: 10px;
  }

  .modal-window {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 20px);
    padding: 28px 16px 18px;
  }

  .price-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .modal-window h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .modal-window p {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  .contact-details dl {
    gap: 4px;
    margin-top: 6px;
  }

  .contact-details div {
    display: block;
    padding-bottom: 4px;
  }

  .contact-details dt {
    font-size: 0.52rem;
  }

  .contact-details dd {
    margin-top: 0;
    font-size: 0.56rem;
  }
}

@media (max-width: 1180px) and (max-height: 760px) and (orientation: landscape),
  (hover: none) and (pointer: coarse) and (orientation: landscape) {
  html,
  body,
  #app {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #app {
    grid-template-rows: 40px auto;
  }

  .site-header {
    gap: 10px;
    padding: 3px 12px;
  }

  .brand img {
    width: 24px;
    height: 24px;
  }

  .brand span {
    font-size: 0.74rem;
  }

  .language-switch {
    padding: 2px;
  }

  .lang-button {
    min-width: 29px;
    min-height: 23px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  .one-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 32px minmax(118px, auto) minmax(180px, 42svh);
    grid-template-areas:
      "actions"
      "hero"
      "gallery";
    gap: 5px;
    min-height: calc(100svh - 40px);
    padding: 4px 8px 24px;
  }

  .top-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .panel-button,
  .telegram-button {
    min-height: 0;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: clamp(0.64rem, 1.58vw, 0.78rem);
    line-height: 1.1;
  }

  .hero-panel,
  .gallery-panel {
    padding: 7px;
  }

  .hero-panel {
    gap: 3px;
  }

  .hero-title-line {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .hero-title-line span,
  .eyebrow {
    font-size: 0.5rem;
  }

  .hero-title-line h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(0.88rem, 2.2vw, 1.16rem);
  }

  h2 {
    font-size: clamp(0.86rem, 2vw, 1.08rem);
  }

  .founder-intro {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 22%);
    gap: 8px;
    align-items: stretch;
  }

  .founder-copy {
    align-items: flex-start;
  }

  .founder-photo-wrap {
    display: block;
    min-height: 96px;
    max-height: 150px;
  }

  .founder-intro p {
    max-width: none;
    font-size: clamp(0.62rem, 1.35vw, 0.78rem);
    line-height: 1.18;
  }

  .gallery-panel {
    gap: 4px;
  }

  .panel-heading {
    min-height: 24px;
  }

  .gallery-controls {
    gap: 5px;
  }

  .wheel-button {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
  }

  .gallery-wheel {
    --gallery-card-width: clamp(170px, 31%, 300px);
    gap: 8px;
    padding: 3px 5px 7px;
  }

  .work-item {
    border-radius: 7px;
  }

  .work-item.is-center {
    transform: translateZ(28px) scale(1.03);
  }

  .developer-credit {
    padding: 3px 10px;
    border-radius: 0;
    font-size: 0.62rem;
  }
}
