/* ==========================================================
   ICEWRACK INK — тёмная тату-эстетика
   ========================================================== */
:root {
  /* ICEWRACK INK — лёд и сталь */
  --ink: #0a0d12;          /* фон — сине-чёрный */
  --graphite: #111820;     /* карточки */
  --ash: #1a232e;          /* поля, границы */
  --smoke: #2a3644;
  --bone: #e4ebf1;         /* основной текст — иней */
  --muted: #8794a3;
  --accent: #3d7298;       /* акцент — холодная сталь */
  --accent-hi: #8cc4ea;    /* светлый акцент — ледниковый голубой */
  --line: rgba(228, 235, 241, .12);

  --f-gothic: "New Rocker", serif;
  --f-head: "Oswald", "Arial Narrow", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-body: "Manrope", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bone); }
[hidden] { display: none !important; }

/* зерно поверх всего — эффект плёнки / печати */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) }
  40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.8em; border: 1px solid var(--bone); background: transparent; color: var(--bone);
  font: 500 .85rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--bone); z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn { isolation: isolate; }
.btn--accent { border-color: var(--accent); background: var(--accent); }
.btn--accent::before { background: var(--bone); }
.btn--wide { width: 100%; }
.btn--sm { padding: .7em 1.2em; font-size: .72rem; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(10, 13, 18,.82); backdrop-filter: blur(10px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.logo { font: 1.9rem/1 var(--f-gothic); text-decoration: none; letter-spacing: .02em; }
.logo--sm { font-size: 1.4rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font: 400 .78rem var(--f-head); letter-spacing: .25em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 4px 0; color: var(--muted); transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent-hi); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__admin { color: var(--accent-hi) !important; }
.nav__burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--bone); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 8px; } .nav__burger span:last-child { top: 16px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-content: center; text-align: center;
  padding: 120px var(--pad) 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(61, 114, 152,.16), transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, #03060a 100%);
}
.hero__ring {
  position: absolute; left: 50%; top: 46%; width: min(78vw, 640px); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; border: 1px solid var(--line);
  animation: spin 80s linear infinite;
}
.hero__ring::before, .hero__ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(228, 235, 241,.08); }
.hero__ring::before { inset: 8%; } .hero__ring::after { inset: 22%; border-style: solid; border-color: rgba(61, 114, 152,.25); }
@keyframes spin { to { rotate: 360deg; } }
.eyebrow { font: 400 .78rem var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.hero__title { margin: 0; position: relative; }
.hero__gothic { display: block; font: clamp(4rem, 15vw, 11rem)/.9 var(--f-gothic); text-shadow: 0 0 60px rgba(61, 114, 152,.35); }
.hero__sub { display: block; margin-top: 1.2rem; font: 300 clamp(.9rem, 2vw, 1.2rem) var(--f-head); letter-spacing: .5em; text-transform: uppercase; color: var(--accent-hi); }
.hero__lead { max-width: 34rem; margin: 2rem auto 2.5rem; color: var(--muted); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0; text-decoration: none;
  font: .65rem var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 46px;
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: linear-gradient(var(--bone), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- секции ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); max-width: 1320px; margin: 0 auto; }
.section__head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.section__head h2 { margin: 0; font: 700 clamp(2.4rem, 7vw, 5rem)/1 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; }
.section__head .btn { margin-left: auto; }
.section__num { font: 400 .85rem var(--f-head); color: var(--accent-hi); letter-spacing: .2em; }
h3 { font: 500 1.1rem var(--f-head); letter-spacing: .15em; text-transform: uppercase; margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: .9rem; }

/* ---------- обо мне ---------- */
.about__grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__big { font: 300 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--f-head); margin-top: 0; }
.about__text p:not(.about__big) { color: var(--muted); }
.about__text em { color: var(--bone); font-style: normal; border-bottom: 1px solid var(--accent); }
.about__pillars { list-style: none; margin: 0; padding: 0; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.about__pillars li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.about__pillars li > span { font: 1.6rem var(--f-gothic); color: var(--accent-hi); }
.about__pillars h3 { margin-bottom: .3rem; font-size: 1rem; }
.about__pillars p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- фильтры ---------- */
.filters { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.filters__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters__group--admin { padding-left: 1rem; border-left: 1px solid var(--accent); }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  padding: .55em 1.1em; font: 400 .75rem var(--f-head); letter-spacing: .18em; text-transform: uppercase; transition: all .3s;
}
.chip:hover { color: var(--bone); border-color: var(--bone); }
.chip.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.filters__group--admin .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--bone); }

/* ---------- галерея ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.card {
  break-inside: avoid; margin-bottom: 16px; position: relative; background: var(--graphite);
  overflow: hidden; cursor: zoom-in; animation: cardIn .7s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.card img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.35) contrast(1.05); }
.card:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.1); }
.card__meta {
  position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
  display: flex; justify-content: space-between; align-items: end; gap: .5rem;
  transform: translateY(30%); opacity: 0; transition: all .5s var(--ease);
}
.card:hover .card__meta, .card:focus-within .card__meta { transform: none; opacity: 1; }
.card__title { font: 500 .95rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.card__sub { font-size: .75rem; color: var(--muted); }
.card__badge {
  position: absolute; top: 10px; left: 10px; font: 400 .62rem var(--f-head); letter-spacing: .2em; text-transform: uppercase;
  padding: .4em .7em; background: rgba(10, 13, 18,.8); border: 1px solid var(--line);
}
.card__badge--archive { border-color: var(--accent); color: var(--accent-hi); }
.card.is-archive img { filter: grayscale(1) brightness(.7); }
.card__tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .3s; }
.card:hover .card__tools { opacity: 1; }
.card__tools button {
  width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(10, 13, 18,.85); color: var(--bone);
  cursor: pointer; font-size: .9rem; transition: background .3s;
}
.card__tools button:hover { background: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 4rem 0; font-family: var(--f-head); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- формы ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font: 400 .7rem var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--graphite); color: var(--bone); border: 0; border-bottom: 1px solid var(--smoke);
  padding: .9em 1em; font: inherit; font-size: .95rem; border-radius: 0; transition: border-color .3s, background .3s;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-hi); background: var(--ash); }
.field input::placeholder, .field textarea::placeholder { color: #4c5866; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent-hi); }
.field--check { grid-template-columns: auto 1fr; align-items: center; align-self: end; gap: .8rem; }
.field--check > span { text-transform: none; letter-spacing: .02em; font-family: var(--f-body); font-size: .82rem; }
.field--check input { width: 18px; height: 18px; accent-color: var(--accent); appearance: auto; padding: 0; }
.field--choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.field--choice > span { width: 100%; }
.pill input { position: absolute; opacity: 0; }
.pill i { display: inline-block; font-style: normal; padding: .6em 1.1em; border: 1px solid var(--line); font-size: .85rem; cursor: pointer; transition: all .3s; }
.pill input:checked + i { border-color: var(--accent); background: rgba(61, 114, 152,.18); }
.pill input:focus-visible + i { outline: 1px solid var(--bone); }
.form__status { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--muted); }
.form__status.is-ok { color: #9bc49b; } .form__status.is-err { color: var(--accent-hi); }

/* ---------- запись ---------- */
.booking__wrap { max-width: 820px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.tab {
  background: transparent; border: 0; color: var(--muted); padding: 1.3rem; cursor: pointer; text-align: left;
  display: grid; gap: .2rem; position: relative; transition: color .3s, background .3s;
}
.tab + .tab { border-left: 1px solid var(--line); }
.tab strong { font: 500 1.2rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.tab small { font-size: .78rem; }
.tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-hi); transform: scaleX(0); transition: transform .5s var(--ease); }
.tab.is-active { color: var(--bone); background: var(--graphite); }
.tab.is-active::after { transform: scaleX(1); }
.booking__note { border-left: 2px solid var(--accent); padding: .3rem 0 .3rem 1.2rem; margin-bottom: 2rem; color: var(--muted); font-size: .95rem; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(-8px); } }
[data-only] { animation: fade .5s var(--ease); }

/* ---------- отзывы ---------- */
.reviews__avg { margin-left: auto; font: 500 1rem var(--f-head); letter-spacing: .1em; color: var(--muted); }
.reviews__avg b { color: var(--bone); font-size: 1.6rem; }
.reviews__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.reviews__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.review { background: var(--ink); padding: 1.6rem; position: relative; }
.review::before { content: "“"; position: absolute; right: 1.2rem; top: .2rem; font: 4rem/1 var(--f-gothic); color: var(--ash); }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.review__name { font: 500 1rem var(--f-head); letter-spacing: .1em; text-transform: uppercase; }
.review__role { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-hi); margin-left: .6rem; }
.review__stars { color: var(--accent-hi); letter-spacing: .15em; font-size: .85rem; white-space: nowrap; }
.review__text { margin: 0; color: #c3ccd5; }
.review__date { font-size: .72rem; color: var(--muted); margin-top: .8rem; display: flex; justify-content: space-between; }
.review__del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .72rem; text-decoration: underline; }
.form--review { background: var(--graphite); padding: clamp(20px, 3vw, 36px); position: sticky; top: 90px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; color: var(--smoke); cursor: pointer; transition: color .2s, transform .2s; line-height: 1; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent-hi); }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 1px solid var(--bone); }

/* ---------- админка ---------- */
.admin { border-top: 1px solid var(--accent); }
.admin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.admin__side h3:not(:first-child) { margin-top: 2.5rem; }
.admin__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.drop {
  border: 1px dashed var(--smoke); min-height: 200px; display: grid; place-items: center; text-align: center;
  cursor: pointer; position: relative; overflow: hidden; transition: border-color .3s, background .3s;
}
.drop:hover, .drop.is-over { border-color: var(--accent-hi); background: rgba(61, 114, 152,.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__hint { color: var(--muted); font: .8rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; padding: 1rem; }
.drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: .8em; cursor: pointer; font: .78rem var(--f-head); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: all .3s; }
.segmented input:checked + span { background: var(--bone); color: var(--ink); }
.segmented label:last-child input:checked + span { background: var(--accent); color: var(--bone); }
.segmented input:focus-visible + span { outline: 1px solid var(--bone); }
.requests { display: grid; gap: .6rem; max-height: 360px; overflow-y: auto; }
.request { background: var(--graphite); padding: .9rem 1rem; font-size: .85rem; border-left: 2px solid var(--smoke); }
.request--model { border-left-color: var(--accent); }
.request b { font-family: var(--f-head); letter-spacing: .08em; }
.request small { color: var(--muted); display: block; }

/* ---------- модалки ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--bone); }
dialog::backdrop { background: rgba(0,0,0,.92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; animation: fade .4s var(--ease); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; }
.lightbox__meta { text-align: center; margin-top: 1rem; font-family: var(--f-head); letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; }
.lightbox__meta small { display: block; color: var(--muted); letter-spacing: .05em; text-transform: none; font-family: var(--f-body); margin-top: .3rem; }
.lightbox__close { position: fixed; top: 16px; right: 20px; background: none; border: 0; color: var(--bone); font-size: 2.5rem; cursor: pointer; line-height: 1; }
.modal[open] { width: min(92vw, 380px); background: var(--graphite); padding: 2rem; border: 1px solid var(--line); }

/* ---------- футер ---------- */
.footer { display: flex; align-items: center; gap: 2rem; padding: 2.5rem var(--pad); border-top: 1px solid var(--line); }
.footer__links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer__links a { font: .75rem var(--f-head); letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--accent-hi); }
.footer__lock { background: none; border: 0; color: var(--smoke); cursor: pointer; font-size: 1rem; transition: color .3s; }
.footer__lock:hover { color: var(--accent-hi); }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav__burger { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    background: rgba(10, 13, 18,.97); clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .7s var(--ease);
  }
  .nav__links a { font-size: 1.1rem; color: var(--bone); }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 36px); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 860px) {
  .about__grid, .reviews__grid, .admin__grid { grid-template-columns: 1fr; }
  .form--review { position: static; }
  .filters__group--admin { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .tab { padding: 1rem; } .tab strong { font-size: 1rem; }
  .footer { flex-wrap: wrap; gap: 1rem; }
  .card__meta { opacity: 1; transform: none; }
  .card__tools { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   ДОПОЛНЕНИЯ: языки, путь, флэш, цены, календарь, уход, админка
   ========================================================== */
.lang { display: flex; gap: 2px; margin-left: 1.8rem; }
.lang button {
  background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font: 400 .68rem var(--f-head); letter-spacing: .12em; padding: .45em .6em; transition: all .3s;
}
.lang button:hover { color: var(--bone); }
.lang button.is-active { color: var(--bone); border-color: var(--line); }
.nav__burger { margin-left: .8rem; }
:lang(zh) .hero__sub, :lang(zh) .eyebrow { letter-spacing: .3em; }
:lang(zh) .section__head h2 { letter-spacing: .05em; }

.section__lead { max-width: 40rem; color: var(--muted); margin: -1.5rem 0 2.5rem; }
.filters__group--view { margin-left: auto; }

/* --- мой путь (таймлайн) --- */
.journey { position: relative; padding-left: 2.2rem; }
.journey::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--accent), var(--line) 30%, var(--line)); }
.journey__month { position: relative; margin-bottom: 2.5rem; animation: cardIn .7s var(--ease) both; }
.journey__month::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--accent-hi); }
.journey__label { font: 500 .85rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; color: var(--muted); }
.journey__label b { color: var(--bone); font-weight: 500; margin-left: .6rem; }
.journey__row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.journey__row .card { flex: 0 0 auto; width: 170px; margin: 0; animation: none; }
.journey__row .card img { height: 220px; object-fit: cover; }

/* --- флэш --- */
.flash__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.flash-card { background: var(--graphite); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; animation: cardIn .7s var(--ease) both; transition: border-color .4s; }
.flash-card:hover { border-color: var(--smoke); }
.flash-card__img { position: relative; aspect-ratio: 1; overflow: hidden; background: #e6edf2; cursor: zoom-in; }
.flash-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); mix-blend-mode: multiply; }
.flash-card:hover .flash-card__img img { transform: scale(1.04); }
.flash-card__body { padding: 1rem; display: grid; gap: .3rem; flex: 1; }
.flash-card__title { font: 500 1rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.flash-card__meta { color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: .5rem; }
.flash-card__meta b { color: var(--bone); font-weight: 600; }
.flash-card .btn { margin: 0 1rem 1rem; }
.flash-card.is-booked .flash-card__img img { opacity: .35; }
.flash-card.is-booked .flash-card__img::after {
  content: attr(data-booked); position: absolute; top: 34%; left: 50%; translate: -50% -50%; rotate: -12deg;
  font: 700 1.1rem var(--f-head); letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
  border: 2px solid var(--accent); padding: .3em .8em; background: rgba(230, 237, 242,.85);
}
.flash-card__tag { position: absolute; top: 10px; left: 10px; font: .62rem var(--f-head); letter-spacing: .18em; text-transform: uppercase; padding: .4em .7em; background: var(--accent); color: var(--bone); }
.flash-card .card__tools { opacity: 1; }

/* --- цены --- */
.prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); }
.price { padding: 2rem 1.6rem; border-right: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; transition: background .4s; }
.price:last-child { border-right: 0; }
.price:hover { background: var(--graphite); }
.price__t { font: 500 1rem var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price__v { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--f-head); }
.price--accent .price__v { color: var(--accent-hi); }
.price__d { color: var(--muted); font-size: .88rem; }
.prices__note { max-width: 46rem; color: var(--muted); font-size: .92rem; margin-top: 1.5rem; border-left: 2px solid var(--accent); padding-left: 1.2rem; }

/* --- выбранный флэш в форме --- */
.chosen { display: flex; align-items: center; gap: 1rem; padding: .6rem; border: 1px solid var(--accent); background: rgba(61, 114, 152,.08); animation: fade .5s var(--ease); }
.chosen img { width: 56px; height: 56px; object-fit: contain; background: #e6edf2; }
.chosen span { display: grid; flex: 1; }
.chosen small { color: var(--muted); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.chosen b { font: 500 1rem var(--f-head); letter-spacing: .08em; }
.chosen button { background: none; border: 0; color: var(--bone); font-size: 1.6rem; cursor: pointer; padding: 0 .6rem; }

/* --- календарь --- */
.cal { background: var(--graphite); padding: 1rem; max-width: 420px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal__title { font: 500 .9rem var(--f-head); letter-spacing: .18em; text-transform: uppercase; }
.cal__nav { background: none; border: 1px solid var(--line); color: var(--bone); width: 34px; height: 34px; cursor: pointer; transition: border-color .3s; }
.cal__nav:hover:not(:disabled) { border-color: var(--bone); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font: .65rem var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: .3rem; }
.cal__day {
  aspect-ratio: 1; background: transparent; border: 1px solid transparent; color: #3b4654; font: inherit; font-size: .85rem;
  cursor: default; display: grid; place-items: center; transition: all .25s;
}
.cal__day.is-free { color: var(--bone); border-color: rgba(140, 196, 234,.55); cursor: pointer; }
.cal__day.is-free:hover { background: rgba(61, 114, 152,.2); }
.cal__day.is-selected { background: var(--accent); border-color: var(--accent); color: var(--bone); }
.cal__day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.cal--admin .cal__day:not(:disabled) { color: var(--muted); cursor: pointer; border-color: var(--line); }
.cal--admin .cal__day.is-free { color: var(--bone); border-color: var(--accent-hi); background: rgba(61, 114, 152,.25); }
.cal__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .8rem; padding-top: .5rem; }

/* --- уход и FAQ --- */
.care__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--line); color: #c3ccd5; }
.steps li::before { content: counter(s, upper-roman); font: 1.3rem var(--f-gothic); color: var(--accent-hi); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font: 500 1rem var(--f-head); letter-spacing: .06em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.4rem; color: var(--accent-hi); transition: rotate .4s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); animation: fade .5s var(--ease); }

/* --- ответ мастера на отзыв --- */
.review__reply { margin-top: 1rem; padding: .8rem 1rem; border-left: 2px solid var(--accent); background: var(--graphite); font-size: .9rem; color: #c3ccd5; }
.review__reply small { display: block; font: .65rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: .3rem; }

/* --- админка --- */
.admin__mode { font: .7rem var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .4em .8em; margin-left: auto; }
.admin__mode.is-online { color: #9bc49b; border-color: rgba(155,196,155,.4); }
.admin__mode + .btn { margin-left: 0; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.admin__tabs .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--bone); }
.count { font-weight: 400; color: var(--accent-hi); margin-left: .3em; }
.chip.is-active .count { color: var(--bone); }
.admin__form { max-width: 640px; }
.admin__hint { max-width: 640px; margin-top: 1.5rem; }
.drop--alt { border-color: var(--ash); }
.request__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.request__actions button { background: none; border: 1px solid var(--line); color: var(--bone); padding: .35em .8em; font: .7rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.request__actions button:hover { border-color: var(--bone); }
.request__actions button.is-danger:hover { border-color: var(--accent-hi); color: var(--accent-hi); }
.request.is-done { opacity: .45; }
.request.is-pending { border-left-color: #c9a227; }
.request textarea { width: 100%; margin-top: .6rem; background: var(--ink); color: var(--bone); border: 1px solid var(--smoke); padding: .6rem; font: inherit; font-size: .85rem; }
.requests { max-height: none; }

/* --- Telegram-кнопка --- */
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--bone);
  box-shadow: 0 6px 24px rgba(61, 114, 152,.45); transition: transform .4s var(--ease), background .3s;
}
.tg-float:hover { transform: translateY(-3px) scale(1.05); background: var(--accent-hi); }
.tg-float svg { translate: -1px 1px; }

/* --- лайтбокс: свежая / зажившая --- */
.lightbox__imgs { display: flex; gap: 12px; justify-content: center; align-items: flex-start; }
.lightbox__imgs figure { margin: 0; text-align: center; }
.lightbox__imgs figcaption { font: .7rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.lightbox__imgs.is-pair img { max-width: min(45vw, 540px); max-height: 72vh; }

@media (max-width: 860px) {
  .care__grid { grid-template-columns: 1fr; }
  .filters__group--view { margin-left: 0; }
  .price { border-right: 0; border-bottom: 1px solid var(--line); }
  .price:last-child { border-bottom: 0; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .lightbox__imgs.is-pair { flex-direction: column; align-items: center; }
  .lightbox__imgs.is-pair img { max-width: 88vw; max-height: 38vh; }
  .admin__tabs .chip { flex: 1 1 auto; }
  .flash__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flash-card__body { padding: .7rem; }
  .flash-card .btn { margin: 0 .7rem .7rem; padding-inline: .5em; }
  .tg-float { right: 14px; bottom: 14px; }
}

/* --- фото мастера --- */
.about__photo { margin: 0; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); } /* всегда чёрно-белое */
.about__ph {
  position: absolute; inset: 0; display: grid; place-items: center; font: 5rem var(--f-gothic); color: var(--smoke);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(228, 235, 241,.025) 12px 13px);
}
.about__photo figcaption { margin-top: 1.6rem; display: grid; gap: .2rem; }
.about__photo figcaption b { font: 500 1.3rem var(--f-head); letter-spacing: .14em; text-transform: uppercase; }
.about__photo figcaption span { font: .72rem var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-hi); }
.about__sub { font: 300 1.05rem/1.6 var(--f-body); color: #c3ccd5 !important; margin-top: -.4rem; }
.about__ink { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--graphite); color: var(--bone) !important; font-size: .92rem; }
.about__ink i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px var(--bone), 0 0 0 4px var(--graphite), 0 0 0 5px var(--smoke); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
  .about__pillars { grid-template-columns: 1fr; }
}

/* --- фото-референсы в заявке --- */
.refs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -.3rem; }
.refs__list { display: contents; }
.refs__item { position: relative; margin: 0; width: 84px; height: 84px; animation: fade .4s var(--ease); }
.refs__item img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.refs__item button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--accent); color: var(--bone); cursor: pointer; line-height: 1; font-size: 1rem; }
.refs__add {
  display: flex; align-items: center; gap: .8rem; flex: 1 1 220px; min-height: 84px; padding: .8rem 1rem;
  border: 1px dashed var(--smoke); color: var(--muted); cursor: pointer; position: relative; transition: border-color .3s, color .3s, background .3s;
}
.refs__add:hover { border-color: var(--accent-hi); color: var(--bone); background: rgba(61, 114, 152,.06); }
.refs__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.refs__add span { display: grid; gap: .1rem; }
.refs__add b { font: 500 .78rem var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.refs__add small { font-size: .8rem; }
.request__refs { display: flex; gap: 6px; margin-top: .6rem; }
.request__refs img { width: 64px; height: 64px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }

.field__hint { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.field__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); }

/* --- плёнка после сеанса --- */
.film__title { font: 400 .72rem var(--f-head); letter-spacing: .25em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 .8rem; }
.film { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.6rem; }
.film__card { background: var(--graphite); border: 1px solid var(--line); padding: 1.1rem; display: grid; gap: .5rem; align-content: start; }
.film__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.film__head b { font: 500 .95rem var(--f-head); letter-spacing: .1em; text-transform: uppercase; }
.film__head span { font-size: .78rem; color: var(--muted); }
.film__time { font: 700 1.7rem/1 var(--f-head); color: var(--accent-hi); }
.film__card p { margin: 0; font-size: .88rem; color: #c3ccd5; }
.film__card p.film__warn { font-size: .82rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: .7rem; }
.film__warn b { color: var(--bone); font-weight: 600; }
@media (max-width: 560px) { .film { grid-template-columns: 1fr; } }

.form--review .refs { margin-top: 0; }
.review__photos { display: flex; gap: 6px; margin-top: .9rem; }
.review__photos img { width: 76px; height: 76px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); filter: grayscale(.3); transition: filter .4s; }
.review__photos img:hover { filter: none; }

/* место под плавающую кнопку Telegram, чтобы она не закрывала футер */
.footer { padding-right: max(var(--pad), 90px); }

.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented--3 label:last-child input:checked + span { background: var(--bone); color: var(--ink); }
.segmented--3 span { padding-inline: .3em; }

.review__edit { margin-top: 1rem; }
.review__edit textarea { width: 100%; background: var(--graphite); color: var(--bone); border: 1px solid var(--smoke); padding: .7rem; font: inherit; font-size: .9rem; }
.review__edit textarea:focus { outline: none; border-color: var(--accent-hi); }
.admin__empty { border: 1px dashed var(--smoke); padding: 1.4rem; max-width: 640px; }
.admin__empty p { margin: 0 0 .6rem; }
.admin__empty b { color: var(--bone); font-weight: 600; }

/* ==========================================================
   МАСТЕРСКАЯ — отдельная страница studio.html
   ========================================================== */
.studio-login { min-height: 100svh; display: grid; place-items: center; padding: 24px var(--pad);
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(61, 114, 152,.14), transparent 70%); }
.studio-login__card { width: min(100%, 380px); background: var(--graphite); border: 1px solid var(--line); padding: 2.2rem 2rem; text-align: center; }
.studio-login__card .logo { font-size: 2.4rem; }
.studio-login__card h1 { font: 400 .8rem var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: var(--accent-hi); margin: .2rem 0 1rem; }
.studio-login__card .field { text-align: left; }

.studio-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem;
  padding: 14px var(--pad); background: rgba(10, 13, 18,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--accent); }
.studio-bar__title { font: 400 .75rem var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.studio-bar .admin__mode { margin-left: 0; }
.studio .admin { border-top: 0; padding-top: 32px; }

.studio-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.studio-list { display: grid; gap: 10px; }
.studio-item { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; background: var(--graphite); border: 1px solid var(--line); padding: .7rem; }
.studio-item img { width: 96px; height: 96px; object-fit: cover; cursor: zoom-in; }
.studio-item img.is-light { background: #e6edf2; object-fit: contain; }
.studio-item.is-archive img { filter: grayscale(1) brightness(.6); }
.studio-item__body { display: grid; gap: .25rem; align-content: start; min-width: 0; }
.studio-item__body b { font: 500 .95rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.studio-item__body small { color: var(--muted); font-size: .8rem; }
.studio-item__note { font-style: italic; }
.studio-item .request__actions { margin-top: .3rem; }
.studio-tag { justify-self: start; font: .62rem var(--f-head); letter-spacing: .16em; text-transform: uppercase; padding: .3em .6em; border: 1px solid rgba(155,196,155,.4); color: #9bc49b; }
.studio-tag.is-archive { border-color: var(--accent); color: var(--accent-hi); }
@media (max-width: 860px) { .studio-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .studio-bar .btn { flex: 1 1 auto; } .studio-bar__title { margin-right: 0; } }

/* --- окна «Изменить» в мастерской --- */
.modal--wide[open] { width: min(94vw, 620px); max-height: 92vh; overflow-y: auto; }
.modal__actions { justify-content: flex-end; }
.drop--edit { min-height: 180px; }
.drop--edit .drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop--edit .drop__preview.is-light { object-fit: contain; background: #e6edf2; }
.drop--edit .drop__hint { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem; background: rgba(10, 13, 18,.82); font-size: .68rem; }
.drop--edit .drop__preview[hidden] + .drop__hint { position: static; background: none; }
.drop--edit.is-changed { border-color: var(--accent-hi); border-style: solid; }
.drop--edit.is-changed .drop__hint::before { content: "✓ новое фото · "; color: #9bc49b; }

.request a { color: var(--bone); }

/* --- быстрый ответ клиенту --- */
.quick-replies { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.quick-replies small { color: var(--muted); margin-right: .2rem; }
.qr { font: .7rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .4em .8em; border: 1px solid var(--accent); color: var(--bone) !important; transition: background .3s; }
.qr:hover { background: var(--accent); }
.reply-status { display: block; margin-top: .5rem; color: var(--accent-hi) !important; }
.reply-status.is-ok { color: #9bc49b !important; }

/* --- перевод названий в мастерской --- */
.tr { border: 1px solid var(--line); padding: .8rem; display: grid; gap: .6rem; margin-top: -.4rem; }
.tr__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tr__head span { font: .68rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tr__auto { background: none; border: 1px solid var(--accent); color: var(--bone); font: .68rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; padding: .4em .8em; cursor: pointer; transition: background .3s; }
.tr__auto:hover:not(:disabled) { background: var(--accent); }
.tr__auto:disabled { opacity: .6; cursor: wait; }
.tr__grid { display: grid; gap: .4rem; }
.tr__grid label { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .5rem; }
.tr__grid b { font: 500 .72rem var(--f-head); letter-spacing: .12em; color: var(--accent-hi); }
.tr__grid input { background: var(--graphite); color: var(--bone); border: 0; border-bottom: 1px solid var(--smoke); padding: .6em .8em; font: inherit; font-size: .9rem; }
.tr__grid input:focus { outline: none; border-color: var(--accent-hi); }
.tr .muted { font-size: .75rem; }

/* --- вступление к записи --- */
.booking__intro { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.booking__introH { font: 300 clamp(1.6rem, 3.4vw, 2.4rem)/1.15 var(--f-head); letter-spacing: .02em; text-transform: none; margin: 0 0 1.2rem; }
.booking__lead { color: var(--bone); font-weight: 600; margin-top: 0; }
.booking__intro p:not(.booking__lead) { color: var(--muted); }

.field.is-invalid .cal { outline: 1px solid var(--accent-hi); }
.field.is-invalid > span { color: var(--accent-hi); }

/* --- шапка на телефоне: логотип и языки в одну строку --- */
.logo, .lang button { white-space: nowrap; }
@media (max-width: 560px) {
  .nav { gap: .5rem; }
  .nav .logo { font-size: 1.4rem; }
  .lang { gap: 0; }
  .lang button { padding: .45em .4em; font-size: .62rem; letter-spacing: .06em; }
  .nav__burger { margin-left: .4rem; width: 26px; }
}
@media (max-width: 360px) { .nav .logo { font-size: 1.2rem; } }

/* ==========================================================
   ФОН: холодное ледяное свечение за всей страницей
   Отдельный неподвижный слой (работает и на iPhone). Сила свечения — --glow.
   ========================================================== */
:root { --glow: 1; }
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  opacity: var(--glow);
  background:
    radial-gradient(ellipse 55% 45% at 8% 6%,   rgba(61, 114, 152, .30), transparent 70%),
    radial-gradient(ellipse 45% 40% at 96% 38%, rgba(140, 196, 234, .14), transparent 70%),
    radial-gradient(ellipse 70% 45% at 30% 100%, rgba(42, 82, 118, .38), transparent 70%),
    linear-gradient(180deg, #0a0d12 0%, #0c131c 55%, #0a0d12 100%);
  animation: glowDrift 40s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
/* фон самого body делаем прозрачным, чтобы свечение было видно */
body { background: #0a0d12; }
html { background: #0a0d12; }
/* первый экран: тёмный, с ледяным свечением в центре и затемнением по краям */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(61, 114, 152,.16), transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, #03060a 100%),
    var(--ink);
  /* мягкий переход к красному фону ниже, без резкой границы */
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

/* --- падающий снег на фоне (рисует app.js) --- */
.bg-lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 1; }

/* ==========================================================
   ЛЁД: эффекты Icewrack Ink
   ========================================================== */

/* 1) ледяной блик, пробегающий по логотипу */
.hero__gothic {
  background: linear-gradient(110deg, var(--bone) 0 42%, #ffffff 48%, #bfe3fb 50%, #ffffff 52%, var(--bone) 58% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 28px rgba(61, 114, 152, .45));
  animation: glint 7s ease-in-out infinite 1.5s;
}
@keyframes glint { 0%, 62% { background-position: 100% 0; } 82%, 100% { background-position: 0% 0; } }

/* 2) ледяная пыль */
.hero__frost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 4) огромные контурные номера разделов */
.section__head { position: relative; }
.section__head[data-num]::before {
  content: attr(data-num); position: absolute; right: 0; bottom: -.12em; z-index: -1; pointer-events: none;
  font: 700 clamp(6rem, 18vw, 15rem)/.8 var(--f-head); color: transparent;
  -webkit-text-stroke: 1px rgba(140, 196, 234, .16); letter-spacing: -.02em;
}

/* 5) карточки из матового льда */
.prices__grid, .form--review, .film__card, .reviews__list, .cal, .tabs, .booking__intro, .flash-card {
  background: rgba(17, 24, 32, .55) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top-color: rgba(140, 196, 234, .3) !important;
  box-shadow: inset 0 1px 0 rgba(200, 228, 248, .08);
}
.booking__intro { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); }
.review { background: transparent !important; }
.price:hover { background: rgba(61, 114, 152, .12); }
.btn--accent { box-shadow: 0 0 0 0 rgba(140, 196, 234, 0); transition: color .4s var(--ease), box-shadow .4s var(--ease); }
.btn--accent:hover { box-shadow: 0 0 24px rgba(140, 196, 234, .35); }

@media (max-width: 560px) {
  .section__head[data-num]::before { font-size: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { .hero__gothic { background-position: 50% 0; } }

/* наклонная бегущая строка не должна давать прокрутку вбок */
html, body { overflow-x: clip; }

/* остаются только большие полупрозрачные номера — маленькие рядом с заголовком убираем */
.section__head[data-num] .section__num { display: none; }


/* --- «Только чёрный» — светящийся ярлык вместо рамки --- */
.about__ink { display: flex !important; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.8rem;
  padding: 0 !important; border: 0 !important; background: none !important; }
.about__ink > i { display: none; }
.ink-tag {
  display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em .55em .8em; border-radius: 999px;
  font: 500 .72rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi);
  border: 1px solid rgba(140, 196, 234, .5); background: rgba(61, 114, 152, .12);
  box-shadow: 0 0 18px rgba(140, 196, 234, .22), inset 0 0 12px rgba(140, 196, 234, .08);
}
.ink-tag svg { width: 15px; height: 15px; fill: #000; stroke: var(--accent-hi); stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(140, 196, 234, .7)); }
.ink-text { color: var(--muted); font-size: .92rem; }

/* --- рамка фото: первый вариант — смещённая тонкая рамка, при наведении придвигается --- */
.about__frame { position: relative; aspect-ratio: 4 / 5; background: var(--graphite); }
.about__frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--accent); z-index: -1; transition: inset .6s var(--ease); }
.about__photo:hover .about__frame::before { inset: 8px -8px -8px 8px; }

/* --- Мастерская: «Мой архив» --- */
.archive__count { color: var(--muted); font-size: .85rem; margin: -.5rem 0 1rem; }
[data-apanel="archive"] .filters { gap: 1rem 2rem; }
[data-apanel="archive"] .gallery .card { cursor: zoom-in; }
[data-apanel="archive"] .card__meta { opacity: 1; transform: none; }
