:root {
  --black: #050505;
  --black-soft: #0c0c0c;
  --black-card: #111111;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.72);
  --white-mute: rgba(255, 255, 255, 0.42);
  --link: #6eb6ff;
  --link-hover: #9ed0ff;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--white);
  color: var(--black);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--white);
  color: var(--black);
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ── Hero (homepage) ── */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  max-width: 920px;
  min-height: calc(100vh + clamp(200px, 34vh, 420px));
  min-height: calc(100dvh + clamp(200px, 34vh, 420px));
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) brightness(0.76) contrast(1.03);
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    rgba(0, 0, 0, 0.28),
    radial-gradient(ellipse 90% 80% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.18) 68%, rgba(5, 5, 5, 0.72) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.48) 0%, transparent 40%, rgba(0, 0, 0, 0.22) 100%);
}

.hero__outro {
  position: relative;
  z-index: 1;
  height: clamp(160px, 28vh, 320px);
  margin-top: clamp(-200px, -24vh, -120px);
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 5, 5, 0.55) 38%, var(--black) 100%);
  pointer-events: none;
}

.hero__ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 4;
  pointer-events: none;
}

.hero__ui > * {
  pointer-events: auto;
}

.hero__logo {
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
  left: max(var(--pad), env(safe-area-inset-left, 0px));
  z-index: 6;
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 0.3s var(--ease);
}

.hero__logo:hover {
  opacity: 1;
}

.hero__nav {
  position: absolute;
  top: calc(var(--pad) + 4px);
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(14px, 2vh, 20px);
}

.hero__nav a {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white-dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__nav a:hover {
  color: var(--white);
  transform: translateX(-4px);
}

.hero__menu {
  display: none;
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
  right: max(var(--pad), env(safe-area-inset-right, 0px));
  z-index: 8;
  height: 44px;
  min-width: 44px;
  padding: 0 12px 0 10px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.hero__menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  flex-shrink: 0;
}

.hero__menu-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hero__menu-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

.hero__intro {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + 28px);
  max-width: min(520px, calc(100% - var(--pad) * 2 - 80px));
  animation: fadeUp 1.1s var(--ease) both;
}

.hero__intro h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__quote {
  margin: 0 0 14px;
  max-width: 420px;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--white-dim);
}

.hero__role {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pad) - 4px);
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.7;
  animation: bob 2.4s ease-in-out infinite;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 1;
}

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

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── About + portals ── */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section--about {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  border-top: 1px solid var(--line);
}

.about__label {
  margin-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about__text p {
  margin: 0 0 18px;
  color: var(--white-dim);
  font-size: 16px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

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

/* last odd item alone on a row (legacy 5-up); with 6 items 2n already balances */

.portal {
  display: grid;
  gap: 8px;
  padding: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.portal:nth-child(2n) {
  border-right: 0;
}

.portal:hover {
  background: var(--black-soft);
}

.portal__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--white-mute);
}

.portal__name {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.portal__desc {
  font-size: 13px;
  color: var(--white-mute);
}

/* ── Inner pages header ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Safe-area above content row so logo + «Меню» share one baseline */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-solid {
  background: rgba(5, 5, 5, 0.94);
  border-bottom-color: var(--line);
}

.site-header__logo {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 14px;
  height: var(--header-h);
  color: var(--white);
  flex-shrink: 0;
}

.site-header__logo img {
  width: 28px;
  height: auto;
}

.site-header__name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}

.site-nav a,
.nav-drawer a {
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.06em;
  color: var(--white-mute);
  transition: color 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-drawer a:hover,
.nav-drawer a.is-active {
  color: var(--white);
}

.header-end {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 20px;
  height: var(--header-h);
  flex-shrink: 0;
}

.cart-btn,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white-mute);
  transition: color 0.3s;
}

.cart-btn:hover,
.nav-toggle:hover {
  color: var(--white);
}

.cart-count {
  display: inline-block;
  min-width: 16px;
  margin-left: 4px;
  font-size: 11px;
  color: var(--white);
}

.nav-toggle {
  display: none;
}

/* ── Drawers & overlay ── */

.nav-drawer,
.cart-drawer,
.overlay,
.modal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.nav-drawer.is-open,
.cart-drawer.is-open,
.overlay.is-open,
.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.72);
}

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: min(360px, 92vw);
  max-width: 100%;
  background: var(--black-soft);
  border-left: 1px solid var(--line);
  padding: max(96px, calc(env(safe-area-inset-top, 0px) + 72px)) 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  /* Fully off-canvas when closed — partial translate caused page “wobble” */
  transform: translateX(100%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}

.nav-drawer a {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--white-dim);
}

.nav-drawer a:hover,
.nav-drawer a.is-active {
  color: var(--white);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-head [data-close] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: min(400px, 94vw);
  max-width: 100%;
  background: var(--black-soft);
  border-left: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.drawer-head h2,
.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.cart-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  color: var(--white-mute);
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  filter: grayscale(1);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
}

.cart-item p,
.muted {
  margin: 0;
  color: var(--white-mute);
  font-size: 13px;
}

.cart-foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Buttons (чёрно-белая система) ── */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
  transition: 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  outline: none;
}

.btn:active {
  background: transparent;
  border-color: var(--white-dim);
  color: var(--white-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost:active {
  border-color: var(--white-dim);
  color: var(--white-dim);
}

.btn.full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--white-mute);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-on,
.btn[aria-pressed="true"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ── Inner page layout ── */

.page {
  padding-top: var(--header-h);
}

.page-hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
}

.page-hero--consultations {
  min-height: min(62vh, 640px);
}

.page-hero--consultations img {
  /* Мария справа вверху кадра — не обрезать лицо */
  object-position: 72% 18%;
  filter: grayscale(0.85) brightness(0.58) contrast(1.05);
}

.page-hero .copy {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 560px;
  color: var(--white-dim);
  font-size: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section h2,
.block-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
}

.card {
  background: var(--black);
}

.card .media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black-card);
}

.card img,
.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.card:hover img,
.art-card:hover img {
  transform: scale(1.03);
  filter: grayscale(0.3);
}

.card-body,
.art-body {
  padding: 22px;
}

.card h3,
.art-card h3,
.service h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.price {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--white-mute);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--white);
  color: var(--white);
}

.filter.is-on {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.art-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 280px;
  gap: 1px;
  background: var(--line);
}

.art-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
}

.art-card:first-child {
  grid-row: span 2;
}

.art-card .art-body {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.92));
}

.art-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--white-dim);
  font-size: 12px;
}

.service {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service .num {
  color: var(--white-mute);
  letter-spacing: 0.14em;
  font-size: 11px;
  padding-top: 6px;
}

.service p {
  margin: 8px 0 0;
  color: var(--white-dim);
  font-size: 15px;
}

.service .side {
  text-align: right;
  min-width: 160px;
}

.service-intro {
  margin: 12px 0 28px;
  max-width: 640px;
}

.service-points {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.55;
}

.service-points li + li {
  margin-top: 4px;
}

.legal-note {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--white-mute) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.prep-list {
  margin: 18px 0;
  padding-left: 1.15em;
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.6;
}

.prep-list li + li {
  margin-top: 8px;
}

.direction-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.direction-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.direction-list .num {
  color: var(--white-mute);
  letter-spacing: 0.14em;
  font-size: 11px;
  padding-top: 6px;
}

.direction-list h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.direction-list p {
  margin: 8px 0 0;
  color: var(--white-dim);
  font-size: 15px;
}

.book-simple {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.fact {
  background: var(--black);
  padding: 28px;
}

.fact h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 400;
}

.fact p {
  margin: 0;
  color: var(--white-dim);
  font-size: 14px;
}

.panel {
  background: var(--black-soft);
  border: 1px solid var(--line);
  padding: 32px;
}

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

.form-shell {
  position: relative;
}

.form-shell.is-sending .form {
  opacity: 0.55;
  pointer-events: none;
}

.form-shell.is-sending [data-form-submit-label]::after {
  content: "…";
}

.form-shell.is-success .form {
  display: none;
}

.form-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 8px 8px;
  animation: form-success-in 0.45s var(--ease) both;
}

.form-success[hidden] {
  display: none;
}

.form-success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.form-success-ring {
  opacity: 0.85;
  transform-origin: center;
  animation: form-success-ring 0.55s var(--ease) both;
}

.form-success-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: form-success-check 0.45s 0.2s var(--ease) forwards;
}

.form-success-title {
  margin: 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.form-success-id {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.form-success-id strong {
  color: var(--white);
  font-weight: 600;
}

.form-success-note {
  margin: 0 0 8px;
  max-width: 32ch;
  color: var(--white-mute);
  font-size: 14px;
  line-height: 1.45;
}

.form-success [data-form-again] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Progress: grey base → white fill left→right while cooling down */
.form-success [data-form-again].is-cooling,
.form-success [data-form-again]:disabled.is-cooling {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
  cursor: wait;
  pointer-events: none;
}

.form-success [data-form-again].is-cooling::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
  z-index: 0;
  animation: form-again-fill var(--again-ms, 5s) linear forwards;
}

.form-success [data-form-again] .btn__label {
  position: relative;
  z-index: 1;
}

.form-success [data-form-again].is-cooling .btn__label {
  color: #fff;
  mix-blend-mode: difference;
}

.form-success [data-form-again]:not(:disabled):not(.is-cooling) {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes form-again-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes form-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes form-success-ring {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes form-success-check {
  to {
    stroke-dashoffset: 0;
  }
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}

input,
select,
textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  padding: 14px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--white);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  color: var(--white-mute);
  font-size: 12px;
}

.split-copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.split-copy img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
}

#about-practice .split-copy img {
  height: min(72vh, 680px);
  object-position: center 12%;
}

.prose p {
  color: var(--white-dim);
  font-size: 16px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list a,
.contact-list p {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Contacts page: two equal panels, text always inside the underlay */
.contact-section {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.contact-card,
.contact-form-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.contact-card__title {
  font-size: clamp(48px, 7vw, 84px);
  margin: 0 0 18px;
}

.contact-card__lede {
  max-width: 36ch;
  margin: 0;
}

.contact-card .contact-list {
  margin-top: 32px;
}

.contact-list a {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.contact-form-card__title {
  font-size: clamp(26px, 4vw, 32px);
  margin: 0 0 18px;
}

.contact-form-card .form,
.contact-form-card .phone-field,
.contact-form-card .phone-field__row,
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  max-width: 100%;
}

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--white-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--white-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-requisites {
  font-size: 11px;
  line-height: 1.5;
  color: var(--white-mute);
  max-width: min(420px, 100%);
}

.contact-requisites {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-requisites .kicker {
  margin-bottom: 10px;
}

.contact-requisites p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--white-dim);
}

.contact-requisites p + p {
  margin-top: 4px;
}

.form-banner-error {
  margin: 0 0 4px;
  padding: 12px 14px;
  border: 1px solid #c0392b;
  background: rgba(192, 57, 43, 0.16);
  color: #ffb4a8;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.form-banner-error[hidden] {
  display: none !important;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #ff8a80;
  letter-spacing: normal;
  text-transform: none;
}

.field-error[hidden] {
  display: none !important;
}

.consent-field {
  display: block;
  margin: 0;
}

.consent-field .field-error {
  padding-left: 28px;
}

.consent-field.is-invalid .consent-check {
  outline: 1px solid rgba(225, 29, 29, 0.55);
  outline-offset: 4px;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.55;
  color: var(--white-mute);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/*
  Custom checkboxes: native accent-color:white on dark theme → white box + white tick
  (invisible on iOS Chrome/Safari). Draw our own: empty border → white fill + dark tick.
*/
.consent-check input[type="checkbox"],
.form input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  box-shadow: none;
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: unset;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.consent-check input[type="checkbox"]:checked,
.form input[type="checkbox"]:checked {
  border-color: var(--white);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l3 3.1L12.5 4.5' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent-check input[type="checkbox"]:focus-visible,
.form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

label.consent-check > span {
  display: block;
  margin-bottom: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.55;
  color: var(--white-mute);
}

.consent-check a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-check a:hover {
  color: var(--link-hover);
}

/* Phone field — same UX as cart, dark theme */
.form .phone-field,
.phone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  text-align: left;
}

.form .phone-field__label,
.phone-field__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.form .phone-field__row,
.phone-field__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--black);
  overflow: hidden;
}

.form .phone-field__row > select,
.form .phone-field__row > input,
.phone-field__row > select,
.phone-field__row > input {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--white);
  min-width: 0;
}

.form .phone-field__row > select,
.phone-field__row > select {
  flex: 0 1 42%;
  width: 0 !important; /* allow shrink below option text min-width (iOS) */
  max-width: 42%;
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid var(--line) !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--white-mute) 50%),
    linear-gradient(135deg, var(--white-mute) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form .phone-field__row > input,
.phone-field__row > input {
  flex: 1 1 auto;
  width: 0 !important; /* share row without blowing past panel */
  min-width: 0;
  padding: 14px;
}

.form .phone-field__row:focus-within,
.phone-field__row:focus-within {
  border-color: var(--white);
}

.form .phone-field.is-invalid .phone-field__row,
.form .phone-field__row.is-invalid {
  border: 2px solid #e11d1d !important;
}

.form .phone-field.is-invalid .phone-field__label {
  color: #ff8a80;
}

.form .phone-field__hint,
.phone-field__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--white-mute);
  letter-spacing: normal;
  text-transform: none;
}

.form .is-invalid > input:not([type="checkbox"]),
.form .is-invalid > select,
.form .is-invalid > textarea,
.form input.is-invalid:not([type="checkbox"]),
.form select.is-invalid,
.form textarea.is-invalid {
  border-color: #e11d1d !important;
  box-shadow: 0 0 0 1px #e11d1d;
}

.legal-page {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.legal-page .prose h2 {
  margin: 32px 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
}

.legal-page .prose h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 400;
  color: var(--white-dim);
}

.legal-page .prose p,
.legal-page .prose li {
  color: var(--white-dim);
  line-height: 1.75;
}

.legal-page .prose ul {
  padding-left: 1.2em;
}

.legal-page .prose .legal-updated {
  color: var(--white-mute);
  font-size: 13px;
}

.legal-page .prose a,
.prose a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .prose a:hover,
.prose a:not(.btn):hover {
  color: var(--link-hover);
}

.legal-action {
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-action h2 {
  margin-top: 0;
}

.legal-action .btn {
  display: inline-flex;
  margin-top: 8px;
}

.consent-check--optional span {
  color: var(--white-mute);
}

.form-consent-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--white-mute);
  letter-spacing: 0.01em;
}

.form-consent-note a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent-note a:hover {
  color: var(--link-hover);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-card {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--black-soft);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.modal-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.modal-copy {
  padding: 32px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%) translateY(20px);
  background: var(--white);
  color: var(--black);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Cookie consent ── */

/* Space so fixed cookie bar doesn’t cover form consents / submit on phones */
body.has-cookie-banner {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  /* Above page content / sticky UI so Chrome/Yandex can tap Accept on phones */
  z-index: 90;
  width: min(340px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: var(--white-dim);
  font-size: 12px;
  line-height: 1.55;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  visibility: hidden;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.cookie-banner.is-hiding {
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  margin: 0 0 12px;
}

.cookie-banner a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: var(--link-hover);
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner__btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-mute);
  transition: 0.25s var(--ease);
}

.cookie-banner__btn:hover {
  border-color: var(--white);
  color: var(--white);
}

.cookie-banner__btn--accept {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.cookie-banner__btn--accept:hover {
  background: transparent;
  color: var(--white);
}

.tilda-hint {
  display: none;
}

/* ── Gallery page ── */

.gallery-page .page-hero {
  display: none;
}

.gallery-page {
  overflow-x: clip;
  max-width: 100%;
}

.gallery-cover {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

.gallery-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(0.15) brightness(0.55);
}

.gallery-cover__shade {
  position: absolute;
  inset: 0;
  background:
    rgba(0, 0, 0, 0.35),
    linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.2) 55%, rgba(5, 5, 5, 0.45) 100%);
}

.gallery-cover__copy {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.gallery-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-jump a {
  color: var(--white-mute);
  transition: color 0.3s;
}

.gallery-jump a:hover {
  color: var(--white);
}

.gallery-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 28px;
}

.gallery-intro__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--black-soft);
}

.gallery-intro__figure img {
  width: 100%;
  height: auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 36px;
}

.work-card {
  background: var(--black);
  cursor: pointer;
  transition: background 0.35s var(--ease);
}

.work-card:hover {
  background: var(--black-soft);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.work-card__body {
  padding: 18px 20px 22px;
}

.work-card__body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.work-card__body p {
  margin: 0;
  color: var(--white-mute);
  font-size: 13px;
}

.gallery-portfolio {
  padding-bottom: 0;
}

.portfolio-feed {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  margin-top: 36px;
}

.portfolio-slide {
  margin: 0;
  background: var(--black);
  cursor: zoom-in;
  transition: background 0.35s var(--ease);
}

.portfolio-slide:hover {
  background: var(--black-soft);
}

.portfolio-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-slide figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--white-dim);
  border-top: 1px solid var(--line);
}

.portfolio-slide figcaption span {
  color: var(--white-mute);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.gallery-cta {
  text-align: center;
}

.gallery-cta .lede {
  margin: 16px auto 28px;
}

.gallery-request {
  overflow-x: clip;
}

.gallery-request__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-request__intro,
.gallery-request .panel,
.gallery-request .form-shell {
  min-width: 0;
  max-width: 100%;
}

.gallery-request__intro .lede {
  margin: 16px 0 0;
  max-width: 42ch;
}

.gallery-request__form-title {
  font-size: 28px;
  margin: 0 0 16px;
}

.gallery-request .panel {
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.gallery-request .form,
.gallery-request .phone-field,
.gallery-request .phone-field__row,
.gallery-request input,
.gallery-request select,
.gallery-request textarea {
  max-width: 100%;
}

.lead-prefill {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-dim);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .gallery-request__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .gallery-request .panel {
    padding: 22px 16px;
  }

  .gallery-request__intro .lede {
    max-width: none;
  }

  .gallery-request__form-title {
    font-size: 24px;
  }

  .gallery-request .phone-field__row > select,
  .contact-form-card .phone-field__row > select,
  .form .phone-field__row > select {
    flex: 0 1 40%;
    max-width: 40%;
  }

  .gallery-request .form,
  .gallery-request .panel .form,
  .contact-form-card .form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gallery-request .panel,
  .gallery-request__grid,
  .wrap {
    overflow-x: clip;
  }

  .gallery-intro__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .gallery-cover__copy {
    width: min(100% - var(--pad) * 2, 1240px);
    padding: 40px 0 36px;
  }

  .gallery-cover__copy .lede {
    max-width: none;
  }

  .gallery-jump {
    gap: 10px 16px;
    max-width: 100%;
  }

  .portfolio-feed {
    max-width: 100%;
    overflow-x: clip;
  }

  .portfolio-slide {
    max-width: 100%;
  }

  .portfolio-slide img {
    max-width: 100%;
    height: auto;
  }
}

.modal--slide {
  padding: 48px 24px 24px;
}

.modal--slide .modal-slide-img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
}

.modal-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: max(18px, env(safe-area-inset-right, 0px));
  z-index: 70;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(0, 0, 0, 0.78) !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

.modal--art,
.modal--slide {
  padding: clamp(16px, 3vw, 32px);
  z-index: 65;
  cursor: zoom-out;
}

.modal--art .modal-card,
.modal--slide .modal-slide-img {
  cursor: default;
}

.overlay.is-open {
  background: rgba(0, 0, 0, 0.82);
}

.modal-card--art {
  position: relative;
  width: min(1240px, 96vw);
  max-height: min(92vh, 92dvh);
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  background: #0c0c0c;
}

.modal-card__visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(40, 28, 22, 0.55), transparent 70%),
    #080808;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.art-slider {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) 14px;
}

.art-slider__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
}

.modal-card--art img,
.modal-card__visual img,
.art-slider__stage img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
  background: transparent;
  padding: 0;
}

.art-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  font-size: 28px;
  line-height: 1;
  padding: 0 !important;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
}

.art-slider:hover .art-slider__nav,
.art-slider__nav:focus-visible {
  opacity: 1;
}

.art-slider__nav:hover {
  background: rgba(0, 0, 0, 0.8) !important;
}

.art-slider__nav--prev {
  left: 8px;
}

.art-slider__nav--next {
  right: 8px;
}

.art-slider__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 1.2em;
}

.art-slider__caption,
.art-slider__count {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.art-slider__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.art-slider__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: #111 !important;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
}

.art-slider__thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  padding: 0;
  pointer-events: none;
}

.art-slider__thumb.is-on,
.art-slider__thumb:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

.art-slider.is-single .art-slider__nav,
.art-slider.is-single .art-slider__thumbs,
.art-slider.is-single .art-slider__count {
  display: none;
}

.modal-card--art .modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(28px, 4vw, 48px);
  min-height: 0;
  overflow: auto;
}

.modal-card--art .modal-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.modal-card--art .modal-copy .muted {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.modal-card--art .modal-copy .lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-dim);
}

.modal-card--art .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.modal-card--art .price-row strong {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero__media img {
    max-width: 100%;
    /* меньше «хвоста» под первым экраном */
    min-height: calc(100dvh + clamp(72px, 12vh, 140px));
  }

  .hero__outro {
    height: clamp(88px, 14vh, 140px);
    margin-top: clamp(-120px, -14vh, -72px);
  }

  .hero__intro {
    max-width: min(460px, calc(100% - var(--pad) * 2 - 48px));
  }
}

@media (max-width: 900px) {
  .hero__nav {
    display: none;
  }

  .hero__menu {
    display: inline-flex !important;
  }

  .nav-drawer {
    inset: 0;
    width: 100%;
    max-width: 100%;
    border-left: 0;
    padding:
      max(20px, calc(env(safe-area-inset-top, 0px) + 12px))
      max(24px, env(safe-area-inset-right, 0px))
      max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px))
      max(24px, env(safe-area-inset-left, 0px));
    gap: 0;
    transform: translateX(100%);
    background: #080808;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }

  .nav-drawer .drawer-head {
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer .drawer-head h2 {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--white-mute);
  }

  .nav-drawer > a {
    display: block;
    padding: 16px 0;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-drawer > a:last-of-type {
    border-bottom: 0;
  }

  .nav-drawer > a:active,
  .nav-drawer > a.is-active {
    color: #fff;
  }

  /* Текст выше — не прячется под cookie; без огромной пустоты ниже */
  .hero__intro {
    bottom: auto;
    top: 42%;
    max-width: calc(100% - var(--pad) * 2);
    padding-right: 8px;
  }

  .hero__intro h1 {
    font-size: clamp(32px, 8vw, 44px);
    margin-bottom: 12px;
  }

  .hero__quote {
    font-size: 14px;
    max-width: 100%;
  }

  .hero__scroll {
    bottom: max(20px, calc(12px + env(safe-area-inset-bottom, 0px)));
    opacity: 0.9;
  }

  .home .cookie-banner {
    width: min(320px, calc(100vw - 28px));
  }

  .about__grid,
  .grid-3,
  .grid-2,
  .split-copy,
  .modal-card,
  .art-grid,
  .facts,
  .portals {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .contact-card,
  .contact-form-card {
    padding: 22px 18px;
    width: 100%;
    max-width: 100%;
  }

  .contact-card__title {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
    margin-bottom: 14px;
  }

  .contact-card__lede {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-card .contact-list {
    margin-top: 22px;
    gap: 12px;
  }

  .contact-list a,
  .contact-list p {
    font-size: clamp(17px, 4.6vw, 20px);
  }

  .contact-form-card__title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  /* iOS select min-width otherwise blows the form past the panel */
  .contact-form-card .phone-field__row > select {
    flex: 0 1 40%;
    max-width: 40%;
    min-width: 0;
  }

  .contact-form-card .form-shell {
    padding-bottom: 0;
  }

  .portal {
    border-right: 0;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .service,
  .cart-item,
  .book-simple {
    grid-template-columns: 1fr;
  }

  .service .side {
    text-align: left;
  }

  .direction-list li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .art-card:first-child {
    grid-row: auto;
  }

  .art-grid {
    grid-auto-rows: 240px;
  }

  .gallery-intro__grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .gallery-cover {
    min-height: 52vh;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 18px;
  }

  .hero__media img {
    min-height: calc(100dvh + 64px);
    object-position: center 6%;
  }

  .hero__outro {
    height: 96px;
    margin-top: -80px;
  }

  .hero__role {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .nav-drawer {
    width: 100%;
  }

  .gallery-jump {
    gap: 8px 16px;
    font-size: 11px;
  }

  .portfolio-slide figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Cross-device / Safari / Android / safe-area ── */

.site-header {
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

@media (min-width: 901px) {
  .nav-drawer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
}

.toast {
  bottom: max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
}

.cookie-banner {
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: min(340px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
}

@media (max-width: 900px) {
  body.has-cookie-banner {
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner {
    /* Don’t stretch edge-to-edge over the whole CTA — keep as a bar users can scroll past */
    left: max(12px, env(safe-area-inset-left, 0px));
    right: auto;
    width: min(300px, calc(100vw - 24px));
    max-width: min(300px, calc(100vw - 24px));
  }
}

.modal {
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.modal-card {
  max-height: min(90vh, 90dvh);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .modal-card img {
    min-height: 200px;
    max-height: 42vh;
    object-fit: cover;
  }

  .modal-card--art {
    grid-template-columns: 1fr;
    width: min(100%, 96vw);
    max-height: min(94vh, 94dvh);
    overflow: auto;
  }

  .modal-card__visual {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .modal-card--art img,
  .modal-card__visual img,
  .art-slider__stage img {
    min-height: 200px;
    max-height: 46vh;
    object-fit: contain;
    padding: 0;
  }

  .art-slider__nav {
    opacity: 1;
  }

  .art-slider__thumb {
    width: 56px;
    height: 42px;
  }

  .modal-card--art .modal-copy {
    padding: 22px 22px 28px;
  }

  .modal-card--art .price-row {
    padding-top: 20px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .btn,
  .cart-btn {
    min-height: 44px;
  }

  .nav-toggle {
    min-height: 44px;
    height: 44px;
    padding: 0 4px;
    margin: 0;
  }

  /* Lead forms: durable success + tap targets (parity with desktop) */
  .form-shell:not(.contact-form-card) {
    padding-bottom: 8px;
  }

  .form-success {
    padding: 36px 4px 24px;
    gap: 16px;
  }

  .form-success-title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .form-success-id {
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .form-success-id strong {
    display: inline-block;
    margin-top: 6px;
    font-size: 18px;
    letter-spacing: 0.04em;
    word-break: break-all;
  }

  .form-success-note {
    max-width: 34ch;
    font-size: 15px;
  }

  .form-success [data-form-again] {
    min-height: 48px;
    width: 100%;
  }

  .consent-check {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    min-height: 44px;
  }

  .consent-check input[type="checkbox"],
  .form input[type="checkbox"] {
    width: 22px !important;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    margin-top: 2px;
    background-size: 14px 14px;
  }

  .form .phone-field__row > select,
  .phone-field__row > select {
    max-width: 48%;
    font-size: 16px;
  }

  .panel.form-shell,
  .form-shell .form {
    /* room so cookie banner doesn’t cover consents/submit */
    scroll-margin-bottom: 140px;
  }

  .form .consent-field:last-of-type,
  .form [data-form-submit] {
    scroll-margin-bottom: 160px;
  }
}

@media (hover: none) and (pointer: coarse) {
  a:hover,
  button:hover {
    opacity: 1;
  }
}

