/* ==========================================================================
   Ferdinand Group — аренда лофтов
   Тёмная «кинематографичная» тема: тёплый чёрный, латунь, неоновое свечение
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + cyrillic) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0c0a09;
  --bg-2: #13100e;
  --surface: #1b1715;
  --surface-2: #241f1b;
  --line: rgb(244 237 228 / 0.12);
  --line-strong: rgb(244 237 228 / 0.26);

  --text: #f4ede4;
  --text-2: #c9bfb3;
  --text-3: #9a8f84;

  --accent: #e2a85a;
  --accent-hover: #f0bd74;
  --on-accent: #1a1006;
  --neon: #d1449b;
  --neon-2: #7a4ce0;
  --danger: #ff8a7a;
  --success: #86d993;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* лёгкая плёночная зернистость поверх всего */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

/* картинки, которые заполняют блок целиком */
.hero__media picture,
.hall__media picture,
.catering__media picture,
.tile picture {
  width: 100%;
  height: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 em,
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

/* у Playfair по умолчанию «старинные» цифры — для телефонов и чисел нужны обычные */
.stat dd,
.cap dd,
.range__value output,
.phones a,
.step::before,
.notfound__code {
  font-variant-numeric: lining-nums;
}

.lead {
  max-width: 56ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 40px -12px rgb(226 168 90 / 0.65);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgb(244 237 228 / 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgb(244 237 228 / 0.08);
}

.btn--sm {
  --btn-h: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.btn--lg {
  --btn-h: 58px;
  padding: 0 32px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.btn[aria-busy="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled,
.menu-open .header {
  background: rgb(12 10 9 / 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.logo__text small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav ul {
  display: flex;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgb(244 237 228 / 0.06);
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__phone .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.header__phone:hover {
  color: var(--accent);
}

.burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.burger__lines {
  position: relative;
  width: 22px;
  height: 12px;
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.burger__lines::before {
  top: 0;
}

.burger__lines::after {
  top: 10.5px;
}

.burger[aria-expanded="true"] .burger__lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: grid;
  }
}

@media (max-width: 640px) {
  .header__phone,
  .header__cta {
    display: none;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 8vw, 2.75rem);
  line-height: 1.15;
}

.mobile-menu__nav a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.mobile-menu__foot {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}

.mobile-menu__foot a:not(.btn) {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 10 9 / 0.7) 0%, rgb(12 10 9 / 0.1) 28%, rgb(12 10 9 / 0.45) 58%, var(--bg) 100%),
    linear-gradient(90deg, rgb(12 10 9 / 0.85) 0%, rgb(12 10 9 / 0.35) 55%, rgb(12 10 9 / 0) 100%);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  right: -15%;
  bottom: -25%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(209 68 155 / 0.32), rgb(122 76 224 / 0.12) 55%, transparent);
  pointer-events: none;
}

.hero__content {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero__title {
  margin: 22px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero__title .line {
  display: block;
}

.hero__lead {
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 20px 26px 0;
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  white-space: nowrap;
}

.stat dd small {
  margin: 0 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-3);
}

.stat dd small:first-child {
  margin-left: 0;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (min-width: 860px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat + .stat {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 859px) {
  .stat:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-zoom 16s var(--ease-out) both;
  }

  .hero__content > *,
  .hero__title .line {
    animation: rise 1s var(--ease-out) both;
  }

  .hero__title .line:nth-child(1) { animation-delay: 0.1s; }
  .hero__title .line:nth-child(2) { animation-delay: 0.2s; }
  .hero__title .line:nth-child(3) { animation-delay: 0.3s; }
  .hero__content > .eyebrow { animation-delay: 0s; }
  .hero__content > .hero__lead { animation-delay: 0.45s; }
  .hero__content > .hero__actions { animation-delay: 0.55s; }

  .hero__stats {
    animation: fade 1.2s 0.7s var(--ease-out) both;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  white-space: nowrap;
}

.ticker__sep {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: ticker 45s linear infinite;
  }

  .ticker:hover .ticker__track {
    animation-play-state: paused;
  }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: var(--section);
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 24px 64px;
  }

  .section-head--split .eyebrow {
    grid-column: 1 / -1;
  }
}

/* scroll-driven появление блоков (прогрессивное улучшение: без поддержки — просто видно) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ---------- Hall finder ---------- */
.finder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.finder__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.seg {
  display: inline-flex;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.seg legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.seg input:hover + span {
  color: var(--text);
}

.seg input:checked + span {
  background: var(--accent);
  color: var(--on-accent);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.range {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 16px;
}

.range__value {
  min-width: 108px;
  font-size: 0.9375rem;
  color: var(--text-2);
  white-space: nowrap;
}

.range__value output {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  vertical-align: -2px;
}

.range input {
  --fill: 28.57%;
  flex: 1;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range input:focus-visible {
  outline: none;
}

.range input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--line-strong) var(--fill));
}

.range input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
}

.range input::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.range input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 5px solid var(--bg-2);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.2s;
}

.range input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 5px solid var(--bg-2);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.range input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--accent);
}

.range input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--accent);
}

.finder__result {
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.9375rem;
}

@media (scripting: none) {
  .finder,
  .hall__fit {
    display: none;
  }
}

/* ---------- Halls ---------- */
.halls__grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 40px);
  align-items: start;
}

@media (min-width: 860px) {
  .halls__grid {
    grid-template-columns: 1fr 1fr;
  }

  .halls__grid > li:nth-child(even) {
    margin-top: 96px;
  }
}

.hall {
  transition: opacity 0.45s var(--ease-out);
}

.hall__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--surface);
}

.hall__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.45s;
}

.hall:hover .hall__media img {
  transform: scale(1.045);
}

.hall__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 10 9 / 0.35) 0%, transparent 30%, transparent 60%, rgb(12 10 9 / 0.55) 100%);
  pointer-events: none;
}

.hall__num {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
}

.hall__area {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(12 10 9 / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.hall__body {
  display: grid;
  gap: 14px;
  padding: 28px 4px 0;
}

.hall__latin {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hall__name {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.hall__desc {
  max-width: 52ch;
  color: var(--text-2);
}

.cap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.cap > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 14px 16px;
  transition: background-color 0.3s;
}

.cap > div + div {
  border-left: 1px solid var(--line);
}

.cap dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
}

.cap dd {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.cap > .is-active {
  background: rgb(226 168 90 / 0.12);
}

.cap > .is-active dt {
  color: var(--accent);
}

.hall__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 8px;
}

.hall__fit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
}

.hall__fit::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.hall.is-unfit .hall__fit::before {
  background: var(--text-3);
  box-shadow: none;
}

.hall.is-unfit .hall__media img {
  filter: grayscale(0.85) brightness(0.55);
}

.hall.is-unfit .hall__name,
.hall.is-unfit .hall__desc,
.hall.is-unfit .cap {
  opacity: 0.5;
}

/* ---------- Formats (bento) ---------- */
.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(320px, auto);
  }

  .tile--wedding {
    grid-column: span 7;
    grid-row: span 2;
  }

  .tile--party,
  .tile--corp {
    grid-column: span 5;
  }

  .tile--private {
    grid-column: 1 / -1;
  }
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 380px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.tile picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.tile:hover img {
  transform: scale(1.045);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(12 10 9 / 0.05) 0%, rgb(12 10 9 / 0.55) 30%, rgb(12 10 9 / 0.9) 65%, rgb(12 10 9 / 0.95) 100%);
}

.tile:not(.tile--private) > :is(.tile__tags, .tile__title, .tile__text) {
  text-shadow: 0 1px 14px rgb(12 10 9 / 0.7);
}

.tile__tags {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile__title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.tile__text {
  max-width: 46ch;
  color: var(--text-2);
}

.tile .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.tile--private {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  background:
    radial-gradient(60% 140% at 100% 0%, rgb(209 68 155 / 0.32), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgb(122 76 224 / 0.25), transparent 60%),
    var(--surface);
}

.tile--private::before {
  display: none;
}

.tile--private > div {
  display: grid;
  gap: 12px;
}

.tile--private .btn {
  align-self: center;
  margin-top: 0;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
  }

  .about__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.about__intro {
  display: grid;
  gap: 24px;
}

.about__intro p + p {
  margin-top: -8px;
}

.features {
  display: grid;
  gap: 0 40px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  display: grid;
  gap: 12px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.feature p {
  color: var(--text-2);
}

/* ---------- Catering ---------- */
.catering {
  background:
    radial-gradient(50% 60% at 0% 50%, rgb(226 168 90 / 0.08), transparent 70%),
    var(--bg-2);
}

.catering__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .catering__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}

.catering__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-l);
}

.catering__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catering__badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(12 10 9 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.9375rem;
}

.catering__badge .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.catering__body {
  display: grid;
  gap: 24px;
}

.menu-list {
  counter-reset: menu;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.menu-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: menu;
}

.menu-list li::before {
  content: "0" counter(menu);
  grid-row: span 2;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.menu-list h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.menu-list p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.services__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.chips .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Steps ---------- */
.steps__list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  counter-increment: step;
  transition: border-color 0.3s, background-color 0.3s;
}

.step:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.step::before {
  content: "0" counter(step);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.2;
}

.step p {
  color: var(--text-2);
}

.steps__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  color: var(--text-2);
}

.steps__note .icon {
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  left: -20%;
  width: min(80vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(209 68 155 / 0.18), rgb(122 76 224 / 0.08) 55%, transparent);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.contact__info {
  display: grid;
  gap: 24px;
}

.phones {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.phones a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  transition: color 0.2s;
}

.phones a:hover {
  color: var(--accent);
}

.phones .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
}

.contact__meta .icon {
  color: var(--accent);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgb(27 23 21 / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.form__fields {
  display: grid;
  gap: 18px;
}

.form__head {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.15;
}

.form__head p,
.form__hint {
  color: var(--text-3);
  font-size: 0.9375rem;
}

.form__hint {
  margin-top: 4px;
}

.form__row {
  display: grid;
  gap: 18px;
}

@media (min-width: 520px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: var(--text-3);
}

.field input:hover,
.field select:hover {
  border-color: rgb(244 237 228 / 0.4);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(226 168 90 / 0.25);
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23c9bfb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  -webkit-appearance: none;
  appearance: none;
}

.field select option {
  background: var(--surface);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
  filter: invert(0.85);
}

.field.has-error input {
  border-color: var(--danger);
}

.field.has-error input:focus {
  box-shadow: 0 0 0 3px rgb(255 138 122 / 0.25);
}

.field__error {
  color: var(--danger);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  margin-top: 8px;
}

.form__consent {
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.form__consent a,
.form__status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__consent a:hover {
  color: var(--text);
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 14px 16px;
  border: 1px solid rgb(255 138 122 / 0.4);
  border-radius: var(--radius-s);
  background: rgb(255 138 122 / 0.08);
  color: var(--text);
  font-size: 0.9375rem;
}

.form__success {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 24px 0;
}

.form__success[hidden] {
  display: none;
}

.form__success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(134 217 147 / 0.12);
  color: var(--success);
}

.form__success-icon .icon {
  width: 30px;
  height: 30px;
}

.form__success p {
  color: var(--text-2);
}

/* ---------- Footer ---------- */
.footer {
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__top {
  display: grid;
  gap: 40px;
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer__brand {
  display: grid;
  align-content: start;
  gap: 20px;
}

.footer__brand p {
  max-width: 34ch;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover {
  color: var(--text);
}

.footer__word {
  margin-bottom: -0.18em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 19vw, 17.5rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgb(244 237 228 / 0.16);
  user-select: none;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 640px) {
  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(12 10 9 / 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease-out);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta .btn {
    padding: 0 16px;
  }

  .footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 64px) 0 var(--section);
}

.prose {
  max-width: 760px;
}

.prose h1 {
  margin: 20px 0 32px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.prose h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose p + p,
.prose ul {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.25em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose mark {
  padding: 0 4px;
  border-radius: 4px;
  background: rgb(226 168 90 / 0.18);
  color: var(--accent);
}

.notfound {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-style: italic;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }
}
