/* GraverLux — 2026. Тёмная палитра с золотом, шрифт Evolventa (как в оригинале). */

/* ---------- шрифты ---------- */
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/Evolventa-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/Evolventa-Oblique.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/Evolventa-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/Evolventa-BoldOblique.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- токены ---------- */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #131316;
  --surface-2: #191920;
  --line: rgba(255, 230, 144, 0.14);
  --line-strong: rgba(255, 230, 144, 0.32);
  --text: #ececed;
  --muted: #9b9ba4;
  --gold: #ffe690;
  --gold-deep: #e0b64e;
  --gold-soft: rgba(255, 230, 144, 0.1);
  --green: #4caf50;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Evolventa", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(255, 230, 144, 0.09), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(224, 182, 78, 0.06), transparent 40%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #fff3c4; }

h1, h2, h3, h4 {
  font-family: "Evolventa", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }

h1, h2 { color: var(--gold); }
h3, h4 { color: #f3e7c6; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--gold-deep); }

::selection { background: rgba(255, 230, 144, 0.25); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}

.section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 44px); }
.section-head p { color: var(--muted); margin: 0; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #cfcfd6; }

.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); color: #fff6d5; }

.btn--primary {
  background: linear-gradient(135deg, #ffe9a2, #e0b64e 55%, #c8973a);
  border-color: transparent;
  color: #201803;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(224, 182, 78, 0.22);
}
.btn--primary:hover { color: #1a1402; box-shadow: 0 16px 38px rgba(224, 182, 78, 0.3); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- переключатель городов ---------- */
.cities {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(10px, 1.4vw, 22px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  flex: none;
}
.cities__link { color: var(--muted); }
.cities__link:hover { color: var(--gold); }
.cities__link.is-active { color: var(--gold); }
.cities__sep { color: #3a3a42; }
.nav__city { display: none; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  flex: none;
}
.logo:hover { color: #fff3c4; }

.logo__mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 230, 144, 0.22), transparent 70%);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.logo__tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 6px 2px;
  color: #d6d6dc;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-phone {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.header-phone span { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 84px) 0 clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero__lead { max-width: 34ch; margin-bottom: 26px; }
.hero__note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }

.hero__art {
  position: relative;
  min-height: clamp(280px, 38vw, 460px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 230, 144, 0.14), transparent 55%),
    linear-gradient(160deg, #15151a, #0b0b0e 70%);
  overflow: hidden;
}
.hero__art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.6));
  animation: float 9s ease-in-out infinite;
}
.hero__art .art-1 { width: 46%; left: 6%; top: 12%; animation-delay: -1s; }
.hero__art .art-2 { width: 34%; right: 7%; top: 8%; animation-delay: -3.5s; }
.hero__art .art-3 { width: 40%; left: 30%; bottom: 4%; animation-delay: -6s; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(224, 182, 78, 0.12), transparent 60%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #101014);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card__price {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.85rem;
}

.card--media { padding: 0; }
.card--media a { display: block; color: inherit; }
.card__img {
  aspect-ratio: 4 / 3;
  background: #0c0c0f center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.card--media:hover .card__img { transform: scale(1.04); }
.card__body { padding: 18px 20px 22px; }
.card__body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- преимущества ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.95rem;
}
.feature h3 { font-size: 1.02rem; font-style: normal; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 230, 144, 0.28);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

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

.gallery-card {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #fff;
}
.gallery-card__img {
  aspect-ratio: 1 / 1;
  background: #0c0c0f center/cover no-repeat;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}
.gallery-card:hover .gallery-card__img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 12px;
  font-size: 0.92rem;
  line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 55%);
}
.gallery-card__count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--gold);
  backdrop-filter: blur(6px);
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0c0c0f;
  cursor: zoom-in;
  padding: 0;
  aspect-ratio: 4 / 3;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}
.photo:hover img { transform: scale(1.05); filter: brightness(1.06); }

/* лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(4px);
  padding: clamp(12px, 3vw, 40px);
}
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.lightbox__img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.lightbox__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox__controls { display: flex; gap: 10px; }

/* ---------- цены ---------- */
.price-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #101014);
  padding: 26px 24px;
}
.price-card h2 { font-size: 1.35rem; margin-bottom: 18px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { color: #dedee3; }
.price-row__name small { color: var(--muted); }
.price-row__value {
  flex: none;
  color: var(--gold);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
}

/* ---------- контакты ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
/* в городе с одной мастерской не растягиваем карточку на всю ширину */
.branches:has(> :only-child) { grid-template-columns: minmax(0, 460px); }
.branch {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #101014);
}
.branch h3 { font-size: 1.05rem; font-style: normal; margin-bottom: 12px; color: var(--gold); }
.branch dl { margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.branch dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.branch dd { margin: 0; color: #dedee3; }
.branch a { color: var(--gold); }
.branch__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

/* карта в карточке филиала на странице «Контакты» */
.branches--maps { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.branch--map { display: flex; flex-direction: column; overflow: hidden; }
.branch__map {
  margin: 18px -24px -24px;
  border-top: 1px solid var(--line);
  background: #0c0c0f;
}
.branch__map iframe { display: block; width: 100%; height: 280px; border: 0; }
@media (max-width: 640px) {
  .branch__map iframe { height: 240px; }
}

.req-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.req-table td { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); vertical-align: top; }
.req-table td:first-child { color: var(--muted); width: 42%; }
.req-table tr:last-child td { border-bottom: 0; }

.note {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #dcd7c6;
  font-size: 0.92rem;
}

/* ---------- текстовые страницы ---------- */
.page-head { padding: clamp(30px, 4vw, 56px) 0 clamp(18px, 2.5vw, 30px); }
.page-head p { max-width: 70ch; color: var(--muted); margin: 0; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p { color: #d8d8dd; }
.prose ul, .prose ol { color: #d8d8dd; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #e9e2ca;
  font-style: italic;
}
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; }
.prose table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #d8d8dd; vertical-align: top; }
.prose table td:first-child { color: var(--muted); }

.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0c0f;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.aside-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.aside-card h3 { font-size: 1rem; font-style: normal; margin-bottom: 12px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }

/* ---------- статьи ---------- */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #101014);
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.article-card:hover { transform: translateY(-4px); border-color: var(--line-strong); color: inherit; }
.article-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.article-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; }
.article-card__more { margin-top: auto; color: var(--gold); font-size: 0.9rem; }

/* ---------- латынь ---------- */
.phrase-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}
.input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.input::placeholder { color: #6f6f78; }
.input:focus { outline: none; border-color: var(--gold-deep); }

.phrases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.phrase {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  gap: 4px;
}
.phrase--hidden { display: none; }
.phrase__la { color: var(--gold); font-style: italic; }
.phrase__ru { color: var(--muted); font-size: 0.92rem; }

/* ---------- подбор шрифта ---------- */
.font-tool {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.font-controls {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"], .field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0c0f;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.field input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0c0f;
}
.field input[type="range"] { width: 100%; accent-color: var(--gold-deep); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.font-stage {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    #0c0c0f;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.font-stage canvas { max-width: 100%; height: auto; }

/* ---------- CTA-полоса ---------- */
.cta {
  position: relative;
  margin: clamp(40px, 6vw, 80px) 0;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 230, 144, 0.16), transparent 55%),
    linear-gradient(150deg, #17130c, #0c0c0f 65%);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 60px) 0 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 230, 144, 0.02));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }
.footer-grid a { color: #d6d6dc; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6f78;
  font-size: 0.84rem;
}

/* ---------- хлебные крошки / навигация альбомов ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: #5d5d66; }

.album-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

/* ---------- появление при скролле ----------
   Анимация включается только если JS работает (html.js): без JS контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--gold);
  color: #1a1402;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .font-tool { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .header-inner { min-height: 66px; }
  .nav {
    position: fixed;
    inset: 66px 12px auto;
    margin: 0;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #0b0b0e;
    display: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
    max-height: calc(100vh - 90px);
    overflow: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--gold-soft); border-radius: 8px; }
  .header-phone { display: none; }
  .cities { display: none; }
  .nav__city { display: block; }
  .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .logo__tag { display: none; }
  .price-row { flex-direction: column; gap: 2px; align-items: flex-start; }
  .branches, .cards, .gallery-grid, .photos, .phrases { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox__bar { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cta, .lightbox, .burger { display: none !important; }
  h1, h2, h3 { color: #000; }
}

