@import url("./fonts.css");

/* ============================================================
   MAESTRO — Dark Premium, версия после ТЗ
   Графит и уголь, приглушённая бронза, светлый текст.
   Без маскирующего overflow и без декоративной мишуры.
   ============================================================ */

:root {
  --bg: #0c0c0d;
  --bg-2: #121214;
  --panel: #161618;
  --panel-2: #1b1b1d;
  --text: #f2ede4;
  --text-soft: rgba(242, 237, 228, 0.78);
  --muted: rgba(242, 237, 228, 0.6);
  --line: rgba(242, 237, 228, 0.14);
  --line-strong: rgba(242, 237, 228, 0.24);
  --bronze: #c2a077;
  --bronze-deep: #8e6b45;
  --gold: #e3cba2;

  --display: "Manrope", "Georgia", "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 7.5vw, 112px);
  --header-h: 72px;
  --bar-h: 62px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(rgba(242, 237, 228, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(194, 160, 119, 0.02) 1px, transparent 1px);
  background-size: 4px 4px, 9px 9px;
  background-position: 0 0, 2px 3px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(194, 160, 119, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--bronze);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.16;
  color: var(--text);
  text-wrap: balance;
}

h3 {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.005em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(194, 160, 119, 0.32);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--bronze);
  color: #141414;
  font-size: 14px;
  border-radius: 2px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- сетка ---------- */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--hairline {
  border-top: 1px solid var(--line);
}

.section--panel {
  background: var(--bg-2);
}

/* ---------- типографика ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}

.small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 48px;
  margin-bottom: clamp(24px, 3.6vw, 52px);
}

.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15.5px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 46px);
  max-width: 22ch;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--bronze);
  border-radius: 2px;
  background: var(--bronze);
  color: #141312;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--bronze);
  color: var(--gold);
}

.btn--sm {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- верхняя полоса ---------- */

.topbar {
  background: #08080a;
  border-bottom: 1px solid rgba(242, 237, 228, 0.06);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 22px;
  min-height: 48px;
  padding-block: 2px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.topbar a.topbar__item:hover {
  color: var(--gold);
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.header.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand__word {
  font-family: var(--display);
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--text);
}

.brand__sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  margin-left: auto;
  font-size: 14.5px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  text-decoration: none;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--bronze);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  min-width: 0;
}

.header__book {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.18s ease, top 0.18s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: #141312;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav ul {
  display: grid;
  padding-top: 4px;
}

.mobile-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 18px;
  color: var(--text);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 18px;
}

.mobile-nav__place {
  padding: 14px 0 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- первый экран ---------- */

.hero {
  padding-top: clamp(26px, 3.6vw, 54px);
  padding-bottom: clamp(40px, 5vw, 76px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__place {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero h1 {
  margin-top: 16px;
  max-width: 20ch;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 42ch;
  margin-top: 18px;
  font-size: clamp(15.5px, 1.3vw, 18px);
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 26px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px 24px;
  margin-top: clamp(26px, 4vh, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__meta dd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
}

.hero__figure {
  margin: 0;
  min-width: 0;
}

.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 958 / 1280;
  object-fit: cover;
  border-radius: 2px;
  background: var(--panel);
}

.hero__figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- внутри MAESTRO ---------- */

.atmosphere {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

.atmosphere__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
}

.atmosphere__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atmosphere__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 9, 0.74));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.atmosphere__item--lead {
  grid-column: span 7;
  aspect-ratio: 1280 / 1096;
}

.atmosphere__item:nth-child(2) {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
}

.atmosphere__item:nth-child(3),
.atmosphere__item:nth-child(4) {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}

.atmosphere__item:nth-child(5) {
  grid-column: span 4;
  aspect-ratio: 1280 / 1110;
}

/* ---------- маршрут внутри здания ---------- */

.route {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3.5vw, 52px);
  align-items: start;
}

.route__stage {
  min-width: 0;
}

.route__frames {
  display: grid;
  place-items: center;
}

.route-step {
  position: relative;
  margin: 0;
  height: min(64vh, 620px);
  aspect-ratio: var(--ratio, 0.75);
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
}

.route-step[hidden] {
  display: none;
}

.route-step img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.route-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-arrow__halo {
  fill: none;
  stroke: rgba(10, 10, 11, 0.55);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-arrow__line {
  fill: none;
  stroke: #c2a077;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.route__counter {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bronze);
}

.route__caption {
  color: var(--text-soft);
}

.route__list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.route__btn {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.route__btn span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bronze);
}

.route__btn b {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
}

.route__btn:hover {
  color: var(--gold);
}

.route__btn[aria-pressed="true"] {
  color: var(--text);
}

.route__btn[aria-pressed="true"] span {
  color: var(--gold);
}

.route__btn[aria-pressed="true"] b {
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 2px;
}

.route__nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.route__nav .btn {
  flex: 1;
}

.route__nav .btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.route__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- работы ---------- */

.works {
  padding-block: var(--section);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 340px);
  gap: clamp(8px, 1.2vw, 16px);
}

.work {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
}

.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work:hover img {
  transform: scale(1.02);
}

.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 9, 0.78));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.work--a {
  grid-column: span 7;
}

.work--b {
  grid-column: span 5;
}

.work--c,
.work--d,
.work--e {
  grid-column: span 4;
}

.works-more {
  display: none;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  cursor: pointer;
}

.works-more:hover {
  border-color: var(--bronze);
  color: var(--gold);
}

/* ---------- цены ---------- */

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.price-list {
  border-top: 1px solid var(--line-strong);
}

.price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.price-item__name h3 {
  font-size: 17.5px;
  color: var(--text);
}

.price-item__price {
  font-family: var(--mono);
  font-size: 16.5px;
  color: var(--text);
  white-space: nowrap;
}

.price-item__actions {
  display: flex;
  gap: 8px;
}

.price-note {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 13px;
  color: var(--muted);
}

.price-note a {
  color: var(--text-soft);
}

.price-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.price-aside h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.24;
}

.book-steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.book-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.book-steps li::before {
  counter-increment: step;
  content: counter(step) ".";
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--bronze);
}

.price-aside .btn {
  width: 100%;
  margin-top: 20px;
}

.price-aside__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- мастера ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.master {
  display: flex;
  flex-direction: column;
}

.master__photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
}

.master__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.master__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(44px, 4.6vw, 64px);
  color: rgba(227, 203, 162, 0.68);
}

.master h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 23px;
}

.master__role {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.master__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  align-self: start;
}

.master__link:hover {
  color: var(--gold);
}

/* ---------- отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.reviews__lead {
  max-width: 44ch;
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--muted);
}

.reviews__card {
  padding: clamp(22px, 2.8vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.reviews__value {
  font-family: var(--display);
  font-size: clamp(52px, 5.4vw, 72px);
  line-height: 1;
  color: var(--gold);
}

.reviews__meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
}

.reviews__source {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.reviews__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.reviews__actions .btn {
  width: 100%;
  padding-inline: 12px;
  font-size: 14px;
}

/* ---------- сертификаты ---------- */

.certificate {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.certificate__text {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 15.5px;
  color: var(--text-soft);
}

.certificate__actions {
  display: grid;
  gap: 10px;
}

.certificate__actions .btn {
  width: 100%;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 3.6fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.faq__ask {
  margin-top: 12px;
}

.faq__ask a {
  color: var(--text-soft);
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--bronze);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 40px 20px 0;
  max-width: 64ch;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- контакты ---------- */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: stretch;
}

.contacts__list {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze);
}

.contact-item p,
.contact-item a {
  font-size: 17.5px;
  color: var(--text);
  text-decoration: none;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-item small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.contacts__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.map {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: invert(1) hue-rotate(180deg) grayscale(0.55) contrast(0.92) brightness(1.06);
}

/* ---------- подвал ---------- */

.footer {
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: 22px;
  background: #08080a;
  border-top: 1px solid var(--line);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.2fr));
  gap: clamp(22px, 3.6vw, 52px);
}

.footer .brand__word {
  font-size: 29px;
}

.footer p {
  max-width: 32ch;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.footer h3,
.footer h4 {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.footer ul {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer__bottom a {
  min-height: 44px;
}

/* ---------- мобильная панель ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 11, 0.97);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}

.mobile-bar.is-visible {
  transform: none;
}

.mobile-bar .btn {
  flex: 1;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
}

/* ---------- страницы услуг ---------- */

.page-hero {
  padding-top: clamp(36px, 5vw, 76px);
  padding-bottom: clamp(24px, 3.4vw, 46px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.page-hero h1 {
  margin-top: 14px;
  max-width: 24ch;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.16;
}

.page-hero .lead {
  max-width: 56ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-soft);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.page-hero__meta b {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text);
}

.page-hero + .section {
  padding-top: clamp(26px, 3.2vw, 48px);
}

.prose {
  max-width: 64ch;
}

.prose h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.prose p + p {
  margin-top: 12px;
}

.prose p {
  color: var(--text-soft);
}

.prose ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.prose ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  color: var(--text-soft);
}

.prose ul li::before {
  content: "—";
  color: var(--bronze);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
}

.grid > * {
  min-width: 0;
}

.col-main {
  grid-column: span 7;
}

.col-side {
  grid-column: 9 / span 4;
}

.side-card {
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.side-card h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.26;
}

.side-card .btn {
  width: 100%;
  margin-top: 16px;
}

.side-card .btn + .btn {
  margin-top: 8px;
}

.side-card + .side-card {
  margin-top: 14px;
}

.service-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-price span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-price b {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
}

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.related a {
  display: grid;
  gap: 6px;
  padding: 20px;
  min-height: 88px;
  align-content: center;
  background: var(--bg);
  text-decoration: none;
}

.related a:hover {
  background: var(--panel);
}

.related span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}

.related b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
}

/* ---------- появление ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header__actions {
    margin-left: auto;
  }

  .price-layout,
  .reviews,
  .faq,
  .contacts,
  .certificate,
  .route {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    max-width: 520px;
  }

  .price-aside {
    position: static;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-main,
  .col-side {
    grid-column: 1 / -1;
  }

  .related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(var(--bar-h) + 10px);
  }

  .mobile-bar {
    display: flex;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .hero__figure {
    max-width: none;
    margin-top: 24px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 44px);
    line-height: 1.16;
    max-width: 20ch;
  }

  .atmosphere-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atmosphere__item--lead {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .atmosphere__item:nth-child(2),
  .atmosphere__item:nth-child(3),
  .atmosphere__item:nth-child(4),
  .atmosphere__item:nth-child(5) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .route {
    grid-template-columns: 1fr;
  }

  .route-step {
    height: auto;
    width: 100%;
    aspect-ratio: var(--ratio, 0.75);
  }

  .hero__meta {
    gap: 10px 16px;
  }

  .hero__meta dt {
    font-size: 10.5px;
  }

  .hero__meta dd {
    font-size: 14px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .work--a,
  .work--b,
  .work--c,
  .work--d,
  .work--e {
    grid-column: auto;
  }

  .work--extra {
    display: none;
  }

  .works-grid.is-expanded .work--extra {
    display: block;
  }

  .works-more {
    display: block;
  }

  .team {
    grid-template-columns: 1fr;
  }

  .master__photo img {
    aspect-ratio: 1 / 1;
    max-height: 300px;
  }

  .reviews__actions {
    grid-template-columns: 1fr;
  }

  .price-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .price-item__name {
    grid-column: 1 / -1;
  }

  .price-item__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .price-item__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer a {
    min-height: 44px;
  }

  .map,
  .map iframe {
    min-height: 320px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .topbar__hours {
    display: none;
  }

  .topbar__item {
    min-height: 44px;
  }

  .topbar__map {
    display: none;
  }

  .brand__sub {
    display: none;
  }

  .header__book {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .faq details p {
    padding-right: 0;
  }
}

@media (max-width: 400px) {
  .brand__word {
    font-size: 19px;
  }

  .header__inner {
    gap: 6px;
  }

  .header__actions {
    gap: 6px;
  }

  .header__book {
    padding: 9px 11px;
    font-size: 13px;
  }

  .price-item__actions .btn {
    font-size: 13px;
    padding-inline: 10px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
