: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);
  --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;
}

body {
  margin: 0;
  min-height: 100vh;
  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;
}

img {
  max-width: 100%;
  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(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: 100dvh;
  z-index: 4;
  pointer-events: none;
}

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

.hero__logo {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  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: var(--pad);
  right: var(--pad);
  z-index: 3;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.hero__menu span {
  display: block;
  height: 1px;
  background: var(--white);
}

.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);
}

.portals .portal:nth-child(5) {
  border-right: 0;
}

.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;
  height: var(--header-h);
  padding: 0 var(--pad);
  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;
  gap: 14px;
  color: var(--white);
}

.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;
  gap: 20px;
}

.cart-btn,
.nav-toggle {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  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);
  background: var(--black-soft);
  border-left: 1px solid var(--line);
  padding: 96px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(20px);
}

.nav-drawer a {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.nav-drawer.is-open {
  transform: none;
}

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

.cart-drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  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;
}

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;
}

.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(320px, 100%);
}

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

.consent-check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--white);
}

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

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

.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;
}

.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;
  filter: grayscale(1);
}

.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 ── */

.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 44;
  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(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.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-cover {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  margin-top: var(--header-h);
}

.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;
}

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

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

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 66;
  width: 40px;
  height: 40px;
  color: var(--white);
  font-size: 20px;
}

.modal-card--art {
  width: min(960px, 100%);
}

.modal-card--art img {
  min-height: 280px;
  max-height: 70vh;
  object-fit: contain;
  background: var(--black);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero__media img {
    max-width: 100%;
    min-height: calc(100dvh + clamp(160px, 28vh, 340px));
  }

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

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

  .hero__menu {
    display: flex;
  }

  .hero__intro {
    bottom: calc(var(--pad) + 52px);
    max-width: calc(100% - var(--pad) * 2);
  }

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

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

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

  .portal,
  .portals .portal:nth-child(5) {
    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 + 240px);
    object-position: center 6%;
  }

  .hero__outro {
    height: 200px;
    margin-top: -160px;
  }

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

  .nav-drawer {
    width: 100vw;
    padding-top: 88px;
  }

  .nav-drawer a {
    font-size: 22px;
  }

  .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);
  }
}
