:root {
  --bg: #f6f3ee; --ink: #1b1b1b; --muted: #6b6560; --card: #ffffff;
  --line: #e3dbcf; --tag: #efe9df; --ok: #e7f0de;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 400; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(246, 243, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-name { font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.bar-name b { font-weight: 600; }
.bar-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.work-page .bar-name { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px;
  border-radius: 12px; border: 1.5px solid var(--ink); text-align: center; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { font-size: 13px; padding: 11px 16px; border-radius: 22px; }
.btn-wide { display: block; width: 100%; }

main { max-width: 1120px; margin: 0 auto; }
.hero { padding: 36px 16px 28px; }
.hero h1 { font-size: clamp(32px, 8vw, 56px); line-height: 1.08; margin: 0; max-width: 16em; }
.hero p { color: var(--muted); margin: 14px 0 22px; max-width: 36em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.sec { padding: 28px 16px 8px; scroll-margin-top: 64px; }
.sec h2 { font-size: 28px; margin: 0 0 14px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip, .tchip, .tmore { position: relative; font: inherit; font-size: 13px; min-height: 36px; padding: 6px 13px; border-radius: 18px;
  border: 1px solid #cfc6b8; background: transparent; color: var(--ink); cursor: pointer; }
.chip::before, .tchip::before, .tmore::before { content: ""; position: absolute; inset: -4px -3px; }   /* зона нажатия 44 px */
.tmore { border-style: dashed; color: var(--muted); }
.chip.on, .tchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tools-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.tools-lab { font-size: 13px; color: var(--muted); margin-right: 2px; }
.tchip { background: var(--card); }
.tchip small { color: var(--muted); font-size: 11px; margin-left: 2px; }
.tchip.on small { color: #bdb7ae; }
@media (max-width: 759px) {
  .tools-bar:not(.open) .tchip:nth-child(n+7) { display: none; }
  .tools-bar.open .tmore { display: none; }
}
@media (min-width: 760px) { .tmore { display: none; } }
.fstate { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: -4px 0 14px; font-size: 14px; }
.freset { font: inherit; font-size: 13px; min-height: 36px; padding: 6px 13px; border: 0; border-radius: 18px;
  background: var(--tag); color: var(--ink); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { scroll-margin-top: 76px; display: block; background: var(--card); border-radius: 14px; overflow: hidden; text-decoration: none; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.card:target { animation: here 2.4s ease-out; }          /* карточка, к которой вернулись со страницы работы */
.card:target:focus-visible { outline: none; }
@keyframes here { 0%, 40% { box-shadow: 0 0 0 3px var(--ink); } 100% { box-shadow: 0 0 0 3px transparent; } }
.card-m { position: relative; display: block; }
.card-m img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #e9e3d9; }
.card-photo .card-m img, .card-fit .card-m img { object-fit: contain; }
.play { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.card-t { display: block; padding: 8px 10px 11px; color: inherit; text-decoration: none; }
.card-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card-track::-webkit-scrollbar { display: none; }
.card-track img { flex: 0 0 100%; scroll-snap-align: start; }
.cnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .25); }
.cnav::before { content: ""; position: absolute; inset: -4px; }
.cnav svg { width: 18px; height: 18px; }
.gal-nav svg { width: 22px; height: 22px; }
.cnav.prev { left: 4px; }
.cnav.next { right: 4px; }
.ccount { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px;
  font-weight: 600; padding: 3px 8px; border-radius: 10px; }
@media (hover: hover) {
  .card-multi .cnav { opacity: 0; transition: opacity .15s; }
  .card-multi:hover .cnav, .card-multi:focus-within .cnav { opacity: 1; }
}
.card-t b { display: block; font-size: 14px; line-height: 1.25; }
.card-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.free { background: var(--ok); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.svc { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.svc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-weight: 700; white-space: nowrap; }
.svc small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.svc .ex { color: var(--ink); }
.svc-go { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 -10px; font-size: 14px; font-weight: 600; }
.like { margin: 18px 0 0; padding: 12px 14px; background: var(--card); border-radius: 12px; font-size: 15px; }
.svc-group { font-size: 22px; margin: 26px 0 12px; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.about p { margin: 0 0 10px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tags i { font-style: normal; font-size: 12px; background: var(--tag); padding: 3px 9px; border-radius: 10px; }

.foot { margin: 36px 16px 24px; background: var(--ink); color: #fff; border-radius: 18px; padding: 26px 18px; }
.foot h2 { font-size: 26px; margin: 0 0 8px; }
.foot p { color: #bdb7ae; margin: 0 0 16px; }
.foot-link { display: block; margin-top: 14px; font-size: 14px; color: #bdb7ae; }

.work { padding: 12px 16px 96px; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; background: #000;
  scrollbar-width: none; max-height: 64vh; margin: 0 auto; }
.gal::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.slide video, .slide img { width: 100%; height: 100%; object-fit: contain; }
.snd { position: absolute; left: 10px; bottom: 10px; z-index: 2; font: inherit; font-size: 13px; color: #fff; background: rgba(0, 0, 0, .55);
  border: 0; border-radius: 22px; min-height: 44px; padding: 10px 14px; cursor: pointer; }
.slide.paused::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; display: flex; align-items: center;
  justify-content: center; padding-left: 4px; pointer-events: none; }
.gal-wrap { position: relative; margin: 0 auto; max-width: calc(64vh * var(--ar, 1)); }   /* стрелки по краям ролика */
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 2px; }
.dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #cfc6b8; }
.gcount { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.dot.on::after { background: var(--ink); }
.work-text h1 { font-size: 30px; line-height: 1.15; margin: 18px 0 6px; }
.lab { font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.work-text p { margin: 0 0 10px; }
.work-text ul { margin: 0 0 8px; padding-left: 20px; }
.work-text li { margin-bottom: 5px; }
.sub { font-size: 15px; margin: 12px 0 4px; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 14px; }
.pn a { color: var(--muted); }
.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(246, 243, 238, 0), var(--bg) 35%); }

.nf { padding: 80px 16px; text-align: center; }
.nf h1 { font-size: 34px; margin: 0 0 10px; }
.nf p { color: var(--muted); margin: 0 0 22px; }

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .sec, .hero { padding-left: 24px; padding-right: 24px; }
  .free, .svc { max-width: 720px; }
}
@media (min-width: 900px) {
  .gal { max-height: 82vh; }
  .gal-wrap { max-width: calc(82vh * var(--ar, 1)); }
  .work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 24px 24px 40px; }
  .work-media { position: sticky; top: 76px; }
  .work-text h1 { margin-top: 0; }
  .stick { position: static; margin-top: 16px; padding: 0; background: none; max-width: 420px; }
}
@media (min-width: 1152px) {
  .foot { max-width: 1072px; margin: 36px auto 24px; }
}
